This tool is for first-order homogeneous linear systems of two ODEs with constant coefficients, shown in the boxes below. The state at time t is the vector of the two unknowns y1 and y2, and the four constant entries a, b, c, d of the matrix A are the parameters of the system. Because the system is homogeneous (no forcing term), the origin is always an equilibrium, and because the coefficients are constant, the eigenvalues and eigenvectors of A decide the shape of every solution.
Set the parameters a, b, c, d and an initial condition, then watch the solution move through the phase plane.
The unknowns are two functions and , collected in the state vector . With constant parameters , , , , the system is
or, written out componentwise,
It is first-order (only first derivatives appear), linear (the right-hand side is a linear function of ), homogeneous (there is no forcing term), and has constant coefficients ( does not depend on ). Vectors are written in bold with an arrow, and their components are plain letters with subscripts. In terms of the standard basis vectors,
Together with an initial condition , the system is an initial value problem. By the existence and uniqueness theorem for linear systems with constant coefficients, it has exactly one solution for each , and that solution is defined for all . Two consequences are used throughout this page: a solution is determined by its initial condition, and two different trajectories in the phase plane never cross or touch. Because does not depend on , the system is also autonomous: the velocity depends only on where the state is, not on when it gets there.
Two numbers built from the parameters appear throughout, the trace and the determinant of :
An equilibrium is a point with ; the constant function is then a solution. The origin is always an equilibrium. If it is the only one, an isolated equilibrium. If , every point of the null space of is an equilibrium: a whole line of equilibria, or the whole plane when .
The nullclines are the sets where one component of the velocity vanishes:
For a linear system both nullclines are lines through the origin (as long as the row is not zero). They meet only at the origin unless , in which case they coincide with the line of equilibria. A nullcline depends only on the ratio of the entries in its row: multiplying the row by a nonzero number leaves the line where it is, but multiplies every value of by . The flow changes, and when the vectors reverse their horizontal component on both sides of the line. The same holds for the row , , and the vertical component.
The phase plane is the -plane used as the space of states: each point is one possible state, the vector . Time is not an axis of the phase plane. A solution shows up there as a moving point, and the curve it traces is its trajectory (also called its orbit).
The vector field assigns to every point of the phase plane the velocity a solution has when it passes through that point:
It is drawn as arrows on a grid. With "scaled" on, each arrow's length reflects the speed . With "scaled" off, every arrow has the same length and only the direction is shown, which is usually called a direction field. Every trajectory is tangent to the vector field at each of its points.
A phase portrait is a picture in the phase plane of the equilibria together with a representative set of trajectories, with arrows showing the direction of motion. It shows the qualitative behavior of all solutions at once, without solving for any single one. The plot in the Phase Portraits panel is a phase portrait: sample trajectories spread evenly over the window, the equilibrium, and, optionally, the eigenvectors and nullclines. Its flow-particles option replaces the sample trajectories with many short-lived solutions carried along by the flow. The y1 vs y2 view in System Trajectories shows the vector field and one specific solution in the same plane.
| Object | What it is | What it answers |
|---|---|---|
| Phase plane | The space of states ; no time axis. | Where can the system be? |
| Vector field | A vector attached to each point of the phase plane. | Which way, and how fast, does a solution move from here? |
| Phase portrait | Equilibria and representative trajectories drawn in the phase plane. | What do all solutions do over time? |
The graph of a solution is the curve in three dimensions, which the 3D view shows. Projecting it along the -axis gives its trajectory, as in the y1 vs y2 view. Projecting it onto the other two walls gives the component graphs in the t vs y1 and t vs y2 views. The trajectory loses the timing (how long each part takes), while each component graph keeps the timing but shows only one coordinate. By uniqueness, trajectories in the phase plane never cross, while the component graphs of different solutions can cross freely.
Look for solutions whose trajectories are straight lines through the origin, that is, solutions of the form with a constant vector . Substituting gives , so must be an eigenvector of with eigenvalue :
A nonzero solution exists exactly when is singular, that is, when . Expanding the determinant gives the characteristic equation:
The quadratic formula gives the two eigenvalues and , and comparing coefficients with gives their sum and product:
The discriminant decides the case: positive gives two distinct real eigenvalues (labeled so that ), negative gives a complex conjugate pair with , and zero gives one repeated real eigenvalue .
Each eigenvalue is a point of the complex plane. Because is real, complex eigenvalues come in conjugate pairs, mirror images across the real axis. The two coordinates of an eigenvalue have separate meanings for the solution :
So the open left half-plane means decay, the open right half-plane means growth, and being off the real axis means rotation. Reading the type of the equilibrium from the picture:
| Where the eigenvalues are | Type |
|---|---|
| On the real axis, on opposite sides of 0 | Saddle |
| On the real axis, on the same side of 0, distinct | Node: stable on the left, unstable on the right |
| On the real axis, at the same nonzero point | Star or degenerate node |
| A conjugate pair off both axes | Spiral: stable on the left, unstable on the right |
| A conjugate pair on the imaginary axis | Center |
| At least one at 0 | Line of equilibria, or uniform motion when both are 0 and |
The two planes in Phase Portraits carry the same information, linked by and . For a complex pair these are and , so the imaginary axis of the eigenvalue plane corresponds to the centers on the positive -axis, and a pair meeting on the real axis corresponds to a point on the parabola .
For an eigenvalue , write the unknown eigenvector as . The system has rows and . Because , the two rows are linearly dependent, so a nonzero solution of either row solves both:
The first is nonzero when and the second when . Any nonzero multiple of an eigenvector is again an eigenvector; the Signatures panel scales each one so that its smallest nonzero entry is 1, or its largest when that keeps the numbers smaller. How many independent eigenvectors there are depends on the case:
| Case | Substitute | Eigenvectors |
|---|---|---|
| Distinct real | , then | Two independent eigenvectors, for and for . |
| Complex | One complex eigenvector , with real part and imaginary part . Since is real, the conjugate is an eigenvector for , so it adds nothing new. There are no real eigenvectors. | |
| Repeated, | Only one independent eigenvector . The matrix is called defective; a generalized eigenvector is needed for the general solution. | |
| Repeated, | none needed | Both formulas give because and . Every nonzero vector is an eigenvector. |
Geometrically, an eigenvector marks a direction in which the vector field points along the position itself. On the line spanned by an eigenvector with real eigenvalue , every point has velocity
The velocity is parallel to the position, so a solution that starts on the line stays on it, moving as : toward the origin when , away from it when , and not at all when . These straight-line solutions are also called eigensolutions. The size is how fast they move: changes by a factor of every time units. What the eigenvectors say about the other solutions depends on the case:
| Case | Eigenvectors | Straight-line solutions | Every other solution |
|---|---|---|---|
| Node , same sign | Two, and . | Both eigenvector lines, moving toward the origin if the eigenvalue is negative and away from it if positive. | They approach (stable) or leave (unstable) the origin tangent to the slow eigenvector, the one whose eigenvalue is closer to 0. Far from the origin they are nearly parallel to the fast eigenvector. |
| Saddle | Two, and . | The line of is the stable line: solutions on it approach the origin. The line of is the unstable line: solutions on it move away. | They come in alongside the stable line and leave alongside the unstable line, never reaching the origin. The two lines are the separatrices that divide the plane into four regions. |
| Line of equilibria and | Two: for the eigenvalue 0 and for . | Every point on the line of is an equilibrium. The line of moves toward or away from the origin. | Each is , which moves on a line parallel to , toward the line of equilibria when and away from it when . |
| Degenerate node repeated, | One, . The generalized eigenvector is not an eigenvector. | Only the line of . | In the term dominates as , so every solution becomes tangent to the line of as it approaches or leaves the origin. |
| Star , | Every nonzero vector. | Every line through the origin. | There are none: every solution is a ray , toward or away from the origin. |
| Uniform motion , | One, . | The line of is a line of equilibria. | Since , each is . The vector lies along , so the solution moves at constant velocity on a line parallel to . |
| Spiral or center , | No real eigenvectors. The complex eigenvector gives two real vectors and . | None: is never parallel to a nonzero , so every solution keeps turning. | The solution with is . For a center it traces the ellipse with conjugate semi-diameters and , and every other orbit is a scaled copy of that ellipse. For a spiral the same picture shrinks or grows by the factor . |
In the plots, the eigenvectors checkbox draws the eigenvector lines in pink and brown, with arrowheads showing the direction of motion, or the vectors and when the eigenvalues are complex.
Many matrices share the same eigenvalues, so moving an eigenvalue needs a rule for the new parameters. This page keeps the eigenvectors and changes only the eigenvalues. With the eigenvectors as the columns of , or the real and imaginary parts of the complex eigenvector as the columns of , the new matrix is
The first formula is the diagonalization , which says column by column. The second comes from splitting into real and imaginary parts: and . As a result, the eigenvector lines stay in place while the portrait changes around them, and the parameters can come out as decimals.
The system is linear and homogeneous, so the superposition principle holds: if and are solutions, then so is every linear combination of them, because differentiation and multiplication by are both linear:
Two solutions form a fundamental set when the matrix with those solutions as its columns is invertible:
The determinant is the Wronskian. By Abel's formula above it is either never zero or identically zero, so it is enough to check . For a fundamental set, the coefficients solving exist and are unique because is invertible. By uniqueness, is then the solution with that initial condition. So every solution is a combination of the two, and the solutions form a two-dimensional vector space:
On this page the two fundamental solutions are called the two modes.
When has two independent eigenvectors and , the eigensolutions and form a fundamental set, since :
Geometrically, and are the coordinates of the initial point in the eigenvector basis. Each piece stays on its own eigenvector line and is scaled by its own factor , and the solution is their vector sum, the corner of the parallelogram they span. This explains the portraits: in a node the faster piece decays (or grows) first, so the solution ends up along the slow eigenvector; in a saddle one piece shrinks while the other grows, so the solution comes in along one line and leaves along the other. Taking or recovers a single straight-line solution.
| Case | Condition | Eigenvalues | General solution |
|---|---|---|---|
| Distinct real | |||
| Complex | , | ||
| Repeated, two eigenvectors | (double) | ||
| Repeated, one eigenvector | (double) |
Complex case. The complex eigensolution solves the system. Because is real, its real and imaginary parts are real solutions. Expanding with Euler's formula gives the two real modes in the table, and their Wronskian at is .
Defective repeated case. There is only one eigensolution . The second mode uses a generalized eigenvector , a solution of . Substituting checks it: both and equal , using and .
In the t vs y1 and t vs y2 views, the option "the two modes" overlays and , which add up to at every moment.
The equilibrium at the origin is stable if every solution that starts close enough to it stays as close as desired for all . It is asymptotically stable if it is stable and, in addition, nearby solutions tend to it as . It is unstable if it is not stable. For a linear system with constant coefficients these are decided by the eigenvalues:
In the remaining cases (a center, a line of equilibria whose nonzero eigenvalue is negative, or ) the origin is stable but not asymptotically stable.
Because and , the trace and determinant alone decide the type:
| Type | Condition | Eigenvalues | Stability | Portrait |
|---|---|---|---|---|
| Saddle | real, opposite signs | unstable | Solutions come in along the stable line and leave along the unstable line; these two lines are the separatrices. | |
| Node | real, distinct, same sign | asymptotically stable if , unstable if | Solutions approach or leave the origin tangent to the slow eigenvector. | |
| Spiral | , | asymptotically stable if , unstable if | Solutions wind around the origin, one turn every , while their size scales like . | |
| Center | stable, not asymptotically | Every nonzero solution is a closed ellipse with period . | ||
| Degenerate node | repeated, one eigenvector | asymptotically stable if , unstable if | The border between nodes and spirals: solutions turn to become tangent to the single eigenvector line. | |
| Star (proper node) | repeated, every vector an eigenvector | asymptotically stable if , unstable if | Every solution is a ray toward or away from the origin. | |
| Line of equilibria | and | stable, not asymptotically, if ; unstable if | The null space of is a line of equilibria; other solutions move toward it or away from it along lines parallel to the eigenvector of . | |
| Uniform motion | 0, repeated, one eigenvector | unstable | The null space is a line of equilibria; other solutions move along it at constant velocity. | |
| Zero matrix | 0, repeated | stable, not asymptotically | Every point is an equilibrium. |
For a spiral or a center, the direction of rotation can be read from a single vector. On the positive -axis, in the direction of , the velocity is the first column of , . Its vertical component is , so the rotation is counterclockwise when and clockwise when . For complex eigenvalues is never 0, since would make the eigenvalues and real.
The trace–determinant plane in Phase Portraits puts the whole classification in one picture. The parabola separates nodes (below it) from spirals (above it) and holds the stars and degenerate nodes. The positive -axis holds the centers, the -axis holds the lines of equilibria, and the whole lower half-plane holds the saddles. Replacing by reverses time: every vector flips, the point moves to , and stable and unstable trade places.