2 Finding the complementary function
To find the complementary function we must make use of the following property.
If and are any two (linearly independent) solutions of a linear, homogeneous second order differential equation then the general solution is
where are constants.
We see that the second order linear ordinary differential equation has two arbitrary constants in its general solution . The functions and are linearly independent if one is not a multiple of the other.
Example 5
Verify that and both satisfy the constant coefficient linear homogeneous equation:
Write down the general solution of this equation.
Solution
When , differentiation yields:
Substitution into the left-hand side of the ODE gives , which equals 0, so that is indeed a solution.
Similarly if then
Substitution into the left-hand side of the ODE gives , which equals 0, so that is also a solution of equation the ODE. Now and are linearly independent functions, so, from the property stated above we have:
is the general solution of the ODE.
Example 6
Find values of so that is a solution of:
Hence state the general solution.
Solution
As suggested we try a solution of the form . Differentiating we find
Substitution into the given equation yields:
The only way this equation can be satisfied for all values of is if
that is, so that or . That is to say, if is to be a solution of the differential equation, must be either 3 or . We therefore have found two solutions:
These are linearly independent and therefore the general solution is
The equation for determining is called the auxiliary equation .
Task!
By substituting , find values of so that is a solution of
Hence, write down two solutions, and the general solution of this equation.
First find the auxiliary equation:
Now solve the auxiliary equation and write down the general solution:
The auxiliary equation can be factorised as and so the required values of are 1 and 2. The two solutions are and . The general solution is
Example 7
Find the auxiliary equation of the differential equation:
Solution
We try a solution of the form so that
Substitution into the given differential equation yields:
Since this equation is to be satisfied for all values of , then
is the required auxiliary equation.
Key Point 5
The auxiliary equation of where
Task!
Write down, but do not solve, the auxiliary equations of the following:
- ,
- ,
Solving the auxiliary equation gives the values of which we need to find the complementary function. Clearly the nature of the roots will depend upon the values of and .
Case 1 If the roots will be real and distinct. The two values of thus obtained, and , will allow us to write down two independent solutions: and so the general solution of the differential equation will be:
Key Point 6
If the auxiliary equation has real, distinct roots and , the complementary function will be:
Case 2 On the other hand, if the two roots of the auxiliary equation will be equal and this method will therefore only yield one independent solution. In this case, special treatment is required.
Case 3 If the two roots of the auxiliary equation will be complex, that is, and will be complex numbers. The procedure for dealing with such cases will become apparent in the following examples.
Example 8
Find the general solution of:
Solution
By letting , so that
the auxiliary equation is found to be:
so that and . Thus there exist two solutions:
We can write the general solution as:
Example 9
Find the general solution of:
Solution
As before, let so that
The auxiliary equation is easily found to be: that is, so that , that is, we have complex roots. The two independent solutions of the equation are thus
so that the general solution can be written in the form .
However, in cases such as this, it is usual to rewrite the solution in the following way.
Recall that Euler’s relations give:
so that .
If we now relabel the constants such that and we can write the general solution in the form:
Note: In Example 8 we have expressed the solution as whereas in Example 9 we have expressed it as . Either will do.
Example 10
Given write down the auxiliary equation. If the roots of the auxiliary equation are complex (one root will always be the complex conjugate of the other) and are denoted by and show that the general solution is:
Solution
Substitution of into the differential equation yields and so the auxiliary equation is:
If then the general solution is
where and are arbitrary constants.
Using the laws of indices this is rewritten as:
Then, using Euler’s relations, we obtain:
Writing and we find the required solution:
Task!
Find the general solution of
Write down the auxiliary equation:
Find the complex roots of the auxiliary equation:
Using Key Point 7 with and write down the general solution:
Example 11
The auxiliary equation of is Suppose this equation has equal roots and . Verify that is a solution of the differential equation.
Solution
We have:
Substitution into the left-hand side of the differential equation yields:
But since satisfies the auxiliary equation. Also,
but since the roots are equal, then hence . So . Hence . We conclude that is a solution of when the roots of the auxiliary equation are equal. This illustrates Key Point 8.
Example 12
Obtain the general solution of the equation: .
Solution
As before, a trial solution of the form yields an auxiliary equation . This equation factorizes so that and we obtain equal roots, that is, (twice). If we proceed as before, writing it is clear that the two solutions are not independent. We need to find a second independent solution. Using the result summarised in Key Point 8, we conclude that the second independent solution is . The general solution is then:
Exercises
-
Obtain the general solutions, that is, the complementary functions, of the following equations:
-
Find the auxiliary equation for the differential equation
Hence write down the complementary function.
- Find the complementary function of the equation