Dynamics (MIT 16.07) - Lecture 2: Coordinates, Transformations, and The Pendulum
Overview
Zac Manchester develops the coordinate machinery needed to express Newtonian dynamics in different bases, contrasting simple Cartesian rotations with nonlinear polar coordinates and their moving basis vectors. He applies the methods to a pendulum, showing how polar coordinates reduce the dynamics to one equation, while a Cartesian MATLAB ODE45 simulation can drift from the fixed-length constraint unless it is stabilized with Baumgarte-style PD feedback.
Key takeaways
- Newton's vector equation F = ma is coordinate-free, but its component form is directly simple only in Cartesian coordinates with fixed basis vectors.
- For orthonormal Cartesian frames, the basis change is a rotation matrix with determinant +1 and inverse equal to its transpose.
- Polar coordinate conversion is nonlinear, and atan2(y, x) should be used to determine the angle correctly across all four quadrants.
- Moving polar basis vectors contribute to derivatives: d(e_r)/dt = θ̇e_θ and d(e_θ)/dt = -θ̇e_r, producing the standard radial and tangential acceleration terms.
- A fixed-length pendulum has one degree of freedom; using r = L in polar coordinates reduces its model to θ̈ = -(g/L) cos θ under the lecture's angle convention.
- A Cartesian ODE45 simulation can accumulate numerical constraint drift even when its equations are analytically equivalent to the polar model; Baumgarte-style PD feedback helps enforce the cable-length constraint.
Chapters
- Zac Manchester frames the lecture as a continuation of the Newtonian mechanics review, leading toward Lagrangian mechanics in the next lecture.
- The central example is the pendulum, used to compare multiple coordinate descriptions of a nonlinear system.
- Manchester says Lagrangian mechanics will make arbitrary coordinate choices easier than repeatedly transforming Newtonian equations.
- The vector equation F = ma assumes constant mass and vectors measured in an inertial, or Newtonian, reference frame.
- An inertial frame is neither accelerating nor rotating, though it may translate at constant velocity.
- The coordinate-free vector equation is distinct from its component form, which depends on the chosen coordinates.
- Manchester treats a reference frame roughly as a rigid body with an origin, which can move, accelerate, or rotate.
- A coordinate system is the grid used to assign numerical components to vectors in a frame.
- The same reference frame can support different coordinate systems, so frame and coordinates are independent concepts.
- An abstract vector remains the same geometric object even when its component array changes between bases.
- For orthonormal Cartesian bases, dot products between basis vectors construct the matrix that maps components from one basis to another.
- The basis transformation preserves the underlying vector while changing only its numerical representation.
- The change of components between two orthonormal Cartesian frames is represented by a rotation matrix.
- A rotation matrix is orthogonal, so its transpose equals its inverse and its rows and columns are unit-length and mutually orthogonal.
- Its determinant is +1, distinguishing rotations from transformations that reflect or reverse orientation.
- Each row of the rotation matrix gives a basis vector from the destination frame expressed in the source-frame components.
- Each column gives a source-frame basis vector expressed in destination-frame components.
- The matrix therefore contains the information needed to transform coordinates in either direction.
- Non-Cartesian coordinates, also called curvilinear coordinates, include polar coordinates in 2D and cylindrical or spherical coordinates in 3D.
- Manchester focuses on polar coordinates to limit bookkeeping while introducing the general difficulties of curved coordinate systems.
- Unlike a Cartesian change of basis, conversion between Cartesian and polar coordinate values is nonlinear.
- Cartesian components follow x = r cos θ and y = r sin θ.
- The inverse conversion uses r = √(x² + y²) and θ = atan2(y, x).
- The two-argument atan2 function resolves quadrant ambiguity that makes a simple atan(y/x) unreliable.
- The radial basis vector is e_r = cos θ e_x + sin θ e_y, while the angular basis vector is e_θ = -sin θ e_x + cos θ e_y.
- Unlike fixed Cartesian basis vectors, polar basis directions change as θ changes.
- Manchester describes these directions locally as indicating how position changes when a coordinate increases, connecting them to gradients and tangent spaces.
- Differentiating a vector in Cartesian coordinates is straightforward because e_x and e_y are fixed and have zero time derivatives.
- In polar coordinates, the moving basis satisfies d(e_r)/dt = θ̇ e_θ and d(e_θ)/dt = -θ̇ e_r.
- Applying the product rule to a position vector introduces basis-derivative terms, yielding velocity v = ṙ e_r + r θ̇ e_θ.
- Differentiating polar velocity again gives acceleration a = (r̈ - r θ̇²)e_r + (r θ̈ + 2ṙθ̇)e_θ.
- The radial component includes the centripetal term -r θ̇², while the tangential component includes the coupling term 2ṙθ̇.
- Manchester presents this algebra as an example of why repeated Newtonian differentiation in moving coordinates becomes cumbersome.
- The pendulum mass moves in a 2D plane but has one degree of freedom because the cable fixes its distance from the pivot.
- The constraint is r = L, equivalently the norm of the position vector equals the constant cable length L.
- Newton's second law balances cable tension and gravity against m r̈, with θ measured counterclockwise from the positive x-axis.
- Manchester transforms gravity into the polar basis and combines it with the polar acceleration formula.
- Setting r = L makes ṙ and r̈ zero, leaving the angular equation θ̈ = -(g/L) cos θ for the stated angle convention.
- The radial equation can recover cable tension, but the angular equation alone is enough to simulate the pendulum.
- In Cartesian coordinates, tension must be resolved along the radial direction using the position components and cable length.
- The resulting model uses two coordinate equations and requires computing the constraint force rather than eliminating it.
- This Cartesian formulation is more involved than the single polar equation, despite describing the same pendulum motion.
- Manchester compares polar and Cartesian pendulum simulations using MATLAB's ODE45 solver and corresponding initial conditions.
- The Cartesian simulation's numerically integrated position drifts off the circle, so the pendulum length no longer stays at L and its computed angle diverges from the polar result.
- Baumgarte stabilization adds PD feedback to the constraint error, reducing length drift and bringing the simulated trajectory closer to the expected arc.
Transcript excerpt
0:00 All right. So, last time we sort of got into things with like all the logistics, right? And then we did like a kind of a history a brief history, right? Of dynamics. Which was my very biased take on like the history of the subject. Um I'm kind of into that stuff. The the first time I took my grad dynamics from was really into this and he brought in like Lagrange in the original French and was like super into this. It's kind of fun if you're It's often surprising me how readable
0:47 that stuff is though. Like you can read stuff from the 1800s and it it's relatively understandable. Um and then last time we kind of just started um this kind of Newto- Newtonian uh mechanics review. So, I got from everybody I think pretty much everybody filled out that survey last time and it looks like everybody's got the sort of F equals MA this stuff pretty pretty well sorted. So, we're going to go real fast through this. Hopefully today is kind of the last day of this stuff and then next time we'll start getting it like easing our way into the Lagrangian stuff which is like the meat of the course. Um but we're going to kind of ease our way into it today with like a little discussion on um kind of trying to bridge the gap there. So, today we'll do kind of the
1:38 Newtonian review part two. And then um lots about coordinates. We'll have like much ado about coordinates. Um this is sort of to show you how painful it is to do this with the Newtonian setup and then convince you that there's a better way, which I'll show you start showing you next time, which is the Lagrangian
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MIT Robotic Exploration Lab.