Differential Equations 6.1: Equilibrium Points and Linearization

Differential Equations

Units and Topics

Unit 6. Nonlinear Systems

6.1 Equilibrium Points and Linearization

Unit 5 solved linear systems with eigenvalues. Most systems in physics and biology are not linear, and they have no solution formula. This topic covers the equilibrium points of a nonlinear system and the linear system that describes the trajectories near each of them.

You need Topics 5.2 and 5.6 for this topic. The topic uses the equilibrium solutions of Topic 2.5.

1. Nonlinear Systems

A system of two first order equations for the functions x(t) and y(t) has the form below. The functions f and g give the two rates of change.

x′ = f(x, y) y′ = g(x, y)

The system is linear when f and g contain only constant multiples of x and y. The system is nonlinear when f or g contains a term such as x², xy, or sin x. The time t does not appear on the right sides, so the system is autonomous, and its trajectories can be drawn in the phase plane of Topic 5.6.

The example of this topic is the system below. The term x² makes it nonlinear.

x′ = x − y y′ = x² − 4

The methods of Unit 5 do not solve this system. The sum of two solutions of a nonlinear system is not a solution, so the solutions cannot be built from two simple ones. The plan is different: find the points where nothing changes, and study the trajectories near each of these points.

2. Equilibrium Points

An equilibrium point is a point where both rates of change are 0. A solution that starts at an equilibrium point stays there.

Equilibrium point. The point (x₀, y₀) is an equilibrium point of the system when f(x₀, y₀) = 0 and g(x₀, y₀) = 0.

For the example, both equations must hold at the same point.

x − y = 0the first rate of change is 0y = xadd y to both sidesx² − 4 = 0the second rate of change is 0x = ±2the two square roots of 4

The system has two equilibrium points, (2, 2) and (−2, −2). A linear system with a determinant that is not 0 has only the origin as an equilibrium point. A nonlinear system can have several equilibrium points, and the trajectories near each of them can be different.

3. Linearization

Near a point, a smooth function is close to its tangent line. For a function of two variables, the same idea uses the two partial derivatives. The partial derivative ∂f/∂x is the derivative of f with respect to x while y is held constant.

Let (x₀, y₀) be an equilibrium point, and measure the position from this point with u = x − x₀ and w = y − y₀. Near the point, u and w are small.

f(x, y) ≈ f(x₀, y₀) + au + bwthe linear approximation, with a = ∂f/∂x and b = ∂f/∂y at the pointf(x, y) ≈ au + bwbecause f(x₀, y₀) = 0 at an equilibrium pointu′ = x′because x₀ is a constantu′ ≈ au + bwthe first equation of the systemw′ ≈ cu + dwthe same steps for g, with c = ∂g/∂x and d = ∂g/∂y at the point

The linearization. At the equilibrium point (x₀, y₀), calculate the four partial derivatives a = ∂f/∂x, b = ∂f/∂y, c = ∂g/∂x, and d = ∂g/∂y. The linear system u′ = au + bw, w′ = cu + dw is the linearization at this point. Its matrix J = abcd is called the Jacobian matrix.

For the example, f = x − y and g = x² − 4.

∂f/∂x = 1the derivative of x − y with respect to x∂f/∂y = −1the derivative of x − y with respect to y∂g/∂x = 2xthe derivative of x² − 4 with respect to x∂g/∂y = 0g does not contain y

The Jacobian matrix is J = 1−12x0. It depends on the point. At (2, 2) it is 1−140, and at (−2, −2) it is 1−1−40.

The result at (2, 2) can be checked without partial derivatives. Write x = 2 + u and y = 2 + w in the system.

u′ = (2 + u) − (2 + w)the first equationu′ = u − wsubtractw′ = (2 + u)² − 4the second equationw′ = 4u + u²expand the squarew′ ≈ 4ufor small u, the term u² is much smaller than 4u

The linearization keeps the terms of the first degree and drops the terms of a higher degree.

4. The Kind of Each Point

The linearization is a linear system, so Topic 5.6 gives its picture from the trace T and the determinant D of the Jacobian matrix.

At the point (2, 2), the matrix is 1−140.

T = 1 + 0the sum of the entries on the diagonalD = (1)(0) − (−1)(4)the determinantD = 4multiply and subtractT² − 4D = −15the discriminant is negative, so the eigenvalues are complexλ = 1/2 ± √15/2ithe roots of λ² − λ + 4 = 0

The real part 1/2 is positive. The point (2, 2) is an unstable spiral: nearby trajectories turn around the point and move away from it.

At the point (−2, −2), the matrix is 1−1−40.

T = 1the sum of the entries on the diagonalD = (1)(0) − (−1)(−4)the determinantD = −4the determinant is negativeλ = (1 ± √17)/2the roots of λ² − λ − 4 = 0

The eigenvalues are about 2.56 and −1.56. They have opposite signs, so the point (−2, −2) is a saddle point.

5. When the Linearization Decides

