---
title: "Generalised Coordinates and the Lagrangian"
description: "Generalised coordinates that respect the constraints let ideal constraint forces drop out of the equations, because their virtual work at fixed time is zero even though the forces are still present. T"
canonical: https://lightmysky.com/learn/science/generalised-coordinates-and-the-lagrangian-mt_9QPk1zI9jE
source: https://lightmysky.com/learn/science/generalised-coordinates-and-the-lagrangian-mt_9QPk1zI9jE.md
retrieved: 2026-11-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Generalised Coordinates and the Lagrangian

Generalised coordinates that respect the constraints let ideal constraint forces drop out of the equations, because their virtual work at fixed time is zero even though the forces are still present. The Lagrangian is kinetic minus potential energy written in those coordinates. A pendulum needs one angle rather than two positions plus a tension.

Subject: Science · Area: Forces & Motion · Ages 21 to 22
Page: https://lightmysky.com/learn/science/generalised-coordinates-and-the-lagrangian-mt_9QPk1zI9jE

## Ready when they can

- Picks a set of generalised coordinates for a constrained system and counts the degrees of freedom
- Writes kinetic and potential energy in those coordinates and forms the Lagrangian
- Explains that ideal constraint forces drop out of the equations because their virtual work at fixed time is zero, while the physical forces remain present

## Lesson: Energy instead of forces

Rolling needed three equations and gyroscopes needed torque bookkeeping. The Lagrangian method sidesteps that grind: it rewrites mechanics around energy instead of forces. You pick generalised coordinates that respect the constraints, write kinetic minus potential energy in them, and fixed recipes produce the motion. In the basic mechanical case, L equals T minus V. Adding a constant to V changes nothing, since the equations of motion depend only on derivatives of L.

*(drawing: Choose coordinates that respect the constraints, then form L equals T minus V.)*

Counting degrees of freedom first tells you how many coordinates you need: a simple pendulum swings one way, so one angle suffices instead of two positions plus a string rule. Take a planar simple pendulum with a fixed pivot, a point bob of mass m, a massless string of fixed length l, and theta the angle from the downward vertical. The bob speed is l times the angular rate, so T is one half m l squared times rate squared. Potential V is the other half: gravity qualifies, so V is minus m g l cos theta up to a constant.

**Example.** For the pendulum you form script L equals T minus V with the single angle theta. Gravity qualifies for V since its work is path independent, so V is minus m g l cos theta. The explicit Lagrangian is script L equals half m l squared theta dot squared plus m g l cos theta. Ideal springs also admit a potential. Friction does not, so if air drag acts on the bob it enters as a generalised force in the Euler-Lagrange equation rather than inside V.

*(drawing: At fixed time the bob can only move tangent to its circle, while tension points radially inward.)*

Constraint forces like string tension drop out once the coordinates respect the constraint, but they never disappear from the physics. The mechanism is virtual work: a hypothetical nudge at fixed time. For the planar pendulum the bob must stay at distance l from the pivot, so every allowed virtual displacement is tangent to the circle, while tension points radially inward. A radial force dotted with a tangential displacement gives zero, so tension does zero virtual work. The tension is still present in a force diagram. Actual work can differ: a support that moves in time may do real work while the constraint force still does zero virtual work.

The formalism reaches further than the textbook cases. A bead on a hoop needs one angle along the hoop, not two positions plus a radial rule. Nonconservative applied forces like friction enter as generalised forces. An ideal moving support does not by itself break the recipe: a coordinate map r of q and t may give an explicitly time-dependent kinetic energy and Lagrangian.

**Recap.** For a conservative system, pick coordinates the constraints allow, write script L equals T minus V, and ideal constraint forces drop out through zero virtual work while remaining present in the physics.

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Angular Momentum and Its Conservation](https://lightmysky.com/learn/science/angular-momentum-and-its-conservation-mt_9v3S9-rhwc)

## Optional connections

- [Potential Energy Curves, Turning Points and Stability](https://lightmysky.com/learn/science/potential-energy-curves-turning-points-and-stability-mt_ZgRbrDaQzh)

## Opens up

- [Hamilton's Principle and the Action](https://lightmysky.com/learn/science/hamiltons-principle-and-the-action-mt_a273REeeGu)
- [The Euler-Lagrange Equation and Conserved Momenta](https://lightmysky.com/learn/science/the-euler-lagrange-equation-and-conserved-momenta-mt_GSEFABbEXI)
