Let us first focus on the nonhomogeneous first order equation
where is a constant matrix. The first method we will look at is the integrating factor method. For simplicity we rewrite the equation as
where . We multiply both sides of the equation by (being mindful that we are dealing with matrices that may not commute) to obtain
We notice that . This fact follows by writing down the series definition of ,
We have already seen that . The product rule says,
and so
We can now integrate. That is, we integrate each component of the vector separately
Recall from Exercise 3.8.6 that . Therefore, we obtain
Perhaps it is better understood as a definite integral. In this case it will be easy to also solve for the initial conditions as well. Suppose we have the equation with initial conditions
The solution can then be written as
(3.9.1)
Again, the integration means that each component of the vector is integrated separately. It is not hard to see that (3.9.1) really does satisfy the initial condition
For systems, the integrating factor method only works if does not depend on , that is, is constant. The problem is that in general
because matrix multiplication is not commutative.
Eigenvector Decomposition
For the next method, we note that eigenvectors of a matrix give the directions in which the matrix acts like a scalar. If we solve our system along these directions these solutions would be simpler as we can treat the matrix as a scalar. We can put those solutions together to get the general solution.
Take the equation
(3.9.2)
Assume that has linearly independent eigenvectors Let us write
(3.9.3)
That is, we wish to write our solution as a linear combination of eigenvectors of . If we can solve for the scalar functions through we have our solution . Let us decompose in terms of the eigenvectors as well. We wish to write
(3.9.4)
That is, we wish to find through that satisfy (3.9.4). We note that since all the eigenvectors are independent, the matrix is invertible. We see that (3.9.4) can be written as , where the components of are the functions through . Then . Hence it is always possible to find when there are n linearly independent eigenvectors.
If we identify the coefficients of the vectors through we get the equations
Each one of these equations is independent of the others. They are all linear first order equations and can easily be solved by the standard integrating factor method for single equations. That is, for example for the equation we write
We use the integrating factor to find that
Now we integrate and solve for to get
If we are looking for just any particular solution, we can set to be zero. If we leave these constants in, we get the general solution. Write , and we are done.
Again, as always, it is perhaps better to write these integrals as definite integrals. Suppose that we have an initial condition . We take and note , just like before. Then if we write
we will actually get the particular solution satisfying , because .
Let us remark that the technique we just outlined is the eigenvalue method applied to nonhomogeneous systems. If a system is homogeneous, that is, if , then the equations we get are , and so are the solutions and that’s precisely what we got in Section 3.4.
Undetermined Coefficients
We also have the method of undetermined coefficients for systems. The only difference here is that we will have to take unknown vectors rather than just numbers. Same caveats apply to undetermined coefficients for systems as for single equations. This method does not always work. Furthermore if the right hand side is complicated, we will have to solve for lots of variables. Each element of an unknown vector is an unknown number. So in system of equations if we have say unknown vectors (this would not be uncommon), then we already have unknown numbers that we need to solve for. The method can turn into a lot of tedious work. As this method is essentially the same as it is for single equations, let us just do an example.
As you can see, other than the handling of conflicts, undetermined coefficients works exactly the same as it did for single equations. However, the computations can get out of hand pretty quickly for systems. The equation we had done was very simple.
First Order Variable Coefficient
Variation of Parameters
Just as for a single equation, there is the method of variation of parameters. In fact for constant coefficient systems, this is essentially the same thing as the integrating factor method we discussed earlier. However, this method will work for any linear system, even if it is not constant coefficient, provided we can somehow solve the associated homogeneous problem.
Suppose we have the equation
(3.9.5)
Further, suppose we have solved the associated homogeneous equation and found the fundamental matrix solution . The general solution to the associated homogeneous equation is for a constant vector . Just like for variation of parameters for single equation we try the solution to the nonhomogeneous equation of the form
where is a vector valued function instead of a constant. Now we substitute into (3.9.5) to obtain
But is a fundamental matrix solution to the homogeneous problem. So , and
Hence . If we compute , then . We integrate to obtain and we have the particular solution . Let us write this as a formula
Note that if is constant and we let , then and hence we get a solution , which is precisely what we got using the integrating factor method.
In the variation of parameters, just like in the integrating factor method we can obtain the general solution by adding in constants of integration. That is, we will add for a vector of arbitrary constants. But that is precisely the complementary solution.
Second Order Constant Coefficients
Undetermined Coefficients
We have already seen a simple example of the method of undetermined coefficients for second order systems in Section 3.6. This method is essentially the same as undetermined coefficients for first order systems. There are some simplifications that we can make, as we did in Section 3.6. Let the equation be
where is a constant matrix. If is of the form , then as two derivatives of cosine is again cosine we can try a solution of the form
and we do not need to introduce sines.
If the is a sum of cosines, note that we still have the superposition principle. If , then we would try for the problem , and we would try for the problem . Then we sum the solutions.
However, if there is duplication with the complementary solution, or the equation is of the form , then we need to do the same thing as we do for first order systems.
You will never go wrong with putting in more terms than needed into your guess. You will find that the extra coefficients will turn out to be zero. But it is useful to save some time and effort.
Eigenvector Decomposition
If we have the system
we can do eigenvector decomposition, just like for first order systems.
Let be the eigenvalues and be eigenvectors. Again form the matrix . We write
We decompose in terms of the eigenvectors
And again .
Now we plug in and doing the same thing as before we obtain
We identify the coefficients of the eigenvectors to get the equations
Each one of these equations is independent of the others. We solve each equation using the methods of Chapter 2. We write , and we are done; we have a particular solution. If we have found the general solution for through , then again is the general solution (and not just a particular solution).
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.