The Simple Double Pendulum

Similar documents
Sketchy Notes on Lagrangian and Hamiltonian Mechanics

HAMILTON S PRINCIPLE

Modeling and Experimentation: Compound Pendulum

REVIEW. Hamilton s principle. based on FW-18. Variational statement of mechanics: (for conservative forces) action Equivalent to Newton s laws!

PHYS2100: Hamiltonian dynamics and chaos. M. J. Davis

Physics 5153 Classical Mechanics. Canonical Transformations-1

Physical Dynamics (PHY-304)

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

Spring 2017 Midterm 1 04/26/2017

ODE Runge-Kutta methods

Massachusetts Institute of Technology Department of Physics. Final Examination December 17, 2004

for changing independent variables. Most simply for a function f(x) the Legendre transformation f(x) B(s) takes the form B(s) = xs f(x) with s = df

Caculus 221. Possible questions for Exam II. March 19, 2002

Generalized Coordinates, Lagrangians

Curves in the configuration space Q or in the velocity phase space Ω satisfying the Euler-Lagrange (EL) equations,

More Examples Of Generalized Coordinates

Lecture 4. Alexey Boyarsky. October 6, 2015

Physical Dynamics (SPA5304) Lecture Plan 2018

15. Hamiltonian Mechanics

Geometric Mechanics and Global Nonlinear Control for Multi-Body Dynamics

Interactions Between Two Non-Stationary Pendulums

FINAL EXAM GROUND RULES

Legendre Transforms, Calculus of Varations, and Mechanics Principles

Euler s Method, cont d

Consistency and Convergence

Variation Principle in Mechanics

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

Lecture 19: Calculus of Variations II - Lagrangian

Numerical Integration

Forces of Constraint & Lagrange Multipliers

Modern Siege Weapons: Mechanics of the Trebuchet

S13 PHY321: Final May 1, NOTE: Show all your work. No credit for unsupported answers. Turn the front page only when advised by the instructor!

MAT137 Calculus! Lecture 45

CP1 REVISION LECTURE 3 INTRODUCTION TO CLASSICAL MECHANICS. Prof. N. Harnew University of Oxford TT 2017

Chapter 1. Principles of Motion in Invariantive Mechanics

Hamiltonian flow in phase space and Liouville s theorem (Lecture 5)

PHYS2330 Intermediate Mechanics Fall Final Exam Tuesday, 21 Dec 2010

Dirac Structures and the Legendre Transformation for Implicit Lagrangian and Hamiltonian Systems

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Orbital Motion in Schwarzschild Geometry

MATH 1242 FINAL EXAM Spring,

Checking the Radioactive Decay Euler Algorithm

The Intermediate Value Theorem If a function f (x) is continuous in the closed interval [ a,b] then [ ]

Calculus I Homework: Linear Approximation and Differentials Page 1

Math 162: Calculus IIA

Lagrangian and Hamiltonian Mechanics

Calculus I Homework: Linear Approximation and Differentials Page 1

Physics 351 Wednesday, January 10, 2018

PHYS 705: Classical Mechanics. Hamiltonian Formulation & Canonical Transformation

Lecture 2. Contents. 1 Fermi s Method 2. 2 Lattice Oscillators 3. 3 The Sine-Gordon Equation 8. Wednesday, August 28

Classical mechanics of particles and fields

Physics 6010, Fall 2016 Constraints and Lagrange Multipliers. Relevant Sections in Text:

Section 4.2: The Mean Value Theorem

INTERMEDIATE VALUE THEOREM

Lagrangian Dynamics: Derivations of Lagrange s Equations

7 Pendulum. Part II: More complicated situations

How to Simulate a Trebuchet Part 1: Lagrange s Equations

Physics 351, Spring 2015, Homework #7. Due at start of class, Friday, March 3, 2017

= U / x. That is, U d = m x x dt FRIDAY'S QUIZ QUESTION AN EXAMPLE IN THE CALCULUS OF VARIATIONS

Ordinary Differential Equations (ODEs)

