In this section we consider solving inhomogeneous systems of linear differential equations of the form

where is an matrix and is a vector of continuous functions. The system is homogeneous when .

We divide this discussion into two parts: finding the general solution of the homogeneous equation and finding a particular solution to the inhomogeneous equation using variation of parameters.

Homogeneous Nonconstant Coefficient Systems

From the theory of constant coefficient systems of linear differential equations, we know abstractly how to write a basis of solutions to the homogeneous system where is an constant matrix. That basis is where is a basis of . For the homogeneous system of nonconstant coefficient linear differential equations

a similar statement is true. It should be noted, however, that only in special cases can (??) be solved in closed form.

Proof
The theory of differential equations implies that there exists a unique solution to (??) satisfying the initial condition for any . Therefore, there exist solutions such that . We claim that these solutions form a basis for the vector space of all solutions to (??).

Let be any solution to (??) with initial condition . Since is a basis for , we can find scalars such that Linearity of (??) implies that is a solution. Therefore, uniqueness of solutions to (??) implies that for all time , which proves the proposition.

Existence of solutions to the initial value problem also guarantees that the vectors must be linearly independent. Indeed, since is a basis of solutions to (??), we must be able to write for scalars in order for a solution to this initial value problem to exist. That is, the vectors must span . Hence they are linearly independent. We have proved the following:

Proof
Proposition ?? implies that the columns of are linearly independent. Hence is invertible.

Rather than relying on the general existence and uniqueness theory for systems of differential equations, there is a computationally direct way of proving Lemma ??. It is possible to show that the determinant of the matrix in (??) is nonzero and hence is invertible. This approach is carried out in Section ??

The Theory of Variation of Parameters

Let be a basis of solutions to the homogeneous system . In the method of variation of parameters we look for solutions to the inhomogeneous system (??) of the form where are differentiable functions. In order to find a method for determining the functions , we assume that is a solution to (??).

Use the product rule to compute

It follows that is a solution of (??) if and only if So variation of parameters works if we can find functions that satisfy (??).

We claim that it is always possible to find functions so that

To verify (??), note that (??) can be rewritten in matrix form as where is defined in (??) and Using the invertibility of , as proved in Lemma ??, we find that It now follows that (??) is satisfied by integrating the differential equations , where the functions are defined in (??), to find the functions .

We summarize this discussion as follows.

Note that when , the hand computation of can be painful.

Examples with Constant Coefficient Matrix when

We consider two examples of variation of parameters applied to forced systems of differential equations of the form

An Example with Two Real Simple Eigenvalues

Consider the initial value problem (??) where

Variation of parameters proceeds in four steps:

Step 1: Solutions to the homogeneous equation. The eigenvalues and eigenvectors of can be found either by using MATLAB or by hand. The eigenvalues are and , and the associated eigenvectors are and . Therefore, solutions of the homogeneous equation are:

Step 2: Computation of the vector . We compute the inverse The vector is:

Step 3: Computation of the functions . By assumption Therefore from which it follows that and . Since it follows that

Step 4: Write out the solution. The solution of the initial value problem (??) is now given by

An Example with a Nontrivial Jordan Block

Solve the system

where

Step 1: A basis for solutions to the homogeneous equation is

Step 2: We compute

Step 3: Note that So and . Now solve the differential equations obtaining

Step 4: It follows from Theorem ?? that the solution to (??) is

Exercises

In Exercises ?? – ?? solve the given initial value problems by variation of parameters.

Find the general solution to the system of differential equations Hint: Verify that are solutions to the homogeneous equation and then use variation of parameters.
Find the general solution to the system of differential equations Hint: Verify that are solutions to the homogeneous equation and then use variation of parameters.