Professional Documents
Culture Documents
E’s)
* Intruduction:
Definition: A differential equation is an equation that contains one or
several derivatives of an unknown function y (x) or f (x ) with one or more
independent variables.
The D.E’s can be classified as follows
1- Type:
a) Ordinary D.E’s (ODE’s): if the unknown function with one
independent variable, such as y f (x) here y is dependent and x is
independent, because x can take any value within its domain and the
value of y depends on x by its value, i.e. give me a value of x to get a
value of y . Therefore, to find the derivative in this case we write
dy
f (x) , that is we differentiate the dependent with respect to
dx
independent.
b) Partial D.E’s (PDE’s): if the unknown function with two or more
independent variable, such as z f ( x, y ) here x and y are independent
and z is dependent. Therefore, to find the derivative we find it with
z z
respect to x or y , i.e. or .
x y
dny d n 1 y d2y dy
p n ( x) n
p n 1 ( x ) n 1
p 2 ( x ) 2
p1 ( x) p0 ( x) y R( x).
dx dx dx dx
- in front of y (the dependent) and its derivatives, pure functions of x (the
independent) only.
- y and its derivatives are all to the first power.
Ex: Classify the following D.E’s
1- e x y y x 3 y y sin( x 2 ) . 3 rd order, 1st degree and linear.
2- xy yy y 3 . 2 nd order, 1st degree and nonlinear.
3- xy x 2 y y y . 2 nd order, 1st degree and linear.
There are two types of solution of an n th order OD.E. one of them is called
the general solution (g.s.) which is an expression for the dependent variable
in terms of the independent one and satisfies the relation that includes all
possible solutions and includes n arbitrary constants. For example, the g.s. of
(1) is of the form y h( x) c , i.e. contains one arbitrary constant c because it
is of order one. The other solution is called the particular solution (p.s.)
which is a solution obtained from the general solution by assigning specific
values to the arbitrary constants using what are called initial values or initial
conditions associated with the given D.E. For example, to find the p.s. of (1)
we need only one initial condition in the form y ( x0 ) y 0 to find a specific
value of c, i.e the D.E. of the form
y f ( x, y ) , y ( x 0 ) y 0 is called initial value problem ( I.V.P.).
Prof. Jafar Al-Omari
Lecture 2: Differential Equations (D.E’s)
* Types of First order D.E’s:
There are different types of first order D.E’s we will study some of them in
this course.
1- Separable D.E’s :
If the right hand side (R.H.S.) of equation (1) i.e. y f ( x, y ) can be written
as a product of two continues functions one with respect to x ( g (x) ) and the
other with respect to y (h( y )) , that is can be written in the form
f ( x, y ) g ( x)h( y ) . In this case the given D.E. becomes y g ( x)h( y ) we call
this equation separable D.E. To solve this type of D.E’s we do the following
dy 1
g ( x)h( y ) dy g ( x)h( y )dx dy g ( x)dx .
dx h( y )
Note that there is only function of x with dx and only function of y with dy .
Therefore, to find the solution we must integrate both sides of the last
equation, i.e.
1 1
dy g ( x)dx dy g ( x)dx .
h( y ) h( y )
Solution: Note that when I asked you to solve a D.E. this means that I am
asking you to find the general solution. To solve the given D.E. we do the
same procedures we have done above.
dy y y 1 1 1 1
dy dx dy dx dy dx ln y ln x c
dx x x y x y x
y y
ln y ln x c ln c e c c y cx .
x x
Solution: Note that I am asking you in this example to solve the I.V.P. which
means you have to find the particular solution.
dy 1 y 2 1 y2 1 1 1 1
dy dx dy dx dy dx
dx 1 x2 1 x2 1 y 2
1 x2 1 y 2
1 x2
tan 1 y sin 1 x c ,
this is the g.s. but we have to apply the given initial condition on the g.s. to
get a specific value of c in order to have the p.s. that is, we substitute in the
g.s. instead of x by 1 instead of y by 0, i.e.
tan 1 0 sin 1 1 c 0 cc .
2 2
Therefore, the p.s. is tan 1 y sin 1 x y tan sin 1 x .
2 2
x2 y y x2 1
Ex 3: Solve the I.V.P. y , y (0) 1 .
x2 1
Solution:
dy x 2 y y x 2 1 dy y ( x 2 1) x 2 1 dy x 2 1 y 1 dy
y 1
dx x 1
2
dx x 1
2
dx x 1
2
dx
1
dy dx ln( y 1) x c y 1 e x c e x e c ce x y ce x 1 , g.s.
y 1
substitute these equations into the given D.E. which will reduce it to
separable D.E. as follows
y du 1 dx 1
y g u xu g (u ) xu g (u ) u x g (u ) u
x dx x du g (u ) u
1 1
dx du .
x g (u ) u
The last D.E. is separable between x and u which can be solved as we have
discussed in type (1).
Definition: A function f ( x, y ) is called homogeneous of degree n if it can be
written in the form
f (tx, ty) t n f ( x, y ), t 0 .
Note that there is a common factor t 3 in all terms and the remaining part is
the original function. Therefore, it is homog. of degree 3.
2- f ( x, y) x 2 y 2 4 f (tx, ty) t 2 x 2 t 2 y 2 4 . Note that there is no
common factor in all terms in terms of t, thus it is nonhomog.
3- f ( x, y ) 3x y f (tx, ty) 3tx ty t (3x y ) 3x y f ( x, y ) . Homog. of
x y tx ty t ( x y) x y
degree zero.
* Any D.E. of the form M ( x, y)dx N ( x, y)dy 0 is called homog. if M ( x, y )
and N ( x, y ) are two homog. functions of the same degree, and its solution
y
can be found by letting u .
x
1 2u
dx 2 du ln x ln(u 2 1) c ln x ln(u 2 1) c
x u 1
y2 y2
ln( x(u 2 1) c x(u 2 1) e c c x ( 2 ) 1 c x c
x x
y2
c x y 2 cx x 2 . The g.s.
x
y
y 2 x sin 2
Ex 2: Solve y x y 2 sin 2 y .
x x x
x 2 xy y 2 y 4x
4- xy y x 2 y 2 , x 0 5- y , y (1) 1 6- y
x2 x y
where a and b are constants, that is f ( x, y ) g (ax by) . In this case the given
D.E. becomes y g (ax by) . Then the substitution
1
z ax by z a by y ( z a ) , will transform it to separable one as
b
follows
1 dz
y g (ax by) ( z a ) g ( z ) z a bg ( z ) z bg ( z ) a bg ( z ) a
b dx
1
dz dx .
bg ( z ) a
Solution: As you notice the given D.E. is not separable and nonhomog..
Thus to find the solution we let z x y z 1 y y z 1
and then we substitute these equations into the given D.E. we have
dz 1
y ( x y ) z 1 z z z 1 1 z dz dx
dx 1 z
1
dz dx ln(1 z ) x c ln(1 z ) x c 1 z e x c ce x
1 z
1 sin z 1 sin z
2
dz x c 2
dz dz x c sec2 zdz sec z tan zdz x c
cos z cos z cos2 z
tan z sec z x c tan( x y ) sec(x y ) x c .
F F
2- Find N ( x, y ) or M ( x, y ) .
y x
F 1 3
Now find 2 x g ( y ) N ( x, y ) 2 x y 2 g ( y ) y 2 g ( y ) y . Thus
y 3
1 2 1
the g.s. is x 2 xy y 3 c 3 x 2 12xy 2 y 3 c
2 3
F
cos(x y ) g ( y ) N ( x, y ) 2 y 3 y 2 cos(x y ) g ( y ) 2 y 3 y 2
y
F ( x, y) xe xy 6 xy 2 2 y dy g ( x) e xy 2 xy 3 y 2 g ( x) , Now find
F
ye xy 2 y 3 g ( x) M ( x, y ) ye xy 2 y 3 g ( x) 0 g ( x) c1 .
x
e or exp f ( x)dx.
f ( x ) dx
1 P Q
2- If f ( y) ( a function of y only), then the integrating factor
P y x
e
f ( y ) dy
or exp f ( y)dy .
Prof. Jafar Al-Omari
Lecture 6: Differential Equations (D.E’s)
4- Not Exact D.E’s. ( Integrating Factors)
P Q
We say that the D.E. P( x, y )dx Q( x, y )dy 0 is not exact if . Then
y x
to solve this type of equations we have to find first something called the
integrating factor denoted by (Mu) and then multiply it by the given D.E.
which convert it to exact D.E. Thus our problem now is how to find .
* How to find the integrating Factors ( ):
There are different methods to find some of these methods are
1 P Q
1- If f ( x) ( a function of x only), then the integrating factor
Q y x
e or exp f ( x)dx.
f ( x ) dx
1 P Q
2- If f ( y) ( a function of y only), then the integrating factor
P y x
e
f ( y ) dy
or exp f ( y)dy .
Ex 1: Solve (2 x 2 y)dx ( x 2 y x)dy 0 .
Solution: This equation is not separable, nonhomog. and not transform
to separable form, therefore we have to check if it is exact or not. Note that
P Q
1 and 2 xy 1 . So it is not exact, therefore we have to find the
y x
e x dx
dx 2 2
x
e e 2 ln x e ln x
Thus to continue the solution we x 2 .
multiply this by the given D.E. which must become exact, as follows
(2 yx 2 )dx ( y x 1 )dy 0 , in this case
M
x 2 and N x 2 . So it becomes exact, therefore let
y x
F 1 1 1
g ( y ) N ( x, y ) y g ( y ) y g ( y ) y 2
y x x 2
P Q
exact, therefore, we find first 12x 2 y 3 2 x 6 x 2 y 3 2 x 6 x 2 y 3 4 x ,
y x
1 P Q 2(3x 2 y 3 2 x) 2
now,
1
P y x (3x 2 y 4 2 xy)
6 x 2 3
y 4 x ,( a function
y (3x 2 y 3 2 x) y
e
dx
e x . Continue the solution.
3- dy 2 y
2y
3 dx 0 . 4- ( x 2) sin ydx x cos ydy 0
x
M N
M ( x, y ) P( x) y Q( x) , N ( x, y ) 1 , thus P (x) , 0 so it is not
y x
M N
exact, therefore, we have to find as follows P(x) , thus
y x
M N P ( x)
yields to e
1
P ( x ) dx
P ( x) , this . By continuing the
N y x 1
solution we find that the general solution of linear D.E. is of the form
1
y ( Q( x)dx c)
1 2y
Ex 1: Solve y 2 x cos x, x 0 .
x x
Ex 2: Solve x 2 y 2 xy x 1 0, y(1) 0 .
2 x 1 2
2
dx
Solution: y y 2 , P ( x ) , then e x e 2 ln x e ln x x 2 .
2
x x x
Therefore, the g.s. is
1 x 1 1 1 1
y x dx c x 2 ( x 1) dx c x 2 x 2 x c cx 2 .
2
x2 2 2 x
2
x
1 1 1 1 1
Now to find the p.s. 0 1 c c . Thus, the p.s. is y x 2 .
2 2 2 x 2
e
3 tan xdx
e 3 ln cos x e ln cos cos3 x
3
x
1
cos3 x (cos x sin 2 x cos x) dx c cos3 x sin x sin 3 x c .
3
1
Solution: This equation is nonlinear (Bernoulli’s equation), note that n
2
1
so we let u y1n y 2 and then after some steps we have a linear D.E.
1 1 2 1
2
1 1 1 1 1 1
x2 x2 x2 x2 x2 x2
the g.s. is u e 4 ( 2e 4 e 4 dx c) e 4 ( 2dx c) 2 xe 4 ce 4 . Therefore
2
1 2
x
1 2
x 1 2
x
1 2
x
y 2 xe 4
ce 4
y 2 xe 4
ce 4 .
5 2 3 5 3
Ex 2: Solve x 2 y 5 x 2 y x y y 5 y y .
2 2
1 1 2ce 10 x 2
y 2 ce 10 x y2
2 2 1 2ce 10 x
1 1 3 3
Exercises: 1- Solve y y y .
2 2x x
an n e x an1n1e x a2 2 e x a1e x a0 e x 0
b
The general rule of finding the roots of the squared equ. is x .
2a
2 4 40 2 36 2 6i
The roots of x 2 2 x 10 0 are x 1 3i .
2 2 2
y c1e 1x c2 e 2 x cn e n x .
must be one of the divisor of the number 2 and these numbers are 1,2 .
Then by experimenting, substitute one of these numbers into the
characteristic equation to find that the number 1 satisfies it. Then we will
have ( 1)( 3 2) 0 ( 1)( 1)( 2) 0 1,1,2 .
2
Therefore, we have three solutions and since the three roots are distinct
x 2 x
then we have to use case 1 above, i.e. y1 e , y2 e , y3 e . Then the
x
2 c1 cos 2( ) c2 sin 2( ) 2 c1 cos( ) c1 c1 2 and
2 2
Note that there are 3 roots 1,2 3i , which means there are 3 solutions
y1 e x , y2 e2 x cos3x, y3 e2 x sin 3x then the g.s. is
y 2 y 5 y 0 .
Exercises:
1- Solve y y 4 y 4 y 0
3- Solve y 9 y 0
( 4)
dx , where h( x) e
h( x ) p ( x ) dx
y 2 y1 2 . Note that the given DE is H.L.D.E.
( y1 )
with variable coefficients. Note that the coefficient of y ' ' must be one.
x2 1 1
y2 x 2 dx x (1 x 2 )dx x( x ) x 2 1 , then the G.S. is
x x
y c1 x c2 ( x 2 1) .
Ex: Find the second solution for x 2 y xy y 0 , such that y x is
a solution.
Solution: we divide the given equation by x2 we have
1
1
x dx
1 1
y y 2 y 0 , then p( x) , thus h( x) e e ln x x ,
x x x
x 1
y2 x dx x dx x ln x
x2 x
y m(m 1)(m 2) x m3 . Now if we substitute these values into equation (1)
we get
a3m(m 1)(m 2) x m a2 m(m 1) x m a1mx m a0 x m 0
Then the three roots are m 1,3,2 and the three solutions are
2 2
1 و 2. Therefore, the two solutions are y1 x 1 cos( 2 ln x)
كذلك نعوض عنm(m 1)(m 2) m3 3m 2 2m بx 3 y الحظ اننا كنا نعوض عن
لذلك بما انه لدينا معادله تربيعيه يجب. m بxy ونعوض غنm(m 1) m 2 m بx 2 y
لذلك نقوم بما يلي. m 2 m ان يكون لدينا
m 2 6m 13 0 m 2 m 5m 13 0 x 2 y 5 xy 13y 0 .
m3 2m 2 m 2 0 m3 3m 2 2m 5m 2 3m 2 0 x 3 y 5m 2 3m 2 0
Ex: If the g.s. of a D.E. is y c1e x c2e2 x cos3x c3e2 x sin 3x . Find the D.E.
Solution: The DE we are looking for is with constant coefficients where the
roots are 1,2 3i . Then
( 1)[( 2) 2 9] 0 ( 1)(2 4 13) 0 3 32 9 13 0 ,
1- pn( ( x), pn1 ( x),..., p1 ( x), p0 ( x) and R(x) are all continuous in an
open interval, say I (a, b) .
2- p n ( x) 0 for all x (a, b) .
3- x0 I (a, b) . Then there exists a unique solution of (1).
Revision of Functions continuity:
1- Polynomial functions are continuous every where, i.e. on
(, ) .
2- Rational functions are continuous every where except
where the denominator equals zero. Such as
sin x
a) tan x continuous except where
cos x
3 n
cos x 0 x , ,... , that is x , n 1,3,5,...
2 2 2
cos x
b) cot x continuous except where x n , n 0,1,2,3,...
sin x
x 1
c) 2 continuous except where x 2,2 , and so on.
x 4
3- Radical Functions in the form n f ( x) if n is even then
is continuous if f ( x) 0 , but if n is odd then it is
continuous every where. For example
a) x 3 is continuous when ( x 3) 0 x 3 .
b) 3 x 2 1 is continuous on x (, )
c) x 2 1 is continuous on x (, ) , because x 2 1 0 for
all values of x .
4- Any functions of the form ln( f ( x)) is continuous where
f ( x) 0 . For example
a) ln( x 3) is continuous where ( x 3) 0 x 3 .
b) ln( x 2) is continuous where ( x 2) 0 x 2.
5- Any function of the form sin( f ( x)), cos( f ( x)), e f ( x ) are
continuous when f (x ) is continuous. For example
a) sin( x ) is continuous when x continuous, that is when
x 0.
b) e x 3 is continuous every where since x 3 is a polynomial.
x
Solution: 1- p 2 ( x) x 2 4, p1 ( x) , p 0 ( x) sin x, R( x) x . Note that
x 9
2
x
p1 ( x ) is discontinuous when x 3 .
x 92
2- p 2 ( x) x 2 4 0 when x 2 . 3- x0 1 (2,2)
Xₒ Xₒ Xₒ
2.5
Exercises: Find the largest possible interval in which the following D.E.
have a unique solution
1- ( x 2) y ' '( x 1) y ' cot(x) y ln( x 5) . x0 1, x0 4, x0 2
The general solution of equ. (1) contains two parts the first one is the
complementary solution denoted by y c , which is the general solution of the
homogeneous part of equ.(1) , i.e. it contains n arbitrary constants and n
distinct solutions. That is, it is of the form
yc c1 y1 c2 y2 cn yn
(Note that this solution is the general solution we have had when we solve
n th order H.L.D.E. with constant coefficients, which was denoted by y , but
here we give it another symbol to distinguish it from another solution).
The other solution is any particular solution that satisfies equ.(1) and
denoted by y p which contains no arbitrary constants. Thus the general
solution of equ.(1) is y yc y p
Ex: Assume that the g.s. of a D.E. is y c1e x c2e x 2 x 3 . Find the DE.
Solution: Note that the given g.s. contains two parts and you have to
distinguish between y c ; the solution of the homogeneous part; and y p ,
where y c contains the arbitrary constant c1 ,c2 , i.e. yc c1e x c2 e x and the
particular solution must be y p 2x 3 . From y c we can find the roots of the
characteristic equation of the homogeneous part of the DE we want to find,
and these roots are 1,1 . Then
( 1)( 1) 0 2 1 0 y y 0 . Now we want to find R(x) . Since we
know that y p 2x 3 satisfies y y R(x) , then we find yp 2 yp 0
we substitute these values in y y R(x) to get
0 (2 x 3) R( x) R( x) 2 x 3 . Therefore, the DE we are looking for is
y y 2 x 3 .
Exercise: 1- Assume that the G.S. of a DE is y c1e2 x c2 xe2 x x 2 1 . Find the
D.E.
2- Assume that the G.S. of a DE is y c1 x c2 x 3 2 x 2 . Find the DE.
* How to Find y p : There are different methods to find y p some of them are
following functions:
(a) - Exponential functions, i.e. R( x) eax
(b)- Polynomial functions, i.e. R( x) bn xn bn 1xn 1 b0
𝑐𝑜𝑠𝑏𝑥
(c)- }
𝑠𝑖𝑛𝑏𝑥
(d)- Any linear combination (product) of two or more functions from
(a),(b),(c).
Before we use this method we have to know the following facts
3e 2 x 2 , 3xe2 x 2,2 , 3x 2e 2 x 4e 2 x (3x 2 4)e 2 x 2,2,2
2 x 2 4 cos3x 0,0,0,3i
information we need:
1- The determinant of matrices A22 and A33 are defined as
a b
A ad bc .
c d
2 4
EX: A 2 3 1 4 10 .
1 3
2 1 3
3 1 2 1 2 3
A 2 3 1 2 1 3 2(12) (8 1) 3(3) 6 .
0 4 1 4 1 0
1 0 4
1- find yc c1 y1 c2 y2 cn yn
2- find
n
R ( x )Wm ( x) R ( x )W1 R ( x)W2 R ( x )Wn
y p ym dx y1 dx y2 dx yn dx ,
m 1 W ( x) W W W
y1 y2 0 y2 y 0
W ( x) y1 y2 y2 y1 and W1 ( x) y2 , W2 ( x) 1 y1 .
y1 y2 1 y2 y1 1
1 cos x sin x
sin x cos x
W ( x) 0 sin x cos x (1) 1
cos x sin x
0 cos x sin x
0 cos x sin x
cos x sin x
W1 ( x) 0 sin x cos x (1) 1,
sin x cos x
1 cos x sin x
1 0 sin x
0 cos x
W2 ( x) 0 0 cos x (1) cos x .
1 sin x
0 1 sin x
1 cos x 0
sin x 0
W3 ( x) 0 sin x 0 (1) sin x .
cos x 1
0 cos x 1
x x ln x
W ( x) x x ln x x ln x x , W1 ( x) x ln x , W2 ( x) x ,
1 (1 ln x)
2 x ln x 1 2x 1
u1 2
dx 2 ln xdx (ln x) 2 , u2 2 dx 2 dx 2 ln x
x x x x
1
* ( f ( x))
n
f ( x)dx ( f ( x))n 1 c * e f ( x ) f ( x)dx e f ( x ) c
n 1
f ( x)
* f ( x)
dx ln( f ( x)) c .
a (x x )
n 0
n 0
n
a0 a1 ( x x0 ) a2 ( x x0 ) 2
a x
n0
n
n
a0 a1 x a2 x 2 a3 x 3
Now, if f ( x) an x n , then f ( x ) nan x n 1 f ( x ) n( n 1) an x n 2 .
n0 n 1 n2
a n n 1
Also, f ( x) dx a n x dx a n x dx x , we have used the fact
n n
n 0 n 0 n 0 n 1
functions.
Ex: Find MS for the following functions
1- e x 1 ( x)n (1) x n . 2- e x 1 ( x 2 ) n 1 x 2 n
n
2
n 0 n! n 0 n! n0 n! n0 n!
3- e x 1 ( x 2 )n (1) x 2 n .
n
2
n 0 n! n 0 n!
1
Solution: f (0) 1 , f ( x) f (0) 1 ,
(1 x) 2
2(1 x) 2 6(1 x) 2 6
f ( x) f
( 0) 2 , f
( x ) f (0) 6 ,
(1 x) 4
(1 x) 3
(1 x) 6
(1 x) 4
Then f ( x) 1 1 x x 2 x 3 x n x n . (Standard)
1 x n 0
Ex: Find the MS of 1- f ( x) 1 1
( x) n ( 1) n x n .
1 x 1 ( x) n 0 n0
1 x n 1 xn
xn
2- f ( x) 1 1
( ) n n 1 .
2 x x
2(1 ) 2 n0 2 2 n0 2 n0 2
2
1
3- f ( x)
1 x2 n 0
( x 2 n
)
n0
x2n .
(1) n
(1) n
sin x 2 ( x 2 )( 2 n 1) x4n 2 .
n 0 ( 2n 1)! n 0 ( 2n 1)!
2- Find y, y, y,... according to the order of the given DE, where
y nan x n 1 y n( n 1) an x n 2 and so on.
n 1 n2
Solution: Note that this is first order separable DE , thus we can solve it
as follows
dy 1
2 xy dy 2 xdx ln y x 2 c y e x c e x ec ce x .
2 2 2
dx y
Now, to solve it using power series we let y an x n be the g.s., then
n0
y nan x n 1 , substitute into the DE, we have,
n 1
nan x n 1 2 x an x n 0
n 1 n0
nan x n 1 2an x n 1 0 .
n 1 n0
Here we have sum of two series, but we want to make them one series using
the fact
an bn an bn
n 0 n0 n0
So we want first make the power of x in the two series the same, that is we
have to assume that m n 1 and m n 1 , which means that n m 1 in the
first series and n m 1 in the second one. Therefore, we have
(m 1)a
m0
m 1 x m 2am 1 x m 0 .
m 1
We must now make the indices of the two series the same. We substitute
m 0 in the first series and it will already be started from m 1 . This means
that a1 ( m 1) am 1 x m 2am 1 x m 0 a1 0 , and
m 1 m 1
2am 1
( m 1)am 1 2am 1 0 am 1 m 1 . This is called the recurrence
m 1
relation. Now, from the recurrence relation we can find the values of
2a0 2a1
a2 , a3 , a4 ,... That is, m 1 a2 a0 , m 2 a3 0,
2 3
2a2 2a0 1
m 3 a4 a0 and so on, where we will have
4 4 2
1
a5 0, a6 a0 ,… We get the g.s.
6
a0 4 a0 6
y an x n a0 a1 x a2 x 2 a3 x 3 a0 a0 x 2 x x
n0 2 6
(1) n 2 n
a0 x a0e x
2
.
n 0 n!
This is the same result we have had at the beginning of the solution.
Ex: Solve y xy ( x 2 2) y 0 .
Solution: Note that this DE is with variable coefficients and not Cauchy-
Euler DE, thus we must use power series solution. Let the general solution
be y an x n a0 a1 x a2 x 2 a3 x 3 , then
n0
y nan x n 1 y n( n 1) a n x n 2 .
n 1 n2
Substitute into the DE y xy x 2 y 2 y 0 we have
n(n 1)a x
n2
n
n2
nan x n an x n 2 2an x n 0
n 1 n0 n0
(m 2)(m 1)a
m2
m2 x m mam x m am 2 x m 2am x m 0 .
m2 m2 m2
Now we equate the coefficients from the left side with their corresponding
from the right side. That is,
1
(2)(1)a2 2a0 0 a2 a0 . (3)(2)a3 3a1 0 a3 a1 . Also,
2
(m 2)am am 2
(m 2)(m 1)am 2 (m 2)am am 2 0 am 2 m 2 .
(m 2)(m 1)
This is called the recurrence relation. Now, from the recurrence relation we
can find the values of a4 , a5 , a6 ,... That is,
5
4a2 a0 4a0 a0 1 a a1
5a3 a1 2 1 3
m 2 a4 a0 , m 3 a5 a1
(4)(3) 12 4 20 20 40
The general solution is
a1 3 a0 4 3a1 5
y an x n a0 a1 x a2 x 2 a3 x 3 a0 a1 x a0 x 2 x x x
n0 2 4 40
1 4 1 3 5
a0 (1 x 2 x ) a1 ( x x 3 x ) a0 y1 a1 y2 .
4 2 40
Exercises:
1- solve y xy y 0
2- solve y 4 y 0 using power series.
3- If the general solution of a D.E., using the power series solution, is
y a 0 (1) n (3 x) n a1 x n , then this solution can be represented as y
n o n 0
1 2 2 1 4 8 3 6 1 2 2 3 1 5
,
1 3 3 2 1 11 5 7 1 3 3 5 4 2
x(t ) a a12
where X (t ) , A 11 which is called the coefficients matrix
y (t ) a21 a22
b1 (t )
and B(t ) . In equation ( 1 ) if B(t ) 0 , then ( 1 ) becomes
b2 (t )
and this equation is called homogeneous S.L.D.E’s.
X (t ) AX (t )......... .......( 2)
and it can be written in the form
x(t ) a11 a12 x(t )
y(t ) a21 a22 y (t )
v
To solve ( 2 ) ( i.e. to find the g.s.) we let X (t ) Ve t where V 1 is a
v2
column vector and is a parameter that have to be determined. Then
X (t ) Ve t , now we substitute into equation ( 2 ) to have
1 0
( A I )V 0.......... .....( 3) , where I is the identity matrix.
0 1
We have two equations with two unknowns v1 and v2 . Equation (3) has a
nontrivial solution (not zero solution) iff
| A I | 0.......... .......... (4) . Equation (4) can be written in the form
a11 a12
0 (a11 )(a22 ) a12 a21 0
a21 a22
u2 v2
1 x(t ) 4 1
Ex: Solve X (t ) AX (t ) such that X (0) where X (t ) , A
2 y (t ) 4 4
x(t ) 4 1 x(t )
or or x(t ) 4 x(t ) y (t ) , y(t ) 4 x(t ) 4 y (t )
y(t ) 4 4 yt )
Solution: We must first find the eigenvalues using equation (4). That is
4 1
0 (4 )(4 ) 4 0 2 8 12 0
4 4
For 6 :
2 1 u1 0
2u1 u2 0,4u1 2u2 0 . We do the same we have
4 2 u2 0
1
done above. 2u1 u2 0 u1 u2 . If u2 2 u1 1, then the eigenvector
2
1 1
is V . The second solution is X 2 (t ) e 6t . The general solution
2 2
1
Solution: 0 ( )(4 ) 4 0 2 4 4 0
4 4
1
U which is called the eigenvector for 2 , then the first solution is
2
1 1
X 1 (t ) e 2t . The other solution is X 2 (t ) te2t Ve 2t , we find vector V
2 2
using
2 1 v1 1 0
2v1 v2 1 , take v1 0 v2 1 , then V , thus
4 2 v2 2 1
1 0
X 2 (t ) te2t e 2t . The G.S. is X (t ) c1 X1 c2 X 2 .
2 1
2 5
Solution: 0 (2 )(4 ) 10 0 2 2 2 0
2 4
2 48
1 i . We find the eigenvector for 1 i .
2
2 (1 i ) 5 u1 0 3 i 5 u1 0
2 4 (1 i ) u2 0 2 3 i u2 0
5
(3 i )u1 5u2 0 u1 u2 . Take u2 3 i u1 5 , then
3i
5 5 0 5 0
U i i
3 i 3 1 3 1
5 0 0 5
X 1 (t ) e t cost sin t , X 2 (t ) e t cost sin t .
3 1 1 3
0 4
4- If X X , such that the eigenvalues are 2i , then
1 0
X1
Lecture 20: Differential Equations
* Laplace Transforms:
Def. If f (t ) is defined for all t 0 . Then the Laplace transform of f (t ) is
denoted by { f (t )} F ( s ) and is defined as { f (t )} e st f (t )dt F ( s ) .
0
e e
2- {e1 2t } {ee 2t } e{e 2t } , s 2 . If I ask you to find F (0) .
s2 2
a s
* {sin at} ,s 0 and {cos at} ,s 0.
s a2
2
s a2
2
2 s
Ex: 1- {sin 2t} . 2- {cos3t} .
s 42
s 9
2
1 s2 4 s2
3- {sin2 t} { 1 cos 2t } (
1 1 1 s 2
) ( ) F (s) .
2 2 s s 4
2
2 s( s 4)
2
s( s 4)
2
1 1
4- {sin t cost} {sin 2t} . We have used sin 2t 2sint cost .
2 s 4
2
e at e at 1 1 1 1 s a s a a
{sinh at} { } 2 .
2 2 s a s a 2 s a
2 2
s a
2
e at e at s n!
* {cosh at} { } 2 * {t n } n 1 where n is a positive integer.
2 s a 2
s
(e 2t e 2t ) 2
3- {sinh 2 2t} {
4
1
1 1
} e 4t 2 e 4t
4
2
1
4 s 4 s s 4
F ( s)
2! 4!
4- {t 2 } . 5- {t 4 } .
s3 s5
3
{e 2t sin 3t} F ( s 2) .
( s 2) 2 9
s
2- {e3t cosh 2t} F (s 3) , now we find {cosh 2t} F ( s ) . Then
s 4
2
s3
{e 3t cosh 2t} F ( s 3) .
( s 3) 2 4
6 6
3- {e2t t 3} F (s 2) , where {t 3} F ( s ) . Then {e 2t t 3} F ( s 2)
s 4
( s 2) 4
2s 2s
F ( s ) . Thus {t sin t} (1) F ( s) 2 F1 ( s ) .
( s 1)
2 2
( s 1) 2
s ( s 2 4) 2s 2
2- {t cosh 2t} (1) F ( s) . Then {cosh 2t} F ( s ) F ( s )
s2 4 ( s 2 4) 2
4 s2 4 s2
F ( s) . Thus {t cosh 2t} ( 1) F ( s ) .
( s 2 4) 2 ( s 2 4) 2
* Laplace of Derivatives:
If { y (t )} Y ( s) , then
1- { y(t )} s{ y (t )} y (0) sY ( s) y (0) .
2- { y(t )} s 2{ y(t )} sy(0) y(0) s 2Y (s) sy(0) y(0) .
3- { y(t )} s3{ y(t )} s 2 y(0) sy(0) y(0) s3Y (s) s 2 y(0) sy(0) y(0) .
4- { y ( n) (t )} s n{ y(t )} s n 1 y(0) s n 2 y(0) y ( n 1) (0)
Ex: If y y 2 y 0, y (0) 0, y(0) 1 and { y (t )} Y ( s) . Then Y (s )
Solution: We want to find the Laplace transform for the given DE
{ y} { y} 2{ y} 0 s 2Y ( s) sy(0) y(0) sY ( s) y (0) 2Y ( s) 0
1
s 2Y ( s) 1 sY ( s) 2Y ( s) 0 Y ( s ) s 2 s 2 1 Y ( s )
s s2
2
.
{ y} { y}
2
s 3
2
2
s 2Y ( s ) sy(0) y(0) Y ( s ) 3 Y ( s ) s 2 1 3 s
s s
2 s4 2 s4
Y ( s) s 2 1 s3
Y ( s )
s 3 ( s 2 1)
.
t F (s) 3
Ex: 1- sin(3 )d , we have to find {sin 3t} 2 F ( s ) . Then
0 s s 9
t 3 3
sin(3 )d F1 ( s) . May be I’ll ask you to find F1 (1) .
0 s ( s 2
9) 10
t 2 F (s)
2- e cosh( )d . We need {e 2t cosht} s 22 F ( s) . Thus
0 s ( s 2) 1
t 2 s2
e cosh( )d .
s((s 2) 1)
2
0
t F ( s)
3- e 2 3d . Then {e 2t t 3} 6 4 F ( s) . Therefore,
0 s ( s 2)
t 6
e 2 3d .
0 s[( s 2) 4
]
* Laplace Inverse:
If { f (t )} F (s) f (t ) 1{F (s)}.
1- 1 1 3- 1
2
2- 1 4- 1 3 t 2
1 2 2
2e sin 2t
3t
s s 3 s 4
2
s
5- 1
s
6- 1 4 t 3 t 3 7- 1
3 3 1 2 2
cosh 3t sinh 5t
s 3 s s 5
2 2
3! 2 5
s 2 2
8- 1 1 2 1 2
5
1 4 5 t 3 t 4 9- 1 3
et t 2
s s s 3! 4! ( s 1)
5 5 2t 3 3
10- 1 4
e t 11- 1 e sin 3t
2t
( s 2) 3!
2
( s 2) 9
2 2 t s2
12- 1 e sinh 3t 13- 1 e cosh 3t
2t
( s 1) 3 ( s 2) 3
2 2
3
s 1 1 s 3 4 1 s3 1 4
14- 1
( s 3) 16 ( s 3) 16 ( s 3) 16 ( s 3) 16
2 2 2 2
s2 s 3 5 1 1 5 1 3t 3 5 3t 4
15- 1 5
1 5
1 4
5
e t e t .
( s 3) ( s 3) ( s 3) ( s 3) 3! 4!
1 1
* We know that tf (t ) (1) F ( s) tf (t ) 1{F ( s)} f (t ) {F ( s )}
t
1 1 1 1 1 2t
F ( s ) f (t ) e .
s2 t s 2 t
1 1 1 1
f (t ) 2 sin t .
t s 1 t
Exercises: Find 1- 1
4
3- 1
s
2- 1 4- 1 6
4 3
s 5 s 3 s 6 s
2 2
s 1 s3
9- 1ln(s 3) 10- 1 ln
11- 1
s3
s 9
2
e 3s
3- (t 3)u (t 3) e 3s F ( s) . 4- cos(t )u(t ) {cos(t )u(t )}
s2
But we know sin( x y ) sin x cos y cos x sin y and
cos(x y ) cos x cos y sin x sin y . Thus
se s
{cos(t )u (t )} {cos(t ) cos( )u (t )} .
s2 1
Lecture 22: Differential Equations
* Laplace Transforms (continued):
* Now, we denote u (t ) u 0 1 and u(t ) u 0 . This means that
u (t a) u a . Thus if
g (t ) ,0 t a
f (t ) , then we can represent f (t ) using unit step
h(t ) ,t a
* f (t )u (t a) e as { f (t a)} .
Ex: Find u (t 3)t 2
Solution:
2 6 9
u (t 3)t 2 e 3 s {(t 3) 2 } e 3 s {t 2 6t 9} e 3 s 3 2 .
s s s
2 ,0 t 4
Ex: If f (t ) 5 ,4 t 7 , find { f (t )}
3 ,7 t
f (t )
2 3 4 s 2 7 s
e e .
s s s
sin t ,t
Ex: If f (t ) , find { f (t )} .
t ,t
1 1 1
e s 2 2 .
s 12
s 1 s s
2 2e 2 s 4e 2 s se s
Ex: 1- If F ( s) 2 , find 1{F ( s)} .
s s 2
s s 1
e s 1
2- 1{ } sin(3(t 1))u (t 1) .
s 9
2
3