Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
99 views

Lecture 02 ODE02 Updated

The document discusses second order linear differential equations. It defines linear differential equations and their homogeneous and non-homogeneous forms. It describes the general solution process of finding the complementary solution to the homogeneous equation and adding a particular solution for non-homogeneous equations. Methods for solving second order linear differential equations with constant coefficients are presented, including the method of undetermined coefficients for non-homogeneous equations.

Uploaded by

hiyumi Hiyumi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views

Lecture 02 ODE02 Updated

The document discusses second order linear differential equations. It defines linear differential equations and their homogeneous and non-homogeneous forms. It describes the general solution process of finding the complementary solution to the homogeneous equation and adding a particular solution for non-homogeneous equations. Methods for solving second order linear differential equations with constant coefficients are presented, including the method of undetermined coefficients for non-homogeneous equations.

Uploaded by

hiyumi Hiyumi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

6 Second Order Linear Differential Equations

6.1 Linear Differential Equations


The general linear ODE of order n is defined by,

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].

6.2 Linear differential operators with constant coefficients


From now on, we will consider only the case where eq( 18) has constant coefficients. This type of ODE’s can be
written as,
dn y dn−1 y
+ a1 + ... + an (x)y = q(x) (19)
dxn dxn−1
Using the differentiation operator
di
Di := i ; i = 1, 2, ...n.
dx
We can write (19) in the form
(Dn + a1 Dn−1 + ... + an )y = q(x).
Now let, P (D) = Dn + a1 Dn−1 + ... + an .
Then,
P (D)y = q(x).
We call P (D) a polynomial differential operator with constant coefficients.

6.3 Homogeneous Linear Differential Equations of Second Order


Standard form:
d2 y dy
2
+a + by = 0,
dx dx
where a and b are constants. Consider the function

y = emx ,
d2 y
then dy
dx = memx and dx2 = m2 emx . Substituting values to equation,

m2 emx + amemx + bemx = 0. (20)


e mx
(m + am + b) = 0 as e
2 mx
6= 0, (21)
m + am + b = 0
2
(22)

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 ,

where A and B are constants.

Case II: Two roots are equal:


In the case of repeated double roots, emx and xemx are linearly independent, so general solution of the ODE is
given by
y = (Ax + B)emx .
Case III: If the two roots are complex conjugate roots:
e(p+iq)x and e(p−iq))x are solution of the differential equation. Then the general solution is given by,

y = Ae(p+iq)x + Be(p−iq)x (23)


= e (Ae
px iqx
+ Be −iqx
) (24)
= e (A(cos qx + i sin qx) + B(cos qx − i sin qx))
px
(25)
= e (C cos qx + D sin qx)
px
(26)

Example 6.1 Find the general solution


a. y 00 − y 0 − 12y = 0
b. y 00 − 4y = 0

c. 2y 00 − 5y − 3y = 0

6.4 Nonhomogeneous Linear Differential Equations of Second Order


Theorem 6.1 The general solution of the second order non homogeneous linear equation

y 00 + p1 (x)y 0 + p2 (x)y = f (x) (27)

can be expressed in the form


y = yc + yp
where yp is any specific function that satisfies the non homogeneous equation, and yc = c1 y1 + c2 y2 is a general
solution of the corresponding homogeneous equation

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.

Method of undetermined Coefficients

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

Example 6.2 Solve the ODE,


y 00 + 5y 0 + 6y = 9e−2x .

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.

Example 6.3 Solve the ODE’s,


a. y 00 + 2y 0 + y = 5e−x
b. y 00 − y 0 = 5t

Example 6.4 Find the solution,


a. y 00 − y 0 − 2y = 4x2
b. y 00 − 2y 0 − 3y = e2x
c. y 00 − 2y 0 − 3y = 2x2 + 4x − 7
d. y 00 − 2y 0 − 3y = −2 cos(2x)
e. y 00 − 2y 0 − 3y = 5x2 + 3x − 16 + 9e2x − sin x

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

otherwise, i.e. c1 = c2 = 0, the solution is independent.

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

and they are linearly independent.


c. Show that e2x and e3x are linearly independent solutions of

y 00 − 5y 0 + 6y = 0.

Find the solution y(x) with the property that y(0) = 0 and y 0 (0) = 1.

7.1 Variation of Parameters


By our work above, to find the general solution of (27) we needed to find:
• a linearly independent pair of solutions y1 , y2 of the homogeneous equation, and
• a particular solution yp
The method of variation of parameters uses a pair of linearly independent solutions of the homogeneous equation
to construct a particular solution of (27)

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

yp0 = uy10 + vy20

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)

Since y1 and y2 are solutions of homogeneous equation ,

y100 + py10 + qy1 = 0

and
y200 + py20 + qy2 = 0

10
and so
yp00 + pyp0 + qyp = y10 u0 + y20 v 0 .
The condition that yp should satisfy (27) is

y10 u0 + y20 v 0 = f (x). (32)

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

y1 (x)y20 (x) − y2 (x)y10 (x) = W (x)

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 ,

given e2x is one of the fundamental solutions

11

You might also like