Using the same trick as in the case of equations with constant coefficients we can rewrite a higher order linear equation with nonconstant coefficients as a first order system of linear equations. This way we can also use the method of variation of parameters for the solution of higher order equations. In fact, consider a general linear differential equation of order

As in Section ?? we define the functions by and see that (??) is equivalent to Introducing the vectors we conclude that (??) is equivalent to the first order system where is the matrix In particular, is a solution of (??) if is a solution of the system which can in principle be solved by variation of parameters.
An Example of Second Order

As an example we find a solution to the initial value problem

This second order differential equation is equivalent to the system where

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

Step 2: The inverse of is given by Hence we obtain

Step 3: Note that So and . Now solve the differential equations with these initial conditions obtaining

Step 4: Theorem ?? implies that the solution to (??) is and hence the solution of (??) is given by

An Example of an Electrical Circuit

It is rare, however, that variation of parameters can actually be used to find a closed form solution to an inhomogeneous higher order linear differential equations with variable coefficients. In such instances it is best to resort to numerical integration of the first order system obtained from the higher order equation.

We consider here the temporal behavior of an RLC-circuit introduced in Section ??. This circuit is described by the differential equation where is the voltage drop at the capacitor, is the resistance, is the inductance, is the capacitance, and a voltage source is producing a time dependent voltage , see (??) in Chapter ??. Now we assume that the circuit additionally contains a microphone that has a time dependent resistance of the form This corresponds to the fact that a periodic signal of frequency is entering the microphone. Then the differential equation for the electrical circuit becomes

For simplicity we set and assume that the voltage source is producing the constant voltage Thus we obtain the following linear differential equation of second order which is equivalent to the system , where Roughly speaking, reduction of order is a way to reduce the second order inhomogeneous equation to an inhomogeneous first order equation.

Suppose that is a solution of the homogeneous second order equation . In analogy to the method of variation of parameters, we try to find a solution of the inhomogeneous equation (??) of the form where is a smooth function. To determine we substitute into the inhomogeneous equation (??). Before proceeding, we compute the derivatives of :

Next, we substitute and into (??) and find
Since is a solution of the homogeneous equation we have that . After dividing by the function satisfies Introducing , we arrive at the differential equation which is linear and of first order. If we can find a solution of this equation then we can compute by integration and we have constructed a particular solution of the inhomogeneous equation (??). Thus

Observe that (??) is again a scalar first order differential equation that can in principle be solved by variation of parameters (see Theorem ??). Indeed, to see this one has to substitute for in (??).

A Specific Case: Constant Coefficients and Real Eigenvalues

As a special case of Theorem ??, we suppose that the coefficients and do not depend on and that is a real root of the characteristic polynomial of the homogeneous equation . Then we can choose and (??) becomes

If is a solution to (??), then is a particular solution of the second order inhomogeneous equation (??).

As an example, apply reduction of order to find a solution to the inhomogeneous ODE

Observe that this equation cannot be solved by the method of undetermined coefficients since the right hand side in (??) is not a solution of a homogeneous linear differential equation with constant coefficients.

The characteristic polynomial of (??) has the double eigenvalue . Since and , (??) takes the form Hence and integrating leads to Now Theorem ?? guarantees that is a solution to (??). The other solutions to the inhomogeneous equation are found by adding the general solution to the homogeneous equation.

Exercises

In Exercises ?? – ?? transform the given second order ODE into a first order system and then solve the initial value problem by variation of parameters.

Hint: the linearly independent solutions of the homogeneous equation are:
Hint: the linearly independent solutions of the homogeneous equation are:
Use reduction of order to find a solution to the equation Compare the level of effort with the solution obtained using the method of undetermined coefficients.
Consider the second order differential equation Suppose that are all solutions to (??). Then determine , , and .
Set and in the electrical circuit equation (??). Show that this equation may be rewritten as the first order system

In Exercises ?? – ?? use MATLAB to find solutions for the electrical circuit (??). In each exercise, set and in addition to the specified information, and use the first order system (??).

Parameters for the circuit: and ;
initial conditions and time interval: , and .
Parameters for the circuit: and ;
initial conditions and time interval: , and .
Parameters for the circuit: and ;
initial conditions and time interval: , and .
Parameters for the circuit: and ;
initial conditions and time interval: , and .