In physics, Hamilton's principle is William Rowan Hamilton's formulation of the principle of stationary action. It states that the dynamics of a physical system are determined by a variational problem for a functional based on a single function, the Lagrangian, which may contain all physical information concerning the system and the forces acting on it. The variational problem is equivalent to and allows for the derivation of the differential equations of motion of the physical system. Although formulated originally for classical mechanics, Hamilton's principle also applies to classical fields such as the electromagnetic and gravitational fields, and plays an important role in quantum mechanics, quantum field theory and criticality theories.
Mathematical formulation Hamilton's principle states that the true evolution q(t) of a system described by N generalized coordinates q = (q1, q2, ..., qN) between two specified states q1 = q(t1) and q2 = q(t2) at two specified times t1 and t2 is a stationary point (a point where the variation is zero) of the action functional 𝒮[𝐪] =def ∫t1t2L(𝐪(t),𝐪˙(t),t)dt where L(𝐪,𝐪˙,t) is the Lagrangian function for the system. In other words, any first-order perturbation of the true evolution results in (at most) second-order changes in 𝒮. The action 𝒮 is a functional, i.e., something that takes as its input a function and returns a single number, a scalar. In terms of functional analysis, Hamilton's principle states that the true evolution of a physical system is a solution of the functional equation
That is, the system takes a path in configuration space for which the action is stationary, with fixed boundary conditions at the beginning and the end of the path.
Derivation from Newton's laws of motion Although Hamilton's principle can be viewed as a postulate effectively replacing Newton's laws of motion, it can also be derived from Newton's laws. Starting with d'Alembert's principle: ∑i(𝐅i−mi𝐚i)⋅δ𝐫i=0. Where i is the index of a mass, 𝐅i is applied force (excluding constraint forces), 𝐚i is acceleration of the mass, and δ𝐫i is the virtual displacement of the i-th mass consistent with the constraints. The above equation holds true for all times t so a definite integral with respect to t must also be 0: ∫t1t2∑i(𝐅i−mi𝐫¨i)⋅δ𝐫idt=0. δ𝐫i, the sum, and the integral can all be distributed: ∫t1t2∑i𝐅i⋅δ𝐫idt−∫t1t2∑imi𝐫¨i⋅δ𝐫idt=0 Looking at the second term we can use the product rule to find the relation: ddt(mi𝐫˙i⋅δ𝐫i)=mi𝐫¨i⋅δ𝐫i+mi𝐫˙i⋅ddt(δ𝐫i) Variation δ and the time derivative ddt commute (meaning ddtδ𝐫=δ𝐫˙), so we can rearrange this to isolate our acceleration term: mi𝐫¨i⋅δ𝐫i=ddt(mi𝐫˙i⋅δ𝐫i)−mi𝐫˙i⋅δ𝐫˙i Substituting this into the integral we get: ∫t1t2∑imi𝐫¨i⋅δ𝐫idt=∑i[mi𝐫˙i⋅δ𝐫i]t1t2−∫t1t2∑imi𝐫˙i⋅δ𝐫˙idt In Hamilton's principle, we define the variations such that they vanish at the endpoints: δ𝐫i(t1)=δ𝐫i(t2)=0. This makes the first term on the right disappear completely. Also δ(𝐫˙2)=2𝐫˙⋅δ𝐫˙ so the remaining term is: −∫t1t2δ(∑i12mi𝐫˙i2)dt=−∫t1t2δTdt Where T is the total kinetic energy. Looking at the applied force term, if the forces are conservative, they can be derived from a potential energy V(𝐫1,𝐫2,…). The work done by these forces during a virtual displacement is: ∑i𝐅i⋅δ𝐫i=−∑i∇iV⋅δ𝐫i=−δV Substituting everything back into the integral gives: ∫t1t2(−δV−(−δT))dt=0 δ∫t1t2(T−V)dt=0 Here the Lagrangian L=T−V. This is Hamilton's principle for a non-relativistic system of masses in the absence of an electromagnetic field.
Euler–Lagrange equations derived from the action integral
Requiring that the true trajectory q(t) be a stationary point of the action functional 𝒮 is equivalent to a set of differential equations for q(t) (the Euler–Lagrange equations), which may be derived as follows. Let q(t) represent the true evolution of the system between two specified states q1 = q(t1) and q2 = q(t2) at two specified times t1 and t2, and let ε(t) be a small perturbation that is zero at the endpoints of the trajectory 𝜺(t1)=𝜺(t2) =def 0 To first order in the perturbation ε(t), the change in the action functional δ𝒮 would be δ𝒮=∫t1t2[L(𝐪+𝜺,𝐪˙+𝜺˙)−L(𝐪,𝐪˙)]dt=∫t1t2(𝜺⋅∂L∂𝐪+𝜺˙⋅∂L∂𝐪˙)dt where we have expanded the Lagrangian L to first order in the perturbation ε(t). Applying integration by parts to the last term results in δ𝒮=[𝜺⋅∂L∂𝐪˙]t1t2+∫t1t2(𝜺⋅∂L∂𝐪−𝜺⋅ddt∂L∂𝐪˙)dt The boundary conditions 𝜺(t1)=𝜺(t2) =def 0 causes the first term to vanish δ𝒮=∫t1t2𝜺⋅(∂L∂𝐪−ddt∂L∂𝐪˙)dt Hamilton's principle requires that this first-order change δ𝒮 is zero for all possible perturbations ε(t), i.e., the true path is a stationary point of the action functional 𝒮 (either a minimum, maximum or saddle point). This requirement can be satisfied if and only if
These equations are called the Euler–Lagrange equations for the variational problem.
Example: Free particle in polar coordinates Trivial examples help to appreciate the use of the action principle via the Euler–Lagrange equations. A free particle (mass m and velocity v) in Euclidean space moves in a straight line. Using the Euler–Lagrange equations, this can be shown in polar coordinates as follows. In the absence of a potential, the Lagrangian is simply equal to the kinetic energy L=12mv2=12m(x˙2+y˙2) in orthonormal (x,y) coordinates, where the dot represents differentiation with respect to the curve parameter (usually the time, t). Therefore, upon application of the Euler–Lagrange equations, ddt(∂L∂x˙)−∂L∂x=0⇒mx¨=0 And likewise for y. Thus the Euler–Lagrange formulation can be used to derive Newton's laws. In polar coordinates (r, φ) the kinetic energy and hence the Lagrangian becomes L=12m(r˙2+r2φ˙2). The radial r and φ components of the Euler–Lagrange equations become, respectively ddt(∂L∂r˙)−∂L∂r=0⇒r¨−rφ˙2=0 ddt(∂L∂φ˙)−∂L∂φ=0⇒φ¨+2rr˙φ˙=0. remembering that r is also dependent on time and the product rule is needed to compute the total time derivative ddtmr2φ˙. The solution of these two equations is given by r=(at+b)2+c2 φ=tan−1(at+bc)+d for a set of constants a, b, c, d determined by initial conditions. Thus, indeed, the solution is a straight line given in polar coordinates: a is the velocity, c is the distance of the closest approach to the origin, and d is the angle of motion.
… excerpt ends here. Continue reading the full article.

![Hamilton's principle: As the system evolves, q traces a path through configuration space (only some are shown). The path taken by the system (red) has a stationary action (δS = 0) under small changes in the configuration of the system (δq).[1]](https://thumb.wikimedia.org/wikipedia/commons/thumb/1/1c/Least_action_principle.svg/500px-Least_action_principle.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)