Lecture 02 ODE02 Updated
Lecture 02 ODE02 Updated
dn y dn−1 y
+ p 1 (x) + ... + pn (x)y = q(x) (18)
dxn dxn−1
• If q(x) = 0, this equation is called homogeneous equation or reduced equation of [18].
• If q(x) 6= 0, this equation is called Nonhomogeneous.
The general solution to the associated homogeneous equation is called the complementary function/solution
or fundamental solution, and it has the form
yc = c1 y1 + ... + cn yn ,
where c0i s are constants, and yi0 s are, ith solutions of homogeneous equation, which are linearly independent (
i.e. c1 y1 + ... + cn yn = 0 => ∀c0i s = 0)
Once finding n independent solutions from the associated homogeneous equation the general solution to the
original ODE [18] can be expressed as,
y = yp + yc ,
where yp is called a particular solution to [18].
y = emx ,
d2 y
then dy
dx = memx and dx2 = m2 emx . Substituting values to equation,
This eq n (22) is called Auxiliary equation or Characteristic equation. Now, the general solution of ODE is de-
pends on the nature of the two roots of Characteristic equation.
7
Case I: Two distinct real roots:
If the roots are m1 and m2 , the general solution of the ODE is given by
y = Aem1 x + Bem2 x ,
c. 2y 00 − 5y − 3y = 0
y 00 + p1 (x)y 0 + p2 (x)y = 0.
The term yc = C1 y1 + C2 y2 is called the complementary solution (or the homogeneous solution) of the non
homogeneous equation. The term yp is called the particular solution (or the non homogeneous solution) of the
same equation.
We find yp (x) by substitution, and this substitution depends on the nature of f (x).
• If f (x) = k is a constant, we try to find a particular solution of the form yp = c where c is a (possibly)
different constant.
• If f (x) = kx, we try yp = ax + b where a and b are constants.
• If f (x) = kx2 , we try yp = ax2 + bx + c where a, b and c are constants. And so on. . .
• If f (x) = ksinx or kcosx, we try yp = asinx + bcosx.
• If f (x) = ekx we try yp = cekx . This works only if k is not a root of the auxiliary equation
8
Problem Solving: Method of undetermined coefficient
• Solve the complementary equation and write down the general solution.
• Based on the form of f (x) , make an initial guess for yp (x) .
• Check whether any term in the guess for yp (x) is a solution to the complementary equation. If so, multiply
the guess by x. Repeat this step until there are no terms in yp (x) that solve the complementary equation.
• Substitute yp (x) into the differential equation and equate like terms to find values for the unknown
coefficients in yp (x).
• Add the general solution to the complementary equation and the particular solution you just found to
obtain the general solution to the nonhomogeneous equation.
7 Wronskian
Consider differential equation
y 00 + P y 0 + Qy = 0 (28)
where P, Q are functions of x alone.
Definition 7.1 Two solutions u(x), v(x) of differential equation said to be linearly dependent, if there exist
constants c1 and c2 , not both zero, such that
c1 u(x) + c2 v(x) = 0
Definition 7.2 The Wronskian of two solutions u(x), v(x) of differential equation, is defined to be the deter-
minant,
u(x) v(x)
w(x) = 0 = u(x)v 0 (x) − v(x)u0 (x)
u (x) v 0 (x)
Theorem 7.1 The Wronskian of two solutions of the differential equation (28) is identically zero or never zero.
Again let u and v are solutions of the second order linear differential equation
y 00 + P (x)y 0 + Q(x)y = 0.
Then R R
− P (x)dx − P (x)dx
W (u, v) = ce = W (u, v)(x0 )e .
Theorem 7.2 The solutions of differential equation (28) are linearly dependent if and only if their Wronskian
vanish identically.
Example 7.1 a. Show that u = sin 3x and v = cos 3x linear independent solutions
y 00 + 9y = 0
9
b. Prove that sin 2x and cos 2x are solutions of
y 00 + 4y = 0
y 00 − 5y 0 + 6y = 0.
Find the solution y(x) with the property that y(0) = 0 and y 0 (0) = 1.
Now, let y1 (x) and y2 (x) be linearly independent solutions of the reduced equation
y 00 + p(x)y 0 + q(x)y = 0.
Then
y = C1 y1 (x) + C2 y2 (x)
is the general solution. We replace the arbitrary constants C1 and C2 by functions u = u(x) and v = v(x),
which are to be determined so that
yp (x) = u(x)y1 (x) + v(x)y2 (x)
is a particular solution of the nonhomogeneous equation (27). The replacement of the parameters C1 and C2
by the “variables” u and v is the basis for the term “variation of parameters.” Since there are two unknowns u
and v to be determined we shall impose two conditions on these unknowns. One condition is that yp (x) should
solve the differential equation (27). The second condition is at our disposal and we shall choose it in a manner
that will simplify our calculations.
Differentiating yp we get
yp0 = uy10 + y1 u0 + vy20 + y2 v 0
For our second condition on u and v, we set
y1 u0 + y2 v 0 = 0. (29)
This condition is chosen because it simplifies the first derivative yp0 and because it will lead to a simple pair of
equations in the unknowns u and v. With this condition the equation for yp0 becomes
and
yp00 = uy100 + y10 u0 + vy200 + y20 v 0
Now substitute yp , yp0 (given by (b)), and yp00 into the left side of equation (27. This gives,
yp00 + pyp0 + qyp = (uy100 + y10 u0 + vy200 + y20 v 0 ) + p(uy10 + vy20 ) + q(uy1 + vy2 ) (30)
= u(y100 + py10 + qy1 ) + v(y200 + py20 + qy2 ) + y10 u0 + y20 v 0 . (31)
and
y200 + py20 + qy2 = 0
10
and so
yp00 + pyp0 + qyp = y10 u0 + y20 v 0 .
The condition that yp should satisfy (27) is
Equations ( 29) and (32) constitute a system of two equations in the two unknowns u and v:
y1 u0 + y2 v 0 = 0 (33)
y10 u0 + y20 v 0 = f (x) (34)
Obviously this system involves u0 and v 0 not u and v, but if we can solve for u0 and v 0 ,then we can integrate to
find u and v. Solving for u0 and v 0 , we find that
y2 f
u0 =
y1 y20 − y2 y10
and
y1 f
v0 =
y1 y20 − y2 y10
We know that the denominators here are non-zero because the expression
is the Wronskian of y1 and y2 , and y1 , y2 are linearly independent solutions of the homogeneous equation. We
can now get u and v by integrating:
y2 (x)f (x)
Z
u=− dx
W (x)
and
y1 (x)f (x)
Z
v= dx.
W (x)
Finally
y2 (x)f (x) y1 (x)f (x)
Z Z
yp (x) = −y1 (x) dx + y2 (x) dx
W (x) W (x)
is a particular solution of the nonhomogeneous equation (27)
Example 7.1 Find a particular solution of the nonhomogeneous equation using Wronskian
y 00 − 5y 0 + 6y = 4e2x ,
11