The linearization is an approximation. The question is whether the nonlinear system has the same kind of point. The answer depends on the real parts of the eigenvalues.

The rule. When both eigenvalues of the Jacobian matrix have a real part that is not 0, the equilibrium point of the nonlinear system has the same kind and the same stability as the origin of the linearization. When an eigenvalue has the real part 0, the linearization does not decide.

A node, a saddle point, and a spiral are decided by the linearization. A center is not decided, because the eigenvalues ±ωi have the real part 0. A determinant of 0 is not decided either.

The system below shows the reason. The number k is a constant.

x′ = −y + kx(x² + y²) y′ = x + ky(x² + y²)

The origin is an equilibrium point. The terms with k have the degree 3, so the linearization is x′ = −y, y′ = x for each value of k. Its matrix 0−110 has the eigenvalues ±i, and the origin of the linearization is a center. For the nonlinear system, follow the distance r from the origin.

r² = x² + y²the square of the distance from the origin2rr′ = 2xx′ + 2yy′differentiate both sides with respect to trr′ = x(−y + kxr²) + y(x + kyr²)divide by 2 and substitute the two equationsrr′ = kr²(x² + y²)the terms −xy and xy cancelr′ = kr³because x² + y² is r², then divide by r

When k is negative, r decreases, and each trajectory spirals into the origin. When k is positive, r increases, and each trajectory spirals away. Only for k = 0 is the origin a center. The three systems have the same linearization, so the linearization cannot decide between them.

Try it: the equilibrium points of a nonlinear system

The system is x′ = x − y, y′ = x² − c. The slider sets the constant c. The gray curves are trajectories, and the dots are the equilibrium points. Drag the blue point to choose the start of the blue trajectory.

6. An Example from Physics

A pendulum with friction has the angle θ and the angular velocity ω. With the units chosen so that g/L is 1, and with a friction term 0.5ω, the system is the one below.

θ′ = ω ω′ = −sin θ − 0.5ω

At an equilibrium point, ω = 0 and sin θ = 0. The two different positions are θ = 0, where the pendulum hangs down, and θ = π, where it stands straight up.

∂f/∂θ = 0f = ω does not contain θ∂f/∂ω = 1the derivative of ω with respect to ω∂g/∂θ = −cos θthe derivative of −sin θ − 0.5ω with respect to θ∂g/∂ω = −0.5the derivative with respect to ω

At the point (0, 0), cos θ is 1, and the Jacobian matrix is 01−1−0.5.

T = −0.5the traceD = (0)(−0.5) − (1)(−1)the determinantD = 1the determinant is positiveT² − 4D = −3.75the discriminant is negative

The eigenvalues are complex with the negative real part −0.25. The point is a stable spiral: the pendulum swings with a decreasing amplitude and comes to rest hanging down.

At the point (π, 0), cos θ is −1, and the Jacobian matrix is 011−0.5. Its determinant is (0)(−0.5) − (1)(1), which is −1. The point is a saddle point. A pendulum that stands straight up is at an unstable equilibrium: almost all nearby trajectories move away from it.

Both eigenvalues have a real part that is not 0 at each of the two points, so these results hold for the pendulum itself, and not only for the linearization. Topic 6.2 covers the pendulum without friction, where the linearization does not decide.

Common Mistakes

  • Setting only one of the two equations to 0. At an equilibrium point, both rates of change are 0 at the same point.
  • Using one Jacobian matrix for all equilibrium points. The partial derivatives are calculated at each point, and the matrix is usually different at each point.
  • Linearizing at a point that is not an equilibrium point. The linear approximation has no constant term only when f and g are 0 at the point.
  • Concluding that a point is a center because the linearization is a center. With the real part 0, the linearization does not decide.
  • Using the linearization far from the point. It describes the trajectories only near the equilibrium point.

Summary

ItemResult
Equilibrium pointf(x₀, y₀) = 0 and g(x₀, y₀) = 0
Jacobian matrixJ = abcd, the four partial derivatives at the point
Linearizationu′ = au + bw, w′ = cu + dw, with u = x − x₀ and w = y − y₀
D negativeA saddle point
D positive, T negativeA stable node or a stable spiral
D positive, T positiveAn unstable node or an unstable spiral
A real part of 0The linearization does not decide

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Find the equilibrium points of x′ = y, y′ = x − x³.

y = 0the first rate of change is 0x − x³ = 0the second rate of change is 0x(1 − x²) = 0factorx = 0, 1, or −1one of the factors is 0

The equilibrium points are (0, 0), (1, 0), and (−1, 0).

2. For the system of Problem 1, find the Jacobian matrix. Then determine the kind of the points (0, 0) and (1, 0), where the linearization decides.

The partial derivatives are 0, 1, 1 − 3x², and 0, so J = 011 − 3x²0.

D = (0)(0) − (1)(1)at (0, 0), where the matrix is 0110D = −1the point (0, 0) is a saddle pointD = (0)(0) − (1)(−2)at (1, 0), where the matrix is 01−20D = 2with T = 0, the eigenvalues are ±√2 i

