Definition · A linear system in the planeTwo 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′ = −yStart 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 keepsEvery 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 roundTake 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.