12 · Local Nonlinear Dynamics
Chapter 12

Local Nonlinear Dynamics

In chapter 11 we met nonlinear systems with several equilibria, each with its own type. We described those types by looking at pictures. In this chapter we explain them. Near an equilibrium, a nonlinear system looks like a linear one, and everything we learned in Part II tells us what the flow does there.

12.1Equilibria and Nullclines

Let's start with the system

𝑥′=𝑥(3−𝑥−2𝑦),𝑦′=𝑦(2−𝑥−𝑦).

This is a standard model of two species competing for the same food, with populations 𝑥 and 𝑦. As populations, only 𝑥 ≥0 and 𝑦 ≥0 make sense, but the equations make sense everywhere, so we will look at the whole plane.

Figure 12.1 Trajectories of 𝑥′ =𝑥(3 −𝑥 −2𝑦), 𝑦′ =𝑦(2 −𝑥 −𝑦). Click to release a state and follow it.

Release some states and watch where they go. Most come to rest at one of two points, (3,0) or (0,2), and some leave the picture. Near the origin, states move away in every direction. Near (1,1), they come in and then turn away. These special points are the system's equilibria: states where nothing changes.

How do we find them? An equilibrium needs both rates to be zero at once:

𝑥(3−𝑥−2𝑦)=0,𝑦(2−𝑥−𝑦)=0.

Each rate is a product, so it is zero when either factor is. So 𝑥′ =0 on two lines, 𝑥 =0 and 𝑥 +2𝑦 =3. And 𝑦′ =0 on two lines, 𝑦 =0 and 𝑥 +𝑦 =2. Curves like these, where one of the rates is zero, are called nullclines.

Figure 12.2 The nullclines, red where 𝑥′ =0 and violet where 𝑦′ =0. Move the mouse over the picture, or touch it, to see the direction of motion at that point.

Move the pointer onto a red line. There 𝑥′ =0, so the state can't move left or right, and the arrow points straight up or straight down. On a violet line, 𝑦′ =0, and the arrow points straight left or right. Where a red line meets a violet one, both rates are zero and the arrow disappears. These crossings are the equilibria.

So we find the equilibria by pairing each red line with each violet line:

  • 𝑥 =0 and 𝑦 =0 meet at (0,0).

  • 𝑥 =0 and 𝑥 +𝑦 =2 meet at (0,2).

  • 𝑥 +2𝑦 =3 and 𝑦 =0 meet at (3,0).

  • 𝑥 +2𝑦 =3 and 𝑥 +𝑦 =2: subtracting the second from the first gives 𝑦 =1, and then 𝑥 =1. They meet at (1,1).

As populations, these are no animals, only the second species, only the first, and both together.

Now look back at the first picture. Near each equilibrium, the flow looks like one of the linear flows from Part II. The origin looks like a source, (3,0) and (0,2) look like sinks, and (1,1) looks like a saddle.

12.2Zooming In on an Equilibrium

In the first picture, the flow near (1,1) looked like a saddle. But this system isn't linear, so why should any part of it look like a linear flow? Let's zoom in and see.

Figure 12.3 Trajectories near an equilibrium of 𝑥′ =𝑥(3 −𝑥 −2𝑦), 𝑦′ =𝑦(2 −𝑥 −𝑦). Move the slider to zoom in, and use the buttons to choose the equilibrium.

As we zoom in on (1,1), the picture settles down: past a certain point, zooming in further hardly changes it. That is exactly how a linear flow behaves. As we saw in chapter 11, a linear flow looks the same at every scale. The same thing happens when we zoom in on the graph of a function: a smooth curve looks more and more like its tangent line. And the picture here settles into a linear saddle. Our goal is to find that linear system.

We'll do this in two steps. First, we move the equilibrium to the origin, because that is where the equilibrium of a linear system 𝑋′ =𝐴𝑋 sits. Second, we throw away the terms that become too small to matter as we zoom in.

To move the equilibrium to the origin, we measure each population by how far it is from its equilibrium value:

𝑢=𝑥−1,𝑣=𝑦−1.