At (1, 0) the eigenvalues have the real part 0, so the linearization does not decide.

3. Find the equilibrium points of x′ = x² − 1, y′ = −y, and determine the kind of each point.

The equilibrium points are (1, 0) and (−1, 0). The Jacobian matrix is 2x00−1, and its eigenvalues are the entries 2x and −1 on the diagonal.

At (1, 0) the eigenvalues are 2 and −1, so the point is a saddle point. At (−1, 0) the eigenvalues are −2 and −1, so the point is a stable node.

4. A pendulum has more friction: θ′ = ω, ω′ = −sin θ − 3ω. Determine the kind of the point (0, 0).

J = 01−1−3the partial derivatives at θ = 0, where cos θ is 1T = −3the traceD = 1the determinant, (0)(−3) − (1)(−1)T² − 4D = 5the discriminant is positive

The eigenvalues are real and negative. The point is a stable node: the pendulum returns to rest without swinging.

5. Show that the origin is the only equilibrium point of x′ = −x − y, y′ = x − y − y³, and determine its kind.

x = −yfrom −x − y = 0−y − y − y³ = 0write −y in place of x in the second equation−y(2 + y²) = 0factory = 0because 2 + y² is not 0

Then x = 0. The Jacobian matrix at the origin is −1−11−1, with T = −2 and D = 2. The discriminant T² − 4D is −4, so the origin is a stable spiral.

6. For x′ = −y − x(x² + y²), y′ = x − y(x² + y²), what does the linearization at the origin say, and what do the trajectories do?

The linearization is x′ = −y, y′ = x, a center, so it does not decide.

This is the system of Part 5 with k = −1, so r′ = −r³. The distance r decreases, and each trajectory spirals into the origin. The origin is stable.

Python Practice

Step 1. Check the equilibrium points

The function F below returns the two rates of change of the example, x − y and x² − 4. The code calculates them at the two equilibrium points of Part 2. Both results should have the entries 0 and 0.

Python

Both results are 0 and 0. Now check the equilibrium points of Practice 3. Change the function so that it returns x² − 1 and −y, and print its values at the points with x = 1, y = 0 and x = −1, y = 0.

Python

Step 2. The eigenvalues of the Jacobian matrix

The Jacobian matrix of the example has the rows 1, −1 and 2x, 0. The code below builds it at the point with x = 2 and prints the real parts and the imaginary parts of its eigenvalues.

Python

The real parts are 0.5 and 0.5, and the imaginary parts are 1.936 and −1.936, which is √15/2. The point is an unstable spiral. Now do the same at the other equilibrium point, where x is −2. The eigenvalues should be 2.562 and −1.562, with the imaginary parts 0.

Python

Step 3. A Jacobian matrix without derivatives

A partial derivative is the limit of a difference quotient. The code below moves the point by a small step h in the x direction and then in the y direction. The two results are the two columns of the Jacobian matrix.

Python

The matrix has the rows 1, −1 and 4, 0, as in Part 3. Now use the same code for the pendulum of Part 6 at the point where it stands straight up. Here x is the angle and y is the angular velocity, so the function returns y and −sin x − 0.5y, and the point has x = π and y = 0. The matrix should have the rows 0, 1 and 1, −0.5.

Python

Step 4. A trajectory near an equilibrium point

The code below solves the example with the method of Euler. The start is 0.1 to the right of the equilibrium point with x = 2 and y = 2. The second number of the output is the distance from the equilibrium point at t = 3.

Python

The distance has grown from 0.1 to 0.571, because the point is an unstable spiral. Now solve the pendulum of Part 6 from the start with x = 0.5 and y = 0 until t = 20, with 20000 steps, and print the distance from the origin. The distance should be about 0.004, because the origin is a stable spiral.

Python

Step 5. The trace, the determinant, and the discriminant

The code below builds the Jacobian matrix of the pendulum of Part 6 at the origin, with the friction constant b = 0.5, and prints the trace, the determinant, and the discriminant.

Python

The values are −0.5, 1, and −3.75. The discriminant is negative, so the origin is a stable spiral. Now use the friction constant 3 of Practice 4. The discriminant should be 5, so the origin is a stable node.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Find the equilibrium point of the system x′ = y − 3, y′ = x² − y with a positive x. Round x to two decimal places.

2. For the system x′ = xy − 2, y′ = x − y, the first rate of change is f = xy − 2. What is the partial derivative of f with respect to x at the point (1, 2)?

3. The Jacobian matrix at an equilibrium point has the trace −3 and the determinant 2. Which kind of point is it?

4. The Jacobian matrix at an equilibrium point of a nonlinear system has the eigenvalues 2i and −2i. What follows for the nonlinear system?

5. The system x′ = y, y′ = 4x − x³ has three equilibrium points. Find the determinant of the Jacobian matrix at the point (2, 0).

Next: Topic 6.2, The Pendulum and Conservation of Energy