For a nonhomogeneous system \mathbf{y}' = \mathbf{A}\mathbf{y} + \mathbf{g}(t), the general solution splits as exactly as in the scalar case. When is constant and is built from polynomials, exponentials, and trigonometric functions, can be found by assuming a form similar to with undetermined vector coefficients. The modification rules, however, are not the same as for a single equation.
Quick Reference
| Item | Statement |
|---|---|
| The system | , with |
| General solution | |
| General solution of \mathbf{y}' = \mathbf{A}(t)\mathbf{y} | |
| Any particular solution of the full system | |
| Method applies when | has constant entries and the components of are polynomials, sines, cosines, exponentials, or products of these |
| quadratic | |
| Modification, zero eigenvalue | constant requires , not alone |
| Modification, an eigenvalue | requires |
The Structure Theorem
In this section we find the general solution of a nonhomogeneous linear system
\frac{d}{dt}\mathbf{y} = \mathbf{A}(t)\mathbf{y} + \mathbf{g}(t) , \tag{i}
where the elements of the matrix and the vector are continuous on some interval of the -axis, and is not identically .
The general solution of (i) can be written as
where is the general solution of the associated homogeneous system \mathbf{y}' = \mathbf{A}(t)\mathbf{y} and is any particular solution of (i).
The proof is identical to the scalar case: the difference of two solutions of (i) solves the homogeneous system.
Two methods are available for finding : undetermined coefficients, treated here, and variation of parameters, treated in Section 5.4.
When the Method Applies
Similar to the method of undetermined coefficients for a single linear equation, this method applies to \mathbf{y}' = \mathbf{A}\mathbf{y} + \mathbf{g}(t) only when
- the elements of are constants, and
- the elements of are polynomials, sines and cosines, exponential functions, or products of two or more such functions.
In such cases we assume has a form similar to . For example, if the components of are quadratic functions, we set
where , , and are constant vectors whose components are to be determined. Note that each undetermined coefficient is now a vector with components, so a quadratic trial function for a system involves six unknown numbers.
Important. Use the same trial form in every component, even if some components of are simpler than others. In the first example below, has a constant second component, yet the trial function carries a term in both components, because the equations are coupled and a in one component feeds into the other.
The Modification Rules Are Different
We learned that for a single nonhomogeneous linear equation, when a term in the choice for also appears in , the choice must be modified. The same is true for . However, we cannot use exactly the same Modification Rule.
- When an eigenvalue of the coefficient matrix is , so that contains a constant vector, and is a constant vector, we cannot choose a constant vector for . Experience might suggest , but that is not enough. The correct form is
- If is an eigenvalue of the coefficient matrix and has the form , we must look for a particular solution of the form
In both cases the rule is: multiply by and keep the lower-order term as well, rather than replacing it. This is the same phenomenon seen in Section 5.2, where had to be supplemented by a constant vector, and it has the same cause: differentiating times a vector produces a leftover that only an added constant vector can absorb.
Worked Examples
Find the general solution of
\begin{aligned} \frac{dy_1}{dt} &= 2y_1 + y_2 + t \\ \frac{dy_2}{dt} &= -y_1 + 2y_2 + 1 \end{aligned}Solution
Rewrite the system as
\begin{bmatrix} y_1' \\ y_2' \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix}\begin{bmatrix} y_1 \\ y_2 \end{bmatrix} + \begin{bmatrix} t \\ 1 \end{bmatrix} .Step 1: the homogeneous solution. The characteristic equation of is
giving and .
The eigenvector associated with satisfies
Letting gives , so
The corresponding complex solution is
\begin{aligned} \widetilde{\mathbf{y}}^{(1)} &= \mathbf{v}^{(1)}e^{\lambda_1t} = \begin{bmatrix} 1 \\ i \end{bmatrix}e^{(2+i)t} \\ &= \begin{bmatrix} 1 \\ i \end{bmatrix}e^{2t}\left(\cos t + i\sin t\right) \\ &= \begin{bmatrix} \cos t + i\sin t \\ -\sin t + i\cos t \end{bmatrix}e^{2t} \end{aligned}using .
Two real solutions of the homogeneous system are
so
Step 2: the trial particular solution. Since is linear in , and neither nor any polynomial-producing eigenvalue is present, take
\mathbf{y}_p = \underbrace{\begin{bmatrix} a_1 \\ b_1 \end{bmatrix}}_{\mathbf{c}_1} + \underbrace{\begin{bmatrix} a_2 \\ b_2 \end{bmatrix}}_{\mathbf{c}_2}t , \qquad\text{so}\qquad \mathbf{y}_p' = \begin{bmatrix} a_2 \\ b_2 \end{bmatrix} .Step 3: substitute.
\begin{aligned} \begin{bmatrix} a_2 \\ b_2 \end{bmatrix} &= \begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix}\left(\begin{bmatrix} a_1 \\ b_1 \end{bmatrix} + \begin{bmatrix} a_2 \\ b_2 \end{bmatrix}t\right) + \begin{bmatrix} t \\ 1 \end{bmatrix} \\ &= \begin{bmatrix} 2a_1 + b_1 \\ -a_1 + 2b_1 \end{bmatrix} + \begin{bmatrix} \left(2a_2 + b_2\right)t \\ \left(-a_2 + 2b_2\right)t \end{bmatrix} + \begin{bmatrix} t \\ 1 \end{bmatrix} \end{aligned}Step 4: match coefficients. Equating coefficients of like powers of (here and ) in each row gives four equations for the four unknowns:
\left\{ \begin{aligned} 2a_2 + b_2 + 1 &= 0 && \text{(coefficients of } t \text{, 1st row)} \\ 2a_1 + b_1 &= a_2 && \text{(constants, 1st row)} \\ -a_2 + 2b_2 &= 0 && \text{(coefficients of } t \text{, 2nd row)} \\ -a_1 + 2b_1 + 1 &= b_2 && \text{(constants, 2nd row)} \end{aligned} \right.The first and third equations involve only and . From the third, ; substituting into the first, , so
Substituting these into the second and fourth equations,
From the first, . Substituting, , so and
Therefore
Step 5: general solution. Since ,
\begin{aligned} y_1(t) &= C_1e^{2t}\cos t + C_2e^{2t}\sin t + \frac{2}{25} - \frac{2}{5}t \\ y_2(t) &= -C_1e^{2t}\sin t + C_2e^{2t}\cos t - \frac{14}{25} - \frac{1}{5}t . \end{aligned}Solve
\begin{aligned} \frac{dy_1}{dt} &= y_1 + 1 \\ \frac{dy_2}{dt} &= -y_1 + 8 \end{aligned}Solution
In matrix form, and .
Step 1: homogeneous solution.
For : gives , so .
For : gives , so .
Step 2: modification. Here is an eigenvalue, so contains a constant vector, and is constant. By the modification rule, take
\mathbf{y}_p = \mathbf{b} + \mathbf{c}t , \qquad \mathbf{y}_p' = \mathbf{c} .Step 3: substitute.
Matching powers of ,
The first says lies in the null space of , so for some . For the second, with we have , so
Its first component must be zero, forcing , and then the second component is . So , and is free; take .
Step 4: general solution.
Note that the naive trial would have failed: it forces , which cannot hold for all unless happens to be very special.
Solve
Solution
Step 1: homogeneous solution. The characteristic polynomial is
so and .
For : , so .
For : gives , so .
Step 2: split . By superposition, handle and separately. Both need modification: is an eigenvalue, so the polynomial part gains a degree, and is an eigenvalue, so the exponential part gains a factor of .
Step 3: the polynomial part. Take . Substituting and matching powers,
From the first, . The second requires to lie in the range of , which is spanned by . So must be parallel to : , giving and .
Then , whose general solution is . The third condition needs itself in the range of , so parallel to gives and .
Finally gives ; take .
Step 4: the exponential part. Take . Substituting and matching,
The first gives . The second reads , and the range of is spanned by , so gives and .
Then gives ; take .
Step 5: assemble.
\begin{aligned} y_1(t) &= c_1 + c_2e^{t} - 3t - t^{2} - te^{t} \\ y_2(t) &= 3c_1 + 2c_2e^{t} + 3 - 6t - 3t^{2} + (1-2t)e^{t} \end{aligned}The same problem is solved by variation of parameters in Section 5.4, where the answers differ by homogeneous terms, as they must.
Exercises
Find a particular solution of \mathbf{y}' = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\mathbf{y} + \begin{bmatrix} 2 \\ -1 \end{bmatrix}.
Solution
The eigenvalues satisfy , giving . Neither is zero, so a constant trial vector suffices: , whence , that is, .
Since ,
so
What trial form would you use for \mathbf{y}' = \begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix}\mathbf{y} + \begin{bmatrix} e^{2t} \\ \sin t \end{bmatrix}? Do not compute the coefficients.
Solution
The eigenvalues are and . Since is an eigenvalue and contains , that piece needs modification:
The term corresponds to , which are not eigenvalues, so no modification is needed there:
Altogether
with eight unknown numbers for this system.
Frequently Asked Questions
Why must the trial function use the same form in every component?
Because the equations are coupled. A term appearing in feeds into through the matrix, so a present in one component generally requires a in the other, even if the corresponding component of has none. Restricting the trial form component by component leads to inconsistent systems.
Why is not enough when is constant and is an eigenvalue?
Substituting gives , in which the left side is constant while the right has a term. Matching forces and , which fails unless happens to lie in the null space of . Adding the constant vector supplies exactly the missing freedom.
My system of equations for the coefficients is inconsistent. What went wrong?
Almost certainly the trial form was not modified, or was modified insufficiently. Compare the exponents appearing in against the eigenvalues of : a constant in conflicts with the eigenvalue , an conflicts with the eigenvalue , and or conflict with .
Can I use superposition to split ?
Yes, exactly as in the scalar case. Solve \mathbf{y}' = \mathbf{A}\mathbf{y} + \mathbf{g}_k separately for each piece and add the results, applying the modification rule independently to each piece. The third worked example does this, treating the polynomial and the exponential separately.
When should I switch to variation of parameters instead?
Whenever has non-constant entries, whenever falls outside the allowed class, or whenever the modifications become so tangled that computing looks easier. For a system, inverting the fundamental matrix is quick, so variation of parameters is often the faster route in practice.