Lagrangian mechanics and Newtonian mechanics describe the same classical motion, but they organize the problem differently. This guide gives you a reusable method for choosing between them, constructing a Lagrangian correctly, applying the Euler–Lagrange equation, and checking the result. It also includes worked examples for a pendulum, an inclined plane, and a coupled oscillator so you can compare each derivation with a familiar Newtonian solution.
Overview
Newtonian mechanics starts with forces and acceleration:
∑F = ma.
You draw a free-body diagram, resolve forces into components, and write one equation for each independent direction. This approach is direct and often best for a single particle moving along a straight line or for a problem where the forces are already easy to identify.
Lagrangian mechanics starts with two scalar energy functions. The Lagrangian is
L(qi, q̇i, t) = T − V,
where T is kinetic energy, V is potential energy, qi are generalized coordinates, and q̇i are their time derivatives. The equations of motion follow from the Euler–Lagrange equation:
d/dt(∂L/∂q̇i) − ∂L/∂qi = 0.
A generalized coordinate is any variable that uniquely specifies the system’s configuration. It might be a Cartesian position x, an angle θ, a distance along a track, or a combination of coordinates. The number of independent generalized coordinates equals the system’s degrees of freedom.
| Feature | Newtonian method | Lagrangian method |
|---|---|---|
| Starting point | Forces and acceleration | Kinetic and potential energy |
| Coordinates | Usually Cartesian components | Generalized coordinates chosen for the motion |
| Constraints | Often require additional constraint forces | Can often be built into the coordinates |
| Degrees of freedom | One force equation per independent direction, plus constraints | One Euler–Lagrange equation per independent coordinate |
| Useful for | Simple force diagrams and contact problems | Curved coordinates, pendulums, linked systems, and constrained motion |
| Conservation laws | Follow from net force and symmetry of the situation | Often visible through absent coordinates or absent time dependence |
The Lagrangian method is usually easier when constraints are complicated, when the motion is naturally described by angles or distances along tracks, or when several moving parts are coupled. Newton’s laws may be faster when you need contact forces, tension, normal forces, or friction explicitly.
Checklist by scenario
General workflow for using Lagrangian mechanics
- Define the system and assumptions. State the objects included, whether motion is planar, whether the strings or rods are rigid, and whether friction or air resistance is neglected.
- Choose independent coordinates. Use the smallest set that describes every possible configuration. A pendulum needs one angle, not separate x and y coordinates.
- Set the reference for potential energy. The zero of gravitational potential is arbitrary, but use one convention consistently.
- Write T and V. Express both in the chosen coordinates and their time derivatives.
- Form L = T − V. Do not use T + V for the standard conservative Lagrangian.
- Apply Euler–Lagrange once per coordinate. Differentiate first with respect to q̇, then with respect to time; separately calculate the partial derivative with respect to q.
- Check dimensions and limiting cases. Every term in an equation of motion must have compatible units. Test small angles, zero coupling, or zero incline as appropriate.
- Translate the answer into familiar motion. Identify acceleration, angular frequency, equilibrium points, or conserved quantities.
Scenario 1: simple pendulum
Consider a bob of mass m attached to a massless string of length ℓ. Choose θ, measured from the downward vertical, as the single coordinate. The bob’s speed is ℓθ̇, so
T = ½mℓ²θ̇².
Choosing the lowest point as zero potential energy gives
V = mgℓ(1 − cos θ).
Therefore, L = ½mℓ²θ̇² − mgℓ(1 − cos θ). Applying Euler–Lagrange produces
mℓ²θ̈ + mgℓ sin θ = 0,
or
θ̈ + (g/ℓ)sin θ = 0.
This is the full nonlinear equation. For small angles, sin θ ≈ θ, giving simple harmonic motion with angular frequency √(g/ℓ). The Lagrangian approach avoids calculating the tension and automatically respects the fixed-length constraint. A Newtonian solution is still useful if the tension is required; it combines tangential and radial force equations.
Scenario 2: block on an inclined plane
Let a block of mass m slide a distance s down a frictionless plane inclined at angle α. Choose s along the plane, positive downhill. The speed is ṡ, so T = ½mṡ². If height increases opposite to s, the gravitational potential can be written V = −mgs sin α, after choosing an arbitrary reference height.
Thus L = ½mṡ² + mgs sin α. Euler–Lagrange gives
ms̈ − mg sin α = 0,
so s̈ = g sin α. This is equivalent to resolving Newton’s law along the plane. The Lagrangian method is not automatically shorter here; Newton’s method may be quicker if the problem also asks for the normal force. With kinetic friction, include a nonconservative generalized force rather than placing friction in V: Qs = −μkmg cos α.
Scenario 3: two coupled oscillators
Suppose two equal masses m move horizontally with displacements x1 and x2. Each mass is attached to a wall by a spring of constant k, and a middle spring of constant κ connects the masses. The energies are
T = ½m(ẋ1² + ẋ2²)
and
V = ½kx1² + ½kx2² + ½κ(x2 − x1)².
Applying Euler–Lagrange gives
m ẍ1 + kx1 + κ(x1 − x2) = 0,
m ẍ2 + kx2 + κ(x2 − x1) = 0.
These equations show why the method scales well: the coupling term appears naturally in both equations with opposite signs. Try normal-coordinate combinations x1 = x2 for in-phase motion and x1 = −x2 for out-of-phase motion. The first mode does not stretch the middle spring; the second does.
What to double-check
- Coordinate independence: Do not use x and y as separate coordinates if a rigid string already imposes x² + y² = ℓ². Replace them with one angle when possible.
- Signs in potential energy: Increasing height must increase gravitational potential energy. A sign error changes the predicted direction of acceleration.
- Units: T, V, and L all have units of energy. In a pendulum equation, g/ℓ must have units of inverse time squared.
- Boundary and initial conditions: The differential equation does not specify a unique trajectory until conditions such as q(0) and q̇(0) are supplied. For a fixed endpoint or constrained variation, state the relevant condition explicitly.
- Conservation laws: If L has no explicit time dependence, the energy function is conserved for a conservative system. If a coordinate does not appear in L, its conjugate momentum is conserved. Confirm that the physical setup supports the conservation claim.
- Nonconservative forces: Friction, driving, and damping generally require generalized forces or an appropriate extended formulation. Do not insert a force into V unless it is conservative and can be represented by a potential.
For numerical follow-up, the resulting equations can be integrated and compared with an analytic approximation. The guide to numerical physics with Python is useful when a nonlinear pendulum or coupled oscillator cannot be solved conveniently by hand.
Common mistakes
Choosing too many coordinates creates unnecessary constraint equations. Start by asking how many independent quantities are needed to locate every part of the system.
Confusing partial and total derivatives is another frequent error. In ∂L/∂q̇, hold q and t fixed. After calculating that expression, take its total time derivative, because q and q̇ change with time.
Dropping a coupling term usually means the relative displacement was not written correctly. A spring between two coordinates depends on their difference, such as ½κ(x2 − x1)².
Assuming the small-angle approximation too early hides whether the original derivation is correct. Keep sin θ until the full equation is obtained, then state the approximation and its intended regime.
Expecting every unknown force to appear can also cause confusion. Lagrangian equations often eliminate ideal constraint forces. That is an advantage for finding motion, but Newtonian force balances may be preferable when the constraint force itself is the quantity sought.
When to revisit
Use this checklist whenever a new mechanics problem changes its coordinates, constraints, energy terms, or force model. Revisit the derivation before an exam if you have switched between textbook conventions—for example, measuring an angle from the upward rather than downward vertical, or defining displacement as positive uphill rather than downhill.
For a practical final check, write the problem on one page and mark: the independent coordinates, degrees of freedom, assumptions, T, V, L, Euler–Lagrange equations, dimensions, initial or boundary conditions, and one limiting case. Then compare the result with a Newtonian force balance whenever that is feasible. If both methods agree in a simple limit, confidence in the more complicated derivation increases.
Keep this workflow alongside your classical-mechanics notes and update it when your course introduces generalized forces, rotating coordinates, electromagnetic potentials, or numerical methods. Related force-based problem-solving techniques can also be reviewed in the physics error-analysis guide, especially when checking measured parameters or reporting calculated results.