Learn
Lesson · Systems and the Phase Plane · Linear systems

Systems of Two Equations

Two quantities that change together are described by a system such as x′ = a·x + b·y, y′ = c·x + d·y. At each point (x, y) it names a direction and a speed, and Euler's method steps both quantities at once. A solution is a curve (x(t), y(t)) in the phase plane, and the plane has no axis for time: time is how far along the curve you have gone.

x′ = a·x + b·y, y′ = c·x + d·y the arrow at (x, y) is (a·x + b·y, c·x + d·y) a solution is a curve (x(t), y(t)) the phase plane has no t axis Euler: new point = point + h·arrow
A system is an arrow at every point

Core ideas

What this lesson establishes

Three ideas, and the first one decides how to read every picture on this course. The other two are the arithmetic that fills the picture in.

1

A system gives every point an arrow

The right-hand sides a·x + b·y and c·x + d·y are functions of the point (x, y), and nothing else. At (1, 1) the system x′ = x, y′ = −y names the arrow (1, −1): x is growing at rate 1 and y is shrinking at rate 1. The collection of all those arrows is a vector field, and the system is a rule for drawing it.

2

A solution is a curve that follows the arrows

A pair of functions x(t) and y(t) solves the system when, at every t, the velocity (x′, y′) is the arrow at the point (x(t), y(t)). Plot the points (x(t), y(t)) as t runs and you get a curve in the plane that is tangent to the field everywhere it goes. That plane, with the unknowns for axes, is the phase plane.

3

Euler steps both unknowns at once

From the point (x, y) with step h the next point is (x + h·x′, y + h·y′), each rate read from the arrow at the old point. Both coordinates move before either rate is read again. With rational coefficients every step is a pair of fractions, and the lab prints them exactly.

The material

From one equation to two, and from a graph to a path

The definition, the first system worked out, what the phase plane leaves out, and the one exact fact that shows Euler's polygon is only a recipe.

Definition · A linear system in the plane

Two equations x′ = a·x + b·y and y′ = c·x + d·y, where a, b, c and d are numbers. Written with a matrix it is x′ = A·x, where x is the pair (x, y) and A has the rows a b and c d.

A solution is a pair of functions x(t), y(t) that satisfy both equations. The phase plane is the plane with the unknowns x and y as its axes, and the orbit of a solution is the curve it traces.

One equation y′ = f(t, y) gave a field of slopes on a plane with time across the bottom. A system has two unknowns and no time on either axis, and the field is a field of arrows instead. The equations here have no t on the right-hand side, so the arrow at a point is the same whenever the solution gets there. That is why the picture can leave time out: two solutions that meet the same point leave it in the same direction.

x′ = x y′ = −y at (1, 1) the arrow is (1, −1) at (2, 1) the arrow is (2, −1) at (0, 3) the arrow is (0, −3)

A curve in the plane is not a graph against time

The commonest misreading is to treat the horizontal axis as time. In the phase plane the horizontal axis is x. A solution that starts at (1, 1) and reaches (5/4, 3/4) has moved right and down in space, and the picture does not say when. To recover the timing you go back to the formulas, or to the step count, because time is carried by the step and not by an axis.

Example · Three steps of x′ = x, y′ = −y

Start at (1, 1) with h = 1/4. The arrow at (1, 1) is (1, −1), so the first step lands at (1 + 1/4, 1 − 1/4), which is (5/4, 3/4).

The arrow there is (5/4, −3/4), giving (5/4 + 5/16, 3/4 − 3/16), which is (25/16, 9/16). A third step gives (125/64, 27/64). The curve heads along the x direction away from the origin while y dies away, which is the picture of a saddle.

step x y 0 1 1 1 5/4 3/4 2 25/16 9/16 3 125/64 27/64

The first preset in the lab is this system, and it is set to eight steps rather than three, so the point it prints is the eighth. Drag the step control down to three and the third row above appears in the last-point tile. Notice that the arithmetic was the same one-line rule each time: x is multiplied by 1 + h and y by 1 − h.

Theorem · A quantity the true solution keeps

Every solution of x′ = x, y′ = −y keeps the product x·y constant.

By the product rule (x·y)′ = x′·y + x·y′.

Substituting the equations gives x·y − x·y = 0, so the product never changes. The solution through (1, 1) therefore lies on the curve x·y = 1. The Euler points above do not: (125/64)·(27/64) = 3375/4096, which is (15/16)³. Each step multiplies the product by (1 + h)·(1 − h) = 15/16, so the polygon slips inside the curve.

□

That is the difference between the method and the solution, shown with two fractions. Each Euler step is computed exactly, and the polygon is still not the curve. Sixteen steps of h = 1/16 would stay much closer, and the lab lets you try. What it cannot do is make the product exactly one.

