BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Nonlinear autonomous systems and the pendulum

Nonlinear autonomous systems x′ = f(x, y), y′ = g(x, y) rarely have formulas for their solutions, but their trajectories can be sketched. Step 1: find the critical points, where f = g = 0; each is a constant solution. Step 2: linearize at each one, using the Jacobian matrix of partial derivatives evaluated there, and sketch the linear system's trajectories. Step 3: join the local pictures into a global one. For a lightly damped rigid pendulum, θ″ + cθ′ + k sin θ = 0 with c = 1, k = 2, the system θ′ = ω, ω′ = −2 sin θ − ω has critical points (nπ, 0). Hanging down (θ = 0, 2π, …) the linearization is a clockwise spiral sink; pointing straight up (θ = ±π, …) it is a saddle. Together they show a pendulum swinging down to rest, or going over the top several times before settling.

You need this first

Full reading path (43 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
  37. Introduction to first-order systems (18.03)
  38. Linear systems with constant coefficients: eigenvalues and eigenvectors (18.03)
  39. Repeated and complex eigenvalues (18.03)
  40. Sketching the solutions of 2 × 2 linear systems (18.03)
  41. Fundamental matrices and inhomogeneous systems (18.03)
  42. The matrix exponential (18.03)
  43. Decoupling linear systems (18.03)
On this page · 5 sections
  1. The pendulum
  2. Step 1: critical points
  3. Step 2: linearize
  4. Step 3: the big picture
  5. Summary

The systems now become nonlinear: still two first-order autonomous equations, but with quadratic terms, sines and cosines on the right (transcript, p. 1). There are generally no formulas for the solutions, only computer pictures, but a quick qualitative sketch is often what is needed, using the linear pictures (p. 1). The running example is the nonlinear pendulum, whose behaviour we know, so the mathematics can be checked against intuition (p. 1).

Nonlinear autonomous system
x′=f(x,y),y′=g(x,y)x' = f(x, y), \qquad y' = g(x, y)
In words

x prime equals f(x, y), y prime equals g(x, y)

The pendulum#

A mass mm on a rigid rod of length ll swings in a circle; θ\theta is the angle from the vertical (transcript, pp. 1–2). Along the circle, the acceleration is lθ′′l\theta'', gravity contributes −mgsin⁡θ-mg\sin\theta, and damping resists the velocity lθ′l\theta' (pp. 2–3). Dividing by mlml and lumping the constants (p. 3):

Damped pendulum
θ′′+c θ′+ksin⁡θ=0,k=gl\theta'' + c\,\theta' + k\sin\theta = 0, \qquad k = \frac{g}{l}
In words

theta double prime plus c theta prime plus k sine theta equals 0, k equals g over l

A nonlinear equation with no exact solution (p. 3). A computer would first turn it into a first-order system, since numerical methods (Euler, Runge–Kutta) are written for systems; the natural new variable is the angular velocity ω\omega (pp. 3–4). With the lightly damped values c=1c = 1, k=2k = 2 (p. 4):

The pendulum system
θ′=ω,ω′=−2sin⁡θ−ω\theta' = \omega, \qquad \omega' = -2\sin\theta - \omega
In words

theta prime equals omega, omega prime equals minus 2 sine theta minus omega

Step 1: critical points#

The simplest solutions are single points: critical points (x0,y0)(x_0, y_0), where ff and gg both vanish (transcript, p. 5). The velocity vector there is zero, so a solution that starts there stays there for all time (p. 5). Finding them means solving two nonlinear equations, a hard problem in general, even by computer; in practice the physical problem suggests where to look (pp. 5–6).

For the pendulum, ω=0\omega = 0 and sin⁡θ=0\sin\theta = 0, so the critical points are (nπ,0)(n\pi, 0) for every integer nn (p. 6). Physically there are only two: hanging straight down at rest, stable, and balanced straight up, unstable (pp. 6–7). But all the others are needed for the full picture (p. 7).

Step 2: linearize#

At each critical point, find a linear system that approximates the nonlinear one nearby, and sketch its trajectories (transcript, pp. 7–8). Near (0,0)(0, 0), the textbook's way works (though the lecture would rather students use the faster Jacobian method below, p. 8): sin⁡θ≈θ\sin\theta \approx \theta, giving θ′=ω\theta' = \omega, ω′=−2θ−ω\omega' = -2\theta - \omega (p. 8). Its matrix (01−2−1)\begin{pmatrix} 0 & 1 \\ -2 & -1 \end{pmatrix} has λ2+λ+2=0\lambda^2 + \lambda + 2 = 0, so λ=−1±i72\lambda = \frac{-1 \pm i\sqrt7}{2} (p. 9). Complex, with negative real part: a spiral sink. At (1,0)(1, 0) the velocity is the first column, (0,−2)(0, -2), pointing down: the spiral turns clockwise (p. 9).

This is exactly the swinging pendulum: released at a small positive angle with ω=0\omega = 0, θ\theta decreases while ω\omega grows negative, largest at the bottom; then θ\theta goes negative and ω\omega returns to 0, and so on, each swing a little smaller than the last (pp. 9–10).

A trajectory of the linearized pendulum θ′=ω\theta' = \omega, ω′=−2θ−ω\omega' = -2\theta - \omega near the bottom position, released from rest at θ=1\theta = 1, computed from θ=e−t/2(cos⁡(7 t/2)+sin⁡(7 t/2)/7)\theta = e^{-t/2}(\cos(\sqrt{7}\,t/2) + \sin(\sqrt{7}\,t/2)/\sqrt{7}) and ω=θ′\omega = \theta': a clockwise spiral into the origin, one turn for each full swing there and back.

The Jacobian (pp. 10–12). At (π,0)(\pi, 0), replacing sin⁡θ\sin\theta by θ\theta no longer works. In general the matrix of the linearized system is the Jacobian matrix, evaluated at the critical point (p. 11):

Jacobian matrix
J=(fxfygxgy),J0=J(x0,y0)J = \begin{pmatrix} f_x & f_y \\ g_x & g_y \end{pmatrix}, \qquad J_0 = J(x_0, y_0)
In words

J equals f sub x f sub y; g sub x g sub y, J nought equals J( x nought, y nought )

For the pendulum (pp. 11–12):

Pendulum Jacobian
J=(01−2cos⁡θ−1),J(0,0)=(01−2−1),J(π,0)=(012−1)J = \begin{pmatrix} 0 & 1 \\ -2\cos\theta & -1 \end{pmatrix}, \qquad J(0, 0) = \begin{pmatrix} 0 & 1 \\ -2 & -1 \end{pmatrix}, \qquad J(\pi, 0) = \begin{pmatrix} 0 & 1 \\ 2 & -1 \end{pmatrix}
In words

J equals 0 1; minus 2 cos theta minus 1, J(0, 0) equals 0 1; minus 2 minus 1, J( pi, 0) equals 0 1; 2 minus 1

At the origin this gives back the matrix found before (p. 12). At (π,0)(\pi, 0): λ2+λ−2=(λ+2)(λ−1)=0\lambda^2 + \lambda - 2 = (\lambda + 2)(\lambda - 1) = 0. For λ=1\lambda = 1 the eigenvector is (1,1)(1, 1), going out; for λ=−2\lambda = -2 it is (1,−2)(1, -2), coming in more steeply. A saddle (pp. 12–13). Physically: started slightly short of upright, the pendulum falls back with growing negative speed; slightly past upright, it falls forward towards 2π2\pi (pp. 13–14).

Step 3: the big picture#

Draw the local pictures at every critical point: clockwise spiral sinks at 0,±2π,…0, \pm2\pi, \dots, where the Jacobian is the same since cos⁡2π=1\cos 2\pi = 1, and saddles at ±π,±3π,…\pm\pi, \pm3\pi, \dots (transcript, pp. 14–15). Then add trajectories compatible with them. Trajectories cannot cross, and arrows close together cannot point opposite ways; if they would, there is a mistake in the local pictures (p. 15). One trajectory starts at θ=0\theta = 0 with a large positive ω\omega: the pendulum goes over the top, past π\pi, keeps going, and finally winds into the spiral at 2π2\pi (p. 16). That is why all the critical points are needed, not just the two physical ones: they describe a pendulum going round and round before it settles (p. 16).

Worked example

Two competing species

For x′=x(4−x−y)x' = x(4 - x - y), y′=y(6−x−3y)y' = y(6 - x - 3y) with x,y≥0x, y \ge 0: (a) find the critical points; (b) classify (4,0)(4, 0) and the interior critical point by linearizing.

(a) Critical points

x=0x = 0 or x+y=4x + y = 4, and y=0y = 0 or x+3y=6x + 3y = 6. This gives (0,0)(0, 0), (0,2)(0, 2), (4,0)(4, 0), and from x+y=4x + y = 4, x+3y=6x + 3y = 6: (3,1)(3, 1).

The Jacobian

f=4x−x2−xyf = 4x - x^2 - xy and g=6y−xy−3y2g = 6y - xy - 3y^2, so J=(4−2x−y−x−y6−x−6y)J = \begin{pmatrix} 4 - 2x - y & -x \\ -y & 6 - x - 6y \end{pmatrix}.

(b) Two classifications

At (4,0)(4, 0): J=(−4−402)J = \begin{pmatrix} -4 & -4 \\ 0 & 2 \end{pmatrix}, eigenvalues −4-4 and 22: a saddle, so a small population of the second species can invade. At (3,1)(3, 1): J=(−3−3−1−3)J = \begin{pmatrix} -3 & -3 \\ -1 & -3 \end{pmatrix}, trace −6-6, determinant 9−3=69 - 3 = 6, so λ2+6λ+6=0\lambda^2 + 6\lambda + 6 = 0 and λ=−3±3\lambda = -3 \pm \sqrt3, both negative: a nodal sink, stable coexistence.

Summary#

Symbols on this page

Show the 34 symbols used here
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
λ\lambda lambda.
An eigenvalue of the linearized system. Say it: “lambda”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ω\omega omega.
The angular velocity of the pendulum. Unit: rad/s. Say it: “omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
cc c.
The lumped damping constant of the pendulum (c = 1 in the example). Say it: “c”.
kk k.
The lumped constant g/l of the pendulum (k = 2 in the example). Say it: “k”.
xx x.
The first unknown; in the example, the first species. Say it: “x”.
yy y.
The second unknown; in the example, the second species. Say it: “y”.
tt t.
Time, the independent variable of the system. Say it: “t”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
nn n.
An integer: the critical points are at θ = nπ. Say it: “n”.
ee e.
Euler's number, e ≈ 2.718, the base of the exponential function eˣ. Say it: “e”.
mm m.
The mass of the pendulum bob. Unit: kg. Say it: “m”.
ff f.
The right-hand side f(x, y) of the first equation. Say it: “f”.
gg g.
The right-hand side g(x, y) of the second equation. Say it: “g”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
x0x_{0} x nought.
The x-coordinate of a critical point. Say it: “x nought”.
y0y_{0} y nought.
The y-coordinate of a critical point. Say it: “y nought”.
x′x' x prime.
The derivative of x. Say it: “x prime”.
θ′\theta' theta prime.
The angular velocity dθ/dt. Say it: “theta prime”.
ll l.
The length of the rigid rod. Unit: m. Say it: “l”.
JJ J.
The Jacobian matrix of partial derivatives of f and g. Say it: “J”.
J0J_{0} J nought.
The Jacobian matrix evaluated at a critical point. Say it: “J nought”.
fxf_{x} f sub x.
The partial derivative of f with respect to x. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative of f with respect to y. Say it: “f sub y”.
gxg_{x} g sub x.
The partial derivative of g with respect to x. Say it: “g sub x”.
gyg_{y} g sub y.
The partial derivative of g with respect to y. Say it: “g sub y”.
ω′\omega' omega prime.
The angular acceleration dω/dt. Say it: “omega prime”.
θ′′\theta'' theta double prime.
The angular acceleration of the pendulum. Say it: “theta double prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 35 words used here

New here

Jacobian.
The matrix of all first partial derivatives of several functions of several variables, which gives their best linear approximation near a point.
Jacobian matrix.
The matrix of all first partial derivatives of several functions; near a point it gives their best linear approximation.

Also used

nonlinear.
Not linear: containing squares, products or other functions of the unknowns, so effects do not simply add. Explained in Resistive forces: drag and terminal velocity.
autonomous.
Of a differential equation: one in which time does not appear on its own, so the rule for change is the same at every time. Explained in Autonomous equations, critical points and stability.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
acceleration.
How fast velocity changes: the change in velocity in each unit of time. Explained in Rates of change and area under a graph.
damping.
The gradual loss of energy from an oscillation or wave, by friction, resistance or radiation, so that its size dies away. Explained in The pendulum and energy in oscillations.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
first-order system.
A set of equations each giving the rate of change of one unknown in terms of all of them, with first derivatives only. Explained in Introduction to first-order systems.
Runge–Kutta method.
A family of accurate numerical methods that sample the slope at several points in each step; RK4 is the standard fourth-order one. Explained in Euler's method and better numerical methods.
angular velocity.
How fast something turns: the rate of change of an angle, in radians per second, often taken as a vector along the axis. Explained in Circular motion: polar coordinates, position and velocity.
critical point.
A constant solution of an equation such as dy/dt = f(y): a value where the rate of change is zero, also called an equilibrium. Explained in Autonomous equations, critical points and stability.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
stable.
Of a state or motion: a small disturbance stays small or dies away, so the system remains close to it. Explained in Torque and balance.
unstable.
Of a state or motion: a small disturbance grows, carrying the system further and further away from it. Explained in Radioactive decay.
trajectory.
The path a moving body follows, or more generally the curve traced out by a changing state as time goes on. Explained in Projectile motion.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).
spiral sink.
An equilibrium that nearby solutions approach by spiralling inwards, as for a damped oscillation. Explained in Sketching the solutions of 2 × 2 linear systems.
linearization.
Replacing equations by their straight-line approximation near a point, keeping only terms of first order in the small changes. Explained in Bifurcations in one dimension: saddle-node, transcritical and pitchfork.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
saddle point.
An equilibrium point of a pair of differential equations where paths come in along one direction and leave along another. Explained in Sketching the solutions of 2 × 2 linear systems.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
trace.
The sum of the numbers on the main diagonal of a square matrix; it equals the sum of the eigenvalues. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
nodal sink.
An equilibrium that nearby solutions approach without turning round it; for a linear system both eigenvalues are real and negative. Explained in Sketching the solutions of 2 × 2 linear systems.
node.
An equilibrium point of a pair of differential equations where all nearby paths flow in, or all flow out, without circling round. Explained in Sketching the solutions of 2 × 2 linear systems.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
qualitative.
About the kind or shape of behaviour, not its exact numbers.
intuition.
A feeling for what should be true, built from experience, before working it out.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
in practice.
In reality, as things are actually done or measured, rather than in theory.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Check your understanding

  1. What is a critical point of x′=f(x,y)x' = f(x, y), y′=g(x,y)y' = g(x, y)?
  2. Which matrix gives the linearized system at a critical point (x0,y0)(x_0, y_0)?
  3. For the damped pendulum, the critical point with the rod pointing straight up is…
0 of 3 answered

Flashcards

1 / 3