There seems to be a similarity between the solutions of laplace's equation and the principle of least action. e.g. the solution of a one dimensional laplace equation is a straight and the curve that minimizes the action is also a straight line. Was one derived from the other? Newbie here. Id appreciate any answer.