Example · A system that goes round

Take x′ = y, y′ = −x from (1, 0). The arrow at (1, 0) is (0, −1), so with h = 1/4 the first step goes to (1, −1/4).

The true solutions here are circles about the origin, and the squared distance from the origin is 1 at the start. After the step it is 1 + 1/16 = 17/16. The lab prints that ratio, and it is the same at every step: Euler's polygon on a rotation spirals outwards by an exact factor of 1 + h², because each step moves along the tangent, and a tangent always leaves the circle. “Euler on an Oscillator” proved that factor for x′ = v, v′ = −x; this is the same system with y written for v, seen in the phase plane.

Interactive

The phase plane

Trace, determinant, eigenvalues and exact Euler steps

A linear system in the planex′ = A·x: the matrix decides the picture
the fieldEuler's steps (exact)drawn by stepping in floating point

Method

Stepping a system and reading what it does

Read the arrow, take the step on both coordinates, and then ask what the path is doing in the plane.

1

Write the system as an arrow

At the point (x, y) the arrow is (a·x + b·y, c·x + d·y). For x′ = x, y′ = −y it is (x, −y), so at (2, 1) it is (2, −1).

2

Multiply the arrow by the step

With h = 1/4 the arrow (2, −1) becomes the displacement (1/2, −1/4). Both components are scaled by the same h.

3

Add the displacement to the point

The new point is (2 + 1/2, 1 − 1/4), which is (5/2, 3/4). Read the next arrow from this new point and repeat.

4

Describe the path, not the graph

Say where the point is heading in the plane: away from the origin along one axis and toward it along the other, round and round, or in toward the origin. Do not say how x varies with t unless you also say that you have left the phase plane.

5

Ask what is conserved or lost

Where the true solution keeps a quantity (the product x·y, or the squared distance on a rotation), compute that quantity at the Euler point and compare. The gap is the method's error, and it is exact.

Arrows, curves and steps

Score 0 / 0

x′ = x, y′ = −y from (1, 1), h = 1/4

The system is the first preset. The arrow at each point is (x, −y), and the step multiplies x by 1 + h = 5/4 and y by 1 − h = 3/4.

arrow at (1, 1): (1, −1) step 1: (1 + 1/4, 1 − 1/4) = (5/4, 3/4) step 2: (5/4 · 5/4, 3/4 · 3/4) = (25/16, 9/16) step 3: (125/64, 27/64) x grows by 5/4 each step, y shrinks by 3/4 trace = 1 + (−1) = 0 determinant = −1 the curve leaves along the x-axis: a saddle

The path heads away from the origin along the x-axis while its y dies away, and no start on the y-axis ever leaves it. That mixture of going in along one direction and out along another is what a saddle is, and the trace and determinant tiles, 0 and −1, are the first look at the two numbers the rest of this course sorts by.

The product of the steps' coordinates is 3375/4096, not 1, so this polygon is inside the true curve x·y = 1. That is not a slip in the arithmetic. It is what one step size does to a curve that bends.

Common mistakes

1
Reading the phase plane as x plotted against timeA reader who takes the horizontal axis for time sees the path from (1, 1) to (5/4, 3/4) as x rising and y being a second graph. The axes are x and y: the point moved right and down in space. Two different solutions can cross the same vertical line at different moments, and the plane does not show when. The refutation is the table above, where every row has a step number beside it and none of them is an axis.
2
Multiplying h by the coefficient but not by the coordinateThe step is h times the arrow, and the arrow is (a·x + b·y, c·x + d·y), not the coefficients alone. From (2, 1) with x′ = x, the displacement is (1/4)·2 = 1/2, not 1/4. Using the coefficient alone moves x from 2 to 9/4, the same displacement wherever the point is, and the orbit would never speed up as it moves away.
3
Treating Euler's polygon as the solutionThe points (5/4, 3/4), (25/16, 9/16) and (125/64, 27/64) are exact, and they are not on the curve x·y = 1: their product is 15/16 after one step and 3375/4096 after three. The solution keeps the product at 1 for every t. The polygon is a recipe that is near the curve for reasons the error lessons measure.

Check your understanding

✓
Finish when you can take a system x′ = a·x + b·y, y′ = c·x + d·y and a start, and describe where it goes.

You should be able to name the arrow at a point, take an Euler step on both unknowns as exact fractions, say that the orbit is a curve in the plane with no time axis, and say what quantity the true solution keeps that the polygon does not.

Note: A system can be solved once the directions in which it moves in a straight line are known. Finding them is a question about the matrix alone, and the next lesson, “Straight-Line Solutions and Eigenvectors”, answers it.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.