Variational principle, Hamilton's principle, calculus of variations, Euler-Lagrange equation
- CSIR NET
- GATE
- UP Assistant Professor
- UP GDC Mains
4 minute read · Updated 2026-11-15
Picking up from
In D'Alembert's principle, we saw that virtual work removes ideal reaction forces by considering allowed changes. Can a whole trajectory be selected using one scalar quantity instead of force components?
In one line
Hamilton’s principle selects the physical trajectory by making the action stationary under allowed endpoint-fixed path variations.
The idea, explained
The action is a time integral of the Lagrangian, a function of coordinates, velocities and time. For ordinary conservative mechanical systems, the Lagrangian is kinetic energy minus potential energy. A path variation compares neighboring entire trajectories, rather than changing one point along an already known motion. Hamilton’s principle requires the first-order change of the action to vanish for variations with fixed initial and final configurations.
Stationary does not necessarily mean minimum: a physical path can make the action a saddle value. Integrating the velocity-variation term by parts transfers a derivative onto the Lagrangian’s velocity derivative. Endpoint terms vanish because the variations are fixed there. Since the remaining interior coordinate variations are independent, their coefficients give the Euler–Lagrange equations. This supplies a systematic equation-of-motion rule without resolving every Cartesian force component, while retaining the constraint and endpoint assumptions.
Core ideas
- A variation changes the candidate path while keeping its time parameter fixed. It is different from taking the ordinary time derivative along one trajectory.
- Use independent generalized coordinates or impose constraints consistently. Varying constrained coordinates as though they were independent gives incorrect equations.
- The Euler–Lagrange derivative includes the full time derivative of the velocity partial derivative. Any coordinate and explicit time dependence inside that expression also contributes.
- Hamilton’s principle in its basic form assumes forces represented by the chosen Lagrangian. Dissipative forces need an extended formulation rather than silently inserting a friction potential.
- Fixed endpoint configurations remove the boundary variation term. If endpoints are free or constrained differently, additional boundary conditions must be derived instead of discarded.
Key formulas
Action and stationary-action condition
The functional assigns a number to a whole path; endpoint variations obey .
Euler–Lagrange equations
Each independent coordinate supplies one equation; is differentiated with coordinates and velocities treated as independent variables.
Identify the independent coordinates and allowed endpoint variations first. Write the kinetic and potential energies in those coordinates, then take partial derivatives before performing the total time derivative. Avoid setting a coordinate to its equilibrium value before varying, since that can erase the restoring term. After deriving the equation, inspect its small-displacement and force-free limits. Use “stationary action” in explanations so that no unsupported minimum claim is attached to the variational statement.
Quick worked example
For , the velocity derivative is . The coordinate derivative is . The Euler–Lagrange equation gives , the spring equation.
Where this leads
Continue to Lagrangian formalism and equations of motion, because stationary action becomes a practical algorithm once the Lagrangian is written in useful coordinates.
Related: Linear ODEs, first and second order — the variational equations are differential equations requiring initial or boundary data.
Practice this topic
Practice this topic53 questions in Assistant Professor · Physics · Physics. Sign in and practice access may be required.