18mat31 Notes
18mat31 Notes
18MAT31 Notes
Contents:
MODULE – I: LAPLACE TRANSFORMS
MODULE – II: FOURIER SERIES
MODULE – III: FOURIER TRANSFORMS AND Z-TRANSFORMS
MODULE – IV: NUMERICAL METHODS
MODULE - I
a s 1 ( n)
L{sin at} 2 6. L{cosh at} 7. L{sinh at} 2 2 8. L{t n } n 1 if n is not
s a2 s a
2 2
s a s
n!
integer and L{t n } if n is an integer
s n 1
Linear property of Laplace Transforms:
If f (t ) & g (t ) are any two functions, then L{c1 f (t ) c2 g (t )} c1L{ f (t )} c2 L{g (t )}
Properties of Laplace Transforms:
Shifting property: If L{ f (t )} f (s), then L{eat f (t )} f (s a)
dn
Multiplication by t n : If L{ f (t )} f (s), then L{t n f (t )] (1)n [ f (s)]. where n is positive
ds n
integer.
f (t )
Division by t: If L{ f (t )} f (s) , then L f ( s)ds
t s
t
f ( s)
Transform of integral: If L{ f (t )} f (s) , then L f (u )du
0
s
Examples: 1. Find the Laplace transform of t e cosh 3t. 5 4t
2. Evaluate L sin 3 2t
n!
3. Prove that L{t n } if n is an integer. 4. Evaluate: L{sin t sin 2t sin3t}
s n 1
5. Find L t (sin 3 t cos3 t ) 6. Find the Laplace transform of e4t t 5/2
cos at cos bt
7. Find the Laplace transform of 8. Find L.T. of e2t cos2 t. 9. Find
t
eat ebt
L .
t
10. Find the Laplace transform of e3t sin 5t sin 3t. 11. Find the Laplace transform of et cos2 3t.
cos at cos bt
12. Find the Laplace transform of t sin at. 13. Find the Laplace transform of
t
cos3t 2t. 14. Find the Laplace transform of t 2e2t 15. Evaluate (i) L{te2t sin 4t} (ii)
1 cos at
L
t
sin 2 3t
16. Find the Laplace Transform of t 2e3t sin 2t. 17. Evaluate (i) L 8t
(ii) L{te cos 2t}
t
60 60 3 1 1 1 1 3
Answers: 1. 2. 2 4. 2
( s 7) 6
( s 1) 6 2 s 4 s 36
2 2 2
s 16 2( s 4) 3( s 36)
1 1 s2 9 s2 4 s 2 b2
5. 3s 1
3
1
6. ( s 4) 3/2
7. log 2 2
2 ( s 2 1)2 ( s 2 9)2 4 ( s 2 1)2 ( s 2 9)2 3 s a
s2 s b 30( s 3)
8. 9. log
1 1
2 10. 2 11.
2 s 2 s 4s 8 sa ( s 6s 13)(s 2 6s 73)
1 1 s 1
2
2 s 1 s 2s 37
s 2 b2 2as s 1 2 8( s 2)
12. log 13. 14. 15. (i) (ii)
2
s a 2 2
(s a ) 2 2 2
s 9 s log 2 ( s 2)3 s 4s 20)2
2
s2 a2
log
s
12s 2 72s 92 1 s 2 36 s 2 16s 60
16. log 17. (i)
(ii)
( s 2 6s 13) 2 2 s ( s 2 16s 68)2
Problems using Laplace Transform:
cos 6t cos 4t
1. Evaluate e t sin tdt
3t
2. e t cos 2tdt 3.
3t
dt 4. t 3et sin tdt
0 0 0
t 0
et sin t et sin t
5. Find the Laplace transform of
t
and hence deduce that t dt 4 .
0
3 5 2
Answers: 1. 2. 3. log 4. 0 5. Cot 1 (s 1)
50 169 3
Exercises I: Evaluate the following integrals using Laplace Transform:
e3t e6t sin t
1. te 3t
cos tdt 2. dt 3. t dt 4. te sin 3tdt 5. te cos tdt 6. te sin tdt 7.
2t 2t 2t
0 0
t 0 0 0 0
cos at cos bt et sin 2 t 1
8. te sin 4tdt t dt 4 log5 10. Prove that
t
dt 9. Prove that
0
t 0 0
at bt
e e b
t
dt log
a
0
2 12 3 4 b 8
Answers: 1. 2. log 2 3.
4. 5. 6. 7. log 8.
25 2 169 25 25 a 289
Laplace Transform of Periodic functions:
A function f (t ) is said to be Periodic with period T if f (t ) f (t T ) f (t 2T ) ..... f (t nT ) ,
Where n is an integer.
Eg: sin t & cos t are periodic functions with period 2
T
1
sT
Theorem: If f (t ) is a Periodic function with period T, then L{ f (t )} e st f (t )dt
1 e 0
T 2T 3T
Proof: L{ f (t )} e st
f (t )dt e st
f (t )dt + e
st
f (t )dt e
st
f (t )dt ........
0 0 T 2T
Put t u T in the 2nd integral, then dt du & if t T , u 0 & if t 2T , u T
Similarly Put t u 2T in the 3nd integral, then dt du & if t 2T , u 0 & if t 3T , u T
Put t u 3T in the 4th integral & soon. We get
T T T
L{ f (t )} e st f (t )dt + e s (u T ) f (u T )du e s (u 2T ) f (u 2T )du ........
0 0 0
T T T
e st f (t )dt + e sT e su f (u )du e2 sT e su f (u )du ........
0 0 0
[ f (u) f (u T ) f (u 2T ) . . . . . . as f (t ) is periodic]
T T T
e st f (t )dt + e sT e st f (t )dt e2 sT e st f (t )dt ........
0 0 0
T T T
1 1
e st f (t )dt ( 1 e sT e2 sT ........) e st f (t )dt sT
sT
e st f (t )dt
0 0 1 e 1 e 0
sT 2 sT
[ 1 e e ........ is a Geometric series with common ratio e sT ]
Example: Find the Laplace Transform of the following periodic functions:
t sin t , 0 t 1,
1. f (t ) , is the period. 2. f (t ) 2
with period 2 3. f (t )
0, t 1,
0 t a2 1 e s 1 as
with period a. Answers: 1. 2. 3. tanh
a t a
s 2 s(1 e s ) s s 4
2 (1 e )( s 2 2 )
Exercises II: Find the Laplace Transform of the following periodic functions:
t, 0t c
1. f (t ) 1 t,0 t 1, f (t 1) f (t ) 2. f (t ) , f (t 2c) f (t )
2c t , c t 2c
3t , 0t 2
3. f (t ) , f (t 4) f (t ) 4. f (t ) et ,0 t c, f (t c) f (t )
6, 2t 4
1, 0 t a
5. f (t ) t 2 ,0 t 2, f (t 2) f (t ) 6. f (t ) , f (t 2a) f (t )
0, a t 2a
7. f (t ) sin kt 8. f (t ) cos kt
9. Find the Laplace Transform of the full – wave rectifier f (t ) E sin t , 0 t having period
s 2
Express the following functions in terms of Heaviside’s units step function & hence find its
Laplace
Transform:
t 2 , 0 t 2 4e2 s 2
1. f (t )
4t , t2 s
3 1 e2 s
s
sin t , 0t
1 s 2 1 2 s 3 2
2. f (t ) sin 2t , t 2 s2 1 + e s2 4 s2 1 e 2 2
sin 3t , s 9 s 4
t 2
3. Express the following in terms of unit step function & hence find the Laplace Transform.
t 1, 0t 2 s
1 2e2 s e3s 1 sin t , 0t 2 2 (1 s )
f (t ) 3 t , 2t 3 4. f (t ) 1 e
0, s2 s cos t , t 2 s2 1
t 3
Exercises III: Express the following functions in terms of Heaviside’s Unit step function &
hence find its Laplace Transform.
2 t , 0 t 1
t ,
2
0t 2 2, 0 t 1 sin 3t ,
1. f (t ) 2. f (t ) 3. f (t ) 4. f (t )
e ,
t
t 1
6, t2 t, t 1 0,
t2, 0 t 2
0t t , 0 t 1
2
cos t , 0t
5. f (t ) 6. f (t ) t 1, 2 t 3 7. f (t ) 8.
t
4, t 1 7, sin t , t
t 3
cos t , 0 t
f (t ) cos 2t , t 2
cos3t , t
1, 0 t 1
e 2t , 0 t 1
9. f (t ) 10. f (t ) t , 1 t 2
t 1
2, 2
t , t 2
s
2 1 1 s 1 3e 2 6e2 s 2 4 4
Answers: 1. 2 e1 s e . 2. e2 s 3 2 3.
s 1
2 3
s s s s s s s s s
2 s 1 1
e 2
s s s
1 e2( s 1) 2 3 2 2 2 3 3 2 5 1
4. 5. e s 2 3 6. e2 s 2 3 e3s 2 7.
s 1 s 3
s s s s 3
s s s s s
s e s ( s 1)
s2 1
s 1 1 5se2 s 1 s 2 e2
8. se s 2 2 2 9. e 10.
s 1 s 4 s 1 ( s 4)( s 9)
2
s2 s s 2
1 e s 2 3 2
2 e2 s 3 2
s s s s s
Unit Impulse Function: (Or Dirac delta function)
A unit impulse function (t a) is defined as
1 , If a t a
(t a) lim (t a); a 0 Where (t a)
0
0, other wise
Laplace Transform of the unit Impulse function:
First we shall find the Laplace Transform of (t a)
a a
L{ (t a)} e st (t a)dt e st (t a)dt e st (t a)dt e
st
(t a)dt
0 0 a a
a
1
e
st
0 . dt 0 (By definition)
a
1 e st a 1 1 1 e s
. e s ( a ) e sa (e sa .e s e sa ) e as
s a s s s
Hence L{ (t a)} L Lim (t a) Lim L{ (t a)}
0
0
1 e s as 1 e s
Lim e as e Lim
0
s 0
s
1 e s 0
Now Lim
s 0 form, hence applying L’Hospital’s rule we get,
0
s
Lim 0 (s)e
Lime s 1 L{ (t a)} e as
s 0 0
Note: If a = 0, L{ (t )} e 1
0
Example: Find the Laplace Transform of the following unit impulse function:
(t a) e as
2. t (t a) ae 3. e (t b) e 4. t n (t a) a n e as
as at b ( s a )
1.
t a
t
( x 3) e 3s
5. dx 6. cosh3t (t 2) e2 s cosh 6
0 x2 9s
Exercises IV: Find the Laplace Transform of the following unit impulse function:
1. 2 (t 1) 3 (t 2) 4 (t 3) 2e s 3e2 s 4e3s 2. t 4 (t 3) 81e3s 3. (t 1)2 (t a)
(a 1) e 2 as
2 (t 3) 3 (t 2) 1
4.
t
6
4e3s 9e2 s 5. cosh t (t a) e as
cosh a 6. sinh3t (t 2)
e 2 s
sinh 6
2 (t 1) 6 (t 2)
10. (tx 2)dx
t
7. t (t 3) 3 e
n n 3 s
8. (t 1) (t 2) 9e
2 2 s
9. 2e s
3e 2 s
3
t 0
e 2 s
8s
INVERSE LAPLACE TRANSFORMS:
Definition: If L{ f (t )} f (s), then f (t ) is called the Inverse Laplace Transform of f ( s) & is
denoted by L1{ f (s)} . L1{ f (s)} f (t ) if L{ f (t )} f (s)
Inverse Laplace Transform of Standard functions:
t n 1 (n 1)!
, if n is integer L{t n 1}
1 1 (n 1)!
1) L1 1 sn
1 1
L{1} 2) L n n 1
s s s t ( n)
other wise L{t n 1} n
(n), s
1 1
3) L1
1 at 1 a
e L{eat } 4) L1 2
sin at L{sin at} 2
s a sa s a a s a2
2
s s 1 1 a
5) L1 2
cos at L{cos at} 6) L1 2 2 sinh at L{sinh at} 2 2 7)
s a s a2 s a a s a
2 2
s s e as e as
L1 2 2
cosh at L{cosh at} 8) L1 u (t a) L{u (t a)} 9)
s a s a2
2
s s
L1 e as (t a) L{ (t a)} e as 10) L1 1 (t ) L{ (t )} 1
1
f ( s) t f ( s) t
t
13) If L1{ f (s)} f (t ) , then L1 f (t )dt . Also L 2 f (t )dt dt
s 0 s 0 0
1
t t
2
Example: L1 2 2 L1 s a
1 2
L dt 1a sin atdt
1
1
s( s a ) s 0 s2 a2
0
cos at t cos at t 1 1
1a 0 2
2 [cos at 1] 2 1 cos at
a a 0 a a
d
14) If L1{ f (s)} f (t ) , then tf (t ) L1 [ f ( s)]
ds
2as 1 d 1 sin at
Example: L1 2 2
L 2 2
t.
(s a ) ds s a
2
a
Note: L1 is linear. i.e. L1 c1 f (s) c2 g (s) c1L1{ f (s)} c2 L1{g (s)}.
Problems: Find the Inverse Laplace Transform of the following:
s2 s3 2s 1 1 2s 1
1) 2) 2 3) 4) 5) 2 6)
( s 2) 3
s 4s 13 s 2 2s s( s a) 3
s 2s 5
5s 3
( s 1)( s 2 2s 5)
s s s3 s 2 1 1 s3 1
7) 8) 9) 10) 2 11)
s 4a 4
4
( s a 2 )2
2
s4 a4 s 3 s 6s 13 ( s 2)3
s 1
( s 1) 2 ( s 2)
7s 4 s2 1 s2 s2
12) 13) 14) 15) 2 16) 17)
4s 4s 9
2
( s a 2 )2
2
(s a )
2 2 2
s ( s 1)( s 2) ( s 4s 5) 2
2
s 1 s2 1 1 s 2
log 18) log 19) cot 20) tan 1 2
21) s s a 22)
s 1 s( s 1) 2 s
s2 4
log 3
( s 1)
sa e as s 2 e s 1 s 1 s2
23) s log 1 24) 25) 26) e3s 27) 28)
sa s2 4 s 2 3s 2 s s 1 s 7 s 12
2 2
e 6 s
( s 4) 2
log s k 1
29) Show that L{log t} , where k is some arbitrary constant. 30)
s s s( s 1)( s 2)( s 3)
cosh 2s
31)
e3 s s 2
5 1 3 2t
Answers: 1. e2t 4te2t 2t 2e2t 2. e2t cos3t sin 3t 3. e 4.
3 2 2
t 2 e at te at e at 1
2 3 3
2a a a a
1 1
5. et (2cos 2t 1 2 sin 2t ) 6. et et (cos 2t 32 sin 2t ) 7. sin at sinh at 8. t sin at
2a 2 2a
1 1 1 t2
9. (cosh at cos at ) (sinh at sin at ) 3 (sinh at sin at ) 10. e3t e3t cos 2t e2t
2 2a 2a 2!
1t
1 2 1 1 1 1
11. et tet e2t 12. e 2 (7cos 2t sin 2t ) 13. [at cos at sin at ] 14.
9 3 9 4 2 2 2 a
1
(sin at at cos at )
2a 3
1 1 2sinh t 1 et 2cos t sin 2t 2sin t sinh t
15. (e2t et ) t 16. te2t sin t 17. 18. 19. 20.
3 2 t t t t
5 3
3eat t 2 aeat t 2 3et 2cos 2t 2sinh at 2at cosh at
21. 22. 23. 24.
4 2 t t2
(t a) 2sin 2(t a)u(t a)
3 ( t ) t 3 t 1 ( t 3) 1
25. 2e 2 sinh u (t ) 2e 2 .sinh( t ) 26. e 2
2 cos 2 (t 3)
3
.sin 2
3
(t 3) u(t 3)
2 3
1 1 1 1
27. 5e3t 6e4t 28. e4(t 6) (t 6)u(t 6) 30. et e2t e3t 31.
6 2 2 6
1
[(t 1)u (t 1) (t 5)u(t 5)
2
Exercises V: Find the Inverse Laplace transforms of the following-
s 2 3s 4 ( s 2)3 1 4 1 3s 5 2 2s 5 4s 18
1) 2) 3) 4) 5) 6)
s3 s6 3s 2 5s 1 5 s s 8
2 4s 25 9 s 2
2
3( s 1)
2 2
2s 5
s2 4s 1 e3s e5 s se s e s 3e3s e s
7) 2 2 8) 9) 10) 2 11)
s 36 s 25 ( s 4)2 ( s 2) 4 s 2 16 s 2 9 s s
(1 e s )(2 e2 s )
s3
s
se e s
2 e s se2 s s 3 2s 3 s3
12) 13) 14) 2 15) 16)
s2 2 s 1 s 4
2 2
s 6s 13 s 2s 5
2
4s 4s 9
2
s
3s 2 2s 1 e 4 s e e2 s
2 s
32) 33) 34) 35)
( s 3)( s 2 1) ( s 1)3 s2 1
( s 1)( s 2 4) 2
1 2t 4 t
Answers: 1. 1 3t 2t 2 2. 301 (15t 2 30t 3 15t 4 2t 5 3. e 3 e 5 2 t 4.
3 5
3 t4
3cos(2 2t ) 52 sin(2 2t ) 5. 12 cos 5t 2 sin 5t 2 4cosh3t 6sinh3t 6. 1 t 2 7.
2 24
1 1
cos6t sin 6t 4cos5t sin 5t
3 5
(t 5)3 e2(t 5)u (t 5) sin 3t
8. (t 3)e4(t 3)u (t 3) 9. cos 4t u (t ) 10. 3u(t 3) (t 1)u(t 1)
6 3
11. t 2 (t 1)2 u(t 1) 12 (t 2)2 u(t 2) 12 (t 3)2 u(t 3) 12. sin t[u(t 1 2) u(t 1)]
t
13. sin tu(t ) cos 2tu(t 2 ) 14. e3t cos 2t 15. e 2 (4cos 2t sin 2t ) 16.
t
2
e 2
2 cos( 2t ) 5sin( 2t )
8 2
3(t 1)2 (t 1)3
17. e4(t 2) 1 4(t 2) u(t 2) 18. e(t 1) u (t 1) 19.
2 3
e
3t
2
2cosh 5t
2
4
5
sin
5t
2
et 5 8 3t 8 15
20. e2t (2cos5t sin 5t ) 21. e2t e3t 22. 95 et 73 tet 95 e2t 23.
e cos 2t sin 2t
2 2 13 13 26
t
1 2(1 cos at ) 1 e 2cos t ) 2(e cos 2t )
4t
24. 5sin(t 2) sin(2t 2) u (t 2) 25. 26. 27.
3 t t t
2t
te sin t ) sin at 2(4t cosh 4t sinh 4t ) 1 5
28. 29. 30. 2
31. 2et e2t 32. 2e3t cos t sin t
2 a t 2 2
1
33. e(t 4) (t 2 8t 16)u(t 4) 34. u(t 1 2)sin(t 1 2) u(t 2)sin(t 2) 35. (cos t cos 2t )
3
Convolution:
1 1 3 1
Answers: 1. (et sin t cos t ) 2. (sin t t cos t ) 3. cos t (1 e2t ) sin t (1 e2t )
2 2 8 8
bt at
1 e e 1
4. 2 2 (cos bt cos at ) 5. t (et 1) 2(et 1) 6. 7. 3 (sin at at cos at )
a b a b 2a
t
1 e 1
8. (e2t e2t 4te2t ) 9. {1 e8t (1 8t )} 10. (1 cos 2t )
16 64 4
2 s 1 t3 t3
Answers: 1. 3 2. 3. 4. t t 5. sinh t 6.
s ( s 1) ( s 1)( s 2 4) s 2 ( s 2) 2 3! 6
1 2t 2t 2 e2t
Application of Laplace Transforms
Solution of Ordinary differential equations:-
Transform of Derivatives:
If f (t ) is a continuous real valued function with continuous derivatives f 1 (t ), f 11 (t ),......., f ( n) (t ) &
L{ f (t )} f (s), then
i) L{ f 1 (t )} sf (s) f (0)
ii) L{ f ( n) (t )} s n f (s) s n1 f (0) s n2 f 1 (0) ......... sf ( n2) (0) f ( n1) (0).
d2y dy
Problems:- Solve 1. 2 y et ; y(0) 2, y1 (0) 1 2. Solve ( D2 2D 5) y e x sin x;
dt 2 dt
t
d dy
y 0, Dy 1 at x 0 where D
dx
3. Solve:
dx 0
2 y y dt sin t; y(0) 1.
2
4. d x 2 dx x(t ) t ; x(0) 3, x(1) 1 5. Solve: x11 (t ) 4 x(t ) (t ), x(0) 1, x1 (0) 0
dt 2 dt
4t , 0 t 1
Where (t ) 6. ty11 2 y1 ty cos t , given that y(0) 1
4, t 1
t2 1 x 3 1
Answers: 1. y (t ) et 2 3t 2. y ( x) e (sin x sin 2 x) 3. y(t ) et tet sin t
2 3 2 2
1 1
4. x(t ) 2 t et tet 5. y(t ) t sin 2t cos 2t [(t 1) sin 2(t 1)]u(t 1) 6.
2 2
1 1
y (t ) sin t
2 t
Exercises VII: 1. Solve the following Differential equations-
d2x 12
1. y11 4 y1 3 y et ; y(0) y1 (0) 1 2
9 x cos 2t; x(0) 1, x1 (0)
2.
dt 5
3. y 2 y y 2 y 0; y(0) y (0) 0 & y (0) 6 4. ( D n ) x a sin(nt ); x Dx 0 at
111 11 1 1 11 2 2
t 0
d2x
5. ( D2 3D2 3D 1) y t 2et ; y(0) 1, y1 (0) 0, y11 (0) 2 6. 9 x cos 2t;
dt 2
x(0) 1, x 1
2
dx
7. x sin t; x(0) 2 8. y11 3 y1 2 y 4t e3t ; y(0) 1& y1 (0) 1 9.
dt
d2y dy
2
2 5 y et sin t; y(0) 0, y1 (0) 1 10. x11 (t ) 4 x1 (t ) 4 x(t ) e2t ; x(0) 0 & x(1) 0
dt dt
11. y11 (t ) 2 y1 (t ) y(t ) 2 (t 3)u(t 3); y(0) 2 & y1 (0) 1.Find y(1) & y(4)
4, 0 t 2
12. x11 (t ) x1 (t ) (t ); x(0) 0 & x1 (0) 0 & (t )
t 2, t 2
d4y
13. 4
16 y 0; y 1, y1 , y11 , y111 are zero at x = 0, 14. y111 y1 (t ) e2t ;
dx
y(0) 0 y1 (0) y11 (0)
7 3 1 1 1
Answers: 1. y et e3t tet 2. x (4cos3t 4sin 3t cos 2t ) 3. y (2 3t t 2 )et
4 4 2 5 2
a{sin nt cos nt cos(nt )} 1 1
4. x 5. y et 1 t t 2 t 5 6.
60
2
2n 2
1
x (4cos3t 4sin 3t cos 2t )
5
sin t cos t
7. x 2 2 et
1 1
2
1
8. y 2t 3 e3t et 2e2t
2
9. x
11 t
3
e (sin t sin 2t )
1
10. x (1 t )2 e2t 11. y(1) 2 e1 , y(4) 1 3e1 4e4 12.
2
x 4 4cos t [(t 2) sin(t 2)]u(t 2)
1 1 e 2t 2 1
13. y( x) (cosh 2 x cos 2 x) 14. y(t ) cos t sin t
2 2 10 5 5
MODULE – II
FOURIER SERIES
f(x) = x in [-1, 1] is odd as f(-x) = -x = -f(x). The graphs of these functions are shown below:
a0
f ( x) an cos nx bn sin nx
2 n1 n 1
0 an 0 an
Since
2 2
1 cos 2nx 1 sin 2nx 2 1
2
cos nxdx dx x 2 0 0
2 2 2 n 2
2 sin 2 nx 2
& sin nx cos nxdx 0
2n
1 2
Hence an f ( x) cos nxdx
Similarly To find bn , multiply each side of (1) by sin nx and integrate from x to
x 2, we get
2 1 2 2 2
f ( x) sin nxdx a0 sin nxdx an cos nx sin nxdx bn sin nx sin nxdx
2 n 1 n 1
0 0 bn bn
Since
2 2
1 cos 2nx 1 sin 2nx 2 1
2
sin nxdx dx x 2 0 0
2 2 2 n 2
2 sin 2 nx 2
& sin nx cos nxdx 0
2n
1 2
Hence bn f ( x) sin nxdx
FOURIER SERIES:
A Fourier series of a periodic function consists of a sum of sine and cosine terms. Sines and
cosines are the most fundamental periodic functions.
The Fourier series is named after the French Mathematician and Physicist Jacques Fourier (1768
– 1830).
FORMULA FOR FOURIER SERIES
Consider a real-valued function f(x) which obeys the following conditions called Dirichlet’s
conditions:
1. f(x) is defined in an interval (a, a+2l), and f(x+2l) = f(x) so that f(x) is a periodic function
of period 2l.
2. f(x) is continuous or has only a finite number of discontinuities in the interval (a, a+2l).
3. f(x) has no or only a finite number of maxima & minima in the interval (a, a+2l).
1 a 2l
Also, let a 0 f ( x )dx ---------------- (1)
l a
1 a 2l n
an f ( x ) cos xdx, n 1,2,3,..... --------- (2)
l a l
1 a 2l
n
bn f ( x ) sin xdx, n 1,2,3,...... ---------- (3)
l a l
Then, the infinite series
a0 n
n
a n cos bn sin
x x ---------- (4)
2 n 1 l n 1 l
is called the Fourier series of f(x) in the interval (a, a+2l). Also, the real numbers a0, a1, a2,
….an, and b1, b2 , ….bn are called the Fourier coefficients of f(x). The formulae (1), (2) and (3)
are called Euler’s formulae.
It can be proved that the sum of the series (4) is f(x) if f(x) is continuous at x. Thus we have f(x)
a0 n
n
= a n cos bn sin
x x ……. (5)
2 n 1 l n 1 l
Suppose f(x) is discontinuous at x, then the sum of the series (4) would be
1
2
f ( x ) f ( x )
where f ( x ) & f ( x ) are respectively right hand and left hand limits of f ( x ) given by.
f ( x ) Lim f ( x h ), f ( x ) Lim f ( x h ), h 0
h0 h0
Particular Cases:
Case (i)
Suppose a = 0. Then f(x) is defined over the interval (0,2l). Formulae (1), (2), (3) reduce to
2l
1
l 0
a0 f ( x)dx
2l
1 n
l 0
an f ( x ) cos xdx, n 1,2,...... ----------- (6)
l
2l
1 n
bn f ( x) sin xdx,
l0 l
Then the right-hand side of (5) is the Fourier expansion of f(x) over the interval (0, 2l).
If we set l = , then f(x) is defined over the interval (0, 2). Formulae (6) reduce to
2
1
a0 =
f ( x)dx
0
2
1
an
f ( x) cos nxdx, n=1, 2,….. --------- (7)
0
2
1
bn
f ( x) sin nxdx n=1, 2,…..
0
a0
Also, in this case, (5) becomes: f(x) = a n cos nx bn sin nx ------------ (8)
2 n1 n1
Case (ii)
Suppose a = -l. Then f(x) is defined over the interval (-l, l). Formulae (1), (2) (3) reduce to
l
1
a0 = f ( x)dx
l l
l
1 n
a n f ( x) cos xdx
l l l , n=1, 2,….. --------- (9)
l
1 n
bn
l l
f ( x) sin
l
xdx n =1, 2,…..
Then the right-hand side of (5) is the Fourier expansion of f(x) over the interval (-l, l).
If we set l = , then f(x) is defined over the interval (-, ). Formulae (9) reduce to
1
a0 =
f ( x)dx
1
an
f ( x) cos nxdx , n=1,2,….. ---------- (10)
1
bn
f ( x) sin nxdx n=1,2,…..
a0
Putting l = in (5), we get f(x) = a n cos nx bn sin nx
2 n1 n1
Some useful results:
Examples
1. Obtain the Fourier series for f ( x) e x in the interval 0 x 2
e x 2 1 e 2
We have a0
1 2 x
0
e dx
1 0
1 2
e 1
2
1 1 ex 2
an x
e cos nxdx cos nx n sin nx
0
1 n 2 0
1
(1 n )
e 2
2
( cos 2n n sin 2n ) e 0 ( cos 0 n sin 0)
1
(1 n )
2
e 1
1 e 2 1
2 .
1 n2
1 2 1 ex 2
bn e x sin nxdx sin nx n cos nx
0 1 n 2
0
1
(1 n )
2
e 2 ( sin 2n n cos 2n) e 0 ( sin 0 n cos 0)
1
(1 n 2 )
2
ne n
1 e 2 n
.
1 n
2
x 1 e 2 1 e 2 1 1 e 2 n
e . 2
cos nx . sin nx
2 n 1 1 n n 1 1 n 2
1 e 2 1 1 n
2
cos nx 2
sin nx
2 n1 1 n n 1 1 n
1
2. Obtain the Fourier expansion of f(x) = x in - < x <
2
1 1 1 1 x2
We have, a0
f ( x)dx ( x)dx =
2 x
2 2
1 1 1
an
f ( x) cos nxdx 2 ( x) cos nxdx
Here we use integration by parts, so that
1 cos nx
0 0
1
x
sin nx
an ( 1 )
2 n n 2 2
1 1 1 cos nx sin nx ( 1 )n
bn ( x ) sin nxdx x ( 1 )
2 2 n n
2
n
Using the values of a0 , an and bn in the Fourier expansion
a
f ( x) 0 an cos nx bn sin nx
2 n 1 n 1
(1) n
we get, f ( x) sin nx
2 n 1 n
This is the required Fourier expansion of the given function.
3. Obtain the Fourier expansion of f(x) = e-ax in the interval (-, ). Deduce that
( 1) n
2 2
sinh n 2 n 1
1 ax 1 e ax e a e a 2 sinh a
Here, a0 e dx
a a a
1 ax 1 e ax 2a ( 1 )n sinh a
an e cos nxdx 2 a cos nx n sin nx 2 2
a n2 a n
1 1 e ax 2n (1) n sinh a
bn = e sin ax
nxdx = a sin nx n cos nx =
a 2 n2 a 2 n2
sinh a 2a sinh a (1) n 2
n(1)n
Thus, f(x) =
a
n 1 a n
2 2
cos nx
sinh a
n 1 a n
2 2
sin nx
sinh
2 sinh 1 (1) n
or 1 =
2 n 2 n 2 1
2 sinh (1) n
or 1 =
n 2 n2 1
( 1) n
Thus, 2 2 . This is the desired deduction.
sinh n 2 n 1
4. Obtain the Fourier expansion of f ( x) x 2 over the interval (-, ). Deduce that
2 1 1 1 1 2 1 1 1
a) 2 2 2 2 ...... b) 1 2 2 2 ......
12 1 2 3 4 6 2 3 4
2
1 1 1 1
c) 2 2 2 2 ......
8 1 3 5 7
The function f(x) is even. Hence
1 2 2 2 x3 2 2
f ( x)dx = f ( x)dx = x dx
2
a0 =
0 0 3 0 3
1 2
an
f ( x) cos nxdx =
f ( x) cos nxdx,
0
since f ( x ) cos nx is even
2
x
2
= cos nxdx ,Integrating by parts, we get
0
2 sin nx cos nx sin nx 4( 1 )n
x2 2 x 2
n n
2
n
3
0 n2
1
Also, bn f ( x ) sin nxdx 0 , since f ( x ) sin nx is odd.
Thus
2 ( 1 )n cos nx
f(x) x 4 2
------------ (i)
3 n 1 n2
a) By putting x 0,in (i) we get,
2 ( 1 )n cos 0 2 ( 1 )n
0 f(x) 4 4 2
3 n 1 n2 3 n 1 n
2
1 1 1 1
i.e. 4 2 2 2 2 .......... ...
3 1 2 3 4
2 1 1 1 1
i.e. .............
2 2 2
12 1 2 3 42
b) by putting x ,we get,
2 1 1 2
2 4 2
3 n 1 n 1 n2 6
2
1 1 1
Hence, 1 .....
2 2
6 2 3 42
c) by adding (a) and (b) we get,
2 2 1 1 1 1 1 1 1
............. 1 .....
2 2 2 2 2 2
12 6 1 2 3 4 2 3 42
3 2 2 2 2 1 1 1
i.e. 2 ....... 21 ........
12 32 5 2 4 32 5 2 7 2
2 1 1 1
Or 1 2 2 2 ........
8 3 5 7
Functions having points of discontinuity:
1 (1)
n
1 1 (1) n
2 2 0 2 0 2
n n n n
1 2(1) n 2
n 2
2
n 2
(1) n 1
1 2 1
2
Also, bn f ( x) sin nxdx f ( x ) sin nxdx f ( x ) sin nxdx ,
0
0
2
1
x sin nxdx (2 x) sin nxdx , integrating using Bernoulli’s generalized rule
0
1
cos nx sin nx cos nx sin nx 2
x (1) (2 x) (1)
n n 2 0 n n 2
1 x cos nx sin nx cos nx sin nx 2
( 2 x )
n n2 0 n n2
1 (1)
n (1) n
1
(1)
n
(1) n
0 0 0
n n n n
2 1
Thus the Fourier series of f(x) is f ( x)
2 n 1 n 2
(1) n 1 cos nx
For x = , we get
f ()
2 1
2 n 1 n 2
(1) n 1 cos n
But (1) n 1 0, if n is even & (1) n 1 2, if n is odd.
(since f(x) is discontinuous at x , f ( ) 1 f ( 0) f ( 0) 1 ( x 2 x) )
2 2
2
2 cos(2n 1)
2
n 1 (2n 1) 2
2 2(1) 2 2 2 1 1 1 1
Thus, 2 2 2 ......
2 n1 (2n 1) 2
4 n1 (2n 1) 2
8 n1 (2n 1) 2
1 3 5
This is the series as required.
1 2 2 1 2
2 2 2
10
an cos nxdx x cos nxdx
0
1 sin nx 0 sin nx cos nx
x (1)
n n n 2 0
1
0 0
(1) n
n 2
1
2
n n
1
2
(1) n 1
10
bn sin nxdx x sin nxdx
0
1 cos nx 0 cos nx sin nx
x (1)
n n n 2 0
1
n
1
n
1
(cos 0 (1) n ) (1) n 0 (1 2(1) n 1 2(1) n
n n
Fourier series is
1 1 1 2(1) n
f (x) = 2 (1) n 1 cos nx sin nx
4 n 1n
n 1 n
Note that the point x = 0 is a point of discontinuity of f (x) . Here f ( x ) 0 , f (x ) at x =
1 1
0. Hence [ f ( x ) f ( x )] 0
2 2 2
The Fourier expansion of f(x) at x = 0 becomes
1 1
2 [( 1) n 1]
2 4 n1 n
2 1
or 2 [( 1) n 1]
4 n1 n
But (1) n 1 0, if n is even & (1) n 1 2, if n is odd.
2 2 2 1 1 1 1
.........
4 n1 (2n 1) 2 8 n1 (2n 1) 2 1 32 52
2 1 1
Hence 1 ......
8 32 52
7. Obtain the Fourier series of f ( x) 1 x 2 over the interval (-1, 1).
The given function is even as f(-x) = f(x). Also period of f(x) is 1-(-1) = 2 2l 2 l 1
1
11 1 1
2
x3 4
Here a0 = f ( x)dx = 2 f ( x)dx = 2 (1 x )dx 2 x as f(x) is even.
1 1 0 0 3 3
0
11 1
an f ( x ) cos( nx ) dx 2 f ( x) cos(nx)dx
1 1 0
1
= 2 (1 x 2 ) cos( nx)dx [as f ( x) cos nx is even. Integrating by parts, we get
0
1
2 1 x 2
sin nx
n
( 2 x )
cos nx
(n) 2
( 2)
sin nx
(n) 3
0
2 2 4(1) n1
2[0 0 [(1) n 0] (0)
(n) 2 (n) 3 n 2 2
11
bn f ( x) sin(nx)dx = 0, since f ( x) sin(nx) is odd.
1 1
2 4 (1) n1
The Fourier series of f(x) is f (x) = cos(nx)
3 2 n1 n 2
8. Obtain the Fourier expansion of
4x 3
1 3 in 2 x 0 2 1 1
f(x) = .Hence deduce that 1 ......
2
1 4 x in 0 x 3 8 3 52
3 2
3 3
The period of f(x) is 3 2l 3 l 3 / 2
2 2
Also f(-x) = f(x). Hence f(x) is even
1 3/ 2 2 3/ 2 4 3 / 2 4x
a0 f ( x )dx f ( x )dx 1 dx 0
3 / 2 3 / 2 3/ 2 0 3 0 3
4 3/ 2
9 0
(3 4 x ) dx
4
9
3 x
4x 2 3 / 2 4
2 0 9
3x 2 x 2
3/ 2 4 9
0 9 2
9
2 0
4
1 3/ 2 nx 2 3/ 2 2nx
an f ( x) cos dx f ( x) cos dx
3 / 2 3 / 2 3/ 2 3/ 2 0 3
4 3 / 2 4 x 2nx
1 3 cos 3 dx
3 0
3/ 2
2 n x cos 2 n x
sin
4 4 x 3 4 3
1
3 3 2n 3 2 n
2
3
3 0
4 4
0 2 2 (( 1 )n 1 ) 2 2 1 (1)n = 2 2 , n = 1, 3, 5, ………
9 4 8
3 3 4n n n
3 nx nx
1 2
Also, bn f ( x ) sin dx 0 , as f ( x ) sin is an odd function.
3 3 3 3
2 2 2
8 1 2nx
Thus f(x) = 2 2 cos ,n 1,3,5,........
n1 n 3
8 1
putting x=0, we get f(0) = 2 2
n1 n
8 1 1
or 1 = 2 1 2 2 ......
3 5
2
1 1
Thus, 1 2 2 ......
8 3 5
x
Exercises: 1) Obtain the Fourier series of f ( x) in 0 x 2. Hence deduce
2
1 1 1
that 1 .........
3 5 7 4
2) If f ( x) x(2 x) in 0 x 2 show that
2 2 cos x cos 2 x cos 3x
f(x) 4 2 2 .......... hence deduce that
1
2
3 2 3
2
1 1 1
2 2 2 ......
8 1 3 5
3) Find a Fourier series in (, ) to represent a) f ( x) x x 2 b) f ( x) x x 2
Hence deduce that
2 1 1 1 1
a) 2 2 2 2 ......
12 1 2 3 4
2
1 1 1
b) 1 2 2 2 ......
6 2 3 4
2
1 1 1 1
c) 2 2 2 2 ......
8 1 3 5 7
0 in x 0
4) Obtain the Fourier series for the function f ( x)
sin x in 0 x
Hence deduce that
1 1 1 1 1 1 1 2
1. ....... 2. .......
1.3 3.5 5.7 2 1.3 3.5 5.7 4
2
x 2 cos nx
5) If f ( x) in the range 0 to 2 , show that f ( x)
2 12 n1 n 2
6) An alternating current after passing through a rectifier has the form
I 0 sin x for 0 x
i
0 for x 2
Where I 0 is the maximum current and the period is 2. Express i as a Fourier series.
7) Obtain the Fourier series for the function
0, x 0
f ( x) Where f ( x 2) f ( x)
x 2 , 0 x
2 (1) n 1 ( 1) n 1
3) a) x x 2
4 cos nx 2 sin nx
3 1 n2 1 n
2 ( 1) n ( 1) n 1
b) x x 2
4 2 cos nx 2 sin nx
3 1 n 1 n
1
4) f ( x)
1
2 (n 1)2
1
1 (1) n cos nx sin x.
2
I0 1 2 I cos 2nx
6) i I 0 sin x 0 2
2 n1 4n 1
2 ( 1) n 1 cos nx 1 2 2
7) f ( x) 2 3 sin nx
6 n 1 n2 n1 n n
4 2 4
8) f ( x) 2 sin x sin 2 x sin 3x sin 4 x ..........
3 9 2
1 1 nx n nx
9) e x sinh l 2l 2 cos 2 2 sin
n 1 l n l n
2 2 2 2
l l l
Sine series :
Suppose f(x) = (x) is given in the interval (0, l). Then we define f(x) = -(-x) in (-l, 0). Hence
f(x) becomes an odd function in (-l , l). The Fourier series then is
nx
f ( x) bn sin (11)
n 1 l
nx
l
2
where bn f ( x) sin dx
l 0 l
The series (11) is called half-range sine series over (0, l).
Putting l= in (11), we obtain the half-range sine series of f(x) over (0, ) given by
f ( x) bn sin nx
n 1
2
bn
f ( x) sin nxdx
0
Cosine series :
Let us define
( x) in (0, l ).........given
f ( x)
( x) in (l , 0)........in order to make the function even
TRANSFORM CALCULUS, FOURIER SERIES AND NUMERICAL TECHNIQUES Page 28
Examples :
1. Expand f(x) = x(-x) as half-range sine series over the interval (0,).
We have,
2
bn f ( x) sin nxdx
0
2
(x x 2
) sin nxdx
0
Integrating by parts, we get
2
bn x x 2
cos nx
n
sin nx
2 x
cos nx
(2)
n2 n 3 0
4
3
n
1 (1) n
x,0 x 2
f ( x) over(0, )
x, x
2
Here
2 2
a0 xdx ( x)dx
0 2
2
2 2
an x cos nxdx ( x) cos nxdx
0
2
Performing integration by parts and simplifying, we get
2 n
an 1 (1) n 2 cos
n2 2
8
, n 2,6,10,.....
n2
Thus, the Fourier cosine series is
2 cos 2 x cos 6 x cos 10 x
f(x) = ......
4 12 32 52
3. Obtain the half-range cosine series of f(x) = c-x in 0<x<c
2c nx
c
2
Here a0 (c x)dx c , an (c x) cos dx
c0 c0 c
f(x) =
c 2c 1
2
2 1 (1) n cos
2 n1n
nx
c
Exercices:
I. Obtain the half-range sine series of the following functions over the specified intervals:
1. f(x) = cosx over (0,) 2. f(x) = sin3x over (0,) 3. f(x) = lx-x2 over (0 , l)
II. Obtain the half-range cosine series of the following functions over the specified
intervals:
1. f(x) = x2 over (0,) 2. f(x) = xsinx over (0,) 3. f(x) = (x-1)2 over (0, 1)
l
kx,0 x 2
4. f(x) =
k (l x), l x l
2
HARMONIC ANALYSIS
The Fourier series of a known function f(x) in a given interval may be found by finding the
Fourier coefficients. The method described cannot be employed when f(x) is not known
explicitly, but defined through the values of the function at some equidistant points. In such a
case, the integrals in Euler’s formulae cannot be evaluated. Harmonic analysis is the process of
finding the Fourier coefficients numerically.
To derive the relevant formulae for Fourier coefficients in Harmonic analysis, we employ the
following result:
The mean value of a continuous function f(x) over the interval (a, b) denoted by [ f ( x)] is defined
b
1
f ( x)
b a a
as f ( x)dx .
The Fourier coefficients defined through Euler’s formulae, (1), (2), (3) may be redefined as
1 a 2l
a0 2 f ( x ) dx 2[ f ( x)]
2l a
1 a 2l nx nx
an 2 f ( x) cos dx 2 f ( x) cos
2l a l l
1 a 2l nx nx
bn 2 f ( x ) sin dx 2 f ( x) sin
2l a l l
Using these in (5), we obtain the Fourier series of f(x). The term a1 cos x b1 sin x is called the
first harmonic or fundamental harmonic, the term a2 cos 2 x b2 sin 2 x is called the second
harmonic and so on. The amplitude of the first harmonic is a12 b12 and that of second
harmonic is a22 b22 and so on.
Examples
1. Find the first two harmonics of the Fourier series of f(x) given the following table:
X 0 2 4 5 2
3 3 3 3
f(x) 1.0 1.4 1.9 1.7 1.5 1.2 1.0
Note that the values of y = f(x) are spread over the interval 0 x 2 and f(0) = f(2) = 1.0.
Hence the function is periodic and so we omit the last value f(2) = 0. We prepare the following
table to compute the first two harmonics.
Show that there is a constant part of 0.75amp. in the current A and obtain the amplitude of the
first harmonic.
Note that the values of A at t=0 and t =T are the same. Hence A (t) is a periodic function of
2
period T. Let us denote t . We have
T
2 2
a0 2[ A], a1 2 A cos t 2[ A cos ], b1 2 A sin t 2[ A sin ] ------ (1)
T T
We prepare the following table:
2t
t A cos sin A cos A sin
T
0 0 1.98 1 0 1.98 0
T/6 600 1.30 0.5 0.866 0.65 1.1258
0
T/3 120 1.05 -0.5 0.866 -0.525 0.9093
T/2 1800 1.30 -1 0 -1.30 0
2T/3 2400 -0.88 -0.5 -0.866 0.44 0.7621
5T/6 3000 -0.25 0.5 -0.866 -0.125 0.2165
Total 4.5 1.12 3.0137
ASSIGNMENT:
1. The displacement y of a part of a mechanism is tabulated with corresponding angular
movement x0 of the crank. Express y as a Fourier series up to the third harmonic.
x0 0 30 60 90 120 150 180 210 240 270 300 330
y 1.80 1.10 0.30 0.16 1.50 1.30 2.16 1.25 1.30 1.52 1.76 2.00
2. Obtain the Fourier series of y up to the second harmonic using the following table:
x0 45 90 135 180 225 270 315 360
3. Obtain the constant term and the coefficients of the first sine and cosine terms in the Fourier
expansion of y as given in the following table:
x 0 1 2 3 4 5
y 9 18 24 28 26 20
4. Find the Fourier series of y up to the second harmonic from the following table:
x 0 2 4 6 8 10 12
Y 9.0 18.2 24.4 27.8 27.5 22.0 9.0
5. Obtain the first three coefficients in the Fourier cosine series for y, where y is given in the
following table:
x 0 1 2 3 4 5
y 4 8 15 7 6 2
6. The turning moment T is given for a series of values of the crank angle 0 = 750.
0 0 30 60 90 120 150 180
T 0 5224 8097 7850 5499 2626 0
Obtain the first four terms in a series of sines to represent T and calculate T at = 750.
MODULE-III
FOURIER TRANSFORMS
Introduction
Fourier Transform is a technique employed to solve ODE’s, PDE’s, IVP’s, BVP’s and
Integral equations.
Infinite Fourier Transform
Let f(x) be a real valued, differentiable function that satisfies the following conditions:
TRANSFORM CALCULUS, FOURIER SERIES AND NUMERICAL TECHNIQUES Page 35
1) f (x) and its derivative f ' ( x) are continuous, or have only a finite number of simple
discontinuities in every finite interval, and
2) The integral f x dx exists.
-
Also, let s be non – zero real parameter. Then infinite Fourier Transform of f (x) denoted
Note: The function f(x) is said to be self reciprocal with respect to Fourier transform
if fˆ s f s .
Basic Properties:
Below we prove some basic properties of Fourier Transforms:
1. Linearity Property
For any two functions f(x) and (x) (whose Fourier Transforms exist) and any two constants
a and b, F af x b x aF f x bF x
Proof: By definition, we have
F af x b x af ( x) b ( x)e dx a f ( x)e dx b ( x)e dx
isx isx
isx
aF f x bF x . This is the desired property.
In particular, if a = b = 1, we get F f x x F f x F x
Again if a = -b = 1, we get F f x x F f x F x
2. Change of Scale Property
1 s
If f̂ s Ff x , then for any non – zero constant a, we have Ff ax f̂ , a 0
a a
Proof: By definition, we have F f x isx
f ( x)e dx
F f ax isx dt
f (ax)e dx put ax t adx dt dx
a
t
is
dt 1 1 s
f (t )e a f (t )e i ( s / a )t dt fˆ
a a a a
3. Shifting Properties:
For any real constant ‘a’, (i) F f x a eisa fˆ (s) (ii ) F[eiax f ( x)] fˆ (s a), Where
fˆ (s) F[ f ( x)]
Proof : (i) We have F f x fˆ s f ( x)e isx dx
Hence, F f x a isx
f ( x a)e dx , set x a t dx dt , then
F f x a f (t )e is(t a) dt e ias f (t )e ist dt e isa fˆ ( s)
ii) We have fˆ ( s a) f ( x)e i ( s a) x dx f ( x)e iax e isx dx
g ( x )e
isx
dx, where g ( x) f ( x)e iax
F[ g ( x)] F[eiax f ( x)] This is the desired result.
4. Modulation Property: If F f x fˆ s , then F f x cos ax fˆ s a fˆ s a
1
2
where ‘a’ is a real constant.
e iax e iax
Proof: We have cos ax
2
e iax e iax
Hence F f x cos ax F f x
2
1
2
1
F f ( x)e iax f ( x)e iax F[ f ( x)e iax ] F[ f ( x)e iax ]
2
1
fˆ s a fˆ s a , by using linearity and shift properties.
2
This is desired property.
Examples
1 for x 1 sin x
1. Find the Fourier transform of f ( x) hence evaluate dx
0 for x 1 0 x
<< The Fourier transform of f(x) is given by
1 1
ˆf ( s) f ( x)e isx dx 0.e isx dx 1.e isx dx 0.eisx dx e
isx 1
e is e is 2 sin s
,s 0
1 1 is 1 is s
& for s 0, fˆ ( s) 2 .
Now by the inverse Fourier transform we have
1 ˆ isx 1 2 sin s isx 1 for x 1
f ( x) f ( s)e ds Or e ds
2 2 s 0 for x 1
By putting x = 0 we get,
1 2 sin s sin s sin s
ds 1 ds 2 ds , as the integrand is even
2 s s 0 s
sin s sin x
ds 0r dx
0 s 2 0 x 2
1 x 2 for x 1
2. Find the Fourier transform of f ( x) Hence evaluate
0 for x 1
x cos x sin x x
3
cos dx
0 x 2
<< The Fourier transform of f(x) is given by
1 1
fˆ ( s) f ( x)e isx dx 0.e isx dx (1 x 2 ).e isx dx 0.eisx dx
1 1
isx
1 1 isx 1 isx
e e e
(1 x 2 ) (2 x) ( 2)
is 1 (is) 2 1 (is) 3 1
2 2 4 cos s 4 sin s 4
0 2
(e is e is ) 3
(e is e is ) ( s cos s sin s)
s is s2 s3 s3
Now by inversion formula, we have
1 ˆ isx
f ( x) f ( s)e ds
2
1 4 isx
1 x 2 , x 1
Or ( s cos s sin s ) e ds
2 s 3 0, x 1
Putting x 1/ 2 , we get
4 1 is / 2 3
3 ( s cos s sin s)e ds
2 s 4
s cos s sin s s s 3
Or cos i sin ds
s3 2 2 8
s cos s sin s s 3 s cos s sin s s 3
Or 3
cos ds 3
cos ds , since the
s 2 8 0 s 2 16
integrand
is even
x cos x sin x x 3
. cos dx
0 x3 2 16
a x
3. Find the Fourier Transform of the function f ( x) e where a 0
The Fourier transform of f(x) is given by
0 a x isx
a x isx a x isx
fˆ ( s) f ( x)e isx dx e e dx e e dx e e dx
0
Using the fact that x x,0 x & x x, x 0, we get
0 0
fˆ ( s) e ax e isx dx e ax e isx dx e (a is) x dx e (a is) x dx
0 0
e a is x
0
e a is x
1 1 2a
2 2
a is a is 0 a is a is a s
Exercises:
1, x a
4. Find the Fourier Transform of the function f(x)
0, x a
where ‘a’ is a positive constant. Hence evaluate
sin s a cos s x sin s
(i) ds (ii ) 0 ds
s s
<< For the given function, we have
F f x f ( x)e isx dx
a a
f ( x)eisx dx a f ( x)e isx dx a f ( x)e isx dx
a
a e isx dx 2
sin sa
s
sin s a
Thus F f x fˆ s 2 ......... (1)
s
Inverting f̂ s by employing inversion formula, we get
1 sin sa isx
f x
2 e ds
2 s
Here, the integrand in the first integral is even and the integrand in the second integral is odd.
Hence using the relevant properties of integral here, we get
1 sin sa cos sx
f ( x)
ds or
s
sin sa cos sx , x a
ds f ( x)
s 0, x a
sin s
For x 0, a 1, this yields ds
s
sin s
Since the integrand is even, we have 20 ds
s
sin s
Or 0 ds
s 2
2 2
5. Find the Fourier Transform of f(x) e- a x where ‘a’ is a positive constant.
2
x
Deduce that f(x) e 2 is self reciprocal with respect to Fourier transform.
Here
2 2
a 2 x 2 isx a x isx
F f x e e dx e dx
is 2 s 2
ax
2a 4a 2
e dx
2 is 2
s ax
2
e 4a e 2a dx
2
s 2
is
e t dt
2
Setting t ax - , we get F f x e 4 a
2a a
2
s 2 t 2 dt
1
e 4 2 2 e t dt
a
a
0
but e 2
0
2
s
1 4a 2
e , using gamma function.
a
2
s
ˆf s 4 a 2
e
a
This is the desired Fourier Transform of f(x).
2 2
For a 2 1 2 in f(x) e - a x
2
-x
2
we get f(x) e and hence,
2
s
f̂ s 2 e 2
2 2
-x -s
Also putting x s in f(x) e 2 , we get f(s) e 2 .
Hence, f(s) and f̂ s are same but for constant multiplication by 2 .
Thus f(s) fˆ s
2
-x
It follows that f( x) e 2
is self reciprocal
2
6) Find the inverse Fourier Transform of f̂ s e s
Exercises:
Find the Complex Fourier Transforms of the following functions:
x, x a 1 x , x 1
(1) f x where ' a' is a positive constant (2) f x
0, x a 0, x 1
0, xa
2 2
a x , x a
(3) f x 1, a x b where ' a' and ' b' are positive constants (4) f x
0,
0, x a
xb
a x x
(5) f ( x) xe where ' a' is a positive constant (6) f ( x) e (7) f ( x) cos 2 x 2
(8) f ( x) sin 3x 2
The integral f ( x) sin sxdx is called the Fourier sine Transform of f (x) . This is denoted by
0
fˆs ( s) or Fs [ f ( x)] , thus f̂ s s Fs f x f ( x) sin sxdx
0
2
The inverse Fourier sine Transform of fˆs ( s) is defined through the integral fˆs ( s) sin sxds .
0
This is denoted by f(x) or Fs-1 f s s . Thus
2ˆ
f(x) Fs-1 f s s f s (s) sin sxds
0
Properties
s dt
Setting ax = t, we get Fs f ax 0 f t sin t
a a
1 s 1 s
f (t ) sin tdt f̂ s
a a a a
(3) MODULATION PROPERTY
If Fs f x fˆs s , then for a 0, we have Fs f x cos ax fˆs s a fˆs s a
1
2
Proof: We have Fs f x cos ax 0 f x cos ax sin sx dx
1
f ( x)sin( s a) x sin( s a) xdx
2
0
1
f ( x) sin( s a) xdx f ( x) sin( s a) xdx
2 0 0
1 ˆ
2 s
f s a fˆs s a , by using Linearity property.
FOURIER COSINE TRANSFORMS:
Let f (x) be defined for positive values of x. Then the integral f ( x) cos sxdx is called the
0
Fourier Cosine Transform of f (x) and is denoted by fˆc ( s) or Fc [ f ( x)] . Thus
2
f̂ c s Fc f x f ( x) cos sxdx
0
The inverse Fourier Cosine Transform of fˆc ( s) is defined through the integral
2ˆ
f c ( s) cos sxds . This is denoted by f (x) or Fc [ fˆc (s)] . Thus
1
0
2
f x Fc-1 fˆ s fˆc s cos s x d s
0
Basic Properties:
The following are the basic properties of cosine transforms:
(1) Linearity property: If ‘a’ and ‘b’ are two constants, then for two functions f (x) and
1 s
(2) Change of scale property: If Fc f x f̂ c s , then for a 0, we have Fc f ax f̂ c
a a
(3) Modulation property: If Fc f x f̂ c s , then for a 0, we have
1
Fc f x cos sx f̂ c s a f̂ c s a
2
The proofs of these properties are similar to the proofs of the corresponding properties of
Fourier Sine Transforms.
EXAMPLES
x
x sin mx e m
1. Find the Fourier Sine transform of e . Hence show that dx ,m 0
2
0 1 x 2
x
<< Fs [ f ( x)] f ( x) sin sxdx e sin sxdx e x sin sxdx [since |x| = - x in (0, ) ]
0 0 0
ex 1
2
sin sx s cos sx 0 (0 s )
s
1 s 0 1 s2 1 s2
By using inverse formula for Fourier sine transform, we get
2 x 2 s
f ( x) Fs [ f ( x)] sin sxds e sin sxds , By changing x to m, we get
0 01 s2
2 s sin ms 2 x sin mx x sin mx e m
em ds dx dx
0 1 s2 0 1 x2 0 1 x
2 2
x for 0 x 1
2. Find the Fourier Cosine transform of f ( x) 2 x for 1 x 2
0 for x 2
1 2
<< Fc [ f ( x)] f ( x) cos sxdx f ( x) cos sxdx f ( x) cos sxdx f ( x) cos sxdx
0 0 1 2
1 2
x cos sxdx (2 x) cos sxdx 0. cos sxdx
0 1 2
1 2
sin sx cos sx sin sx cos sx
x. 1. (2 x) (1)
s s 2 0 s s 2 1
e ax
a cos sx s sin sx
a2 s 2 0
1
2 2
0 (a) a
s a s a2 2
Integrating w.r.t. s, we get,
a s
F ( s) ds tan 1 c
2 2
s a a
s
But F(0) = 0 when s = 0 c 0. Hence F ( s) tan 1
a
1
4. Find the Fourier Cosine Transform of f ( x) . Hence derive Fourier sine transform of
1 x2
x
( x)
1 x2
1
<< Fc [ f ( x)] f ( x) cos sxdx cos sxdx I ( say)
2
0 01 x
dI cos sx x sin sx x 2 sin sx [1 x 2 1] sin sx
dx dx dx dx
ds 0 s 1 x 2 0 1 x
2 2
0 x(1 x ) x(1 x 2 )
sin sx sin sx sin sx d 2 I x cos sx
dx dx dx dx I
2 2 2 2
0 x 0 x (1 x ) 2 0 x (1 x ) ds 0 x (1 x )
d 2I d
I 0 ( D 2 1) I 0, where D
2 ds
ds
dI
I c1e s c2 e s c1e s c2 e s
ds
dx dI
When s 0, we get c1 c2 I & c1 c2 c1 0 & c2
2
01 x 2 ds 2 2
Fc [ f ( x)] I e s
2
x sin sx dI s
Now Fs [ ( x)] dx e
2
0 1 x ds 2
1 , 0 1 sin 2 t
5. Solve the integral equation f ( ) cos d .Hence evaluate dt
0 0 , 1 0 t 2
<< We have f ( ) cos d Fc ( )
0
1 , 0 1
Fc ( ) ------------- (1)
0, 1
by the inverse formula we have
TRANSFORM CALCULUS, FOURIER SERIES AND NUMERICAL TECHNIQUES Page 45
2 21 2 sin cos 1
f ( ) Fc ( ) cos d (1 ) cos d (1 ) (1)
0 0 2 0
2(1 cos )
2
2(1 cos )
Now Fc ( ) f ( ) cos d cos d ----------- (2)
0 0 2
2 1 cos 1 , 0 1
From (1) & (2) we have cos d
0 2 0, 1
Now take limit as 0, we get
2 1 cos 1 cos 2 sin 2 / 2
d 1 d d , put t , then d 2dt
0 2
0
2 2 0 2 2 2
2 sin 2 t sin 2 t
2dt dt
2 2 2 2
0 (t / 2) 0 t
(6) Solve the integral equation f ( x) cos xdx e a
0
Let () be defined by () e a
Given f ( x) cos xdx f̂ c
0
Using this in the inversion formula, we get
2 2
f ( x) () cos xd e a cos xd
0 0
2 e a 2 a 2a
a cos x x sin x
a 2 x 2 a x (a x 2 )
2 2 2
0
Exercises:
1, 0 x a 1 cos sa
1. Find the Fourier sine transform of f x Ans :
0, xa s
1, 0 1
2. Find f(x) from the integral equation f ( x) sin xdx 2, 1 2
0 0, 2
Ans : 2 1 cos x 2 cos 2 x
x
3. Find the sine transforms of the following functions
x, 0 x 1
sin x, 0 x a
(i ) f x a x, 1 x a (ii ) f x xe ax , a 0 (iii ) f x
0, 0, xa
xa
1 , 0 1
(4) Solve for f(x) given f ( x) sin xdx
0 0, 1
5) Find the inverse sine transforms of the following functions:
e as
(i ) fˆs s ,a0 (ii ) fˆs s
s 2
cos kx
6. Find the Cosine transform of f ( x) e ax , a 0. Hence evaluate dx
2 2
0x a
Ans : a cos kx e ax
& dx
a2 2 0 x2 a2 2a
7. Find the Fourier Cosine Transforms of the following functions:
4 x, 0 x 1
2 cos x, 0 x a
(i) f(x) 4 x, 1 x 4 (ii ) f x e ax , a 0 (iii ) f ( x)
0, 0, xa
x4
1 cos 2 x
(iv ) f ( x) xe ax , a 0 (v ) f ( x ) (vi) f ( x)
2
1 x 1 x2
1 , 0 1
8. Solve for f (x) given f ( x) cos xdx
0 0, 1
Introduction
The Z-transform plays an important role in the study of communications, sample data control
systems, discrete signal processing, solutions of difference equations etc.
Definition:
A difference equation is a relation between the differences of an unknown function at one or
more general values of the argument.
Eg: y(n 1) y(n) 2 & 2 y(n 1) y(n 1) 0 are difference equations.
Hence the first equation can be written as y(n 2) y(n 1) y(n) 2 -------- (1)
a u n z n b vn z n aZ (un ) bZ (vn )
n0 n0
In particular, for a b 1 , we get Z[u n vn ] Z[u n ] Z[vn ] and for a b 1 , we get
k 1
k n k n
z un z z un z un z n
n k n 0 n 0
z k U ( z ) u0 u1z 1 u2 z 2 ...... uk 1z (k 1) ]
Particular cases:
In particular, we have the following standard results:
1. Z (u n1 ) z[U ( z) u0 ]
2. Z (u n 2 ) z 2 [U ( z ) u0 u1 z 1 ]
3. Z (u n 3 ) z 3[U ( z ) u0 u1 z 1 u 2 z 2 ] etc.
Particular cases of Z (n p ) :-
1. For p = 1, we get Z ( n) z
d
Z (1) z d z z 2
dz dz z 1 ( z 1)
z
Thus, Z (n)
( z 1) 2
2
2. For p = 2, we get Z (n 2 ) z
d
Z (n) z d z 2 z z3
dz dz ( z 1) ( z 1)
2 z2 z
Thus, Z (n )
( z 1) 3
3 z 3 4z 2 z
3. For p = 3, we get Z (n ) & soon
( z 1) 4
4. Transform of na n
By damping property, we have
z z
Z (na ) Z (n)Z Z
n
a az
2
a ( z 1) 2
Z Z z ( z a) 2
a 1
a
az
Thus, Z (na n )
( z a) 2
5. Transform of n 2 a n :
2 n 2
We have, Z (n a ) Z (n ) Z Z z2 z
3
( z / a) 2 z / a ( z 2 az)a 3
z / a 13
2
a ( z a) 3
a ( z 1) Z Z
a
az a z 2 2
Thus, Z (n 2 a n )
( z a )3
6. Transforms of cosh n and sinh n :
e n e n 1
We have cosh n Z (cosh n ) Z (e n e n )
2 2
1
Z (e n ) Z (e n ) , by using the linearity property
2
(e e )
z z z e z e
z
1 z 2
z 2
2 z e z e 2 z 2 z (e e ) 1 z z (e e ) 1
zz cosh
2
z 2 z cosh 1
e n e n z 1 1
Next, sinh n Z (sinh n )
2 2 z e z e
z e e z sinh
2 z 2 2 z cosh 1 z 2 2 z cosh 1
7. Transforms of cos n and sin n
e in e in
We have cos n
2
1 1 z z z 2 z (e i e i )
Z (cos n ) Z (ein e in )
2 2 z e i z e i 2 z 2 z (e i e i ) 1
z[ z cos ]
2
z 2 z cos 1
e in e in
Next, sin n
2i
1 z z z e i e i z sin
Z (sin n ) 2
2
2i z e i
z e i
2i z 2 z cos 1 z 2 z cos 1
8. Transforms of a n cos n and a n sin n
z[ z cos ]
We know that Z (cos n ) U ( z ) . Hence by using damping rule we get
z 2 2 z cos 1
z / a[ z / a cos ] z ( z a cos )
Z (a n cos n ) U ( z / a)
( z / a) 2( z / a) cos 1 z 2az cos a 2
2 2
z sin
Similarly we know that Z (sin n ) U ( z ) . Hence by using damping rule we
2
z 2 z cos 1
get
( z / a) sin az sin
Z (a n sin n ) U ( z / a)
( z / a) 2( z / a) cos 1 z 2az cos a 2
2 2
4 z 1
z z sin( / 4) z 3z 2 5az
3. 4. 5a.
z 1 ( z 1) 1 z 1
z 2 2 z 1
2 2 2
( z 1) z 2 z cos( / 4) 1
2
3z 5az ( z 1) 2 2z (3 5a) z 5az 2 2 2z
( z 1) 2 z 2 2z 1 ( z 1) 2 z 2 2z 1
2. (n 1) 2
2 2 2 z2 z z z
<< Z [( n 1) ] Z (n 2n 1) Z (n ) 2Z (n) Z (1) 2.
( z 1) 3
( z 1) 2 z 1
2 2
z z 2 z ( z 1) z ( z 1) z z 2z 2z z 2z 2 z
2 2 3
z3 z 2
( z 1) 3 ( z 1) 3 ( z 1) 3
3. sin(3n 5)
<< Z[sin(3n 5)] Z (sin 3n cos5 cos3n sin 5) cos5Z (sin 3n) sin 5Z (cos 3n)
z sin 3 z ( z cos3) z sin 3 cos5 z 2 sin 5 z sin 5 cos3
cos5. sin 5.
z 2 2 z cos3 1 z 2 2 z cos3 1 z 2 2 z cos3 1
z (sin 3 cos 5 cos 3 sin 5) z 2 sin 5 z sin(2) z 2 sin 5 z ( z sin 5 sin 2)
z 2 2 z cos 3 1 z 2 2 z cos 3 1 z 2 2 z cos 3 1
4. ne an
Let u n n, e an k n where k e a
Therefore Z (ne an ) Z (nk n ) U ( z / k ), By damping rule.
z z/k kz
Where U ( z ) Z (n) U (z / k) , where k e a
2 2 2
( z 1) ( z / k 1) (z k)
ea z
Hence Z (ne an ) U ( z / k )
(z ea )2
5. n 2 e an
Let u n n 2 , e an k n where k e a
Therefore Z (n 2 e an ) Z (n 2 k n ) U ( z / k ), By damping rule.
2 z2 z (z / k)2 z / k kz 2 k 2 z
Where U ( z ) Z (n ) U (z / k) , where k e a
3 3 3
( z 1) ( z / k 1) (z k)
a 2 a 2 a a
e z (e ) z e z( z e )
Hence Z (n 2 e an ) U ( z / k )
a 3
(z e ) ( z e a )3
6. i) a n cosh n ii) a n sinh n
zz cosh
i) We know that Z (cosh n ) U ( z ) , Hence by using damping rule we
z 2 2 z cosh 1
( z / a)[( z / a) cosh ] z ( z a cosh )
get Z (a n cosh n ) U ( z / a)
( z / a) 2( z / a) cosh 1 z 2az cosh a 2
2 2
z sinh
ii) We know that Z (sinh n ) U ( z ) , Hence by using damping rule we
2
z 2 z cosh 1
( z / a) cosh az cosh
get Z (a n sinh n ) U ( z / a)
( z / a) 2 2( z / a) cosh 1 z 2 2az cosh a 2
TRANSFORM CALCULUS, FOURIER SERIES AND NUMERICAL TECHNIQUES Page 53
7. e t sin 2t
z sin 2
We know that sin 2t U ( z)
2
z 2 z cos 2 1
Z (e t sin 2t ) U ( z / e) , By damping rule.
( z / e) sin 2 ez sin 2
( z / e) 2 2( z / e) cos 2 1 z 2 2ez cos 2 e 2
8. e k cos k (k 0)
z ( z cos )
We know that Z (cos k) U ( z)
2
z 2 z cos 1
( z / e)[( z / e) cos ] z ( z e cos )
Z (e k cos k) Z ((e1 ) k cos k) U ( z / e)
( z / e) 2 2( z / e) cos 1 z 2 2ez cos e 2
n
9. cos
2 4
n n n n n
<< Z cos Z cos cos sin sin cos Z cos sin Z sin
2 4 2 4 2 4 4 2 4 2
z ( z cos
1 1
z sin 2
2 2 1 z z z ( z 1)
2 z 2 2 z cos 1 2 z 2 2 z cos 1 2 z 2 1 z 2 1 2 ( z 2 1)
2 2
n
10. cosh
2
<< Z cosh
n
2
e n / 2 e (n / 2 ) 1 n / 2
Z
2
e Ze
e Z e (n / 2)
2
1 z z
e
z
e Using Z (e ax )
2 z e / 2 / 2
z e z ea
z e ( z e / 2 ) e ( z e / 2 ) z z (e e ) e ( / 2 ) e / 2
2 z 2 z (e / 2 e / 2 ) 1 2 z 2 z (e / 2 e / 2 ) 1
z z.2 cosh [e ( / 2 ) e ( / 2 ) z cosh cosh / 2
z
2 z 2 2 z cosh( / 2) 1 2
z 2 z cosh( / 2) 1
z 2 cosh z cosh / 2
z 2 2 z cosh( / 2) 1
11. n C p (0 p n)
n
<< Z n C p n C p z p 1 nC1 z 1 nC2 z 2 ..... nC n z n (1 z 1 ) n
p 0
n n
1 z 1
1
z z
12. n p C n
Z n p Cn n p Cn z p 1 n 1Cn z 1 n 2Cn z 2 n 3Cn z 3 ..........
p 0
n 1
1 C1 z 1 n 2C2 z 2 n 3C3 z 3 .........., Using n Cn r n Cr
(n 2)(n 1) 2 (n 3)(n 2)(n 1) 3
1 (n 1) z 1 z z .........
2! 3!
(n 2)(n 1) (n 3)(n 2)(n 1)
1 (n 1)( z ) 1 ( z 1 ) 2 ( z 1 ) 3 .......
2! 3!
( n 1) ( n 1) ( n 1)
1 n 1 1 z 1 z
(1 z )
1
z z z 1
1 n 0
13. Unit impulse sequence (n)
0 n 0
<< Z [ (n)] (n) z n 1 0 0 0 ........ 1
n0
0 n 0
14. Unit step sequence u (n)
1 n 0
1 z
<< Z [u (n)] u (n) z n 1 z 1 z 2 z 3 ......
1 z 1
n0 1 z
1 1 1
15. Show that Z e1 / z . Hence evaluate Z & .Z
n! (n 1)! (n 2)!
1 1 z 1 z 2 z 3 1
<< Z .z n 1 ...... e z e1 / z
n! n 0 n! 1! 2! 3!
1 1
Shifting one unit to the left gives Z
1
zU ( z ) u0 z Z 1 z (e1 / z 1
n! (n 1)! n!
1
Similarly .Z z 2 [U ( z ) u 0 u1 z 1 ] z 2 [e1 / z 1 z 1 ]
(n 2)!
n n
1 1
16. u n
2 4
1 n 1 n 1
n
1
n
z z 2z 4z
We have, Z (u n ) Z Z Z
2 4 2 4 1 1 2z 1 4z 1
z z
2 4
2 z (8 z 3)
(2 z 1)(4 z 1)
d (U ( z ))
Multiplication by n: If Z (u n ) U ( z ), then Z (nu n ) z
dz
d ( z n) d (u z n )
Proof: Z (nu n ) nu n z n z u n (n) z n 1 z u n z n
n0 n0 n0 dz n0 dz
d d (U ( z ))
z un z n z
dz n 0 dz
m
m m d [U ( z )]
Note: In general Z (n u n ) ( z )
dz m
Example: Find the z – transform of i) nsin n ii) n 2 e n
z sin d
i) We know that Z (sin n ) , using Z (nu n ) z U ( z ), we get
z 2 2 z cos 1 dz
d z sin ( z 2 2 z cos 1) sin z sin (2 z 2 cos )
Z (n sin n ) z z
dz z 2 2 z cos 1
2
( z 2 z cos 1) 2
z 2 sin 2 z cos sin 1sin 2 z 2 sin 2 z sin cos
z
2
( z 2 z cos 1) 2
sin z sin
2 2
z z ( z 1) sin
( z 2 2 z cos 1) 2 ( z 2 2 z cos 1) 2
d2
ii) We know that Z (e n )
z
& Z (n 2 u n ) ( z ) 2 U ( z)
z e dz 2
2 e
2 n 2 d z 2 d ( z e ).1 z (1) 2 d
Z (n e ) ( z ) z z
dz 2 z e ) dz ( z e ) 2 dz ( z e )
2 2
z 2 e 2e z
( z e ) 3 ( z e ) 3
I. Initial value theorem: If Z (u n ) U ( z ), then u0 Lt U ( z )
z
Proof: we know that U ( z ) Z (u n ) u0 u1 z 1 u 2 z 2
........
Taking limit as z , we get Lt U ( z ) u0
z
Similarly u1 Lt z[U ( z ) u0 ], u 2 Lt z 2 [U ( z ) u0 u1 z 1 ] , & so on
z z
II. Final value theorem: If Z (u n ) U ( z ), then Lt (u n ) Lt ( z 1)U ( z )
n z 1
Proof: By definition Z (u n 1 u n ) (u n 1 u n ) z n Or
n0
Z (u n 1 ) Z (u n ) (u n 1 u n ) z n
n0
Or Z [U ( z ) u 0 ] U ( z ) (u n 1 u n ) z n Or U ( z )( z 1) u 0 z (u n 1 u n ) z n
n0 n 0
Taking limits of both sides as z 1, we get
Lt ( z 1)U ( z ) u0 (u n 1 u n ) Lt [(u1 u0 ) (u 2 u1 ) (u3 u 2 ) ........ (u n 1 u n )]
z 1 n0 n
Lt u n 1 u0 u u0
n
Hence u Lt ( z 1)U ( z ) Or Lt u n Lt ( z 1)U ( z )
z 1 n z 1
2
2 z 5 z 14
Example: If U ( z ) , evaluate u 2 & u3
( z 1) 4
2 z 2 5 z 14 1 2 5 z 1 14 z 2
<< U ( z ) . ,
( z 1) 4 z2 (1 z 1 ) 4
1 2 5 z 1 14 z 2
By Initial value theorem, u 0 Lt U ( z ) Lt . 0
z z z 2 (1 z 1 ) 4
1 2 5 z 1 14 z 2
Similarly u1 Lt z[U ( z ) u0 ] Lt z .
z z z 2 (1 z 1 ) 4
1 2 5 z 1 14 z 2
Lt . 0
z z (1 z 1 ) 4
1 2 5 z 14 z
1 2
Now u 2 Lt z 2 [U ( z ) u 0 u1 z 1 ] Lt z 2 .
2 1 4
z z z
(1 z )
2 5 z 1 14 z 2
Lt 2
z (1 z 1 ) 4
2 z 5 z 14
2
& u3 Lt z 3 [U ( z ) u 0 u1 z 1 u 2 z 2 ] Lt z 3 0 0 2z 2
z z ( z 1) 4
2 z 5 z 14 2
2
z (2 z 5 z 14) 2( z 1)
2 2 4
Lt z 3 Lt z 3
z ( z 1) 4 z 2 z 2 ( z 1) 4
z
2 z 5 z 14 z 2 z 8 z 2 8 z 8 z 4 z
4 3 2 4 2 3 2
Lt z 3
z
z 2 ( z 1) 4
13z 2 z 8 z 2
3 2
3 z [13 2 z 8 z 2 z
3 1 2 3
Lt z 3 Lt z 13
2 4 6 1 4
z
z ( z 1)
z
z (1 z )
2 z 2 3z 12
9) If U ( z ) , find the value of u 2 & u3
( z 1) 4
2 z 2 3z 4
10) Given that Z (u n ) , z 3, show that u1 2, u 2 21, u3 139
( z 3) 3
1 z
11) Show that Z z log
n z 1
z ( z 3 z ) cos 2 z 2
12) Using Z (n) , show that Z (n cos )
( z 1) 2 ( z 2 2 z cos 1) 2
z 2z 2/ 2 3a 4 z
Answers: 1. z (e1 / z 1) 2. 3.
z e i ( z 1) 2 z 2 2z 1 z 1
z 3 3z 2 4 z za 3 z 2 (1 3z 2 )
4. 5) 8)
( z 1) 3 za (1 z )(1 z 2 )
9) u 2 2, u3 11
Inverse Z – Transform: If U (z ) is Z – Transform of u n , then u n is called Inverse Z – Transform
of U (z ) , Denoted by u n Z 1[U ( z )].
Some Useful Inverse Z – transforms:
z z
1. Z 1 an 2. Z 1 1
z a z 1
az z
3. Z 1 n
a .n 4. Z 1 n
2 2
( z a) ( z 1)
az 2 a 2 z z2 z
5. Z 1 n 2
a .n 6. Z 1 n
2
3 3
( z a) ( z 1)
3 2 2 3
1 az 4a z a z n 3
3 2
1 z 4 z z
3
7. Z
4
a .n 8. Z
4
n
( z a) ( z 1)
z z2
9. Z 1 sin( n / 2) 10. Z 1
2 cos(n / 2)
z 2 1 z 1
Evaluation of inverse Z – Transforms: We have the following 3 methods –
1. Power series method:
z
Example: 1) Find the inverse Z – Transform of log , by power series method.
z 1
z 1/ y 1
<< Putting z 1 / y, we get U ( z ) log log log log(1 y)
z 1 1/ y 1 1 y
1 1
y y 2 y 3 ........
2 3
1 2 1 3 (1) n
1
z z z ......... z n
2 3 n 1 n
0 for n 0
un n
(1) / n other wise
z
2) Find the inverse Z – Transform of , by division method
( z 1) 2
z 1 2 z 2 3z 3 .........
<< By Dividing we get z 2 2z 1 z
z 2 z 1
2 z 1
2 4 z 1 2 z 3
3z 1 2 z 2
3z 1 6 z 2 3z 3
4 z 2 3z 3 & so on
z
Hence z 1 2 z 2 3z 3 4 z 4 ..........., which is an infinite series
2
( z 1)
i.e. U ( z ) (1) n 1nz n u n (1) n n
n0
II. Partial fraction method:
2 z 2 3z z 3 20 z
1. Find the inverse Z – Transform of i) ii)
( z 2)( z 4) ( z 2) 3 ( z 4)
2 z 2 3z U ( z) 2z 3 A B
<< i) Write U ( z ) as
( z 2)( z 4) z ( z 2)( z 4) z 2 z 4
Then 2 z 3 A( z 4) B( z 2) 11 6B B 11 / 6 & 1 6 A A 1 / 6
U ( z) 1 1 11 1 1 z 11 z
U ( z)
z 6 z2 6 z4 6 z2 6 z4
1 11
On inversion we get u n (2) n (4) n
6 6
z 3 20 z U ( z) z 2 20 A Bz cz 2 D
ii) Write U ( z ) as
( z 2) 3 ( z 4) z 3
( z 2) ( z 4) ( z 2) 3 z4
Then ( A Bz Cz 2 )( z 4) D( z 2) 3 z 2 20
If z 4, then 8D 16 20 D 1/ 2 , By putting z 0,1 & 1, we get
4 A 8D 20 A 2D 5 A 1 5 A 6
(A B C)(-3) - D 1 - 20 -3A - 3B - 3C - D -19 3A 3B 3C - 1/2 19
19 1 / 2 39 13 13 1
6 BC B C 6 --------- (1)
3 6 2 2 2
38 27 65
& ( A B C )(5) 27 D 19 5( A B C ) 19 27 1 / 2
2 2
65 13 13 1
A B C B C 6 ------- (2)
2(5) 2 2 2
By adding (1) & (2) we get
2C 1 C 1/ 2 B 0
U ( z) 6 1/ 2z 2 1 1 6z 1/ 2z 3 1 z 1 12 z z 3 z
U ( z)
z ( z 2) 3 2 z4 ( z 2) 3 2 z 4 2 ( z 2) 3 z 4
1 z ( z 2) 2 4 z 2 8 z z 1 z 2z 2 22 z z
2.
2 ( z 2) 3 z 4 2 z 2 ( z 2) 3 z 4
1
On inversion, we get u n 2 n 2.2 n.n 2 4 n 2 n 1 n 2 2 n 2 2n 1
2
2( z 2 5 z 6.5)
2. Find the inverse Z – Transform of , for 2 z 3
( z 2)( z 3)2
2( z 2 5 z 6.5) A B C
<< U ( z ) , Then
( z 2)( z 3) 2 z 2 z 3 ( z 3) 2
2( z 2 5z 6.5) A( z 3) 2 B( z 2)( z 3) C ( z 2)
z 2 2(4 10 6.5) A A 1, z 3 2(9 15 6.5) C C 1
z 0 13 9 A 6B 2C, i.e. 13 9 6B 2 6B 6 B 1
1 1 2
1 1 1 1 2 1 z 1 z
U ( z ) 1 1 1
z 2 z 3 ( z 3) 2 z z 3 3 9 3
(so that 2 / z 1 & z / 3 1 )
1 2 4 8 1 z z z 1 2 z 3z 2 4 z 3
2 3
1 ....... 1 ....... 1 ....
z z z 2 z3 3 3 9 27 9 3 9 27
Where 2 z 3
1 2 2 2 23 1 z z 2 z3 1 2 z 3z 2 4 z 3
..... .... ....
z z 2 z3 z 4 3 32 33 34 32 33 34 35
n 1 n2
n 1 n 1 1
2 z z (n 1)
n
zn
n0 3
n 1
3 n 0
n2 n 1
n 1 n 1 1
2 z (n 1)
z n
n 0
n 1
3 3
n2
1
n 1 n
2 z (n 2) zn
n 1 n0 3
On inversion, we get
u n 2 n 1 , n 1 & u n (n 2)3n 2 , n 0
Exercises: Find the inverse Z – Transform of the following:
z2 4z 5z
1. 2. ,z a 3.
( z 1)( z 3) za (2 z )(3z 1)
z 3z 2 z 8z z 3
4. 5. 6.
( z 1) 2 (5 z 1)(5 z 2) (4 z ) 3
4z 2 2z z3
7. 8.
z 3 5z 2 8z 4 ( z 1)( z 2)
Answers:
n
1 n 1 1 13 4
1. 3 1 2. 4a n 3. 2 n 4. n 5. (0.2) n (0.4) n
2 3 75 75
6. (n 2 7n 4)(4) n 1 7. 2 2 n 3(n 1)2 n , (n 1) 8. 2(i) n 1 (2) n 1
Application to difference equations:
Procedure to solve a linear difference equation with constant coefficients by Z 0
Transforms:
1. Take the Z – transforms of both sides of the difference equation.
2. Transpose all terms without U (z ) to the right.
z
Also Z (3n )
z 3
Taking the Z – Transform on both sides, we get
Z un 2 4Z un 1 3Z un Z 3n
z
z 2 [U ( z ) u0 u1 z 1 ] 4 z[U ( z ) u0 ] 3U ( z )
z 3
z
z 2 [U ( z ) 0 1.z 1 ] 4 z[U ( z ) 0] 3U ( z ) , (Using the given conditions).
z 3
z z 2 3z z z 2 2 z
i.e. ( z 2 4 z 3)U ( z ) z
z 3 z 3 z 3
z 2 2z z 2 2z
U ( z )
( z 2 4 z 3)( z 3) ( z 1)( z 3)( z 3)
U ( z) z2 A B C
Let
z ( z 1)( z 3)( z 3) z 1 z 3 z 3
z 2 A( z 3)( z 3) B( z 1)( z 3) C( z 1)( z 3)
5 1
z 3 5 B(2)(6) B , z 3 1 C (4)(6) C ,
12 24
3
z 1 3 A(2)(4) A .
8
U ( z) 3 1 5 1 1 1 3 z 5 z 1 z
U ( z) ,
z 8 z 1 12 z 3 24 z 3 8 z 1 12 z 3 24 z 3
On inversion we get,
3 z 5 1 z 1 1 z 3 5 1
u n Z 1 Z Z (1) n (3) n 3n
8 z 1 12 z 3 24 z 3 8 12 24
2) Solve y n 2 6 y n 1 9 y n 2 n with y0 y1 0, using Z – Transform.
Solution: Let Z ( y n ) U ( z ), then Z ( yn 1 ) z[U ( z ) y0 ] & Z ( yn 2 ) z 2 [U ( z ) y0 y1 z 1 ]
z
Also Z (2 n ) . by taking Z – Transform we get,
z2
Z y n 2 6Z y n 1 9Z y n Z 2 n z 2 [U ( z ) y0 y1 z 1 ] 6 z[U ( z ) y0 ] 9U ( z )
z
z2
z
i.e. z 2 [U ( z ) 0 0.z 1 ] 6 z[U ( z ) 0] 9U ( z ) (Using the condition y0 y1 0)
z2
z z
( z 2 6 z 9)U ( z ) U ( z)
z2 ( z 2 6 z 9)( z 2)
U ( z) 1 1 A B C
Let
z ( z 6 z 9)( z 2) ( z 3) ( z 2) z 3 ( z 3)
2 2 2 z2
1 A( z 3)( z 2) B( z 2) C ( z 3) 2
1 1
z 2 1 C (25) C , z 3 1 B(5) B & z 0 1 6 A 2 B 9C
25 5
1 1 9 2 9 10 25 6 1
1 6 A 2 9 6 A 1 A
5 25 25 5 25 25 25
U ( z) 1 1 1 1 1 1 1 1 1 5
z 25 z 3 5 ( z 3) 2 25 z 2 25 z 2 z 3 ( z 3) 2
1 z z 5z
U ( z) , On taking inverse Z – transform we get,
25 z 2 z 3 ( z 3) 2
1 1 z 1 z 5 1
3z
yn Z Z z 3 3 Z
25
z 2 2
( z 3)
1 n
25
2 ( 3) n 5
n ( 3)n
Z 1
az
2
na n
3 ( z a)
3) Find the response of the system yn 2 5 yn 1 6 yn un with y0 0, y1 1 & u n 1 for
n 0,1,2,........ by Z – Transform method.
Solution: Taking Z – Transform of both sides we get,
Z yn 2 5Z yn 1 6Z yn Z un Z[1]
z
i.e. z 2 [U ( z ) y0 y1 z 1 ] 5 z[U ( z ) y0 ] 6U ( z ) , Using y0 0 & y1 1 we get,
z 1
z
z 2 [U ( z ) 0 1.z 1 ] 5 z[U ( z ) 0] 6U ( z )
z 1
z z z2 z z z2
( z 2 5 z 6)U ( z ) z ( z 2 5 z 6)U ( z ) z
z 1 z 1 z 1 z 1
z2 z2
U ( z)
( z 1)( z 2 5 z 6) ( z 1)( z 2)( z 3)
U ( z) z A B C
Let
z ( z 1)( z 2)( z 3) z 1 z 2 z 3
z A( z 2)( z 3) B( z 1)( z 3) C( z 1)( z 2)
1
z 1 1 A(1)(2) A , z 2 2 B(1)(1) B 2,
2
3
z 3 3 C (2)(1) C
2
U ( z) 1 1 2 3 1 1 z z 3 z
U ( z) 2 , inversion we
z 2 z 1 z 2 2 z 3 2 z 1 z 2 2 z 3
get
1 z z 3 1 z 1 n 3
y n Z 1 2Z 1 Z (1) 2.2 n 3n 2 1 2 n 1 3n 12 1
2 z 1 z 2 2 z 3 2 2
i.e. 5z 2 2 z A( z 3 4 z 2 z) B( z 3 z) C ( z 3 2 z 2 z ) D( z 4 3z 3 3z 2 z )
By equating coefficient of like powers of z, we get
D 0 , A B C 3D 0, 4 A 2C 3D 5, A B C D 2
TRANSFORM CALCULUS, FOURIER SERIES AND NUMERICAL TECHNIQUES Page 64
D 0 A B C 0 ------- (1)
4 A 2C 5 -------- (2)
A B C 2 ------ (3)
Adding (1) & (3) we get 2C 2 C 1
3
From (2) we get 4 A 2(1) 5 4 A 5 2 3 A .
4
3 3 48 1
From (3) we get B A C 2 1 2 .
4 4 4
2 3 2
5z 2 z 3 z 4 z z 1 z z z
4 4 3
( z 1) 4 ( z 1) 4 ( z 1) ( z 1) 2
5 z 2 2 z 3 1 z 3 4 z z 1 1 z 2 z z
Hence Z 1 Z Z Z 1
( z 1) 4 4 ( z 1) 4 4 ( z 1) 3 2
( z 1)
3 3 1 2
4
1
n
1
n n n 3n 3 n 2 4n 3n 2 n 4 n(n 1)(3n 4)
4 4 4 4
z2 A B
z 2 A( z 1) B
( z 1) 2 z 1 ( z 1) 2
z 1 1 B B 1 & z 0 2 A B A B 2 1 2 1
z2 1 1 z 2 2z z z
( z 1) 2 z 1 ( z 1) 2
( z 1) 2 z 1 ( z 1) 2
z 2 2z z z z
Z 1 Z 1 Z 1
1 n & Z 1
n
( z 1) 2 z 1 2
( z 1)
2
( z 1)
Substituting these values in (I) we get
1 1
u n n(n 1)(3n 4) u0 (1 n) u1n n(n 1)(3n 4) u0 (u1 u0 )n
4 4
1
n(n 1)(3n 4) c0 c1n, Where c0 u0 & c1 u1 u0
4
Exercises: Solve the following difference equations using Z – Transforms
1. yn 2 4 yn 0 given that y0 0, y1 2 2. u n 2 5u n 1 6u n 0
3. x(n 2) 3x(n 1) 2 x(n) 0, given that x(0) 0, x(1) 1
4. f (n) 3 f (n 1) 4 f (n 2) 0, n 2, given that f (0) 3, f (1) 2
5. u n 2 5u n 1 6u n 2 n 6. y n 2 6 y n 1 9 y n 3n
n
1 1
7. y n 1 yn (n 0), y0 0 8. yn 2 2 yn 1 yn n with y0 y1 0
4 4
9. u k 2 2u k 1 u k 2 k with u0 2, u1 1 10. y n 2 5 y n 1 6 y n 4 n
1
4. f (n) 2 (4) n 5. u n c1 (1) n c2 (6) n (2) n
12
1 1 n 1 n
6. y n (c1 c2 n)3n n(n 1)3n 2 7. n
y 2
2 4 4
3 1 n
8. y n n 9. u k 1 2k 2 k 10. y n c1 (6) n c2 (1) n 4
4 10
MODULE-IV
Numerical Solutions of Ordinary Differential Equations
dy
Introduction: Here we have to solve the differential Equation f ( x, y ), with the condition
dx
y( x0 ) y0 numerically. The solutions are either as a power series in x from which the values of
y can be obtained directly by substitution, or as a set of values of x and y. The method of Taylor
series belong to the first kind whereas Euler, Runge – Kutta, Milne’s and Adams – Bash forth
methods belongs to the second Kind. In the second type of problems, the values of y are
calculated in short steps for equal intervals of x. Therefore these methods are also called as Step
– by – step methods.
1. Taylor’s Series method: Consider the initial – value problem
dy
f ( x, y ), y( x0 ) y0 ---- (1)
dx
Let y y(x) be the exact solution of this problem. By expanding y(x) using Taylor’s series about
the point x0 , we get
( x x0 ) 2 ( x x0 ) 3
y ( x) y 0 ( x x 0 ) y ' 0 y"0 y' ' ' 0 ............. --------- (2)
2! 3!
Here y0 y( x0 ), y'0 y' ( x0 ), y"0 y" ( x0 ), & soon
Now using total derivative we can find y’, y”, y’’’, etc. as follows
f dx f dy
y' f , given, then y" . . f x f y f , y' f
x dx y dx
Again differentiating we get,
y' ' ' f xx f xy f ff xy ff yy f f x f y f xx 2 ff xy f 2 f yy f x f y & so on. By substituting
these values in (2) we get y(x) as a power series in x.
Problems:
1. Find by Taylor’s series method the value of y at x = 0.1 and x = 0.2 to five places of
dy
decimals from x 2 y 1, y(0) 1. Consider up to 4th degree terms.
dx
Ans: y '0 1. Now differentiating successively we get,
x3 x 4 x 6
y "0 0, y '''0 2, y 0 6, y 0 0, y 0 40 & soon. y ( x) 1 x ............
iv v vi
3 4 18
y(0.1) 0.90031& & y(0.2) 0.80227 , correct to five places of decimals.
2. Employ Taylor’s method to obtain approximate value of y at x = 0.2 for the differential
dy
equation 2 y 3 e x , y(0) 0. Compare the numerical solution so obtained with the
dx
exact solution.
Ans: y0 0, y '0 3, y "0 9, y '''0 21, y0iv 45, y0v 93 & so on
9 7 15 31 5
y ( x) 3 x x 2 x3 x 4 x ......... y(0.2) 0.811248
2 2 8 40
dy
Direct method: Now 2 y 3 e x , i.e. ( D 2) y 3 e x , A.E. is m - 2 = 0 m = 2
dx
1 ex
complimentary solution is yc ce2x . y p 3ex 3 3e x y c e 2 x 3 e x . But
D2 1 2
y 0 when x 0 c 3
Hence y 3e x 3 e 2 x 3(e2 x e x ) y(0.2) 0.811266
Therefore the approximate value is obtained by Taylor’s method up to 4 decimal places.
3. Using the Taylor’s series method, find the approximate solution (up to 4 places of decimal),
dy
at the point 0.1, of the following initial value problem: x y 2 , y(0) 1.
dx
Ans: yo 1, y ' 0 1, y "o 3, yo''' 8, yoiv 34, yov 186 and so on.
3 4 17 31
y( x) 1 x x 2 x3 x 4 x5 ......... Hence y(0.1) 0.9138
2 3 12 20
Exercises I:
1) Evaluate y(0.1) correct to 6 places of decimals by Taylor’s series method if y(x) satisfies
x 2 x3 x 4 x5 x 6
y' xy 1, y(0) 1. [Ans: y( x) 1 x & y(0.1) = 1.1053]
2 3 8 15 48
2) Solve y' y 2 x, y(0) 1using Taylor’s series method & compute y(0.1) & y(0.2)
3 4 17 31
[Ans: y( x) 1 x x 2 x3 x 4 x5 and y(0.1) = 1.1165, y(0.2) = 1.2734]
2 3 12 20
dy
3) Use Taylor’s series method to find y at the point x 0.1 & x 0.2, given that x2 y2 ,
dx
y(0) 1
4 14
[Ans: y( x) 1 x x 2 x3 x 4 x5 & y(0.1) = 1.1114, y(0.2) = 1.2523]
3 15
3. Modified Euler’s method: To obtain initial approximation use the Euler’s formula
yn(0) yn1 hf ( xn1, yn1 ). ------- (1) To improve the value obtained by Euler’s method we have
to use the following formula:
h
y n(r ) y n 1 f ( xn 1 , y n 1 ) f ( x n , y n(r 1) , r 1, 2,
2
--------(2) By applying the
formula (2) repeatedly we can improve the solution obtained by Euler’s method. This method is
called Modified Euler’s method.
Problems:
dy
1. Using Modified Euler’s method, find y(0.1) given x 2 y & y 1 when x = 0 by taking
dx
h=
0.05. Perform two iterations in each step.
Ans: f ( x, y) x2 y, x0 0, y0 1& h 0.05, Hence f ( x0 , y0 ) 0 1 1
y1(0) y0 hf ( x0 , y0 ) 1 0.05 1 1.05 . Now f ( x1, y1(0) ) 0.052 1.05 1.0525
h 0.05
y1(1) y0 f ( x0 , y0 ) f ( x1, y1(0) ) 1
1 1.0525 1.0513 .
2 2
Now f ( x1, y1(1) ) 0.052 1.0513 1.0538
h 0.05
y1(2) y0 f ( x0 , y0 ) f ( x1, y1(1) ) 1
1 1.0538 1.0513. Hence
2 2
y1 y(0.05) 1.0513
Now f ( x1, y1) 0.052 1.0513 1.0538
y2(0) y1 hf ( x1, y1) 1.0513 0.05 1.0538 1.1040 . Now
f ( x2 , y2(0) ) 0.12 1.1040 1.114
h 0.05
y2(1) y1 f ( x1, y1 ) f ( x2 , y2(0) ) 1.0513
1.0538 1.114 1.1055.
2 2
Now f ( x2 , y2(1) ) 0.12 1.1055 1.1155
h 0.05
y2(2) y1 f ( x1, y1 ) f ( x2 , y2(1) ) 1.0513 1.0538 1.1155 1.1055.
2 2
Hence y2 y(0.1) 1.1055.
dy x
2. Using modified Euler’s method find y(20.2), y(20.4) given that log10 with y(20) = 5
dx y
Ans: y1(0) 5.1204, y1(1) 5.1198, y1(2) 5.1198. Hence y 1 y(20.2) 5.1198.
y2(0) 5.239, y2(1) 5.2384, y2(2) 5.2385. Hence y 2 y(20.4) 5.2385.
dy
3. Given y x 2 0, y(0) = 1, y(0.1) = 0.9052, y(0.2) = 0.8213.Find correct to four decimal
dx
places
y(0.3) and y(0.4) using Euler’s modified method.
Ans: Here f ( x, y) x 2 y, x0 0, y0 1, y1 0.9052, y2 0.8213& h 0.1
y3(0) 0.7432, y3(1) 0.7496, y3(2) 0.7493, y3(3) 0.7493 . Hence y3 y(0.3) 0.7493.
y4(0) 0.6834, y4(1) 0.6902, y4(2) 0.6898, y4(3) 0.6898 . Hence y4 y(0.4) 0.6898.
Exercises II:
dy y x
1) Given with boundary condition y = 1 when x = 0, find approximately y for x =
dx y x
0.1 by Modified Euler’s method [Ans: 1.0928]
dy
2) Given that x y 2 & y 1 at x 0. Find a approximate value of y at x = 0.5 by Modified
dx
Euler’s method. [Ans: 2.2352]
dy
3) Solve the differential equation xy 2 , y 2 at x 0, by Modified Euler’s method &
dx
obtain y at x = 0.2 in two stages of 0.1 each. [Ans: 1.9227]
4. Runge – Kutta fourth order method: In this method first we have to find the
quantities
k1 , k 2 , k3 & k 4 using the following formulae –
k1 hf ( x0 , y0 ) , k 2 hf x0 1 h, y0 1 k1 , k3 hf x0 1 h, y0 1 k 2
2 2 2 2
1
k 4 hf x0 h, y0 k3 , Then calculate k k1 2k 2 2k3 k 4
6
Then y1 y0 k , gives the required approximate value of y at x x1.
Problems:
1) Apply Runge – Kutta fourth order method to find an approximate value of y when x = 0.2
given that
dy
x y & y 1 when x = 0.
dx
Ans: k1 0.2, k2 0.24, k3 0.244 k4 0.2888 , Then k 0.2428 . Hence y1 y(0.2) 1.2428
dy y 2 x 2
2) Using Runge – Kutta fourth order method, solve with y(0) 1 at x = 0.2, 0.4.
dx y 2 x 2
Ans: Step I: k1 0.2, k2 0.1967, k3 0.1967 k4 0.1891, Then k 0.196 .
Hence y1 y(0.2) 1.196
Step II: k1 0.1891, k2 0.1795, k3 0.1793, k4 0.1688 , Then k 0.1793 .
Hence y2 y(0.4) 1.3753
3) Apply Runge – Kutta fourth order method to find an approximate value of y for x = 0.2 in
steps of
dy
0.1, if x y 2 , given that y = 1 when x = 0.
dx
Ans: Step I: k1 0.1, k2 0.1153, k3 0.1169, k4 0.1347, Then k 0.1165,
Hence y1 y(0.1) 1.1165.
Step II: k1 0.1347, k2 0.1551, k3 0.1576, k4 0.1823, Then k 0.1571,
MODULE-V
Numerical Solutions of
Second order Differential Equations
dy dz
z, f ( x, y, z ) and we can solve the system by Picard’s method, Runge-Kutta method
dx dx
and Milne’s Predictor-corrector methods.
1. Runge-Kutta 4th order method: 1) Using Runge – Kutta method, solve y '' xy '2 y 2 ,
for x = 0.2 correct to 4 decimal places. Initial conditions are x = 0, y = 1, y1= 0
dy dz
Ans: Let z f ( x, y, z ), then xz 2 y 2 g ( x, y, z ) & x0 = 0, y0 = 1, z0 = 0, h = 0.2. Then
dx dx
k1 0, l1 0.2, k2 0.02, l2 0.1998, k3 0.01998, l3 0.19582, k4 0.039164,
l4 0.1917,
y(0.2) 0.9801& z(0.2) 0.1972
2) Given y '' xy ' y 0, y(0) 1, y '(0) 0, obtain y for x = 0.1, 0.2, 0.3 by Runge-Kutta 4th
order method.
dy dz
Ans: Let z f ( x, y, z ), then xz y g ( x, y, z ), & x0 = 0, y0 = 1, z0 = 0, h = 0.1. Then
dx dx
k1 0, l1 0.1, k2 0.005, l2 0.0998, k3 0.00499, l3 0.0995, k4 0.00995,
l4 0.0985,
y(0.1) 0.9950 & z(0.1) 0.0995
k1 0.00995, l1 0.0994, k2 0.0149, l2 0.0968, k3 0.01479, l3 0.09634,
k4 0.0196, l4 0.0941, y(0.2) 0.9802 & z(0.2) 0.1961
k1 0.01961, l1 0.0941, k2 0.02432, l2 0.0910, k3 0.02416, l3 0.0908,
k4 0.02869, l4 0.0870, y(0.3) 0.9560 & z(0.3) 0.2869
Exercises II: 1) Using Runge-Kutta method of order four solve y '' y xy ', y(0) 1, y '(0) 0
to find
y(0.2) & y '(0.2). [Ans: 1.0202, 0.204]
d2y dy
2) Use Runge-Kutta method to find y(0.2) for the equation 2
x y, given that
dx dx
dy
y 1, 0
dx
when x = 0[Ans: y(0.2) = 0.9799 & y '(0.2) 0.2013. ]
d2y dy
3) Solve 2
x2 2 xy 1given that y(0) 1, y '(0) 0 for y(0.1) using Runge – Kutta
dx dx
method.
[Ans: 1.005334]
CALCULUS OF VARIATION
Calculus of variations deals with finding maximum or minimum value of a definite integral
involving a certain function.(Calculus of variation deals with maximising functionals)
Variation of a function:
Let us consider a function f of x, y, y’.
i.e. f ( x, y, y' ) f x, y( x), y' ( x)
Suppose we give small increments to y and y’ so that they become y η (x) , y'' ( x)
Where is a small parameter which is independent of x. Then by Taylor’s series we have
2
1
f ( x, y ( x), y '' ( x)) f ( x, y, y ' ) ' f ' f .......
y y ' 2! y y '
(y & y’ are treated as variables since x is fixed)
Since h is small, we can neglect second and higher order terms. So we get,
f f
f ( x, y ( x), y' ' ( x)) f ( x, y, y' ) '
y y'
f f
i.e. f ' ----------- (1)
y y '
Where f f ( x, y ( x), y' ' ( x)) f ( x, y, y' ), is called the variation of f.
y y
From (1) we have y ' .1 '.0 y
y y'
y 1
0, as y is only a function of x & not a function of y & y
y1
FUNCTIONALS:
Consider a function f (x, y, y’) where y’ is the derivative of y w.r.t x and x ( x1 , x2 ). Then the
x2
integral I ( y ) f ( x, y, y' ) dx ..........(1) is called a functional. i.e. an integral which
x1
assumes a definite value for functions of type y y(x) is called a functional
Eg: Consider the problem of finding a curve y = f(x) [or y y(x) ] through (x1, y1) and (x2, y2)
such that the length is minimum.
x2
2
i.e., 1 y1 dx is minimum
x1
i.e. We wish to find the curve y = f(x) where y(x1) = y1 and y(x2) = y2 such that for a given
x2
function f (x, y, y’), f ( x, y, y' ) dx is a stationary value or an extremum.
x1
Euler’s Equation:
x2
'
A necessary condition for the integral I f ( x, y, y ) dx where y( x1 ) y1 and y( x2 ) y2
x1
f d f
to be an extremum is ' 0 .......... ( I ) called the Eulers Equation
y dx y
Proof:
Let y = y(x) be the Curve joining points A(x1, y1) and B(x2, y2) which makes I an extremum.
Let y y(x) ( x) ...(1) be a neighbouring curve joining A and B.
x2
' '
I f x, y( x) ( x), y ( x) ( x) dx ...(2)
x1
This being a function of , is maximum or minimum for = 0.
dI
This requires 0 when 0 ...( 3) , treating I as a function of
d
Hence differentiating I under the integral sign using Leibnitz’s rule, we get
dI
x2
f x f y f y
'
x
d
x y . y ' dx (As is independent of x ,
0,
x1
x2
f f f y y '
'
x (0) y . ( x) ' ( x) dx from (1) ( x) & ' ( x)
x1
y
x2
f f '
y
( x ) ( x) dx
x1
y '
x
x2
f f 2 x2
d f
( x)dx ( x) ( x) dx , integrating by parts.
x1
y y ' x1 x1
dx y '
x2
f
x2
d f
( x) dx ( x) dx
y '
( x1 ) ( x2 ) 0
x1
y x1
dx
x2
f d f
y dx y ' ( x) dx
x1
dI f d f
from (3) 0 0 , which is the Euler’s equation
d y dx y '
d ' f
f
1. f y '
0 ---------- (II)
dx
y
x
Proof:
Since f is a function of x, y, y’
df f f dy f d 2 y
...(1)
dx x y dx y ' dx 2
f f ' f ' '
y y ...(2)
x y y '
d
' f d f f ' '
We have y y' y ...(3)
dx
y
'
dx y ' y '
df d ' f f f ' d f
(2) (3) y y y'
dx dx y
'
x y dx y '
d d f
' f f f
i.e. f y y'
dx y x y dx y
' '
d
' f
f f d f
i.e. f y 0, 0
dx
x
y ' y dx y '
Which is another form of Euler’s Equation
f 2 f 2
' f
2
'' f
2) y y 0
y x y ' y y ' 12
y
f
Since is a function of x, y, y ' Say (x, y, y’)
'
y
d f d dy dy ' f f ' 2 f ''
y y
dx y ' dx x y dx y ' dx x y ' y y ' '2
y
2 f 2 f 2 f
y' y ''
' ' '2
x y yy y
f f
d
substituti ng in ' 0
y dx y
f 2 f 2 f 2 f
We get y' y '' 0 -----------(III)
y x y ' y y ' 12
y
Problems
x2
( y' ) 2
1. Find the extremals of the functional 3
dx (VTU 2003)
x1 x
( y' ) 2 f
We have f ( x, y, y ' ) which is independent of y. 0
x 3 y
d f
Euler’s equation reduces to 0
dx y '
d
2y
'
2y' 3
i.e. 3 0 3 k 2 y ' kx
x
dx x
dy
i.e. 2 kx3 , on integration we get,
dx
x4 k k
2y k k1 y x 4 1 c1 x 4 c2
4 8 2
Thus y c1 x 4 c2 is the required extremal.
2. Prove that the shortest distance between two points in a plane is a straight line. (VTU 2003)
x2 x2
2
We have s ds 1 ( y' ) dx
x1 x1
f ( x, y, y' ) 1 ( y ' ) 2 1 / 2 is indepenent of x and y
d f
d (y')
' 0. i.e. 0
dx
y
dx 1 ( y ' ) 2
( y')
Or constant m , say. Or ( y' ) 2 (1 ( y' ) 2 ) m
1 ( y' ) 2
( y' ) 2 1 m m Or y '
m dy m
i.e. C , where C ,
1 m dx 1 m
on integration we get, y Cx C1 , which is a straight line
1
2
3. Find the curves on which the function ( y' ) 12 xy dx with y(0) = 0 and y(1) =1 can be
0
extremised. (VTU 2004)
We have f ( x, y, y' ) ( y' ) 2 12 xy
f f d f
12 x, 2 y' , 2 y ''
y y ' dx y '
f d f
By Euler’s equation 0 , we get,
y dx y '
f d f
Euler’s equation 0
y dx y '
i.e. 2 y 2 x 2 y" 0 , Which is an ODE
i.e. ( D 2 1) y x
A.E m2 + 1 = 0 m = i
CF = c1 cos x c2 sin x
1
x = (1 + D ) x = (1 – D ) x = x
2 -1 2
PI
2
D 1
y = c1 cos x c2 sin x x
y (0) = 0 c2 0
y 0 0 0 c2 c2
2 2 2
y sin x x
2
/2
2 2
5. Find the extremal of the functional ( y y' 2 y sin x) dx; y(0) y 2 0
0
We have f ( x, y, y' ) y 2 y' 2 2 y sin x
f f d f
2 y 2 sin x , 2y' , ' 2y
''
y y ' dx
y
f d
f
Eulers equation ' 0 , becomes
y dx y
2 y 2 sin x 2 y" 0 y" y sin x Or ( D 2 1) y sin x
A.E is m 2 1 0 i
CF = c1 cos x c2 sin x
1 x 1 x x
PI sin x sin x ( cos x) cos x
2
D 1 2D 2 2
x
y C1 cos x C2 sin x cos x
2
Given y (0) = 0 0 = C1, y 0 0 C1 C2 0 C2 = 0
2
x
y cos x
2
x2
2 2
6) Find the extremal of the functional ( y' ky ) dx
x1
f f d f
Here f ( x, y, y' ) y' 2 ky 2 2ky & 2 y' , So 2 y"
y y' dx y '
f d f
Hence Euler’s equation ' 0 becomes
y y
dx
2ky 2 y" 0 Or y"ky 0 Or ( D 2 k ) y 0 , which is ODE. Solution is depends on k.
i) If k 0, then y c1 c2 x
ii) If k p 2 , then A.E. is m 2 p 2 0 m p y c1e px c2 e px
iii) If k p 2 , then A.E. is m 2 p 2 0 m pi y c1 cos px c2 sin px
b
7) Find the extremal of the functional ( x 2 y '2 2 y 2 2 xy )dx
a
f f d f
Here f ( x, y, y' ) x 2 y' 2 2 y 2 2 xy 4 y 2 x, 2 x 2 y'& 4 xy '2 x 2 y"
y y' dx y'
f d f
So Euler’s equation ' 0 becomes
y dx
y
4 y 2 x 4 xy '2 x 2 y" 0 x 2 y"2 xy '2 y x, which is Cauchy’s Linear D.E.
So put z log x or x e z , we get,
[ D( D 1) 2D 2] y e z , i.e. ( D 2 D 2D 2) y e z ( D 2 D 2) y e z
A.E. m 2 m 2 0 (m 2)(m 1) 0 m 2, 1
c
yc c1e 2 z c2 e z c1 ( x) 2 c2 x 1 c2 x
x2
1 ez
ez ze z ze z ze z x log x
yp (e z )
D2 D 2 12 1 2 0 2D 1 2 1 1 3 3
c x log x
Hence y yc y p 1 c2 x
x2 3
x2
2 2
8) Find the extremal of the functional (y' y 2 y sec x)dx
x1
f f d f
Here f ( x, y, y' ) y'2 y 2 2 y sec x 2 y 2 sec x, 2 y '& 2 y"
y y ' dx y '
f d f
So Euler’s equation ' 0 becomes
y dx
y
2 y 2 sec x 2 y" 0 y" y sec x
A.E. is m 2 1 0 m i yc c1 cos x c2 sin x
We have to use Variation of parameter to solve this equation.
Let y p A cos x B sin x y1 cos x & y2 sin x
y y2 cos x sin x
W 1 cos 2 x sin 2 x 1
y'1 y"2 sin x cos x
y R( x) sin x. sec x
A 2 dx dx tan xdx log cos x
W 1
y R( x) cos x. sec x
B 1 dx dx dx x
W 1
1
9) Solve the variational problem: ( x y y ' 2 ) dx 0 , under the conditions y(0) 1 & y(1) 2
0
1
f d f
Let I ( x y y ' 2 ) dx , then I 0 is equivalent to the Euler’s equation ' 0
0
y dx
y
f f d f
Here f ( x, y, y' ) x y y' 2 1, 2 y '& 2 y"
y y ' dx y '
1 d2y 1 dy 1 1 x2 x2
So 1 2 y" 0 y" Or x c1 y c1 x c2 c1 x c2
2 dx 2 2 dx 2 2 2 4
Now using the conditions y(0) 1 & y(1) 2 , we get,
1 7 7 7 74 3
1 c2 , 2 c1 c2 c1 c2 c1 c2 1
4 4 4 4 4 4
x2 3
Thus y x 1 or 4 y x 2 3x 4
4 4
1
10) Show that the extremal of the functional y 2 {3x( y ' 2 1) yy '3 } dx subject to the conditions
0
2 2
y(0) 0, y(1) 2 is the circle x y 5x 0
Here f ( x, y, y' ) y 2 {3x( y' 2 1) yy '3 } 3xy 2 ( y' 2 1) y 3 y'3
f f
6 xy ( y' 2 1) 3 y 2 y'3 , 6 xy 2 y'3 y 3 y' 2
y y'
d f
6 y 2 y'12 xyy ' 2 6 xy 2 y"9 y 2 y'3 6 y 3 y' y"
dx y'
f d f
So Euler’s equation ' 0 becomes
y dx
y
6 xy ( y' 2 1) 3 y 2 y'3 (6 y 2 y'12 xyy ' 2 6 xy 2 y"9 y 2 y'3 6 y 3 y' y" ) 0
i.e. 6 xyy ' 2 6 xy 3 y 2 y'3 6 y 2 y'12 xyy ' 2 6 xy 2 y"9 y 2 y'3 6 y 3 y' y" 0
i.e. 6 xyy ' 2 6 xy 6 y 2 y'3 6 y 2 y'6 xy 2 y"6 y 3 y' y" 0
i.e. xyy ' 2 xy y 2 y'3 y 2 y' xy 2 y" y 3 y' y" 0
i.e. ( xyy ' 2 xy xy 2 y" ) ( y 2 y'3 y 2 y' y 3 y' y" ) 0
i.e. xy ( y' 2 1 yy" ) y 2 y' ( y' 2 1 yy" ) 0
i.e. ( y' 2 1 yy" )( xy y 2 y' ) 0 y( x yy ' )( y' 2 1 yy" ) 0
Exercise:
x2
2 2
1) Find the extremal of the functional ( y' x y' ) dx
x1
x2
2
2) Find the function y which makes the integral (1 xy ' xy ' ) dx an extremum.
x1
x2
2 2 x
3) Find the extremal of the functional ( y y' 2 ye ) dx
x1
2
4) Solve the variational problem: [( x 2 ( y ' ) 2 2 y ( x y )]dx 0 , y (1) y (2) 0
1
x2
2 2
5) Show that the functional ( y x y' ) dx assumes extreme values on the straight line y x
x1
6) Show that the equation of the curve joining the points (1, 0) and (2, 1) for which
2
1
I 1 y ' 2 dx is an extremum is a circle.
1
x
x2
2 2
7) Show that y y ' dx has an extremum when y (x) is of the form c1. x c2 .
x1
x2 2
y'
8) Show that an extremal of dx is expressible in the form y ae bx .
x1
y
1
9) Solve the variational problem (12 xy y ' 2 )dx 0; y(0) 3, y(1) 6.
0
/2
2 2
10) Find the extremal of the functional: ( y' y 2 xy )dx 0; y(0) 0, y( / 2) 0
0
/2
2 2
11) Find the extremal of the functional: ( y y' 2 y sin x)dx 0; y(0) 0, y( / 2) 0
0
b
1
12) Prove that an extremal of the functional (1 y ' 2 )dx is a circle.
a
y
b
13) Prove that an extremal of the functional y (1 y ' 2 )dx is a parabola.
a
4
14) Solve the variational problem: ( xy ' y ' 2 )dx 0; y(0) 0, y(4) 3.
0
c x
Answers: 1) y 1 c2 2) y c1 log x c2 3)
x 2
y c1e x c2 e x xe x / 2
4) y
1
21
8 log 2( x 2 x) 7 x log x 6) x 2 ( y 2) 2 5
9) y x 3 2 x 3 10) 2 y 2 x sin x
11) 2 y x cos x. 12) ( x a) 2 y 2 b 2
13) ( x a) 2 4c 2 ( y c 2 ) 14. 4 y x 2 x
GEODESICS:
A geodesic on a surface is a curve along which the distance between any two points of the
surface is a minimum.
1. Show that the geodesics on a sphere of radius a are its great circles.
In spherical coordinates (r , , ) We have x r sin cos , y r sin sin , z r cos &
ds (dr ) 2 (rd) 2 (r sin d) 2
ds 0 a 2 (d) 2 a 2 sin 2 (d) 2
2
ds d
or a 1 sin 2
d d
2
2 1 2
Now s a 1 sin . ( ) d
1
F a 1 sin 2 (1 ) 2
F F a 1
0, . sin 2 .21
1 2 1 sin 2 (1 ) 2
F d F
By Euler’s equation 1 0
d
d
F
1 0
d
F
constant.
1
sin 2 1
Constant C
2 1 2
1 sin ( )
sin 4 (1 ) 2 C 2 (1 sin 2 (1 ) 2 )
i.e. (1 ) 2 sin 4 C 2 sin 2 C 2
2
C
(1 ) 2
sin (sin 2 C 2 )
2
1 C cos ec 2
1 C 2 cos ec 2
d C cos ec 2
d 1 C 2 (1 cot 2 )
d C cos ec 2
, integrate w.r.t. by putting C cot t C cos ec 2d dt
d (1 C 2 ) C 2 cot 2
dt dt t C cot
sin 1 sin 1
C1
(1 C 2 t 2 (1 C 2 (t ) 2 1 C
2
1 C
2
C cot 1 C2 1 C2
sin(C1 ) cot sin(C1 ) (sin C1 cos cos C1 sin )
1 C2 C C
1 C2 1 C2
cot A cos B sin , Where A sin C1 & B cos C1
C C
a cos A a cos sin B a sin sin
Z Ax By , which is a plane through the origin which cuts the sphere along a greater circle.
2) Prove that the shortest distance between two points in a plane is along the straight line
joining them or prove that the geodesics on a plane are straight lines.
Let y y(x) be a curve joining two points P( x1 , y1 ) & Q( x2 , y2 ) in the XOY plane. Then the
x2 x2 2
ds dy
arc length between P and Q is given by s dx 1 dx
x1
dx x1 dx
x2
2
i.e. s I 1 y' . Then we have to find y (x) such that I is minimum.
x1
f f 1 y'
Let f ( x, y, y' ) 1 y' 2 , then 0& 2 y'
y y ' 2 1 y ' 2 1 y'2
f d
f
So by Euler’s equation 1 0 , we get
y dx y
d y' ( y')
0 0 Constant m , say. Or ( y' ) 2 (1 ( y' ) 2 ) m
dx 1 y ' 2 1 ( y' ) 2
( y' ) 2 1 m m Or y '
m dy m
i.e. c1 , where c1 ,
1 m dx 1 m
on integration we get, y c1 x c2 , which is a straight line.
Hence the geodesics on a plane are straight lines.
ds (dx) 2 (dy) 2 (dz) 2 (cos d sin d) 2 (sin d cos ) 2 (dz) 2
cos2 (d) 2 2 sin 2 (d) 2 2 sin cos dd sin 2 (d) 2 2 cos2 (d) 2 2 sin cos dd (dz) 2
(cos 2 sin 2 )( d) 2 2 (sin 2 cos2 )( d) 2 (dz) 2
2 dz 2
a d dz a .d
2 2 2
d
x2
Hence s (a 2 z ' 2 )d
x1
Now the geodesic for the given cylinder is the curve for which s is minimum.
f f 1 z'
Euler’s equation becomes, constant. Where 2z'
z ' z ' 2 a 2 z ' 2 a 2 z '2
z' a 2 z'2 1 a2 1 1 c2
Hence c, constant. 1
a 2 z '2 z '2 c2 z'2 c 2 c2
a 2c 2 a 2c 2 a 2c 2
z '2 z ' k , where k
1 c2 1 c2 1 c2
dz
Or k z k k1 , this is geodesics on a circular cylinder.
d
Hanging chain problem:
A heavy chain hangs freely under gravity between two fixed points. Show that the shape of
the chain (Cable) is a Catenary.
Consider a heavy chain suspended under gravity between two points A and B,
B x2
2
V .g. y.ds gy 1 y' dx
A x1
y y2 2 dy y2 C2
or C or C or , by Separating the variables we get,
2
1 y' 2 1 y ' dx C
dy dx
by integrating we get,
y2 C2 C
y 1 x Ck x a xa
cosh 1 x k y C cosh , This is a Catenary. Where
C C C C C
a Ck
Exercises: Find the geodesics on a surface given that the arc length on the surface is
x2
2
s x(1 y' )dx Ans : ( y c1 ) 2 4c 2 ( x c 2 ), which is parabola.
x1