A mass on a spring passes through its rest position. Where will it be a moment later? Its position alone cannot say, because the mass may be moving left or right, slowly or quickly, and only position and velocity together decide the motion. Collecting such quantities into one vector rewrites an equation of higher order as a system of first-order equations, here always with as the independent variable and a prime meaning . This lesson shows how to make that conversion, how to carry the initial data across in the right order, how to write a linear system with a matrix, and how to tell autonomous systems from time-dependent ones.
Key terms
State vector
Definition Let be an unknown function of that solves a scalar equation of order . Its state vector is the column
which lists the unknown and its first derivatives in this fixed order. When the equation can be written as with and its partial derivatives in the last arguments continuous near , the value at one time determines the solution on an interval around , and that is what makes a state. More generally, a state vector is the ordered column of the unknowns of a first-order system. Its entries are scalar functions and itself is a vector function, so the state is kept apart from the scalar unknown .
In plain words The state is the list of numbers you need at one instant to predict what happens next. For a second-order equation that is the value and the slope, and for a third-order equation the second derivative joins them.
Example The functions and both solve , and both equal at . At the first equals and the second equals , so the value of alone at one instant does not fix the future. Their state vectors at are and , and they differ in the velocity entry. For a mass on a spring the state is the column of position and velocity.
First-order system
Definition A first-order system of equations for unknown functions of is
written compactly as with and , where is defined on an open set of points with in . A vector function is differentiated entry by entry. A solution on an open interval is a differentiable vector function such that lies in and for every in . Each equation contains one first derivative, but its right side may involve every unknown, so the equations are usually coupled.
In plain words Each unknown gets its own rate equation, and the rate of one unknown may depend on all the others. Solving the system means finding all the unknowns at once.
Example The system , is coupled, since each rate involves the other unknown. The vector function solves it on , because and . Right sides need not be linear, as in the predator and prey model , .
Conversion of a higher-order equation to a system
Definition Suppose an equation of order has been solved for its highest derivative,
Set , and so on up to . The definitions give the first equations and the original equation gives the last,
The two problems are equivalent on every interval . If solves the equation on , then solves the system on . Conversely, if solves the system on , the first rows force , and so on up to , so is times differentiable and the last row is the original equation. An equation written as must first be divided by , which is possible only where . The conversion is then made separately on each interval where the leading coefficient does not vanish.
In plain words Give names to the unknown and to each derivative below the order. Most rows of the system only say that one name is the derivative of the previous one, and the last row carries the equation itself.
Example Take . Solving for the highest derivative gives
With , and , the system is
Since the leading coefficient is , the weights in the last row are the negatives of the other coefficients of the original equation, because those terms moved across the equals sign. The nonlinear pendulum equation converts the same way. With and it becomes , .
Vector initial data
Definition An initial condition for prescribes the whole state at one time, with in . For a converted equation of order , the scalar conditions for become
in the same order as the entries of . The existence and uniqueness theorem carries over to systems. If and all the partial derivatives are continuous on an open set containing , the problem has a solution on some open interval containing , and two solutions agree on every interval containing where both are defined. That interval may be smaller than the set of times where is defined.
In plain words One vector replaces the list of starting values, and its entries have to line up with the entries of the state. An equation of order needs exactly starting numbers, the value and the first derivatives at one time.
Example For the third-order equation above, take , and , so that . The characteristic polynomial suggests the candidate
Its derivatives are
At the entries of are , then and , which is the initial vector. In the coefficients of add up to , those of to and those of to . So the scalar equation holds for every , which is the last row of the system, and the first two rows hold because each entry of is the derivative of the one before. Listing the data as instead would pose the problem with and , whose solution is a different function.
Matrix form of a linear system
Definition A first-order system is linear when each right side is a linear combination of the unknowns plus a term that depends on alone. It can then be written
where the coefficient matrix is an matrix of functions of and the forcing is a column of functions. Entry of the product is , so row of the matrix holds the weights of equation . The system is homogeneous when for every in the interval. If and are continuous on an open interval , then for every in and every the problem with has exactly one solution, and that solution is defined on all of . Converting the normalized linear equation gives a matrix with ones just above the diagonal, the last row and zeros elsewhere, together with the forcing .
In plain words The matrix is a compact table of the weights in the equations. Multiplying it into the state column rebuilds every equation, one row at a time.
Example The third-order example has and
Multiplying out gives , the three right sides found before. The coefficients are constant, so every solution exists for all real . For the forced equation , the state gives
Autonomous and time-dependent systems
Definition A system is autonomous if its right side does not depend on explicitly, so that it has the form . Otherwise it is time-dependent, also called nonautonomous. A linear system is autonomous exactly when and are constant. For an autonomous system the arrow attached to a state is the same whenever that state is reached, and if is a solution, then so is the shifted function for every constant , on the shifted interval.
In plain words In an autonomous system the rule for change looks only at the current state, never at the clock. In a time-dependent system the same state can move differently at different times, because a coefficient or an outside input has changed.
Example The constant-matrix system above and the pendulum system , are autonomous. The equation , whose damping coefficient grows with time, gives
At the state the arrow is at but at , so the system is time-dependent. The forced equation is time-dependent for another reason. Its matrix is constant, but its forcing changes with .
Check yourself
- Write with and as a system with an initial vector, and check that gives a solution of the system.
Show the answer
Solving for the highest derivative gives . With ,
The candidate has and . The first row says , which holds because the second entry of is the derivative of the first. The second row needs to equal
which is , so it holds too. At the state is , the required initial vector.
- Write with and as a first-order system. Is the system autonomous, and on which interval does the existence theorem for linear systems guarantee exactly one solution?
Show the answer
The leading coefficient vanishes at , so the equation can be solved for only where , giving . With ,
with . The matrix depends on , so the system is time-dependent. Its entries are continuous on and on , and the initial time lies in the first interval, so the theorem guarantees exactly one solution on . As a check, has , and , so it is that solution.
- The equation with , and is converted with the state . A classmate writes the initial vector as . Solve the correct problem and the classmate’s problem, and compare the solutions.
Show the answer
The system is , , , and the correct initial vector is . The characteristic polynomial gives
with and . The correct data give , and , so , , and . The classmate’s vector means and , which give and , so . The two functions agree only at , since reduces to . Swapping two entries of the initial vector poses a different problem.