Physics 351, Spring 2015, Homework #7. Due at start of class, Friday, March 6, 2015

Rigid Body Dynamics, SG2150 Solutions to Exam,

The Particle-Field Hamiltonian

Pendulum with a vibrating base

Numerical Methods for Partial Differential Equations

A variational formulation for dissipative systems

Chapter 5 Integrals. 5.1 Areas and Distances

Variational Methods and Optimal Control

Fundamental Theorem of Calculus

Lagrange s Equations of Motion and the Generalized Inertia

Math 141: Section 4.1 Extreme Values of Functions - Notes

Section 7.4 Runge-Kutta Methods

Advanced Placement Physics C Summer Assignment

Housekeeping. No announcement HW #7: 3.19

Physics 351, Spring 2017, Homework #4. Due at start of class, Friday, February 10, 2017

Multistage Methods I: Runge-Kutta Methods

10. e tan 1 (y) 11. sin 3 x

Math 128A Spring 2003 Week 12 Solutions

1 Systems of First Order IVP

B7.1 Classical Mechanics

Electric and Magnetic Forces in Lagrangian and Hamiltonian Formalism

We say that the function f obtains a maximum value provided that there. We say that the function f obtains a minimum value provided that there

Math 165 Final Exam worksheet solutions

Classical Mechanics and Electrodynamics

Solutions to Problem Sheet for Week 8

The Inverted Pendulum

Physics 351 Wednesday, February 14, 2018

Review for the Final Exam

Analytical Mechanics - Extra Problems

Constraints. Noninertial coordinate systems

THE CALCULUS OF VARIATIONS

Lagrangian Mechanics I

On singular lagrangians and Dirac s method

Chaotic motion. Phys 750 Lecture 9

The Implicit and Inverse Function Theorems Notes to supplement Chapter 13.

MATH 189, MATHEMATICAL METHODS IN CLASSICAL AND QUANTUM MECHANICS. HOMEWORK 2. DUE WEDNESDAY OCTOBER 8TH,

Announcements. Topics: Homework:

NUMERICAL ANALYSIS PROBLEMS

Classical Mechanics Comprehensive Exam Solution

Transcription:

The Simple Double Pendulum Austin Graf December 13, 2013 Abstract The double pendulum is a dynamic system that exhibits sensitive dependence upon initial conditions. This project explores the motion of a simple double pendulum in two dimensions by altering Bruce Sherwoods VPython code to accurately represent the simple double pendulum at high energies and graphing the phase portraits of the system. It includes an interface via which the user can alter the two masses and the initial angles of the system. This documentation explains the mathematics relevant to the project. 1 Lagrangian and Hamiltonian Mechanics 1.1 Hamilton s Principle: The Foundation of Lagrangian Mechanics Before discussing the double pendulum, we must first develop new ways to study mechanics, namely, Lagrangian and Hamiltonian mechanics. As Newtonian mechanics revolve about the famous equation F = ma, Lagrangian mechanics utilize Hamilton s Principle: The actual path which a particle follows between two points 1 and 2 in a given time interval, to t 2, is such that the action integral S = L dt (1) is stationary when taken along the actual path and the Lagrangian is here given by L = T-U (Taylor298). 1

1.2 Calculus of Variations In order to determine the path that extremizes the action, we require calculus of variations. Consider the integral A = L(q i (t), q i (t), t) dt (2) Let q i (t), q i (t) be the path that extremizes the integral. We will vary this optimal path q i (t) by adding some δ q i (t) where δ q i ( ) = δ q i (t 2 ) = 0 because the endpoints are fixed. We seek A stationary, δa = 0. By the chain rule, we have ( L 0 = δq i + L ) δ q i dt (3) q i q i Using integration by parts, ( ) ( ) L d q i dt δq L i dt = δq i q i t 2 δq i ( d dt ( L q i )) dt (4) The first term on the right-hand side goes to zero because δq i is zero at the endpoints. It follows that δa = 0 if and only if ( ( ( ))) L d L δq i δq i dt = 0 (5) q i dt q i or equivalently L = d ( ) L (6) q i dt q i This is the Euler-Lagrange Equation, the central tenant of calculus of variations and the primary tool for utilizing Hamilton s Principle. This methodology is known as Lagrangian Mechanics (Makins). 1.3 Transforming to Hamiltonian Mechanics Because the double pendulum is somewhat easier to analyze with Hamiltonian Mechanics, we will take a moment to shift to this technique. Unlike Lagrangian Mechanics, which utilizes the generalized coordinates q i and q i, Hamiltonian Mechanics uses the generalized coordinates q i and p i with the latter, the generalized momentum is given by p i = L q i (7) 2

