M1120 DEs (IV) Lecture
M1120 DEs (IV) Lecture
The class of second order DEs that we are going to consider in this lecture is called the
class of “homogeneous, second order, linear DEs with constant coefficients”. Let’s try to put
this into some sort of context. Recall from DEs (III) that a first order linear DE is a DE of the
form:
P( x) y Q( x) y f ( x) .
As we have seen, this equation is called linear because it is the sum of terms that either don’t
involve y or only involve y or its derivatives raised to the power of one1. Extending this idea
to second order DEs gives the following definition.
P( x) y Q( x) y R( x) y f ( x)
P( x) y Q( x) y R( x) y 0
Further, if each of P( x) , Q( x) and R( x) are constant functions then the DE is said to have
constant coefficients. Thus:
ay by cy 0
1
This is a very rudimentary statement of the concept of linearity.
Page 35
Differential Equations (IV) - Lecture Notes
Example 1: Guess solutions to the following homogeneous second order linear DEs
with constant coefficients.
(a) y 0
(b) y y 0
(a) What function has its second derivative zero (i.e. has zero curvature)? Clearly any
linear function satisfies this property and so we guess that the general solution to
this DE is
y( x) Ax B , A, B .
Before looking at the method for solving a homogeneous second order linear DE with
constant coefficients, i.e. a DE of the form
there are several things that we can predict about the solution, (based on Example 1 and
previous lectures):
• The general solution will be a family of functions involving two parameters.
• The exponential function is a likely candidate for a solution.
Notice also that if both y1 ( x) and y2 ( x) are solutions to (1) then so will be
y( x) Ay1 ( x) By2 ( x) where A and B are arbitrary constants. To see this, let y1 ( x) and
y2 ( x) be solutions to (1), i.e.
ay1 by1 cy1 0
ay2 by2 cy2 0 .
Now let
y( x) Ay1 ( x) By2 ( x) .
Then
y( x) Ay1( x) By2 ( x)
y( x) Ay1( x) By2( x) .
Page 36
Math1120 - Mathematics II
lhs ay by cy
a( Ay1 By2) b( Ay1 By2 ) c( Ay1 By2 )
A(ay1 by1 cy1 ) B(ay2 by2 cy2 )
0 .
These observations, along with the following theorem, enable us to develop a method
of solution for DEs of the form (1).
Theorem
For the homogeneous second order linear DE
P( x) y Q( x) y R( x) 0
where P( x) 0 , given any pair of solutions y1 ( x) and y2 ( x) that are not constant
multiples of each other a general solution to the DE is
y( x) Ay1 ( x) By2 ( x) .
Note: The proof of this theorem is beyond the scope of this course.
From the above theorem, since none of these solutions are constant multiples of
each other, any pair of them can be combined to form a general solution to the DE.
Thus possible general solutions could be
y1 ( x) Ae x Be x ,
y2 ( x) A sinh( x) B cosh( x)
y3 ( x) Ae x B cosh( x) ,
and so on.
Recall that a general solution to the DE contains every solution to the DE. For
example consider the particular solution
y( x) 2sinh( x) 3cosh( x) .
This solution belongs to the general solution y2 ( x) with A 2 and B 3 . It also
belongs to the general solution y1 ( x) with A 1/ 2 and B 5 2 and to the general
solution y3 ( x) with A 2 and B 5 .
☼
Thus, initially at least, our method for trying to find the solutions to Equation (1) is to
try to find two different exponential functions that satisfy the DE and then combine them to
obtain a general solution. To this end, let
y( x) erx (2)
Page 37
Differential Equations (IV) - Lecture Notes
where r is some, as yet unspecified, constant. Since y rerx and y r 2erx for this to be a
solution of (1) we have
a r 2erx b rerx c erx 0
(ar 2 br c)erx 0 .
Since erx 0 for any value of r or x we conclude that (2) is a solution of (1) when
ar 2 br c 0 . (3)
Equation (3) is called the characteristic equation for a DE of the form of equation (1).
If the characteristic equation (3) has two real solutions (i.e. b2 4ac 0 ) then we are
done since we will have found two solutions to (1) and, via the given theorem, we can
combine these solutions to produce a general solution to (1). So if the solutions to the
characteristic equation are r1 and r2 say, then the general solution to (1) is
y( x) Aer1x Ber2 x .
The characteristic equation for this homogeneous second order linear DE with
constant coefficients is
r 2 3r 2 0
which has solutions
r 1, 2 .
Thus the general solution to the DE is
y( x) Ae x Be2 x .
☼
If the characteristic equation (3) has only one real solution (i.e. b2 4ac 0 ) then we
will have found only one exponential solution to (1), i.e.
b
y( x) erx where r . (4)
2a
To find a general solution we have to find another solution (that is not a constant multiple
(4)). It turns out that another solution to (1) can be found by trying a function of the form
b
y( x) f ( x)erx , r . (5)
2a
Differentiating y and substituting into (1) gives
f ( x) 0 . (6)
Page 38
Math1120 - Mathematics II
Clearly f ( x) 1 satisfies (6) but this just gives us solution (4). f ( x) x also satisfies (6)
and gives us a solution that is not a constant multiple of (4). Thus a general solution to (1)
will be
b
y( x) Ax B erx , r .
2a
The final case to consider is that the characteristic equation (3) has complex roots, say
r i .
Even though we are looking for real solutions, for the moment let us consider the “complex
solutions”
y1 ( x) e and y2 ( x) e .
i x i x
The characteristic equation for this homogeneous second order linear DE with
constant coefficients is
Page 39
Differential Equations (IV) - Lecture Notes
r 2 4r 13 0
which has the complex solutions
r 2 3i .
Thus the general solution to the DE is
y( x) Ae2 x cos(3x) Be2 x sin(3x) .
☼
Given that the general solution to a second order DE has two arbitrary constants in
order to find a particular solution it is necessary to give two conditions. In an initial-value
problem the conditions given are the values of y and y at the same value of x, usually x 0 .
In a boundary-value problem the conditions given are the values of y at two different values
of x. Even when we have a general solution to the DE, it may not always be possible to
satisfy a given set of boundary-value conditions.
Page 40
Math1120 - Mathematics II
1
y( x) Ae x /4 Be x .
4
Using the initial conditions gives the equations.
A B 3
1
A B 0
4 .
Solving these simultaneously gives
12 3
A , B .
5 5
1
This solution is shown in Figure 1. Note that since r1 0 the term in the general
4
12 x 4
solution associated with this root (i.e. e ) decays as x . On the other hand
5
3
since r2 1 0 the term in the general solution associated with this root (i.e. e x )
5
grows as x .
Figure 1
☼
Page 41
Differential Equations (IV) - Lecture Notes
y( x) e3 x cos(4 x) 2e
3 8
sin(4 x) .
This graph of this function is shown in Figure 2. Note that when the characteristic
equation has complex roots, r i the solutions the homogeneous second order
linear DE with constant coefficients will be periodic in nature with frequency .
Further, if 0 then the oscillations will grow as x whereas if 0 the
oscillations will decay as x . In this case 3 and hence the oscillations increase
in amplitude.
Figure 2
☼
Page 42
Math1120 - Mathematics II
Example Tasks
Page 43
Differential Equations (IV) - Lecture Notes
Page 44