Professional Documents
Culture Documents
Solution:
Note that the dependent variable y doesn’t appear explicitly in the
equation. Let v = y ' .
The initial condition y ' ( 0 ) = 1 is then v ( 0 ) = 1
1
Lecture Note Higher Order differential equations
1 1+ x
y= ln +2
2 1− x
Solution:
Note that the independent variable is missing from the equation. Let
dy dv d 2 y
v = ,v = 2
dx dy dx
When x = 0 , then y =1, v = −2 so v (1) = −2 . The initial value problem becomes
2
Lecture Note Higher Order differential equations
dv
v = v3 y , v (1) = −2
dy
Proceed by separation of variables, assuming that v ≠ 0 .
1
dv = ydy
v2
and anti-differentiate, getting
1 y2
− = + C1
v 2
Applying the initial condition, we get C1 = 0 , then
v = −2 / y 2
Thus
dy 2
=− 2
dx y
This can be solved by separation of variables.
∫ y dy = −2∫ dx
2
and anti-differentiation,
y3
= − 2 x + C2
3
1
The initial condition y ( 0 ) = 1 implies C2 = and the final result is
3
y3 1
= −2 x + or y = (1 − 6 x )
1/3
3 3
Definition
The function y1 ( x) , y2 ( x ) ,K , y n ( x ) are said to be linear independent is the
equation
C1 y1 + C2 y 2 + L + Cn yn = 0 for constants C1, K, Cn has only the trivial solution
C1 = C2 = L = Cn = 0 for all x in the interval I. Otherwise they are said to be
linearly dependent.
3
Lecture Note Higher Order differential equations
Example:
The function y1 = cos x and y2 = x are linearly independent for the only one way we
can have C1 cos x + C2 x = 0 for all x is for C1 and C2 both to be 0. However, the
functions y1 = 1, y2 = sin 2 x and y3 = cos2x are linear dependent, because
( )
C1 (1) + C2 sin 2 x + C3 ( cos2 x ) = 0 for C1 = 1, C2 = −2, C3 = −1 , which is not the trivial
solution.
Example:
The functions y1 = e− x , y2 = xe − x , y3 = e3x are solutions of a certain homogeneous
linear differential equation with constant coefficients. Show that these solutions are
linear independent.
Solution
−x −x 3x
e xe e
( −x
W e , xe , e
−x 3x
) = −e −x
(1 − x ) e − x 3e = 16e
3 x x
e− x ( x − 2) e − x 9e3 x
Hence the functions are linearly independent.
4
Lecture Note Higher Order differential equations
5
Lecture Note Higher Order differential equations
y = C1e( −3 2) x + C2 xe( −3 2) x
Since y ( 0 ) = 3 , we have
3 = C1e 0 + C2 ( 0 ) e0
C1 = 3
And because y′ ( 0 ) = −2 , we find y′ :
3 3
y′ = − C1e ( −3 2) x − C2 xe( −3 2) x + C2 e( −3 2) x
2 2
3 3
y′ ( 0 ) = − C1e 0 − C 2 ( 0 ) e 0 + C2e0
2 2
3
−2 = − C1 + C2
2
3 3 5
⇒ C2 = C1 − 2 = ( 3 ) − 2 =
2 2 2
Thus, the particular solution is
5 −3 2 x
y = 3e( ) + xe( )
−3 2 x
4 Reduction of Order
Reduction of order can be used to solve ay ′′ + by ′+ cy = f ( x ) given a solution y1 of
ay ′′ + by ′+ cy = 0 as follows:
1. Let y = vy1 and substitute into ay ′′ + by′+ cy = f
2. Differentiation and simplification lead to a second order linear equation in v
with the y term absent. Le t w = v′ to get the first-order equation
( ay1 ) w′ + ( 2ay1′ +by1 ) w = f
6
Lecture Note Higher Order differential equations
Example:
Given y1 = x is a solution of x 2 y ′′ − xy ′ + y = 0; x > 0 . Find the solution of
x 2 y ′′ − xy ′ + y = x 4 ; x > 0 (* )
Solution:
Let y = vy1 = vx and substitute into (* )
x 2 ( vx )′′ − x ( vx )′ + vx = x4
x 2 ( v ′′x + 2v′ ) − ( v′x + v ) + vx = x 4
or
x 3v′′ + x2 v′ = x4
Let w = v′ and divide by x 3 , we obtain
dw 1
+ w=x
dx x
dx
We find the integrating factor u ( x ) = e ∫ x = e ln x = x . So, we have
x3
( wx )′ = x 2 or wx =
+ C1
3
x2 C x2 C x3
w = + 1 , v′ = + 1 ⇒ v = + C1 ln x + C2
3 x 3 x 9
Hence the general solution is
x4
y = vy1 = + C1 x ln x + C2 x
9
5 Euler Equation
The Euler equation of order 2 is of the form
d2y dy
ax 2 2 + bx + cy = 0
dx dx
where a, b, c are constant and a ≠ 0 .
Euler's equation is also known as Cauchy-Euler's. With this kind of equation, we shall
consider the case where x > 0 only. We will try a way to solve
ax 2 y ′′ + bxy ′ + cy = 0 (* )
Substituting y = x into (* ) gives
r
7
Lecture Note Higher Order differential equations
ŸIf (** ) has a complex conjugate pair of roots α ± i β , then xα +iβ , xα − iβ will be
the solutions. It can be derived to get the general solution which is of the form
y = C1x α cos ( β ln x ) + C2 xα sin ( β ln x )
ŸIf (** ) has a repeated root, say, r1 then we will find the other solution by
reduction of order again.
ŒIf r1 ≠ r2 and r1, r2 are real, then the general solution is y = C1 xr1 + C2 x r2
•If r1 = α + i β , r2 = α − i β ; β ≠ 0 , then the general solution is
y = C1x α cos ( β ln x ) + C2 xα sin ( β ln x )
ŽIf r1 = r2 , then the general solution is y = C1x r1 + C2 x r1 ln x
d2y dy
Example: Find the general solution of 2 x 2 2
+ 7 x − 3 y = 0; x > 0
dx dx
Solution:
Substituting y = x r into the equation yields
2 r ( r − 1) + 7r − 3 = 0
( 2r −1)( r + 3 ) = 0
1
then r = , − 3 . Hence the general solution is y = C1x1 2 + C2 x−3
2
8
Lecture Note Higher Order differential equations
1 2
The polynomial ar 2 + ( b − a ) r + c is 9r 2 + 6r + 5 with the roots r = − ± i . The
3 3
general solution is thus
−1 3 2 −1 3 2
y = C1x cos ln x + C2 x sin ln x
3 3
Solution:
The polynomial ar 2 + ( b − a ) r + c = r 2 − 2r + 1 has repeated roots 1, 1. Thus the
general solution is
y = C1x ln x + C2 x , x > 0
Exercise:
Solve the 2nd order Euler's equation for x > 0
1/. x 2 y ′′ + xy ′ − y = 0 2/. x 2 y′′ + 3xy ′ + y = 0 3/. 4 x 2 y ′′ + 8 xy′ + y = 0
4/. x 2 y ′′ + 4 xy′ + 2 y = 0, y (1) = 1, y′ (1) = 0
9
Lecture Note Higher Order differential equations
y′p = A0 + 2 A1 x + 3 A2 x 2
y′′p = 2 A1 + 6 A2 x
Substituting these into the Eq. gives
2 A1 + 6 A2 x − 3 ( A0 + 2 A1 x + 3 A2 x 2 ) = 2 x 2 + 1
2 A1 + 6 A2 x − 3 A0 − 6 A1 x − 9 A2 x 2 = 2 x 2 + 1
Equating coefficients of like powers of x,
1: 2 A1 − 3A0 = 1
x: 6 A2 − 6 A1 = 0
x2 : −9 A2 = 2
2 2 13
We get A2 = − , A1 = − , A0 = − . Thus the particular solution is
9 9 27
13 2 2
yp = − x − x 2 − x3
27 9 9
and the general solution is
13 2 2
y = y p + yh = − x − x 2 − x 3 + c1 + c2e 3x
27 9 9
•If f ( x ) is of the form of Eeα x , then y p has the form of x k Aeα x , where k is
the multiplicity of the root α of the characteristic equation.
( Ae )′′ − 5 ( Ae )′ − 6 ( Ae ) = 4e
2x 2x 2x 2x
10
Lecture Note Higher Order differential equations
Solution:
The characteristic equation is r 2 − r = 0 which has the roots 0 , 1 .
So yh = c1 + c2 e x . Here f ( x ) = ( x 3 + x )+ (1− 2 x ) e x . The first term is a third-degree
polynomial. Since 0 is a root of multiplicity 1 of the characteristic equation, y p must
include a term of the form x k ( A0 + A1 x + A2 x 2 + A3 x 3 ) with k = 1 .
Solution:
The characteristic equation is r 2 − 2r + 1 = 0 which has root 1 of multiplicity 2.
Thus yh = c1e x + c2 xe x .
Here f ( x ) has the form p (x ) e α x where p ( x ) = 7 x is a first-degree polynomial
and α = 1 . Since α = 1 is a root of multiplicity 2, we obtain k = 2 . So the form for y p is
x 2 ( A0 + A1 x ) e x
•Case 4: If f ( x ) = E1 cos β x + E2 sin β x , where at least one of the constants
E1, E2 is nonzero, then y p has the form x k ( A0 cos β x + B0 sin β x ) where k is the
multiplicity of β i as a root of the characteristic equation.
11
Lecture Note Higher Order differential equations
Solution:
The characteristic equation is r 2 + 4 = 0 with the roots ±2i .
So yh = c1 cos2 x + c2 sin2x . f ( x ) = sin2x , that is β = 2 . Since 2i is a roots of the
characteristic equation of multiplicity 1, we have k = 1 .
Hence
y p = x ( A0 cos2 x + B0 sin2x )
Solution:
The characteristic equation is r 2 + 4 = 0 which has the roots ±2i .
So
yh = c1 cos2 x + c2 sin2x .
Here f ( x ) = x 2 cos2 x − x sin2 x + sin2 x = x 2 cos2x + ( 1− x ) sin2x , that is, it has the
form of
p ( x ) cos β x + q ( x ) sin β x
where p ( x ) = x 2 is a second-degree polynomial and q ( x ) = 1 − x is a 1st degree
polynomial, and β = 2 . Since 2i is a root of the characteristic equation of multiplicity
1, we obtain k = 1 . Hence
( ) ( )
y p = x A1 + A2 x + A3 x 2 cos2 x + A4 + A5 x + A6 x 2 sin2x
12
Lecture Note Higher Order differential equations
2. Eeα x x k Aeα x α
3. p (x ) e α x , p ( x ) is an
mth-degree polynomial
(
x k A0 + A1x + L + Am x m eα x ) α
where p ( x ) is an mth-degree (
x k B0 + B1x + L + Bs x s sin β x) βi
polynomial and q ( x ) is nth - s is larger of m, n
degree polynomial
6. E1eα x cos β x + E2eα x sin β x x k eα x ( A0 cos β x + B0 sin β x ) α + βi
Solution:
The characteristic equation is r 2 + 2r + 2 = 0 which has roots −1 ± i
Here f ( x ) is the some of 3 groups of terms
e − x cos2 x + e − x sin2x : since −1 + 2i is not a root, we include
A0e − x cos2 x + B0e − x s i n 2x (by case 6)
e−x : Since −1 is not a root, we include A2 e− x
−3cos x : since i is not a root, we include
A1 cos x + B1 sin x
Hence
y p = A0e− x cos2 x + B0 e− x sin2 x + A1 cos x + B1 sin x + A2e − x
7 Variations of Parameters
This method can be used to seek for the particular solution of nth-order equation
an ( x ) y ( n) + an−1 ( x ) y ( n−1) + L + a0 ( x ) y = f ( x ) where y1 , y2 ,K , yn are n linearly
independent solution of the homogeneous equation are known, we seek a solution of
the form y p = v1 ( x ) y1 ( x ) + v2 ( x ) y2 ( x ) + L + vn ( x ) y n ( x )
13
Lecture Note Higher Order differential equations
To find vi ( i = 1,..., n ) , first solve the following linear equations simultaneously for v′i :
v1′ y1 + v′2 y2 + L + v′n yn = 0
′ ′
v1 y1 + v′2 y′2 + L + v′n y′n = 0
M M M M
v′ y ( n −2 ) (
+ v2′ y2
n −2 )
+ + vn′ yn
( n −2 )
= 0
1 1
v′ y ( n −1) +
( n −1)
v2′ y2 + + vn′ yn( )
n −1
= f ( x) an ( x)
1 1
Then integrate each v′i to obtain vi , disregarding all constants of integration. This is
permissible because we are seeking only one particular solution.
Example:
1. For the special case n = 1 , the system reduces to
v1′ y1 = f ( x ) a1 ( x )
2. For the case n=2, it becomes
v1′ y1 + v2′ y2 = 0
′ ′
v1 y1 + v2′ y′2 = f ( x) a2 ( x)
3. For the case n=3:
v1′ y1 + v2′ y2 + v3′ y3 = 0
v1′ y1′ + v2′ y2′ + v3′ y3′ = 0
v′ y ′′ + v′ y′′ + v′ y′′ = f ( x) a ( x )
1 1 2 2 3 3 3
As a practical matter, the integration for v′i may be impossible to perform. In such an
event, other methods must be employed.
ex
Example1: Solve y′′ − 2 y′ + y =
x
Solution:
Here n=2 and yh = c1e x + c2 xe x ; and hence y p = v1e x + v2 xe x
Since y1 = e x , y2 = xe x and f ( x ) = e x x , it follows that
v1′e x + v2′ xe x = 0
x
v1′e + v1′ e + xe
x x
= ( ex
x
)
By solving the system, we obtain v1′ = −1 and v2′ = 1 x . Thus,
14
Lecture Note Higher Order differential equations
∫ ∫ ∫ ∫
dx
v1 = v1′d x = − dx = − x v2 = v′2 dx = = ln x
x
Hence is y p = − xe x + xe x ln x . The general solution is therefore
y = yh + y p = c1e x + c2 xe x − xe x + xe x ln x
= c1e x + c3 xe x + xe x ln x , ( c3 = c2 − 1)
15