Prove that the shortest distance between two points is a straight line. Show that the necessary conditions yield a minimum and not a maximum.