(Taylor522) A Legendre Transformation converts Lagrangian Mechanics to Hamiltonian Mechanics. n H = q i p i L (8) i=1 where H is the Hamiltonian of the system. This transformation creates two new equations from each Lagrangian equation: (Math24) ṗ i = H q i (9) q i = H p i (10) 2 Analyzing the Simple Double Pendulum 2.1 Results of Hamiltonian Analysis For the simple double pendulum with two massless rods of equivalent length, we have q 1 = φ 1, the angle that the upper rod makes with respect to the vertical, and q 2 = φ 2, the angle that the lower rod makes with respect to the vertical. Hamiltonian analysis yields four first-order differential equations: where A = φ 1 = p 1 p 2 cos(φ 1 φ 2 ) f 1 (φ 1, φ 2, p 1, p 2 ) = m 1 l 2 (1 + µ sin 2 (φ 1 φ 2 )) (11) φ 2 = f 2 (φ 1, φ 2, p 1, p 2 ) = p 2(1 + µ) p 1 µ cos(φ 1 φ 2 ) m 1 l 2 (1 + µ sin 2 (φ 1 φ 2 )) (12) ṗ 1 = f 3 (φ 1, φ 2, p 1, p 2 ) = m 1 (1 + µ)gl sin(φ 1 ) A + B (13) ṗ 2 = f 4 (φ 1, φ 2, p 1, p 2 ) = m 1 µgl sin(φ 2 ) + A B (14) p 1 p 2 sin(φ 1 φ 2 ) m 1 l 2 (1 + µ sin(φ 1 φ 2 )) (15) B = (p2 1µ 2p 1 p 2 µ cos(φ 1 φ 2 ) + p 2 2(1 + µ))(sin(2(φ 1 φ 2 ))) 2m 1 l 2 (1 + µ sin 2 (φ 1 φ 2 )) 2 (16) µ = m 2 m 1 (17) 3

2.2 Numerical Analysis of the Double Pendulum: The Runge-Kutta Method This system can be approximated numerically using the Runge-Kutta Method. To perform 4th order Runge-Kutta analysis upon this system, we first write it in vector form: X = f(x) (18) where and φ 1 X = φ 2 p 1 p 2 f 1 (φ 1, φ 2, p 1, p 2 ) f(x) = f 2 (φ 1, φ 2, p 1, p 2 ) f 3 (φ 1, φ 2, p 1, p 2 ) f 4 (φ 1, φ 2, p 1, p 2 ) The 4th order Runge-Kutta method uses a small time step τ and at time t for which X = X n defines Y 1 = τf(x n ) (19) Y 2 = τf(x n + 1 2 Y 1) (20) Y 3 = τf(x n + 1 2 Y 2) (21) Y 4 = τf(x n + Y 3 ) (22) such that X n+1, which is the value of X at time t+τ, is given by X n+1 = X n + 1 6 (Y 1 + 2Y 2 + 2Y 3 + Y 4 ) (23) (Math24) The extra weight given to the midpoints stems from Simpson s rule: b f(x)dx b a ( ( ) ) a + b f(a) + 4f + f(b) (24) 6 2 (WolframMathworld) a 4

Works Cited John Taylor, Classical Mechanics (University Science Books, 2005), 430-440 Math24 http://www.math24.net/index.html Naomi Makins s Lectures for PHYS 325 Wolfram Mathworld http://mathworld.wolfram.com/ 5