This is a classic mechanics problem that I should address comprehensively. I'll work through the double pendulum problem step by step using Lagrangian mechanics.
Double Pendulum System Setup
Let me define the system clearly:
- Two pendula suspended from a fixed pivot point
- Masses: m1 and m2
- Lengths: ℓ1 and ℓ2
- Angles from vertical: θ1 and θ2
Generalized Coordinates
The natural choice for generalized coordinates is:
- q1=θ1 (angle of first pendulum from vertical)
- q (angle of second pendulum from vertical)
This gives us 2 degrees of freedom, so we need 2 equations of motion.
Position of Each Mass
Mass 1:
- x-coordinate: x1=ℓ1sinθ1
- y-coordinate: (measuring down as negative from pivot)
Mass 2:
The second mass is attached to the first, so:
- x-coordinate: x2=ℓ1sinθ1
Velocities
Velocity of mass 1:
x˙1=ℓ1cosθ
Speed squared:
v12=x˙1
Velocity of mass 2:
x˙2=ℓ1
For the second mass, I need to expand v22=x˙22, which involves cross terms between the two angular velocities and their coupling through the trigonometric functions.
v22=
Using the cosine addition formula, this simplifies to:
v22=ℓ
Now I can write the total kinetic energy as the sum of both masses:
T=
The kinetic energy combines the rotational motion of the first link with the coupled motion of the second link, where the coupling term depends on the relative angle between them.
For potential energy, measuring from the pivot point, I need to account for the heights of both masses. The first mass hangs at distance ℓ1cosθ1 below the pivot, and the second mass is at ℓ. This gives:
The Lagrangian combines these expressions, with the kinetic energy expanded to show the effective inertia of the first link, the independent motion of the second link, and their coupling through the relative angle.
Now I'll apply the Euler-Lagrange equations to find the equations of motion. For the first angle, I need ∂θ˙1∂L and its time derivative. The partial with respect to gives . Taking the time derivative introduces both and a product rule term from the cosine factor, which yields plus the derivative of .
For the potential energy derivative, I need to be careful: ∂θ1∂L comes from both kinetic and potential terms. The kinetic energy contributes from the cross term, while the potential energy gives . Combined, this is .
Applying the Euler-Lagrange equation and collecting terms, the equation of motion becomes (m. The cross-derivative terms simplify nicely when I expand and cancel the contributions. [-\sin(\theta_1 - \theta_2)(\dot{\theta}_1 - \dot{\theta}_2)\dot{\theta}_2 + \cos(\theta_1 - \theta_2) \ddot{\theta}_2]$$
Collecting terms and simplifying:
The cross-coupling terms involving sin(θ1−θ2) and the velocity products represent the nonlinear interaction between the two pendulum segments. The equation shows how the acceleration of the first joint depends on both its own angular acceleration and the motion of the second joint through these coupling terms. ell_2\sin(\theta_1 - \theta_2)\dot{\theta}_2^2 + m_2 \ell_2 \cos(\theta_1 - \theta_2) \ddot{\theta}_2 + (m_1 + m_2)g \sin\theta_1 = 0$$
For the second equation, I need to work through the Lagrangian derivatives with respect to θ2. The conjugate momentum is m2, and taking its time derivative gives me the acceleration terms involving both angles and their coupling through the cosine factor.
When I differentiate the product cos(θ1−θ2)θ˙, the chain rule produces . For the potential term, picks up contributions from both the kinetic energy cross-term and the gravitational potential .
Applying the Euler-Lagrange equation and collecting the sine terms, the θ˙12 and θ˙ components combine to give , which simplifies the second equation of motion.
After substituting back and dividing through by m2ℓ2, I get:
Now I can organize both coupled equations together. The first relates the angular accelerations and velocities of both pendulums through the mass and length parameters, while the second equation similarly couples the dynamics with gravitational and centrifugal terms. m_2 \ell_2 \cos(\theta_1 - \theta_2) \ddot{\theta}_2 = -m_2 \ell_2 \sin(\theta_1 - \theta_2) \dot{\theta}_2^2 - (m_1 + m_2)g \sin\theta_1$$
Now I can solve this system of coupled differential equations for the angular accelerations. The two equations form a linear system in θ¨1 and θ¨, which I can invert to find explicit expressions for each acceleration in terms of the angles and angular velocities.
To eliminate θ¨2, I'll multiply the second equation by m2cos( and subtract from the first. This gives me:
Factoring the left side:
Using the identity m1+m2−, I can simplify the coefficient of :
The expressions are becoming unwieldy. It's cleaner to present the coupled equations in their implicit form rather than solving for the accelerations explicitly. The system can be written as two coupled second-order equations relating the angular accelerations, velocities, and angles of both pendulums.
Organizing these into matrix form makes the structure clearer:
This matrix equation can be inverted to solve for the angular accelerations explicitly, though the resulting expressions will be quite involved.
The determinant of the coefficient matrix simplifies nicely:
Δ=ℓ1ℓ2[m
Using Cramer's rule, I can then express θ¨1 and θ¨2 in terms of the system parameters and state variables, though the full expressions become lengthy when substituting back into the matrix equation. approach is to present the Lagrangian first, work through the derivation of one equation in detail to show the method, then state the final coupled equations in both implicit and explicit forms.
Double Pendulum: Lagrangian Derivation
System Setup and Generalized Coordinates
Configuration:
- Two point masses m₁ and m₂
- Lengths: ℓ₁ and ℓ₂
- Angles from vertical: θ₁ and θ₂ (generalized coordinates)
Position of each mass:
- Mass 1: (x₁, y₁) = (ℓ₁sinθ₁, -ℓ₁cosθ₁)
- Mass 2: (x₂, y₂) = (ℓ₁sinθ₁ + ℓ₂sinθ₂, -ℓ₁cosθ₁ - ℓ₂cosθ₂)
Kinetic Energy
Velocity of mass 1:
v12=x˙
Velocity of mass 2:
v22=
Expanding:
v22=ℓ
Total kinetic energy:
T=
Potential Energy
Taking the pivot as the reference (zero potential):
V=−(m1+m
The Lagrangian
L=T−V
L=
Euler-Lagrange Equations
Apply: dtd∂q
Equation 1 (for θ₁):
Partial derivatives:
∂θ˙
∂θ1
After applying the chain rule for the time derivative, we get:
(
Equation 2 (for θ₂):
Similarly:
∂θ˙
∂θ2
This yields:
m
Coupled System Form
The equations form a coupled, nonlinear system. Dividing equation 2 by m₂:
(m_1+m_2)\ell_1\ddot{\theta}_1 + m_2\ell_2\cos(\theta_1-\theta_2)\ddot{\theta}_2 &= -m_2\ell_2\sin(\theta_1-\theta_2)\dot{\theta}_2^2 - (m_1+m_2)g\sin\theta_1\\
\ell_1\cos(\theta_1-\theta_2)\ddot{\theta}_1 + \ell_2\ddot{\theta}_2 &= \ell_1\sin(\theta_1-\theta_2)\dot{\theta}_1^2 - g\sin\theta_2
\end{align}}$$
These can be inverted to solve for explicit expressions for $\ddot{\theta}_1$ and $\ddot{\theta}_2$ (matrix form with determinant $\Delta = \ell_1\ell_2[m_1 + m_2\sin^2(\theta_1-\theta_2)]$), but the implicit form above is typically more useful for numerical integration and physical insight.