Professional Documents
Culture Documents
and yP (t) is a particular solution of (187). Let us assume that we have already determined yH (t) and we now wish to
find a particular solution to (187) with the specified non-homogeneous r.h.s. r(t). The following is a general method
to do that, which is called the DAlembert method, or the method of variation of constants.
Let f (t) be a solution to the homogeneous equation (188). N.B. It is emphasized that f (t) does not have to be
the most general solution, just pick one of the two solutions to (188).
Let us change the dependent variable from y(t) to x(t) such that:
Since all functions are functions of t only we omit the notation (t), implying that dependence on t is understood.
Computing the derivatives we get:
y = xf + xf
and
y = xf + 2xf + xf
substitution into (187) yields:
xf + 2xf + xf + p xf + xf + qxf = r
Collecting the various derivatives of x on the l.h.s. we get:
xf + x 2f + pf + x f + pf + qf =r
vanishes since f (t) solves (188)
The last term, where the derivatives act always on f , is all we would have obtained if x were a constant. This
combination vanishes owing to the fact that f (t) satisfies the homogeneous equation (188). We therefore remain
with the following dierential equation:
f x + 2f + pf x = r
which is free of explicit x dependence, and can therefore be readily reduced to a first order equation by defining the
dependent variable to be v(t) = x(t):
f v + 2f + pf v = r
or
f r
v + 2 + p v =
f f
This equation can be solved by previous methods. We thus conclude that we have a general method to determine
a particular solution to a linear non-homogeneous second order ODE, starting from the known solution of the
corresponding homogeneous equation.
Mathematics for Physics 3: Dynamics and Dierential Equations 64
Example: Solve
t2 y + ty 4y = t3 (189)
First we need a solution of the homogeneous equation
t2 y + ty 4y = 0
Let us try a solution of the form y = t . We have y = t1 and y = ( 1)t2 so the equation yields
( 1) + 4 = 0 = = 2
Thus the solutions of the homogeneous equations are t2 and t2 . To use DAlembert method we pick one of them,
say t2 , and write:
yP (t) = x(t)t2
Lets substitute this into the original non-homogeneous equation (189). We have:
or
xt + 5x = 1
which is can be readily reduced to a first order equation by defining v = x.
vt + 5v = 1
recovering x:
t t
1 1 t c1
x= v(t)dt = d = + c2
5 5(c )5 5 t4
and finally y = xt2 :
t3 c1
2 + c 2 t2
y(t) =
5 t
where we can identify the first term as a particular solution and the latter two as the solutions to the homogeneous
equation.
The unknown function y(x) is thus replaced by an infinite set of constant (x independent) coecients, namely its
derivatives about the point x = x0 . It should be noted that some care is needed in choosing the point about which
to expand. The series is not guaranteed to converge, and it often has a finite radius of convergence R, namely it
converges for |x x0 | < R.
Mathematics for Physics 3: Dynamics and Dierential Equations 65
Since it is always possible to first shift the independent variable, we can consider, with out loss of generality, a
Maclaurin series, i.e. The Taylor expansion about x = 0,
y(x) = ak xk = a0 + a1 x + a2 x2 + a3 x3 + , (191)
k=0
where we defined
y (k) (0)
ak . (192)
k!
The strategy will be to seek a solution of the ODE in the form of (191), i.e. an infinite polynomial. Obviously, if the
exact solution is a finite polynomial, we will readily find it this way (see example I below). But the method works
in a much wider class of problems. First, in some cases an approximation based on the first few orders is sucient.
Second, as we shall see, in certain cases it is possible to compute the coecients ak to all orders and then sum up
the series to obtain a closed form expression, an explicit solution for y(x). The latter will be our goal.
In order to translate the dierential equation into conditions on the coecients ak we need to expand out each
and every term in the equation so as to express the entire equation as a power series in the independent variable (x).
In particular we may have to expand:
Derivatives of the dependent variable y (n) (x), for example, the first derivative,
y (x) = a1 + 2a2 x + 3a3 x2 + = k ak xk1 = (k + 1) ak+1 xk , (193)
k=1 k=0
In each of these cases the first sum is obtained by dierentiating term by term (dierentiation is a linear
operation) while the second sum is obtained from the first by shifting the summation index such that the
power of x is restored.
products of derivatives of the dependent variable with functions of the independent variable. In general, the
equation may have terms such as g(x)y . To expand it in powers of x one may first expand g(x) and then
multiply this expansion, with the expansion of y . A simple example is
xy (x) = a1 x + 2a2 x2 + 3a3 x3 + = k a k xk , (195)
k=1
2
Non-linear terms such as (y(x)) :
k
2
n m
(y(x)) = an x am x = an akn xk (196)
n=0 m=0 k=0 n=0
It is easiest to learn the method by looking at specific examples. We consider two dierential equations in turn.
The first is a first order linear equation whose exact solution is a finite polynomial. The second is a more complicated
first order equation, whose exact solution is non-polynomial, and yet, it is simple enough to obtain by summing the
power series. An even more complicated example will be done in the next lecture.
All the examples we will study are simple, and may be solved by other methods. Yet they are useful to illustrate
the method.
k = 1 0a1 = 0 = a1 arbitrary
k = 2 a2 = 0 = a2 = 0 (197)
1
k = 3 2a3 = 1 = a3 = 2
k4 (k 1)ak = 0 = ak = 0
We therefore conclude that
1
y(x) = a1 x + x3
2
which is the exact general solution of the dierential equation considered. We observe that we got both the homo-
geneous part of the solution, with its arbitrary coecient (here expressed as a1 ), and the particular part.
k = 1 2a2 a1 = 0 = a2 = 12 a1 = 12 a0
(198)
k = 2 3a3 a2 = 1 = a3 = 13 a2 + 1
3 = 16 a0 + 1
3
1
k3 (k + 1)ak+1 ak = 0 = ak+1 = k+1 ak
We now obtained a typical situation for solution in a series: a recursion relation between coecients of dierent
order. We would like to solve this recursion to have an explicit expression for the general ak coecient. In our case
this is simple to do. In fact we can see the solution by computing a few more terms:
1 1 1 1
a4 = a0 + and a5 = a0 +
234 34 2345 345
so we can guess the solution, for any k 4:
a0 + 2
ak =
k!
so summing up the series we have:
3
x2 x3 xk x xk
y(x) = a0 1 + x + + + ... + + ... + 2 + ... + + ...
2 6 k! 6 k!
which we may write as:
x2 x3 xk x2
y(x) = (a0 + 2) 1 + x + + + ... + + ... 2 1 + x +
2 6 k! 2
and we observe that the first series simply sums up to an exponential:
x x2
y(x) = (a0 + 2)e 2 1 + x +
2
which is the final solution. We observe again that we got both the homogeneous part of the solution, with its arbitrary
coecient (here expressed as a0 + 2), and the particular part.