Home › Analytical mechanics
Analytical mechanics
Analytical mechanics: constraints and generalized coordinates, the principle of virtual work, d'Alembert's principle, Lagrange's equations, Hamilton's equations and the principle of least action, small oscillations, with a calculator. All chapters use the same example, so the results build on each other.
Calculator
Analytical mechanics calculator
Trolley with a pendulum, a two-degree-of-freedom system and the nonlinear pendulum.
LISTSymbols and units
All symbols from the chapters and the calculator: name, unit and the chapter in which they are introduced.
Chapters
Constraints and generalized coordinates
Constraints and their classification, the number of degrees of freedom, generalized coordinates, possible and virtual displacements, ideal constraints.
✎ 3 problems2Principle of virtual work and d'Alembert
The principle of virtual work for the equilibrium of systems with ideal constraints, generalized forces, d'Alembert's principle and the general equation of dynamics.
✎ 3 problems3Lagrange's equations
Derivation of Lagrange's equations of the second kind, kinetic energy in generalized coordinates, the Lagrangian, non-conservative forces and the equations of the trolley with a load.
✎ 3 problems4Hamilton's equations and conservation laws
Generalized momenta, the Hamiltonian, canonical equations, cyclic coordinates, Noether's theorem, phase space and the principle of least action.
✎ 3 problems5Small oscillations
Linearization about a stable equilibrium, mass and stiffness matrices, natural frequencies and mode shapes, a two-degree-of-freedom system, the zero mode and the nonlinear pendulum.
✎ 3 problemsPractice problems
Every chapter ends with 3 problems with step-by-step solutions. Here is one from the first chapter:
Problem 1. ●○○ easy A winch on the trolley changes the rope length by a prescribed law l(t) (reeling in 0.5 m/s). How many degrees of freedom does the trolley-load system have in the plane, and what type are the constraints?
What is happening: The constraint is still an equation between coordinates (holonomic), but it now contains time explicitly – hence rheonomic. A prescribed length is not a new coordinate.
Show answer and solution
Solution idea: Count coordinates and constraints; check whether the constraint contains t.
Given: \(N = 2\ \text{points}\), \(l = l(t)\), \(\dot l = -0.5\ \text{m/s}\)
Find: \(n = ?\)
Symbols:
- \(N\) – number of particles
- \(l\) – rope length, m
- \(t\) – time, s
- \(\dot l\) – rope reeling speed, m/s
- \(n\) – degrees of freedom
- \(x_1\) – trolley x-coordinate, m
- \(y_1\) – trolley y-coordinate, m
- \(x_2\) – load x-coordinate, m
- \(y_2\) – load y-coordinate, m
- \(k\) – number of constraints
- \(q_1\) – first generalized coordinate
- \(x\) – trolley position (generalized coordinate), m
- \(q_2\) – second generalized coordinate
- \(\theta\) – rope angle from vertical (generalized coordinate), °, rad
- Coordinates and constraints:$$4\ \text{coordinates}:\ x_1, y_1, x_2, y_2;$$$$y_1 = 0$$$$(x_2 - x_1)^2 + y_2^2 = l(t)^2$$
- Degrees of freedom:$$\begin{aligned}n &= 2N - k \\ &= 4 - 2 \\ &= 2\end{aligned}$$$$\begin{aligned}(q_1 &= x,\ q_2 \\ &= \theta)\end{aligned}$$
Answer: n = 2 (x, θ); the rope constraint is holonomic and rheonomic
Sanity check: If the winch were free (no brake or motor), l would be a third coordinate and n = 3. A rheonomic constraint does work, so the load's total energy changes – the winch supplies it.
Example
trolley mass M = 200 kg; load mass m = 1000 kg; rope length l = 4 m;
the trolley runs along a horizontal girder without friction; the rope is inextensible and massless.