The equilibrium (𝑥,𝑦) =(1,1) becomes (𝑢,𝑣) =(0,0), and a state close to the equilibrium has 𝑢 and 𝑣 small. Since 𝑢 and 𝑥 differ by a constant, they change at the same rate: 𝑢′ =𝑥′, and likewise 𝑣′ =𝑦′. So to get equations for 𝑢 and 𝑣, we substitute 𝑥 =1 +𝑢 and 𝑦 =1 +𝑣 into the right-hand sides. The first equation becomes

𝑢′=(1+𝑢)(3−(1+𝑢)−2(1+𝑣))=(1+𝑢)(−𝑢−2𝑣)=−𝑢−2𝑣−𝑢2−2𝑢𝑣,

and the second becomes

𝑣′=(1+𝑣)(2−(1+𝑢)−(1+𝑣))=(1+𝑣)(−𝑢−𝑣)=−𝑢−𝑣−𝑢𝑣−𝑣2.

In both equations, the constants cancelled: 3 −1 −2 =0 and 2 −1 −1 =0. That had to happen. At the equilibrium both rates are zero, so when 𝑢 =𝑣 =0, 𝑢′ and 𝑣′ must be zero too.

Now the second step. Each equation is a linear part, such as −𝑢 −2𝑣, plus terms such as 𝑢2 and 𝑢𝑣 that multiply two small numbers together. When 𝑢 and 𝑣 are about 0.01, the linear part is about 0.01, but the products are about 0.0001, a hundred times smaller. The closer we zoom in, the more lopsided this gets. So near the equilibrium, we drop the products and keep the linear part:

(𝑢𝑣)′≈(−1−2−1−1)(𝑢𝑣).

This linear system is called the linearization of our system at (1,1).

Part II tells us exactly what it does. The determinant of its matrix is ( −1)( −1) −( −2)( −1) = −1, which is negative, so it is a saddle. Its characteristic polynomial is 𝜆2 +2𝜆 −1, with roots −1 ±√2, one negative and one positive. The eigenvector for −1 −√2 is (√2,1), and the eigenvector for −1 +√2 is (√2, −1). So near (1,1), states come in along the direction (√2,1) and leave along (√2, −1). This is the saddle we saw in the picture.

Multiplying out worked, but it took some algebra, and we would have to redo it at every equilibrium. Calculus gives a faster way to get the same matrix.

Zooming in on the graph of a function of one variable near a point 𝑎 shows its tangent line: 𝑓(𝑎 +𝑢) ≈𝑓(𝑎) +𝑓′(𝑎) 𝑢. For a function of two variables, zooming in near a point (𝑎,𝑏) shows its tangent plane:

𝑓(𝑎+𝑢,𝑏+𝑣)≈𝑓(𝑎,𝑏)+𝑓𝑥(𝑎,𝑏)𝑢+𝑓𝑦(𝑎,𝑏)𝑣.

The error in this approximation is made of terms like 𝑢2 and 𝑢𝑣, the same small products we dropped above.

Now write our system as 𝑥′ =𝑓(𝑥,𝑦), 𝑦′ =𝑔(𝑥,𝑦), and take an equilibrium (𝑎,𝑏), so that 𝑓(𝑎,𝑏) =0 and 𝑔(𝑎,𝑏) =0. As before, write 𝑥 =𝑎 +𝑢 and 𝑦 =𝑏 +𝑣. Then

𝑢′=𝑓(𝑎+𝑢,𝑏+𝑣)≈𝑓𝑥𝑢+𝑓𝑦𝑣,𝑣′=𝑔(𝑎+𝑢,𝑏+𝑣)≈𝑔𝑥𝑢+𝑔𝑦𝑣,

with the partial derivatives evaluated at (𝑎,𝑏). The constant terms are gone because (𝑎,𝑏) is an equilibrium, just as they cancelled above. So the linearization at (𝑎,𝑏) is

(𝑢𝑣)′≈𝐽(𝑎,𝑏)(𝑢𝑣),𝐽=(𝑓𝑥𝑓𝑦𝑔𝑥𝑔𝑦).

This matrix of partial derivatives is called the Jacobian matrix. Each row comes from one equation, and each column from one variable.

For our system, 𝑓 =3𝑥 −𝑥2 −2𝑥𝑦 and 𝑔 =2𝑦 −𝑥𝑦 −𝑦2, so

