Just some generalization for the least action principle and Euler-Lagrange equation for the classical cases. In the calculus of variation, we have developed a tool for describing various physics situation. In general, let be the coordinate of a particular configuration space and be its time derivative. Then, the action is described as
where are the initial time and final time, respectively. The integrand is known as the Lagrangian and is assumed to be time-independent for convenience. The idea here is to find the path that minimize the action . Now, we introduction the idea of variation, which can be viewed as an infinitesimal shift from the original path; however, it does not change the terminal points. Since the path we are interested is the path that minimizes the action, then the variation of the action should be 0 and that is
Then, by the integration by parts, we have that
since the boundary term does not vary so that . Thus, we arrive at the point where the classical particle must obey the path where the equation
This equation is known as the Euler-Lagrange equation.