𝐽(𝑥,𝑦)=(3−2𝑥−2𝑦−2𝑥−𝑦2−𝑥−2𝑦).

At (1,1) this is (−1−2−1−1), the same matrix we found by multiplying out. Evaluating 𝐽 at the other three equilibria classifies them all. Three of these matrices are triangular, so their eigenvalues are their diagonal entries.

EquilibriumJacobianEigenvaluesType
(0,0)(3002)3, 2source
(3,0)(−3−60−1)−3,  −1sink
(0,2)(−10−2−2)−1,  −2sink
(1,1)(−1−2−1−1)−1 ±√2saddle

These are the four behaviors we saw in the first picture. The two sinks are the two ways the competition can end. The saddle is the state where both species live together, but any small push sends the populations away from it.

12.3When Linearization Decides

Linearizing turned each equilibrium of our competition model into a linear flow we already understood, and the pictures agreed. Does that always work? Let's test it on the double well from chapter 11, with drag:

𝑥″=𝑥−𝑥3−𝑐𝑥′.

As a system, this is 𝑥′ =𝑣, 𝑣′ =𝑥 −𝑥3 −𝑐𝑣, with equilibria ( −1,0), (0,0), and (1,0).

Figure 12.4 Trajectories of 𝑥′ =𝑣, 𝑣′ =𝑥 −𝑥3 −𝑐𝑣. Move the slider to change the drag 𝑐, and click to release a state. The readout says what the linearization predicts at each equilibrium.

Here 𝑓 =𝑣 and 𝑔 =𝑥 −𝑥3 −𝑐𝑣, so the Jacobian is

𝐽(𝑥,𝑣)=(011−3𝑥2−𝑐).

At the origin, 𝐽 =(011−𝑐) has determinant −1, so the origin is a saddle for every drag. At (1,0) and ( −1,0), 1 −3𝑥2 = −2, so

𝐽=(01−2−𝑐),

with trace −𝑐 and determinant 2. Its characteristic polynomial is 𝜆2 +𝑐𝜆 +2. For every drag on the slider, 𝑐2 <8, so this polynomial has no real roots: the flow rotates, and since the trace is negative, it spirals in. So the linearization predicts a saddle at the origin and spiral sinks at ( ±1,0), and that is what the picture shows.

Now set the drag to zero. The trace becomes 0, and the linearization at ( ±1,0) is a center, with closed loops around the equilibrium. The picture agrees here too: states go around closed loops. But this time, the linearization alone can't promise it.

A center is a balancing case. In the trace–determinant plane, it sits on the half-line between the spiral sinks and the spiral sources, and any change to the matrix, however small, can push it to either side. The terms we dropped when we linearized are small, but they are not zero, and they can do the pushing. Here is a system where they do:

𝑥′=−𝑦−𝑥(𝑥2+𝑦2),𝑦′=𝑥−𝑦(𝑥2+𝑦2).

Its only equilibrium is the origin. Dropping the cubic terms leaves 𝑥′ = −𝑦, 𝑦′ =𝑥, a center whose trajectories are circles. But the cubic terms pull every state inward. To see this, follow the squared distance from the origin, 𝑟2 =𝑥2 +𝑦2:

(𝑟2)′=2𝑥𝑥′+2𝑦𝑦′=2𝑥(−𝑦−𝑥𝑟2)+2𝑦(𝑥−𝑦𝑟2)=−2𝑟4.

So 𝑟2 always decreases, and every state slowly spirals into the origin. Flip the signs of the cubic terms, and every state spirals out instead. Both systems have the same linearization, a center, but neither has a single closed loop. The double well's loops with zero drag are real, but showing that takes more than linearization.

This is one of only two ways linearization can fail. The other is when the Jacobian has determinant zero. Everywhere else, linearization gets the picture right:

Theorem 12.1 (Linearization). Suppose the Jacobian at an equilibrium has nonzero determinant and is not a center. Then near the equilibrium, the flow of the nonlinear system looks like the flow of its linearization: a saddle is a saddle, a sink is a sink, and a source is a source. If the linearization spirals, so does the nonlinear flow.

This is the Hartman–Grobman theorem. Its proof is beyond this course. When the linearization is a center, or its determinant is zero, the theorem says nothing, and the terms we dropped decide what happens.