Professional Documents
Culture Documents
SUBJECTCODE:10MAT31
1-25
.in
en
ts
tu
d
C
itS
CitStudents.in
Page 1
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
UNIT- I
FOURIER SERIES
Introduction
Periodic function
C
itS
tu
d
en
ts
.in
CONTENTS:
CitStudents.in
Page 2
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
UNIT- I
FOURIER SERIES
DEFINITIONS :
A function y = f(x) is said to be even, if f(-x) = f(x). The graph of the even function is
always symmetrical about the y-axis.
.in
A function y=f(x) is said to be odd, if f(-x) = - f(x). The graph of the odd function is
always symmetrical about the origin.
C
itS
tu
d
en
ts
For example, the function f(x) = x in [-1,1] is even as f(-x) = x x = f(x) and the
function f(x) = x in [-1,1] is odd as f(-x) = -x = -f(x). The graphs of these functions are
shown below :
Graph of f(x) = x
Graph of f(x) = x
Note that the graph of f(x) = x is symmetrical about the y-axis and the graph of f(x) = x
is symmetrical about the origin.
CitStudents.in
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
For example,
1. h(x) = x2 cosx is even, since both x2 and cosx are even functions
2. h(x) = xsinx is even, since x and sinx are odd functions
3. h(x) = x2 sinx is odd, since x2 is even and sinx is odd.
a
f ( x)dx 2 f ( x)dx
0
f ( x)dx 0
For example,
a
tu
d
as sinx is odd
en
ts
sin xdx 0,
and
as cosx is even
.in
PERIODIC FUNCTIONS :-
C
itS
A periodic function has a basic shape which is repeated over and over again. The
fundamental range is the time (or sometimes distance) over which the basic shape is
defined. The length of the fundamental range is called the period.
A general periodic function f(x) of period T satisfies the condition
f(x+T) = f(x)
Page 4
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
Note that the graph of the function between 0 and 2 is the same as that between 2 and
4 and so on. It may be verified that a linear combination of periodic functions is also
periodic.
FOURIER SERIES
tu
d
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.
C
itS
The Fourier series is named after the French Mathematician and Physicist Jacques
Fourier (1768 1830). Fourier series has its application in problems pertaining to Heat
conduction, acoustics, etc. The subject matter may be divided into the following sub
topics.
FOURIER SERIES
Series with
arbitrary period
Half-range series
Complex series
Harmonic Analysis
CitStudents.in
Page 5
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
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 or minima in the interval (a,a+2l).
Also, let
1
a0
l
a 2l
f ( x)dx
(1)
n
f
(
x)
cos
xdx,
a
l
a 2l
1
n
bn f ( x) sin xdx,
l a
l
1
l
a 2l
n 1,2,3,..... (2)
n 1,2,3,...... (3)
en
ts
.in
an
tu
d
a0
n
n
(4)
an cos
x bn sin x
2 n 1
l
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 Eulers formulae.
C
itS
It can be proved that the sum of the series (4) is f(x) if f(x) is continuous at x. Thus we
have
a0
n
n
f(x) =
an cos
(5)
x bn sin
x .
2 n 1
l
l
Suppose f(x) is discontinuous at x, then the sum of the series (4) would be
1
f ( x ) f (x )
2
where f(x+) and f(x-) are the values of f(x) immediately to the right and to the left of f(x)
respectively.
Particular Cases
Case (i)
Suppose a=0. Then f(x) is defined over the interval (0,2l). Formulae (1), (2), (3) reduce
to
2l
2l
1
1
n
a0 f ( x)dx an f ( x) cos
xdx,
l0
l0
l
CitStudents.in
Page 6
SUBJECT:MATHEMATICS
bn
SUBJECTCODE:10MAT31
2l
1
n
x)
sin
f
(
xdx,
l 0
l
n 1,2,......
(6)
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
1
a0 = f ( x)dx
0
2
an
1
f ( x) cos nxdx
, n=1,2,..
0
bn
1
f ( x) sin nxdx
0
Case (ii)
.in
a0
an cos nx bn sin nx
2 n 1
(8)
tu
d
f(x) =
n=1,2,..
en
ts
(7)
C
itS
Suppose a=-l. Then f(x) is defined over the interval (-l , l). Formulae (1), (2) (3) reduce
to
a0
an
1l
f ( x)dx
l l
l
1
n
x)
cos
f
(
xdx
l l
l
(9)
1
n
f ( x) sin
xdx,
l l
l
l
bn
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
a0 =
CitStudents.in
1
f ( x)dx
Page 7
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
an f ( x) cos nxdx
,
1
bn f ( x) sin nxdx
n=1,2,..
(10)
n=1,2,..
a
f(x) = 0 an cos nx bn sin nx
2 n 1
.in
1. The following rule called Bernoullis generalized rule of integration by parts is useful
in
evaluating the Fourier coefficients.
'
''
uvdx uv1 u v2 u v3 .......
en
ts
C
itS
tu
d
sin nx cos nx
2 cos nx
2
x
sin
nxdx
2x
2 3
2
n
n
n
2x
2x
2x
e e 2 x
3 2x
3 e
2 e
x e dx x 2 3x 4 6 x 8 6 16
2. The following integrals are also useful :
e ax
a cos bx b sin bx
a2 b 2
e ax
ax
3. If n is integer, then
sin n = 0 ,
cosn = (-1)n ,
sin2n = 0,
cos2n=1
Problems
1. Obtain the Fourier expansion of
f(x) =
CitStudents.in
1
x in - < x <
2
Page 8
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
We have,
a0
1
1 1
f ( x)dx ( x)dx
1
=
2
x 2
1
1 1
an f ( x) cos nxdx ( x) cos nxdx
2
1
0 0
2
en
ts
cos nx
sin nx
(1)
x
2
n
n
.in
1
an
2
11
bn ( x) sin nxdx
2
(1) n
n
C
itS
tu
d
1
cos nx
sin nx
(1)
x n
2
2
n
we get,
a0
a n cos nx bn sin nx
2 n 1
n 1
(1) n
sin nx
f ( x)
2 n 1 n
This is the required Fourier expansion of the given function.
2. Obtain the Fourier expansion of f(x)=e-ax in the interval (-, ). Deduce that
cos ech
(1) n
n2
n 1
Here,
CitStudents.in
Page 9
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1 ax
1 e ax
a0 e dx
a
e a e a 2 sinh a
a
a
1
an e ax cos nxdx
ax
1
e
an 2 2 a cos nx n sin nx
a n
2a (1) n sinh a
a 2 n 2
en
ts
.in
1 ax
bn = e sin nxdx
1 e ax
=
a sin nx n cos nx
2
2
a n
C
itS
tu
d
2n (1) n sinh a
=
a 2 n 2
cos
nx
sinh
a
sin nx
2
2
2
2
a
n 1 a n
n 1 a n
n 1 n 1
or
or
2 n 2 n 1
2 sinh (1) n
1=
n 2 n 2 1
Thus,
(1) n
2
n 2 n 1
cos ech 2
3. Obtain the Fourier expansion of f(x) = x2 over the interval (-, ). Deduce that
CitStudents.in
Page 10
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1 1
2
1 2 2 ......
6
2 3
1
2 f ( x)dx
f
(
x)dx
2 2
2 x 3
= x dx
0
3 0
2 2
a0
3
or
2
f ( x) cos nxdx, since f(x)cosnx is even
0
2 2
= x cos nxdx
0
Integrating by parts, we get
en
ts
.in
1
a n f ( x) cos nxdx
4(1)n
n2
C
itS
tu
d
2 2 sin nx
cos nx sin nx
an x
2
2 x
2
3
n
n
n
0
Also,
1
bn f ( x) sin nxdx 0
Thus f ( x)
(1)n cos nx
2
4
n2
3
n 1
2
1
4 2
3
n 1 n
2
1
1 n 2 6
2
Hence,
CitStudents.in
2
1
1
1 2 2 .....
6
2
3
Page 11
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Deduce that
Here,
x,0 x
f ( x)
2 x, x 2
2
1
1
1 2 2 ......
8
3 5
1
2
a0 = f ( x)dx = f ( x)dx
0
2
xdx
0
1
2
a n f ( x) cos nxdx
since f(x)cosnx is
f ( x) cos nxdx
.in
en
ts
even.
2
x cos nxdx
= 0
sin nx
= n
2
2 (1) n 1
n
C
itS
Also,
cos nx
2
0
n
tu
d
1
bn f ( x) sin nxdx 0 , since f(x)sinnx is odd
Thus the Fourier series of f(x) is
2 1
f ( x) 2 (1) n 1 cos nx
2 n 1 n
For x= , we get
2 1
2 (1) n 1 cos n
2 n 1 n
2 2 cos(2n 1)
(2n 1) 2
2 n 1
f ( )
or
Thus,
CitStudents.in
2
1
2
8
n 1 (2n 1)
Page 12
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2
1 1
1 2 2 ......
8
3 5
This is the series as required.
or
.in
Here,
1
2
1
1 2 2 ......
8
3 5
1
1 2(1) n
n
C
itS
tu
d
en
ts
10
a0 dx xdx
2
0
1
an cos nxdx x cos nxdx
0
1
2 (1) n 1
n
10
bn sin nxdx x sin nxdx
0
Fourier series is
1 1
1 2(1) n
n
(1) 1 cos nx
sin nx
f(x) =
4 n 1 n2
n
n 1
Note that the point x=0 is a point of discontinuity of f(x). Here f(x+) =0, f(x-)=- at x=0.
1
1
[ f ( x ) f ( x )] 0
Hence
2
2
2
The Fourier expansion of f(x) at x=0 becomes
1 1
[(1) n 1]
2
4 n 1 n 2
or
1
2
2 [(1) n 1]
4 n 1 n
Simplifying we get,
2
1
1
1 2 2 ......
8
3 5
CitStudents.in
Page 13
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
6. Obtain the Fourier series of f(x) = 1-x2 over the interval (-1,1).
The given function is even, as f(-x) = f(x). Also period of f(x) is 1-(-1)=2
1
Here
.in
1
a0 = f ( x)dx = 2 f ( x)dx
1 1
0
1
1
x3
2
= 2 (1 x )dx 2 x
3 0
0
4
3
1
1
an f ( x) cos(nx)dx
1 1
1
2 f ( x) cos(nx)dx
en
ts
0
1
= 2 (1 x 2 ) cos(nx)dx
0
nx
tu
d
C
itS
sin
an 21 x 2
n
nx
(2x) cos
(n )
4(1) n 1
n 2 2
1
1
bn f ( x) sin(nx)dx
1 1
nx
(2)
sin
(n )3
(1) n 1
cos(nx)
n2
n 1
CitStudents.in
Page 14
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
3
4x
1 3 in 2 x 0
f(x) = 4x
3
1 in0 x
3
2
Deduce that
2
1
1
1 2 2 ......
8
3 5
3 3
3
2 2
f(-x) = f(x). Hence f(x) is even
3/ 2
1
2
f
(
x)dx
a 0
f ( x)dx
3 / 2 0
3 / 2 3/ 2
3/ 2
4 x
1 dx 0
3
en
ts
.in
3/ 2
C
itS
tu
d
3/ 2
1
nx
a n
f
(
x)
cos
dx
3 / 2 3/ 2
3 / 2
3/ 2
2
2nx
x)
cos
f
(
dx
3 / 2 0
3
3 / 2
2nx
n
x
2
cos
sin
4 4x 3 4
3
3
3
2n 3 2n 2
0
4
= 2 2 1 (1) n
n
Also,
3
nx
1 2
dx 0
bn f ( x) sin
3
33
2
2
Thus
4 1
2nx
n
f(x) = 2 2 1 (1) cos
n 1 n
3
putting x=0, we get
4 1
f(0) = 2 2 1 (1)n
n 1 n
CitStudents.in
Page 15
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
1
......
32 52
1 1
1 2 2 ......
8
3 5
or
1=
Thus,
8
2
.in
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
(11)
tu
d
en
ts
nx
f ( x) bn sin
n 1
l
l
2
nx
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
C
itS
f ( x) bn sin nx
n 1
bn
2
f ( x) sin nxdx
0
Cosine series :
Let us define
( x)
f ( x)
( x)
in (0,l) .....given
in (-l,0) ..in order to make the function even.
Then the Fourier series of f(x) is given by
a
nx
f ( x) 0 an cos
(12)
2 n 1
l
where,
CitStudents.in
Page 16
SUBJECT:MATHEMATICS
a0
SUBJECTCODE:10MAT31
2l
f ( x)dx
l 0
l
2
nx
an f ( x) cos
dx
l 0
l
The series (12) is called half-range cosine series over (0,l)
a
f ( x) 0 a n cos nx
2 n 1
where
n 1,2,3,..
Problems :
en
ts
2
a n f ( x) cos nxdx
0
.in
2
a0 f ( x)dx
0
tu
d
2
bn f ( x) sin nxdx
0
2
(x x 2 ) sin nxdx
0
Integrating by parts, we get
2
cos nx
cos nx
sin nx
2
x x
b
2x
( 2)
C
itS
2
n
3
n
4
1 (1) n
3
n
The sine series of f(x) is
4 1
f ( x) 3 1 (1) n sin nx
n 1 n
CitStudents.in
x,0
2
f ( x)
x, x
over(0, )
Page 17
SUBJECT:MATHEMATICS
2
C
itS
tu
d
en
ts
.in
SUBJECTCODE:10MAT31
CitStudents.in
Page 18
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2 2
Solution : a0
xdx
x)dx
2
0
2 2
an
x
cos
nxdx
x)
cos
nxdx
2
Performing integration by parts and simplifying, we get
2
n
n
a n 2 1 (1) 2 cos
n
2
8
, n 2,6,10,.....
n
Thus, the Fourier cosine series is
2 cos 2 x cos 6x cos10 x
......
f(x) = 2
4 1
32
52
2
en
ts
.in
tu
d
a0
C
itS
c
2
nx
an (c x) cos
dx
c0
c
Integrating by parts and simplifying we get,
2c
1 (1) n
n 2 2
The cosine series is given by
c 2c 1
nx
n
f(x) = 2 2 1 (1) cos
2 n 1 n
c
an
a0
nx
nx
f ( x) an cos
bn sin
2 n 1
l
l
If we use Euler formulae
e i cos i sin
CitStudents.in
Page 19
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
n
i
x
l
f ( x) cn e
..(*)
where
1
cn
2l
2l
f ( x)e
n
i x
l
n = 0, 1, 2, 3, .
dx
Note:-(1)
n
i
x
l
f ( x) cn e
..(**)
where
n
i
x
1 l
l
f
(
x
)
e
dx
2 l l
Note:-(2)
l in (*),
en
ts
c n
Putting = 0 and
(l, l ) as
.in
Putting
(0, 2 ) as
tu
d
f ( x) cneinx
n
where
1
f ( x ) e inx d x
C
itS
c n
Note:-(3)
Putting
l in (**),
( , )
as
f ( x) cneinx
n
where
c n
1 2
in x
0 f ( x ) e d x
2
Problems:
1. Obtain the complex Fourier series of the function f(x) defined by f(x) = x over the
interval
(- , ).
Here f(x) is defined over the interval (- , ). Hence complex Fourier series of f(x) is
CitStudents.in
Page 20
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
f ( x) cn e inx
(1)
where
1
f ( x)e inx dx
cn
.in
n = 0, 1, 2, 3, .
1 inx
xe dx
2
Integrating by parts and substituting the limits, we get
i(1) n
,
cn
n0
n
Using this in (1), we get
( 1) n inx
f ( x) i
e ,
n0
n
n
This is the complex form of the Fourier series of the given function
en
ts
2. Obtain the complex Fourier series of the function f(x) = eax over the interval
(- , ).
As the interval is again (- , ) we find
cn
which is given by
1
f ( x)e inx dx
e ax e inx dx
tu
d
1
cn
2
1 e( a in ) x
( a in ) x
e dx 2 (a in)
C
itS
(a 2 n 2 )
Hence the complex Fourier series for f(x) is
f ( x) cn e inx
n
n a 2 n 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
CitStudents.in
Page 21
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
points. In such a case, the integrals in Eulers 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 as
The Fourier coefficients defined through Eulers formulae, (1), (2), (3) may be redefined
as
1 a 2l
1 b
f ( x)
f ( x)dx a0 2 2l a f ( x)dx 2[ f ( x)] .
ba a
.in
1 a 2l
n x
n x
an 2 f ( x) cos
dx
2
f
(
x)
cos
l
l
2l a
en
ts
1 a 2l
n x
n x
bn 2 f ( x) sin
dx
2
f
(
x)
sin
l
l
2l a
tu
d
Using these in (5), we obtain the Fourier series of f(x). The term a1cosx+b1sinx is called
the first harmonic or fundamental harmonic, the term a2cos2x+b2sin2x is called the
a12 b12
and that
C
itS
of second harmonic is
Problems:
1. Find the first two harmonics of the Fourier series of f(x) given the following table
:
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.
x
x0
y = f(x)
cosx
cos2x
sinx
sin2x
ycosx
ycos2
x
ysinx
ysin2x
1.0
CitStudents.in
Page 22
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
60
1.4
0.5
-0.5
0.866
0.866
0.7
-0.7
1.2124
1.2124
120
1.9
-0.5
-0.5
0.866
-0.866
-0.95
-0.95
1.6454
-1.6454
180
1.7
-1
-1.7
1.7
240
1.5
-0.5
-0.5
-0.866
0.866
-0.75
-0.75
1.299
1.299
300
1.2
0.5
-0.5
-0.866
-0.866
0.6
-0.6
-1.0392
-1.0392
-1.1
-0.3
3.1176
-0.1732
en
ts
.in
Total
We have
tu
d
nx
an 2 f ( x) cos
2[ y cos nx]
l
n x
bn 2f ( x) sin
2[ y sin nx]
l
C
itS
l=
2y cos x
2(1.1)
0.367
6
6
2y cos 2 x 2(0.3)
0.1
a 2 2[ y cos 2 x]
6
6
a1 2[ y cos x]
b1 [ y sin x]
2 y sin x
6
1.0392
2 y sin 2 x
0.0577
6
The first two harmonics are a1cosx+b1sinx and a2cos2x+b2sin2x. That is (-0.367cosx +
1.0392 sinx) and (-0.1cos2x 0.0577sin2x)
b2 [ y sin 2x]
2. Express y as a Fourier series upto the third harmonic given the following values :
CitStudents.in
Page 23
SUBJECT:MATHEMATICS
x
y
0
4
SUBJECTCODE:10MAT31
1
8
2
15
3
7
4
6
5
2
The values of y at x=0,1,2,3,4,5 are given and hence the interval of x should be 0 x < 6.
The length of the interval = 6-0 = 6, so that 2l = 6 or l = 3.
The Fourier series upto the third harmonic is
a0
x
x
2x
2x
3x
3x
a1 cos b1 sin a2 cos
b2 sin
b3 sin
a3 cos
l
l
2
l
l
l
l
or
en
ts
.in
x
x
2x
2x
3x
a0
3x
b2 sin
b3 sin
y a1 cos b1 sin a2 cos
a3 cos
2
3
3
3
3
3
3
x
Put
, then
3
a
y 0 a1 cos b1 sin a 2 cos 2 b2 sin 2 a3 cos 3 b3 sin 3 (1)
2
x
3
y
04
ycos
ycos2
ycos3
ysin
ysin2
ysin3
C
itS
tu
d
600
08
-4
-8
6.928
6.928
1200
15
-7.5
-7.5
15
12.99
-12.99
1800
07
-7
-7
2400
06
-3
-3
-5.196
5.196
3000
02
-1
-2
-1.732
-1.732
42
-8.5
-4.5
12.99
-2.598
1
2
Total
CitStudents.in
Page 24
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
a0 2[ f ( x)] 2[ y]
2y
6
1
(42) 14
3
2
(8.5) 2.833
6
2
b1 2[ y sin ] (12.99) 4.33
6
2
a2 2[ y cos 2 ] (4.5) 1.5
6
2
b2 2[ y sin 2 ] (2.598) 0.866
6
2
a3 2[ y cos 3 ] (8) 2.667
6
b3 2[ y sin 3 ] 0
.in
a1 2[ y cos ]
en
ts
Usingthesein(1),we
get
x
x
2x
2x
y 7 2,833cos (4.33) sin 1.5 cos
0.866 sin
2.667 cos x
3
3
3
3
This is the required Fourier series upto the third harmonic.
T/6
C
itS
t(secs)
tu
d
3. The following table gives the variations of a periodic current A over a period T :
A (amp)
1.98
1.30
T/3
T/2
2T/3
5T/6
1.05
1.30
-0.88
-0.25
1.98
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
2
of period T. Let us denote t . We have
T
a0 2[ A]
2
a 2 A cos t 2[ A cos ]
1
(1)
2
b1 2 Asin t 2[ Asin ]
T
Page 25
SUBJECT:MATHEMATICS
t
2t
T
SUBJECTCODE:10MAT31
cos
sin
Acos
Asin
1.98
1.98
T/6
600
1.30
0.5
0.866
0.65
1.1258
T/3
1200
1.05
-0.5
0.866
-0.525
0.9093
T/2
1800
1.30
-1
-1.30
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
en
ts
.in
4.5
1.5
3
6
2A cos 1.12
a1
0.3733
3
6
2Asin 3.0137
b1
1.0046
6
3
The Fourier expansion upto the first harmonic is
C
itS
tu
d
a0
a0
2t
2t
a1 cos b1 sin
2
T
T
2t
2t
0.75 0.3733cos 1.0046 sin
T
T
The expression shows that A has a constant part 0.75 in it. Also the amplitude of the first
A
harmonic is
CitStudents.in
Page 26
SUBJECTCODE:10MAT31
en
ts
.in
SUBJECT:MATHEMATICS
UNIT-II
C
itS
tu
d
FOURIER TRANSFORMS
CONTENTS:
Introduction
CitStudents.in
Page 27
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
FOURIER TRANSFORMS
Introduction
C
itS
tu
d
FOURIER TRANSFORMS
Infinite
Fourier
Transform
Sine
Transform
Cosine
Transform
Convolution
Theorem &
Parsevals
Identity
CitStudents.in
Page 28
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
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 be non - zero real parameter. The infinite Fourier Transform of f(x)
is defined by
f F f x f x e ix dx
2
Note : The function f(x) is said to be self reciprocal with respect to Fourier transform
if f f .
en
ts
.in
Basic Properties
tu
d
1. Linearity Property
For any two functions f(x) and (x) (whose Fourier Transforms exist) and any two
constants a and b,
Proof :
C
itS
F af x b x aF f x bF x
By definition, we have
F af x b x af x b x e ix dx
f x e
ix
dx b x e ix dx
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
CitStudents.in
Page 29
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
Ff x f
a a
Proof : By definition, we have
F f ax f ax e ix dx
(1)
F f ax
u
i
a
f u e
du
a
en
ts
.in
i u du
a
F f ax f u e
1
f
(2)
a a
Suppose a < 0. If we set again ax = u, then (1) becomes
tu
d
i u
1
f u e a du
a
1
(3)
f
a a
Expressions (2) and (3) may be combined as
1
F f ax f
a a
This is the desired property
C
itS
3. Shifting Properties
For any real constant a,
(i) F f x a e ia f
(ii) F e iax f x f a
F f x f f x e ix dx
Hence, F f x a f x a e ix dx
= e ia
f t e
it
dt
= e ia f
ii) We have
CitStudents.in
Page 30
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
f a f x e i a x dx
f xe e
iax
i x
dx
.in
4. Modulation Property
If F f x f ,
1
then, F f x cos ax f a f a
2
where a is a real constant.
Proof :
We have
F f x cos ax F f x
C
itS
Hence
e iax e iax
2
tu
d
cos ax
en
ts
1
f a f a , by using linearity and shift properties.
2
Note : Similarly
F f x sin ax
1
2
f a f a
Problems:
1. Find the Fourier Transform of the function f(x) e
-a x
where a 0
F f x e a x e ix dx
CitStudents.in
Page 31
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
0
a x
e a x e ix dx e e ix dx
0
Using the fact that x x, 0 x and x - x, - x 0, we get
ax ix
ax ix
F f x e e dx e e dx
0
a i x
0
e a ix dx e
dx
e a i x 0
a i x
a i a i 0
1
1
a i a i
2a
2
2
a
2. Find the Fourier Transform of the function
1, x a
f(x)
0, x a
sin a cos x d
(ii)
tu
d
(i)
sin
d
C
itS
F f x f ( x)e ix dx
a
a
a
a
a
eix dx
sin a
2
sin
Thus F f x f 2
(1)
Inverting f by employing inversion formula, we get
1
sin a ix
f x
e d
2
CitStudents.in
Page 32
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
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
sin a cos x
d
f ( x) 1
or
sin a cos x
d f ( x)
, x a
0, x a
.in
tu
d
en
ts
sin
0
2
C
itS
2 2
3. Find the Fourier Transform of f(x) e - a x where ' a' is a positive constant.
2
x
2 is self reciprocal with respect to Fourier Transform.
Deduce that f(x) e
Here
F f x e a x e ix dx
2 2
2 2
a x i x
dx
i 2
ax
2 a 4 a 2
dx
e
Setting t ax CitStudents.in
i
, we get
2a
2
i
ax
2a
4 a 2
dx
Page 33
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
F f x e
1
e
a
1
e
a
t 2
4a 2
2
4a
dt
a
2 e t dt
2
4 a 2
4 a 2
f
e
a
This is the desired Fourier Transform of f(x).
2 2
For a 2 1 in f(x) e - a x
2
2
f 2 e
and hence,
2
- x2
, we get f( ) e - 2 2 .
en
ts
.in
we get f(x) e
-x
is self reciprocal
tu
d
It follows that f( x) e
2 .
C
itS
The integral f x sin xdx is called the Fourier Sine Transform of f(x). This is denoted
0
by fs or Fs f x . Thus
fs Fs f x f x sin x dx
0
f(x) Fs-1 f s
2
f s sin x d
Properties
The following are the basic properties of Sine Transforms.
CitStudents.in
Page 34
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Fs af x b x af x b x sin x dx
aFs f x bFs x
This is the desired result. In particular, we have
Fs f x x Fs f x Fs x
and
Fs f x x Fs f x Fs x
0
.in
en
ts
Fs f ax f s
a a
Proof : We have
f ax sin x dx
0
tu
d
Fs f ax
Setting ax = t , we get
dt
F f ax f t sin t
a a
C
itS
1
fs
a a
Proof : We have
2 0
1 f a f a , by using Linearity property.
Problems:
CitStudents.in
Page 35
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
f a sin x dx 0 sin x dx
s
a
cos x
0
1 cos a
e -ax
x
.in
e ax sin x dx
fs
0
x
fs
d 0
x
d
ax
e
sin x dx
0
x
performing differentiation under the integral sign
ax
e
x cos x dx
0
x
e ax
a cos x sin x
2
2
a
0
a
2
a 2
Integrating with respect to , we get
C
itS
tu
d
en
ts
Here
f s
tan
c
a
But fs 0 when 0
c=0
fs tan 1
a
CitStudents.in
Page 36
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1, 0 1
f x sin xdx 2, 1 2
0,
2
0
Let () be defined by
1, 0 1
2, 1 2
0, 2
Given
f x sin xdx f
0
s
.in
en
ts
1
2
2
1
2 sin x d 2 sin x d 0
0
2
1 cos x 2 cos 2 x
x
tu
d
C
itS
the integral
fc cos x d .
2
f x Fc-1 f 0 fc cos x d
Basic Properties
The following are the basic properties of cosine transforms :
(1) Linearity property
CitStudents.in
Page 37
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
If ' a' and ' b' are two constants, then for two functions f(x) and (x), we have
Fc af x b x aFc f x bFc x
1
Fc f ax fc
a a
(3) Modulation property
If Fc f x fc , then for a 0, we have
1
Fc f x cos ax fc a fc a
2
.in
en
ts
The proofs of these properties are similar to the proofs of the corresponding
properties of Fourier Sine Transforms.
Problems:
C
itS
tu
d
f x 2 x, 1 x 2
0,
x2
We have
f f x cos xdx
1
x cos xdx 2 x cos xdx 0 cos xdx
0
1
2
Integrating by parts, we get
1
CitStudents.in
cos kx
dx
x2 a2
Page 38
SUBJECT:MATHEMATICS
Here
f
c
ax
SUBJECTCODE:10MAT31
cos xdx
e ax
a cos x sin x
2
2
a
0
Thus
cos x
ax
d
e
2
0 a2
2a
tu
d
0 x 2 a2
2a
en
ts
or
.in
fc 2
2
a
Using the definition of inverse cosine transform, we get
2
a
f x
cos xd
0 a 2 2
C
itS
a
0 f x cosx dx e
Let () be defined by
() = e-a
Given f x cos x dx fc
0
a cos x sin x
2
2
0
a x
0
2a
2
a x 2
CitStudents.in
Page 39
SUBJECTCODE:10MAT31
tu
d
en
ts
.in
SUBJECT:MATHEMATICS
UNIT III
C
itS
Introduction
CitStudents.in
Page 40
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
tu
d
en
ts
.in
C
itS
Introduction
CitStudents.in
Page 41
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
c
t 2
x 2
Let u= XT where X=X(x),T=T(t) be the solution of the PDE
Hence the PDE becomes
2
2 XT 2 2 XT
d 2T
2 d X
or X 2 c
c
t 2
x 2
dt
dx 2
1 d 2T 1 d 2 X
kX
0
and
dt
dx2
en
ts
.in
Consider
k X 0 and D 2 c 2 k T 0
Where D2 =
d2
d2
2
in the second equation
in
the
first
equation
and
D
=
dx 2
dt 2
C
itS
tu
d
u XT c ' 1ec
p 2t
.( c ' 2e px c '3 e px )
CitStudents.in
Page 42
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2 2
p t
.in
2u 2 u
0
Consider
x 2 y 2
Let u=XY where X(x), Y=Y(y) e the solution of the PDE
Hence the PDE becomes
2 XY 2 ( XY )
0
x 2
y 2
d 2 X
d 2 (Y )
0 and dividing by XY we have
Y
X
dy 2
dx 2
1 d X 1 d 2 (Y )
X dx 2
Y dy 2
Equating both sides to a common constant k we have
2
1 d 2 (Y )
1 d X
=k
and
=k
X dx 2
Y dy 2
Or (D2-k)X=0
and (D2+k)Y=0
d
d in the second equation
Where D =
in the first equation and D =
dx
dy
C
itS
tu
d
en
ts
m2+p2=0
u XY c '1e
px
c '2 e
px
(c 3 cos py c
'
'
4
sin py)
Page 43
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
n x
n ct
cos
Soln: u x, t bn sin
n 1
l
l
3
Consider u(x,0) =u0sin ( x/l)
n x
u x, 0 bn sin
n 1
l
x
n x
bn sin
u0 sin 3
n1
l
l
C
itS
tu
d
3u0
3 x
x
2 x
3 x
x u0
b1 sin
b2 sin
b3 sin
sin
sin
l
l
l
l
4
l
4
comparing both sides we get
u
3u
b1 0 , b2 0 , b3 0 , b4 0 b5 0 ,
4
4
Thus by substituting these values in the expanded form we get
3u
x
ct u0
3 x
3 ct
u( x, t) 0 sin
cos
sin
cos
4
l
l
4
l
l
x 1
3 x
n x
3
u0 sin 3
sin
bn sin
n1
l
l 4
l
4
n x
n ct
cos
Soln: : u x, t bn sin
n 1
l
l
Consider u(x,0)=f(x) then we have
n x
Consider u(x,0) = bn sin
n 1
l
n x
F(x) = bn sin
n 1
l
The series in RHS is regarded as the sine half range Fourier series of f(x) in (0,l) and
hence
CitStudents.in
Page 44
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2l
n x
dx
f ( x) sin
l
l 0
Thus we have the required solution in the form
n x
n ct
u x, t bn sin
cos
n 1
l
l
2
u
2 u
c
3. Solve the Heat equation
given that u(0,t)=0,u(l,0)=0 and u(x,0)=
t
x 2
100x/l
l
l
n x
n x
2 100 x
200
Soln: bn
sin
dx = 2 x sin
dx
l 0 l
l
l 0
l
l
n x
n x
sin
200 x. cos l
l
bn 2
1
2
l n / l
n / l
0
200 1
200 1
200 1
.
bn 2 . l cos n
l n
n
n
n 1
en
ts
.in
bn
200 1
n 1
n 1
n 2 2 c 2t
sin
n x
l
tu
d
C
itS
2
u
2 u
given that u(0,t)=0,u(l,t)and
4.Obtain the solution of the heat equation
c
t
x 2
u(x,0) =f(x)where
l
2Tx
in 0 x
l
2
f ( x)
2T l x in l x l
l
bn
Soln:
f ( x) sin
l
0
n x
dx
l 2Tx
n x
n
x
2 2Tx
sin
dx (l x) sin
dx
bn
l
l
l
l 0 l
l
2
2l
l
4T
n x
n x
x sin
dx (l x) sin
dx
l 0
l
l
l
l
2
8T
n
sin
2 2
n
2
CitStudents.in
bn
Page 45
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
u(x,0) =3sin x
2
Soln: u( x, t) e p t ( A cos px B sin px)............................(1)
Consider u(0,t)=0 now 1 becomes
0= e p t (A) thus A=0
Consider u(1,t)=0 using A=0 (1) becomes
2
0= e p t (Bsinp)
Since B0,sinp=0or p=n
n2 2c 2t
(B sin n x)
In general u( x, t ) bn e
n2 2c 2t
sin n x
en
ts
u( x, t ) e
.in
n1
tu
d
(sin x)
C
itS
u( x, t ) 3e
2u 2u
6.Solve
u(0, y) 0 gives( A) Ce
py
De
u( , y) 0 gives(B sin p ) Ce
py
py
py
De
py
0, A 0
De
py
0,
u( x, y) (B sin nx) Ce
ny
De
ny
CitStudents.in
Page 46
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
u( x, y) bn sin n xe ny
n1
u( x, 0) bn sin nx
n 1
.in
Ksin2x=b1sinx+b2sin2x+b3sin3x+.
Comparing both sides we get b1=0, b2=0, b3=0
Thus by substituting these values in the expanded form we get
en
ts
u( x, y) k sin 2xe2 y
C
itS
tu
d
c
t 2
x 2
Let v=x+ct and w=x-ct
We treat u as a function of v and w which are functions of x and t
By chain rule we have,
u u v u w
.
x v x w x
v
w
Since v=x+ct and w=x-ct,
1 and
1
x
x
u u
u
u u
.(1)
.(1)
x
v
w
v w
2u
u u u
x 2 x x x v w
Again by applying chain rule we have,
2u u u v u u w
. x
x 2 v v w x w v w
2u 2 u 2 u
2 u
2u
.(1)
.(1)
x 2 v 2 vw
w2
wv
2u
2u
But
=
vw wv
CitStudents.in
Page 47
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2u 2 u
2u 2u
2
2
x 2 v 2
wv
w
u u v u w
Similarly
.
.
x v t
w t
v
w
Since v=x+ct and w=x-ct,
c and
c
t
t
u
u
u
u u
u
c
.(c)
.(c) , or
t
w
t
v
w
v
But
en
ts
2 u 2 u
2u 2u
2u
2 .(c)
c
.(c)
2
r 2
v vw
wv w
2
2
2
2u
2 u
2 u u
2 u
wv w2
t 2
v vw
u u w
.
c
v w t
.in
.
r 2 t t v w v w t w
C
itS
tu
d
2
2 u
2 u
2u
2 u
v 2
t 2
wv w2
2 u
2 u
2 u
2u
2 u
2 u
2 = c 2 2 2
2
c2 2 2
wv w
wv
w
v
v
2u
2u
=0
or
4
=0
wv
wv
We solve this PDE by direct integration, writing it in the form,
u
0
w v
u
f (v)
Integrating w.r.t w treating v as constant we get
v
Now integrating w.r.t, we get u f (v)dv G(w)
f (v)dv
EXAMPLES
1. Obtain the DAlemberts solution of the wave equation utt=c2uxx subject to the
u
conditions u(x,0)=f(x) and
( x, 0) 0
t
Soln: DAlemberts solution of the wave equation is given by
CitStudents.in
Page 48
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
C
itS
tu
d
en
ts
.in
u(x,t)=F(x+ct0=G(x-ct)..(1)
Consider u(x,0)=f(x) (10 becomes
u(x,0)=F(x)+G(x)
f(x)=F(x)+G(x).(2)
Differentiating partially wrt t we have
u
(x,t) =F(x+ct).(c)+G(x-ct).(-c)
t
u
(x,)=c[F(x)-G(x)]
t
0= c[F(x)-G(x)]
[F(x)-G(x)]=0 integrating wrt x we have
[F(x)-G(x)]=k
Where k is the constant of integration(3)
By solving simultaneously the equations,
[F(x)+G(x)]=f(x)
[F(x)-G(x)]=k
1
1
We obtain F(x)= f ( x) k andG( x) f ( x) k
2
2
1
1
Thus F(x+ct)= f ( x ct) k and G(x-ct)= f ( x ct) k
2
2
Substituting these in(10 we have
1
1
U(x,t)= f ( x ct) k f ( x ct) k
2
2
Thus the required solution is
1
u(x,t)= f ( x ct) f ( x ct)
2
2. Obtain the DAlemberts solution of the wave equation utt=c2uxx given that
u(x,0)=f(x)=l2-x2and ut(x,0)=0
Soln. Assuming the DAlemberts solution
1
u(x,t)= f ( x ct) f ( x ct) and f(x)=l2-x2
2
1 2
u(x,t)= l ( x ct)2 l 2 ( x ct)2
1
2l 2 2x 2 2c 2t 2
2
2
2
2 2
u(x,t)= l x c t
3. . Obtain the DAlemberts solution of the wave equation utt=c2uxx given that
u(x,0)=asin2x and
u
0 when t 0
t
CitStudents.in
Page 49
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
C
itS
tu
d
en
ts
.in
UNIT IV
CitStudents.in
Page 50
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
b
y ax
Optimization :
Linear programming
Graphical method
tu
d
en
ts
.in
Simplex method
C
itS
CitStudents.in
Page 51
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Y
Where a and b are parameters to be determined; i is called the estimated value. The
Y
x
given value i corresponding
to i .
2
(3)
Let S yi Yi
= yi a bxi
(4)
S = yi a bxi
We determined a and b so that S is minimum (least). Two necessary conditions for this
S
S
0 and
0
a
b
.
differentiate (4) w.r.t a and b partially
S
yi a bxi
a
0 yi a bxi
.in
0= yi na b xi
y na b x
or y na b x
i
tu
d
en
ts
0 = yi a b xi
S
2 yi a bxi x i
b
0 2 xi yi axi bxi2
C
itS
0 = xi yi a xi b xi2
x y n x b x
or xy a x b x
i
2
i
CitStudents.in
Page 52
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
(3)
yi a bxi cxi2
(4)
S
2 yi a bxi cxi2
0 2 yi a bxi cxi2
en
ts
0 yi a bxi cxi2
0 yi a b xi c xi2
y a b x c x
y na b x c x
or y na b x c x
2
i
2
i
C
itS
tu
d
.in
S y i a bxi cxi2
S
2
2 yi a bxi cxi xi
0 xi y i a xi b xi2 c xi3
x y a x b x c x
or xy a x b x c x
i
2
i
3
i
CitStudents.in
Page 53
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
S
2
2
y
bx
cx
x
2 i
i
i
i
x y a x b x c x
or x y a x b x c x
2
i
2
i
3
i
4
i
xy a x b x c x
x y a x b x c x
2
.in
PROBLEMS:
en
ts
23
26
Solution: Let y a bx
Normal equation
y na b x
C
itS
(1)
xy a x b x
(2)
(3)
x
5
10
y
16
19
x2
25
100
xy
80
190
15
23
225
345
20
26
400
520
25
30
625
750
x y x
75 =114
CitStudents.in
30
tu
d
y : 16
xy
=1375 =1885
Page 54
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
y na b x
xy a x b x
y
14
3
4
(3)
xy
14
13
26
9
5
9
16
27
20
25
C
itS
(2)
tu
d
x
2
.in
(1)
Let y a bx
Normal equation
x y x
15
=43
10
=55
xy
=97
97 15a 56b
Solving above equations we get
a 18.2
b 3.2
(1) y 18.2 3.2 x
3) The equation of straight line of best fit find the equation of best fit
CitStudents.in
Page 55
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
x: 0
y: 1
1
2 3
4
1.8 3.3 4.5 6.3
(1)
Solution: let y a bx
Normal equation
(2)
y na b x
xy a x b x
2
(3)
xy
1.8
1.8
2
3
3.3
6.6
4.5
13.5
6.3
16
.in
25.2
x y x xy
2
=30
tu
d
b 1.33
=47.1
en
ts
10 =16.9
C
itS
4) If p is the pull required to lift a load by means of pulley block. Find a linear
block of the form p=MW+C Connected p &w using following data
: 50
70
100 120
p : 12
15
21
25
Compute p when W=150.
Solution: Given p=y & W=x
equation of straight line is
:
y a bx
let
Normal equations
CitStudents.in
(1 )
Page 56
SUBJECT:MATHEMATICS
y na b x
xy a x b x
x
SUBJECTCODE:10MAT31
(2)
(3)
p= y
x2
xy
50
12
2500
600
70
100
15
21
4900
10000
1050
2100
120
25
144000
3000
x 10 y =16.9 x
=30
xy =47.1
.in
en
ts
tu
d
x
5) Fit a curve of the form y ab
C
itS
Solution: Consider
(1)
y ab x
Take log on both side
logy=log ab x
=loga+logb x
logy=loga+logb x
y A Bx
logy=Y y=e y
(2) ;
loga=A a=e A
Y nA B x
xY A x B x
logb=B b=e B
(3)
2
(4)
Solving the normal equation (3) & (4) for a & b . Substitute these values in (1) we get
x
curve of best fit of the form y ab
x
6) Fit a curve of the curve y ab for the data
CitStudents.in
Page 57
SUBJECT:MATHEMATICS
x: 1
2
y : 1.0 1.2
SUBJECTCODE:10MAT31
3
4
5
1.8 2.5 3.6
6
4.7
7
8
6.6 9.1
Solution:
let y ab x
(1)
Y nA B x
xY A x B x
(2); A=loga
2
(3)
Y=logy, B=logb
xY
1.2
0.182
0.364
3
4
1.8
2.5
0.587
0.916
9
16
1.761
3.664
3.6
1.280
25
4.7
1.547
36
6.6
1.887
9.1
2.208
1.0
x 36
6.4
9.282
en
ts
Y=logy
=8.607
49
13.209
64
17.664
=204
xY =52.34
tu
d
.in
x2
8.607 8 A 36B
C
itS
52.34 36 A 203B
A 0.382
B 0.324
then e A a 0.682
e B b 1.382
b
7) Fit a curve of the form y ax for the following data
x: 1
1.5
2 2.5
y : 2.5 5.61 10.0 15.6
Solution:: Consider
CitStudents.in
Page 58
SUBJECT:MATHEMATICS
let y ax b
SUBJECTCODE:10MAT31
(1)
Y nA b x
XY A X B X
(2); Y=logy
2
X= log x
X2
Y log y
XY
2.5
0.916
1.5
5.62
0.405
0.164
1.726
0.699
10.0
0.693
0.480
2.302
1.595
2.5
15.6
0.916
0.839
2.747
2.516
Y=7.691 XY=4.81
=1.483
.in
X=2.014 X
en
ts
e A a 2.499 2.5
b 1.999 2
2
C
itS
tu
d
(1) y 2.5 x
Normal equation
(2)
y na b x c x
xy a x b x c x
x y a x b x c x
2
CitStudents.in
(3)
(4)
Page 59
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
x2
x3
x4
xy
x2 y
1.7
2
3
1.8
2.3
1
4
9
1
8
27
1
16
81
1.7
3.6
6.9
1.7
7.2
20.7
3.2
16
64
256
12.8
51.2
x y 9 x
30
100
354
xy 25 x
y 80.8
.in
en
ts
tu
d
bx
9) Fit a curve of the form y ae for the following
x: 0
2 4
y : 8.12 10 31.82
Sol:
(1)
y aebx
Normal equation
(2);
C
itS
Y=nA+b x
xy A x b x
x
0
2
4
8.12
10
31.82
x 6
Y=logy
(3)
A=loga
Y=logy
x2
xY
2.094
2.302
3..46
0
4
16
0
4.604
13.84
Y=7.86 x
20
xY 18.444
a e A 6.924
(1) y 6.924e0..341x
CitStudents.in
Page 60
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2
10) Fit a II degree parabola ax bx c to the least square method & hence
find y when x=6
x: 1 2 3 4 5
y : 10 12 13 16 19
Sol:
y ax 2 bx c
(1)
y c bx ax 2
Normal equation
(1)
(2)
y nc b x a x
xy c x b x a x
x y c x b x a x
2
(3)
(4)
.in
x2
x3
x4
xy
x2 y
10
10
2
3
12
13
4
9
8
27
16
81
24
39
14
117
16
16
64
256
64
256
625
979
95
232
475
906
en
ts
10
C
itS
tu
d
5
19
25
125
15 70 55 225
70 5c 15b 55a
232 15c 55b 225a
906 55c 225b 979a
a 0.285
b 0.485
c 9.4
OPTIMIZATION:
Optimization is a technique of obtaining the best result under the given conditions.
Optimization means maximization or minimization
LINEAR PROGAMMING:
Linear Programming is a decision making technique under the given constraints on the
condition that the relationship among the variables involved is linear. A general
relationship among the variables involved is called objective function. The variables
involved are called decision variables.
CitStudents.in
Page 61
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
.in
If the optimal value of the objective function is infinity then the LPP is said to have
unbounded solutions. Also an LPP may not possess any feasible solution.
en
ts
C
itS
tu
d
LPP involved with only two decision variables can be solved in this method. The method
is illustrated step wise when the problem is mathematically formulated.
x y
1
The constraints are considered in the form of a b
which graphically represents
straight lines passing through the points (a,0) and (0,b) since there are only two decision
variables.
These lines along with the co-ordinate axes forms the boundary of the region known as
the feasible region and the figure so formed by the vertices is called the convex polygon.
The value of the objective function Z c1 x1 c2 x 2 ...... cn x n is found at all these
vertices.
The extreme values of Z among these values corresponding the values of the decision
variables is required optimal solution of the LPP.
PROBLEMS:
1) Use the graphical method to maximize Z = 3x + 4y subject to the constraints
2x y 40 , 2x 5 y 180, x 0, y 0.
Solution: Let us consider the equations
2x y 40
x
y
1.............(1)
20 40
CitStudents.in
2x 5 y 180
x
y
1...........(2)
90 36
Page 62
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Let (1) and (2) represent the straight lines AB and CD respectively where we have
A = (20, 0), B = (0, 40) ; C = (90 , 0), D = (0,36)
We draw these lines in XOY plane.
en
ts
.in
Shaded portion is the feasible region and OAED is the convex polygon. The point E
being the point of intersection of lines AB and CD is obtained by solving the equation:
2x y 40 , 2 x 5 y 180. E( x, y) (2.5,35)
tu
d
The value of the objective function at the corners of the convex polygin OAED are
tabulated.
Value of Z = 3x + 4y
Corner
O(0,0)
0
A(20, 0)
60
E(2.5, 35)
147.5
D(0,36)
144
C
itS
2) Use the graphical method to maximize Z 3x1 5x2 subject to the constraints
x1 2x2 2000 , x1 x2 1500, x2 600 , x1 , x2 0.
Solution: Let us consider the equations
x1 x2 2000 ,
x1 x2 1500,
x 2 600
x1
x1
x
x
x 2 600.........(3)
2 1.....(1)
2 1...........(2)
2000 1000
1500 1500
Let (1) and (2) represent the straight lines AB and CD respectively where we have
A = (2000, 0), B = (0, 1000) ; C = (1500 , 0), D = (0,1500)
x2 600. is a line parallel to the x1 axis.
We draw these lines in XOY plane.
CitStudents.in
Page 63
SUBJECT:MATHEMATICS
On solving
x1 x 2 2000 ,
SUBJECTCODE:10MAT31
we get E (1000,500)
we get F (900,600)
x1 x 2 1500 , x 2 600,
we get G (800,600)
x1 2 x2 2000 , x2 600,
Also we have C = (1500 , 0), H= (0, 600)
en
ts
.in
x1 x 2 1500,
The value of the objective function at the corners of the convex polygin OAED are
tabulated.
Corner
C
itS
tu
d
O(0,0)
C(1500, 0)
E(1000, 500)
F(900, 600)
G(800,600)
3) Use the graphical method to minimize Z 20x1 10x2 subject to the constraints
x1 2x2 40 , 3x1 x2 30, 4x1 3x2 60 , x1 , x2 0.
Solution: Let us consider the equations
x1 2x 2 40 ,
3 x1 x2 30,
34 x1 3x2 60
x
x
x1 x 2
x1 x2
1...........(2)
1.........(3)
1 2 1.....(1)
40 20
10 30
15 20
Let (1) ,(2) and (3) represent the straight lines AB ,CD and EF respectively where we
have A = (40, 0), B = (0,20) ; C = (10 , 0), D = (0,30) ; E = (15,0), F = (0, 20)
We draw these lines in XOY plane.
CitStudents.in
Page 64
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Shaded portion is the feasible region and EAHG is the convex polygon. The point G
being the point of intersection of lines EF and CD. The point H being the point of
intersection of lines AB and CDis obtained by solving the equation:
en
ts
tu
d
Thus (Z ) MIN
A(15 , 0)
300
A(40, 0)
800
H(4 , 18)
260
G (6, 12)
240
240 when x1 6, x 2 12
.in
The value of the objective function at the corners of the convex polygin OAED are
tabulated.
Corner
Value of Z 3x1 5x2
C
itS
4) Show that the following LPP does not have any feasible solution.
Objective function for maximization:Z = 20x+30y.
Constraints: 3x 4 y 24 , 7 x 9 y 63, x 0, y 0.
Solution: Let us consider the equations
7 x 9 y 63
3x 4 y 24
x y
x y
1.............(1)
1...........(2)
8 6
9 7
Let (1) and (2) represent the straight lines AB and CD respectively where we have
A = (8, 0), B = (0,6) ; C = (9 , 0), D = (0,7)
We draw these lines in XOY plane.
Page 65
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
SIMPLEX METHOD
Simplex method is an efficient algebraic method to solve a LPP by systematic procedure
and hence an algorithm can be evolved called the simplex algorithm.
In this method it is necessary that all the constraints in the inequality formn is converted
into equality form thus arriving at a system of algebraic equations.
If the constraint is involved with we add a non zero ariables s1 (say) 0 to the LHS to
make it an equality and the same variable is called slack variable.
LPP with all constraints being equalities is called a standard form of LPP.
.in
en
ts
PROBLEMS:
2x 3 y 0.s1 1.s2 24
tu
d
Solution: Let us introduce slack variables s1 and s2 to the inequalities to write them in
the following form.
3x y 1.s1 0.s2 22
C
itS
s1
s2
Indicators
()
s1
y
s2
0
Qty
Ratio
s1
1
22
22/1=22
24
24/3=8
-2
-4
22
R1 R2 R1
2/3
-2
1
-4
0
0
1/3
0
8
0
R3 4R2 R3
7/3
0
1
-1/3
14
s1
y
2/3
0
0
1/3
8
2/3
0
0
4/3
32
Thus the maximum value of Z is 32 at x=0 and y=8
CitStudents.in
8 is least, 3 is pivot,
s2 is replaced by y.
Also 1/3.R2
No negative indicators
Page 66
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
s1
s2
s3
Indicators
()
y
s2
11
11/3=3.33
19
19/3=9.5
35
25/1=25
-2
-3 -1
1/3
1
1
2
2/3
5
1/3
0
0
1
0
0
11/3
19
R2 2R1 R2
s3
25
R3 R1 R3
-2
-3 -1
Y
s2
s3
1/3
1/3
1
0
2/3 1/3
11/3 -2/3
0
1
0
0
11/3
35/3
8/3
-1
1/3
0
0
1
10/3 -1/3
1
1
2/3 1/3
0
0
0
1
0
0
64/3
11
11/3
1/3
11/3 -2/3
35/3
R2 1/ 3R3 R2
1
-1
0
0
10/8 -1/8
1
1
0
0
3/8
0
8
1
R4 R3 R4
1/4
s2
13/4 -5/8
1
0
0
0
10/8 -1/8
9/4 7/8
0
0
1/8
1/8
3/8
3/8
s2
x
Ratio
en
ts
C
itS
NZV
.in
s2 s3
0 0
Qty
s1
1
tu
d
3/8
3.33 is least, 3 is
pivot s1 is replaced
by y. Also 1/3.R1
R4 3R1 R4
11/31/3=11 8 is least, 8/3 is
35/31/3=35 pivot s3 is replaced
64/38/3=8 by x. Also 3/8.R3
R1 1/ 3R3 R1
9
9
19
No negative
indicators
CitStudents.in
Page 67
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
s1
-1
s2
-2
s3
-4
-3
-1
1
3
-3
s2
0
s3
0
Qty
Ratio
7/-1=-7
3 is least, 4 is
pivot s2 is
replaced by y.
Also 1/4.R2
12
12/4=3
10
10/3=3.3
R1 R1 R2
0
8
0
0
1/4
0
0
1
3
10
R3 3R2 R3
tu
d
Indicators 1
()
s1
3
s1
1
en
ts
NZV
.in
5/2
-1/2
-5/2
0
1
0
2
0
8
1
0
0
1/4
1/4
-3/4
0
0
1
10
3
1
-1/2
1
-1/2
0
0
1
2
4/5
0
0
3/4
2/5 1/10
0
1/4
0
0
0
9
4
3
R2 1/ 2R1 R2
s3
-5/2
-3/4
R3 5 / 2R1 R3
-1/2
3/4
R4 1/ 2R1 R4
x
y
s3
1
0
0
0
1
0
4/5
2/5
10
2/5 1/10
1/5 3/10
1
-1/2
0
0
1
4
5
11
12/5
1/5 4/5
11
y
s3
x
y
C
itS
s1
y
s3
-1/2
-4
105/2=4
3-1/2=-6
1-5/2=-2/5
R4 3R2 R4
4 is least, 5/2 is
pivot, s1 is
replaced by x.
Also 2/5.R1
No negative
indicators
Page 68
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
UNIT V
NUMERICAL METHODS - 1
CONTENTS:
Introduction
en
ts
.in
tu
d
C
itS
Relaxation method
CitStudents.in
Page 69
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
NUMERICAL METHODS-1
Introduction:
Limitations of analytical methods led to the evolution of Numerical methods. Numerical
Methods often are repetitive in nature i.e., these consist of the repeated execution of the
same procedure where at each step the result of the proceeding step is used. This process
known as iterative process is continued until a desired degree of accuracy of the result is
obtained.
Ex:
.in
en
ts
C
itS
tu
d
CitStudents.in
Page 70
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
.in
Poblems:
C
itS
tu
d
en
ts
x0 = 2, x1 = 3
x1 x 0
Now x 2 x 0
f (x 0 )
f (x 1 ) f (x 0 )
32
2
(1)
16 1
= 2.0588
f(x2) = f(2.0588) = -0.3908
CitStudents.in
Page 71
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
tu
d
en
ts
.in
2. Find the root of the equation xex = cos x using Regula falsi method correct to
three decimal places.
Solution:
Let f(x) = cosx - xex
Observe
f(0) = 1
f(1) =cos1 - e = -2.17798
root lies between 0 and 1
Taking x0 = 0, x1 = 1
f(x0) = 1, f(x1) = -2.17798
x1 x 0
x 2 x 0
.f (x 0 )
f (x 1 ) f (x 0 )
1
0
(1) 0.31467
3.17798
f(x2) = f(0.31467) = 0.51987 +ve
1 0.31467
(0.51987) 0.44673
2.17798 0.51987
C
itS
x 3 0.31467
CitStudents.in
Page 72
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
f(m) = 0
We have by Taylor's series
C
itS
then
en
ts
Let
tu
d
(x a) 2 ''
f (a) .....
2!
.in
.
.
x k 1 x k
f (x k )
f ' (x k )
1. Using Newton's Raphson Method find the real root of x log10 x = 1.2 correct to
four decimal places.
Answer:
Let f(x) = x log10 x - 1.2
f(1) = -1.2, f(2) = -0.59794, f(3) = 0.23136
1 log e x
x loge x
We have f (x)
1.2 f ' (x)
log e 10
log e 10
log10 e log10 x
CitStudents.in
Page 73
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
x k log10 x k 1.2
log10 e log10 x K
Let x0 = 2.5 (you may choose 2 or 3 also)
2.5 log10 2.5 1.2
2.7465
x 1 2.5
log10 e log10 2.5
x k 1 x k
(0.8678) e 0.8678 2
x 3 0.8527
(1.8678) e 0.8678
C
itS
x 2 0.8678
tu
d
en
ts
.in
2.Using Newton's Method, find the real root of xex = 2. Correct to 3 decimal places.
Answer:
Let f(x) = xex - 2
f(0) = -2
f(1) = e - 2 = 0.7182
Let x0 = 1
f' (x) = (x + 1) ex
We have
xk e xk 2
x k 1 x k
(x k 1) e x k
e2
x1 1
0.8678
2e
0.8527
(0.8527) e 0.8527 2
0.8526
(1.8527) e 0.8527
x 0.8526, is the required root. Correct to 3 decimal places
3. Find by Newton's Method the real root of 3x = cosx + 1 near 0.6, x is in radians.
Correct for four decimal places.
Answer:
Let f(x) = 3x - cosx - 1
f'(x) = 3 + sinx
3x cos x k 1
x k 1 x k k
3 sin x k
3 (0.6) cos (0.6) 1
When x 0 0.6 x 1 0.6
0.6071
3 sin (0.6)
3 (0.6071) cos (0.6071) 1
0.6071
x 2 0.6071
3 sin (0.6071)
CitStudents.in
Page 74
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Since x1 = x2
The desired root is 0.6071
41
Observe that
36 41
Choose x 0 6
tu
d
1
41
6 6.4166
2
6
1
41
x 2 6.4166
6.4031
2
6.4166
41
1
x3 6.4031
6.4031
2
6.4031
Since x2 = x3 = 6.4031
The value of 41 6.4031
en
ts
.in
4. Obtain the iterative formula for finding the square root of N and find
Answer:
Let x N
or x2 - N = 0
f(x) = x2 - N
f'(x) = 2x
Now
x2 N
x k 1 x k k
2x k
x
N
xk k
2 2x k
1
N
i.e. x k 1 x k
2
x k
To find 41
C
itS
x1
5. Obtain an iterative formula for finding the p-th root of N and hence find (10)1/3
correct to 3 decimal places.
Answer:
Let xp = N
or xp - N = 0
Let f(x) = xp - N
f ' (x) px p1
Now
x k 1 x k
x pk N
px kp1
Page 75
SUBJECT:MATHEMATICS
81 / 3 101 / 3
i.e.
2 (10)1 / 3
Use x0 = 2, p = 3, N=10
2 3 10
x1 2
2.1666
3 (2 2 )
SUBJECTCODE:10MAT31
x 2 2.1666
(2.1666) 3 10
2.1545
3(2.1666) 2
x 3 2.1545
(2.1545) 3 10
2.1544
3 (2.1545) 2
(10)1 / 3 2.1544
tu
d
x k 1 x k
x p
k N
en
ts
.in
6. Obtain an iterative formula for finding the reciprocal of p-th root of N. Find
(30)-1/5 correct to 3 decimal places.
Answer:
Let x -p = N
or x -p - N = 0
f(x) = x -p - N
f'(x) = -px -p - 1
Now
C
itS
p x k p 1
1
sin ce (32)1/ 5 0.5
2
We use x0 = 0.5, p = 5, N = 30
(0.5) 5 30
x 1 0.5
0.50625, Re peating the process
5(0.5) 6
x 2 0.506495, x 3 0.506495
(30) 1/ 5 0.5065
Page 76
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1 [ 17- y +2z ]
20
1 [-18-3x + z ] (2)
20
x=
y=
z =
1 [25 2x
20
+ 3y ]
.in
x 0, y 0, z 0
(0)
(0)
x
(1)
en
ts
First Iteration:Using ( 2 )
(0)
(0)
1 [ 17- y ( 0 )
20
+2z
(1)
1 [-18-3x ( 1 )
20
(0)
+z
C
itS
tu
d
20
(1)
(1)
z
(1)
1 [ -18-3(0.8500 ) + 0 ]
20
1 [25 2x
20
= -1.0275
(1)
(1)
+ 3y
1 [25 2(0.8500)
20
+ 3(- 1.0275)]
= 1.0109
Second Iteration: Usining ( 2 )
x
(2)
CitStudents.in
1 [ 17- y ( 1 )
20
(1)
+2z
Page 77
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
20
= 1.0025
(2)
(1)
+z
1 [ -18-3(1.0025 ) + 1.0109 ]
20
(2)
1 [-18-3x ( 2 )
20
= - 0.99928
=
(2)
+ 3y
20
= 0.9998
tu
d
en
ts
(2)
1 [25 2x ( 2 )
20
.in
(2)
x 1 [ 17- y
(3)
(2)
+2z
20
C
itS
(3)
(2)
= 1.0000
(3)
1 [-18-3x
20
(2)
(3)
+z
(3)
= 1 [ -18-3(1.0000) +0.9998 ]
20
= -1.0000
(3)
CitStudents.in
1 [25 2x ( 3 )
20
(3)
+ 3y
Page 78
SUBJECT:MATHEMATICS
(3)
SUBJECTCODE:10MAT31
20
= 1.0000
Answer after three iterations
x =1.000, y = -1.0000 and z = 1.000
.in
en
ts
The above system equations is arranged such that, the system is diagonally
dominant.
1 [ 85-6 y +z ]
27
y = 1 [72-6x -2z ]
15
z = 1 [110 x -y ]
54
x=
tu
d
C
itS
System (B)
(C)
x 1, y 0, z
(0)
(0)
(0)
First Iteration:Using ( C )
x
(1)
x
(1)
CitStudents.in
1 [ 85-6 y
27
(0)
(0)
+z
Page 79
SUBJECT:MATHEMATICS
(1)
1 [72- 6x
15
SUBJECTCODE:10MAT31
(1)
(1)
(0)
-2 z
=3.54074
(1)
z
(1)
1 [110 x
54
(1)
(1)
-y
1 [110 3.148148
54
-3.54074 ]=1.913168
1 [ 85-6 y ( 1 )
27
(1)
+z
.in
(2)
-2 z
tu
d
15
(2)
(1)
(2)
= 1 [72- 6x
en
ts
(2)
C
itS
15
= 3.57204
(2)
= 1 [110 x
54
(2)
(2)
(2)
-y
=1.925837
ert45t
Third Iteration: Usining ( C )
x 1 [ 85-6 y
(3)
(2)
(2)
+z
27
CitStudents.in
Page 80
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
27
=2.425689
(3)
1 [72- 6x
15
(2)
(3)
-2 z
(3)
(3)
1 [110 x
54
(2)
(2)
-y
(3)
en
ts
.in
tu
d
C
itS
RELAXATION METHOD:
The method is illustrated for the following diagonally dominant system of three
independent equations in three unknowns.
a11 x1 a12 x2 a13 x3 b1
a21 x1 a22 x2 a23 x3 b2
a31 x1 a32 x2 a33 x3 b3
From these equations the residuals R1 , R2 , R3 are defined as follows
R1 a11 x1 a12 x2 a13 x3 b1
R2 a21 x1 a22 x2 a23 x3 b2
R3 a31 x1 a32 x2 a33 x3 b3
The values of x1 , x2 , x3 that make the residuals R1 , R2 , R3 simultaneously zero
constitutes the exact solution of the system of equations. If this is not possible we
need to make the residuals as close to zero as possible.
CitStudents.in
Page 81
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
.in
When the system does not possess exact solution, we need to continue the process b y
magnifying the prevailing residuals on multiplication with 10. Later we divide by 10
to obtain the solution correct to one decimal place.
en
ts
The process will be contined to meet the requirement of the solution to the desired
accuracy.
PROBLEMS:
1) Solve the following system of equations by relaxation method.
12x1 x2 x3 31
tu
d
2x1 8x2 x3 24
Let
C
itS
R2 2x1 8x2 x3 24
be the residuals.
CitStudents.in
x2
0
0
4
0
0
-1
x3
0
6
0
0
-2
0
R1
-31
-25
-21
3
1
0
R2
-24
-30
2
6
8
0
R3
-58
2
18
24
4
0
Page 82
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
R1 , R2 , R3 are all zero and the exact solution of the given system is
x1 x1 2, x2 x2 4 1 3, x3 x3 6 2 4
.in
R1 10x 2 y 3z 205
Let
R3 2x y 10 z 120,
en
ts
0
21
0
0
9
0
0
2
0
0
0
20
0
0
5
0
0
1
z
0
0
0
18
0
0
3
0
0
R1
-205
5
-35
-89
1
-9
-18
2
0
tu
d
C
itS
R2
-154
-196
4
-32
-50
0
-6
-10
0
R3
-120
-162
-182
-2
-20
25
5
1
0
R1 , R2 , R3 are all zero and the exact solution of the given system is
x x 32, y y 26, z z 21
Thus ( x, y, z ) = (32 , 26, 21 ) is the solution of the given system of equations.
CitStudents.in
Page 83
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
.in
Problems:
tu
d
en
ts
1) Using the Power method find the largest eigen value and the corresponding eigen
vector starting with the given initial vector.
2 0 1
0 2 0 given 1 0 0T
1 0 2
2 0 1 1 2
1
Solution : AX 0 2 0 0 0 2 0 1 X 1
1 0 2 0 1 0.5
2 0 1 1 2.5
1
1
AX 0 2 0 0 0 2.5 0 2 X 2
1
0.8
0 2 0.5
2
2 0 1 1 2.8
1
3
3
2
AX 0 2 0 0 0 2.8 0 X
1 0 2 0.8 2.6
0.93
C
itS
CitStudents.in
Page 84
SUBJECT:MATHEMATICS
AX
AX 4
SUBJECTCODE:10MAT31
0 1 1 2.93
1
4 X 4
2 0 0 0 2.93 0
0.98
0 2 0.93 2.86
0 1 1 2.98
1
5 X 5
2 0 0 0 2.98 0
0.99
0 2 0.98 2.96
0
1
2
0
1
2 0 1 1 2.99
1
AX 0 2 0
0 2.99 0 6 X 6
0.997
1 0 2 0.99 2.98
2 0 1 1 2.997
1
7 X 7
6
AX 0 2 0 0 0 2.997 0
1 0 2 0.997 2.994
0.999
Thus the largest eigen value is approximately 3 and the corresponding eigen vector is
[1 ,0, 1]
en
ts
.in
2) Using the Power method find the largest eigen value and the
corresponding eigen vector starting with the given initial vector.
C
itS
tu
d
4 1 1
T
2
3 1 given 1 0.8 0.8
2 1 5
1
4 1 1 1 5.6
0
0.93
1 5 0.8 5.2
4
AX 2
2
4
2
AX 2
2
1
AX
AX 4
2
2
CitStudents.in
1 1
3 1
1 5
1 1
3 1
1 5
1 1 1 5.86
1
5.72
0.98
1 5 0.93
1 1 1 5.96
1
0.99
1 5 0.98 5.92
1
1 5.98
0.99 5.96 5.98 0.997 4 X 4
0.99
5.96
0.997
1 5.994
1
0.997 5.988 5.994 0.999 5 X 5
0.997 5.988
0.999
Page 85
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
Thus after five iterations the numerically largest eigen value is 5.994 and corresponding
eigen vector is [1, 0.999, -0,999]
UNIT VI
CONTENTS:
C
itS
Introduction
tu
d
NUMERICAL METHOD -2
Finite difference:
Page 86
SUBJECTCODE:10MAT31
.in
SUBJECT:MATHEMATICS
Finite Differences
Let y = f(x) be represented by a table
x0
y:
y0
x1
x2
x3
xn
y2
y3
yn
tu
d
x:
en
ts
NUMERICAL METHODS-2
y1
C
itS
y r y r 1 y r , r 0,1, 2,..., n 1
y 0 y1 y 0
y1 y 2 y1
.
first forward differences
y n 1 y n y n 1
2 y 0 , 2 y1 , 2 y 2 ,...., are called the sec ond differences
CitStudents.in
Page 87
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Now 2 y 0 (y 0 ) (y1 y 0 )
y1 y 0 (y 2 y1 ) (y1 y 0 )
y 2 2y1 y 0
2 y1 y 3 2y 2 y1
||| ly
2 yr y r 2 2y r 1 y r
Note : 3 y 0 y3 3y 2 3y1 y 0
Difference Table
x
x0
y0
2 y
3 y
4 y
y0
x1
2 y0
y1
x2
3 y0
2 y1
y2
4 y0
y2
y3
3 y0
2 y2
C
itS
x3
5 y
tu
d
y1
.in
k y r y r k k C1 y r k 1 k C 2 y r k 2 .... (1) k C r
en
ts
y3
x4
y4
10
15
20
25
30
35
y:
19.97
21.51
22.47
23.52
24.65
25.89
Form the difference table and find f (10), 2 f (10), 3 f (20), 4 f (15)
x
10
19.97
1.54
CitStudents.in
Page 88
SUBJECT:MATHEMATICS
15
21.51
-0.58
0.96
20
0.67
22.47
0.09
1.05
25
-0.68
-0.01
23.52
0.08
1.13
30
SUBJECTCODE:10MAT31
0.72
0.04
0.03
24.65
0.11
1.24
35
25.89
i.e.
= y1 - y0 = y0
y2 = y2 - y1 = y1
tu
d
y3 = y3 - y2 = y2
en
ts
Let y = f(x)
.in
'
'
C
itS
yn = yn - yn-1 = yn - 1
y r y r y r 1 y r 1
Note:
CitStudents.in
Page 89
SUBJECT:MATHEMATICS
Backward difference table
x
y
y
X0
SUBJECTCODE:10MAT31
2 y
3 y
y0
y1
X1
2 y2
y1
y2
X2
3 y3
2 y3
y2
y3
y3
.in
X3
40
50
184
204
en
ts
70
80
90
226
250
276
304
Soln:
x
40
184
50
2 y
C
itS
20
tu
d
204
226
250
0
0
2
26
80
5 y
24
70
4 y
22
60
3 y
276
0
0
0
2
28
90
304
Page 90
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
f(x)
12
32
76
156
Construct the difference table and write the values of f (4), 2f (4), 3f (3)
x
2 y
3 y
8
12
12
20
12
32
24
44
12
76
.in
36
156
en
ts
80
81
tu
d
C
itS
a-9
81 - a
81
x
0
2 y
3 y
4 y
a - 15
a - 19
-4a + 124
81 - a
-3a +105
Page 91
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
4)
2u
3u
a-8
-2a + 72
b + 3a - 200
x3
64
64 - a
b + a - 128
-3b - a + 408
x4
b - 64
-2b + 280
x5
216
216 -b
x1
x2
.in
We carryout upto the stage where we get two entries ( 2 unknowns) and equate each of
en
ts
Interpolation:
tu
d
The word interpolation denotes the method of computing the value of the function y =
Note:
C
itS
f(x) for any given value of x when a set (x0, y0), (x1, y1),(xn, yn) are given.
Since in most of the cases the exact form of the function is not known. In such cases the
function f(x) is replaced by a simpler function (x) which has the same values as f(x) for
x0, x1, x2.,xn.
(x) y 0 u y 0
u (u 1) 2
u (u 1) (u 2) 3
y0
y 0 ....
2!
3!
u (u 1) (u 2) ...(u n 1) n
y0
n!
CitStudents.in
Page 92
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Note :
1. Newton forward interpolation is used to interpolate the values of y near the beginning
of a set of tabular values.
2. y0 may be taken as any point of the table but the formula contains those values of y
.in
en
ts
Problems:
300
350
400
15.04
18.42
19.90
21.27
1) The table gives the distances in nautical miles of the visible horizon for the given
heights in feet above the earths surface.
100
y = distance
10.63
150
200
250
tu
d
x = height
13.03
16.81
C
itS
x
100
y
10.63
150
13.03
2.40
-0.39
2.01
200
15.04
0.15
-0.24
1.77
250
16.81
-0.16
1.61
300
18.42
19.90
400
21.27
0.02
-0.05
0.03
-0.13
1.48
350
-0.07
0.08
0.02
0.04
-0.01
0.02
-0.11
1.37
CitStudents.in
Page 93
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Choose x0 = 100
i) x 120, u
120 100
0.4
50
f(120) 10.63
(0.4)(0.4 1)
0.4
(2.40)
(0.39)
1!
2!
en
ts
.in
218 200 18
0.36
50
50
0.36 (0.64)
(0.16)
2
tu
d
0.36(0.64) (1.64)
(0.03) ...
6
C
itS
= 15.7
y
5.474
2y
3y
4y
5y
6y
0.575
1.8
6.049
1.9
6.686
2.0
7.389
0.062
0.637
0.004
0.066
0.703
0.008
0.074
0.777
2.1
8.166
0.082
9.025
-0.004
0
0.008
0.859
2.2
0.004
0.004
0
0
0.008
0.090
0.949
23
CitStudents.in
9.974
Page 94
SUBJECT:MATHEMATICS
Choose x 0 1.8, x 1.85 u
x x 0 1.85 1.8
0.5
h
0.1
SUBJECTCODE:10MAT31
(0.5)(0.5)
(0.066)
2
(0.5)(0.5) (1.5)
(0.008)
6
.in
= 6.359
3) Given sin 45o = 0.7071, sin 50o = 0.7660, sin 55o =0.8192, sin 60o = 0.8660.
45
0.7071
0.589
0.7660
-0.0057
0.0532
55
0.8192
0.0007
-0.0064
C
itS
0.0468
60
tu
d
50
en
ts
0.8660
x 48, x 0 45; h 5 u
x x0
0.6
h
4) From the following data find the number of students who have obtained 45
marks. Also find the number of students who have scored between 41 and 45 marks.
Marks
No. of students
CitStudents.in
0 - 40
41 - 50
51 - 60
61 -70
71 - 80
31
42
51
35
31
Page 95
SUBJECT:MATHEMATICS
x
40
31
SUBJECTCODE:10MAT31
4
42
50
73
9
51
60
124
-25
-16
35
70
37
12
159
-4
31
190
(0.5) (0.5) 9
(0.5) (0.5) (1.5) (25)
2
3!
en
ts
.in
80
f(45) - f(40) = 70 = Number of students who have scored between 41 and 45.
tu
d
C
itS
-1
8
9
10
x0
x
1
f (x) 1 x(1)
x(x 1) (x 2)
x(x 1)
6 x 3 2x 2 1
(2)
3!
2!
Page 96
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
x:
f(x) :
11
18
27
x
0
y
3
3
2
5
2
11
7
3
18
27
x0
x
1
f (x) 3 x(3)
x(x 1)
x(x 1)
(2)
(0)
2
x!
en
ts
.in
3 2x x 2
u (u 1) (u 2) 3
u(u 1) 2
y n
y n ....
2!
3!
C
itS
y y n u y n
tu
d
where u
x xn
h
1) The values of tan x are given for values of x in the following table. Estimate
tan (0.26)
0.10
0.15
0.20
0.25
0.30
0.1003
0.1511
0.2027
0.2553
0.3093
x
0.10
y
0.1003
0.0508
0.15
0.1511
CitStudents.in
0.0008
Page 97
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
0.0516
0.20
0.2027
0.25
0.2553
0.0002
0.0010
0.0002
0.0526
0.0004
0.0014
0.0540
0.30
u
0.3093
0.26 0.3
0.8
0.05
x
0
d
0
0.0347
0.0347
0.0826
0.4
0.1173
0.6
0.2160
-0.0318
0.0161
0.0987
C
itS
0.2987
0.0003
-0.0321
-0.016
0.0827
0.8
0.0479
tu
d
0.2
en
ts
.in
-0.0003
0
-0.032
-0.0481
0.0346
1.0
0.3333
80
85
90
95
100
y:
5026
5674
6362
7088
7854
y
5026
2y
3y
4y
648
CitStudents.in
Page 98
SUBJECT:MATHEMATICS
85
5674
40
688
90
6362
-2
38
726
95
7088
100
7854
SUBJECTCODE:10MAT31
2
40
766
Answer:
x xn
0.4
u
n
y = 7542
-5
-10
-9
35
x
0
y
-5
-10
-9
tu
d
-5
en
ts
12
C
itS
13
3
.in
18
31
4
u
35
x4
1
f (x) 35 (x 4) (31) (x 4) (x 3)
(x 4) (x 3) (x 2) (6)
18
2!
3!
f(x) x 3 2x 2 6x - 5
CitStudents.in
Page 99
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
(x x 0 ) (x x 1 ) (x x 3 )...(x x n )
f (x 2 ) ....
(x 2 x 0 ) (x 2 x 1 ) (x 2 x 3 )...(x 2 x n )
(x x 0 ) (x x 1 ) (x x 2 )...(x x n 1 )
f (x n ) is
(x n x 0 ) (x n x 1 ) (x n x 2 )...(x n x n 1 )
the
lagrange's
tu
d
y1 y 0
[x 0 , x 1 ]
x1 x 0
y 2 y1
[x 2 , x1 ]
x 2 x1
y n 1
y n y n 1
[x n 1 , x n ]
x n x n 1
C
itS
y1
as
en
ts
interpolation formula
f (x 0 ) y 0
known
.in
y1 y 0
x2 x0
[x 2 , x 1 ] [x 1 , x 0 ]
[x 0 , x 1 , x 2 ]
x2 x0
||ly 2 y1
y 2 y1 [x 3 , x 2 ] [x 2 , x 1 ]
[x 1 , x 2 , x 3 ]
x 3 x1
x 3 x1
Page 100
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
y f (x) y 0 (x x 0 ) y 0 (x x 0 ) (x x 1 ) 2 y 0 (x x 0 ) (x x 1 )(x x 2 ) 3 y 0
... (x x 0 ) (x x1 ) ...(x x n ) n y 0
is called the Newton's divided difference formula.
Note:Lagrange's formula has the drawback that if another interpolation value were
inserted, then the interpolation coefficients need to be recalculated.
Inverse interpolation: Finding the value of y given the value of x is called interpolation
.in
Since Lagrange's formula is only a relation between x and y we can obtain the inverse
(y y1 ) (y y 2 )....(y y n )
.x 0
( y 0 y1 ) (y 0 y 2 )...(y 0 y n )
( y y 0 ) (y y 0 ) (y y 2 ) (y y 3 )...(y y n ) x ...
1
(y1 y 0 ) (y1 y 2 ) (y1 y 3 ) ...(y1 y n )
(y y 0 ) (y y1 )...(y y n 1 )
.x n
(y n y 0 ) (y n y1 )...(y n y n 1 )
C
itS
...
tu
d
en
ts
1)
x:
1.2
2.1
2.8
4.1
4.9
6.2
y:
4.2
6.8
9.8
13.4
15.5
19.6
(y y1 ) (y y 2 ) ( y y 3 ) (y y 4 ) (y y 5 )
x0
( y 0 y1 ) (y 0 y 2 ) (y 0 y3 ) (y 0 y 4 ) (y 0 y 5 )
CitStudents.in
Page 101
SUBJECT:MATHEMATICS
....
SUBJECTCODE:10MAT31
(y y 0 ) (y y1 ) (y y 2 ) (y y 3 ) (y y 4 )
x4
( y 5 y 0 ) (y 5 y1 ) (y 5 y 2 )...(y 5 y 4 )
= 3.55
2)
11
13
17
f(x) :
150
392
1452
2366
5202
.in
x:
en
ts
Evaluate f(9) using (i) Lagrange's formula (ii) Newton's divided difference formula.
i) Lagranges formula
tu
d
f (9)
C
itS
f(9) = 810
ii)
5
150
121
392
24
265
11
CitStudents.in
1452
1
32
0
Page 102
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
457
13
2366
42
709
17
5202
3) Using i) Langranges interpolation and ii) divided difference formula. Find the
value of y when x = 10.
5
y:
12
13
9
14
44
3
tu
d
C
itS
ii)Divided difference
x
y
5
16
en
ts
i) Lagranges formula
y f (10)
11
.in
x:
12
13
2 / 3 1
4
6
1
3
9
14
2 1 27
15 6 90 3 / 10 1
11 5
6
6
20
2/3 2
5
15
2
1
2
11
CitStudents.in
16
Page 103
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
1
f (10) 12 (10 5) (10 5)(10 6). (10 5)(10 6)(10 9)
20
6
44
3
4) If y(1) = -3, y(3) = 9, y(4) =30, y(6) = 132 find the lagranges interpolating
Given:
1
-3
30
132
(x 3) (x 4) (x 6)
(x 1)(x 4)(x 6)
. (3)
.9
(1 3)(1 4)(1 6)
(3 1)(3 4)(3 6)
(x 1)(x 3)(x 6)
(x 1)(x 3)(x 4)
.30
.132
(4 1)(4 3)(4 6)
(6 1)(6 3)(6 4)
tu
d
f (x)
en
ts
.in
C
itS
= x3 - 3x2 + 5x - 6
5) Find the interpolating polynomial using Newton divided difference formula for
the following data:
x
12
147
1
1
4
9
CitStudents.in
12
1
9
Page 104
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
45
147
Numerical Integration:b
.in
tu
d
(ii)
en
ts
3h
y 0 y n 3 y1 y 2 y 4 y5 .... y n1 2 y 3 y6 ..... y n3
8
when n is a multiple of 3.
C
itS
(iii)
Weddles rule:3h
I y 0 5 y1 y 2 6 y 3 y 4 5 y 5 y 6 ......
10
when n is a multiple of 6.
Problems:
1)
1
1 rd
dx
rule evaluate
by dividing the interval 0 , 1 into
2
3
1
x
0
4 equal sub intervals and hence find the value of correct to four decimal
places.
Using Simpsons
4
4
1 2 1 3 4
The points of division are x 0, , , , 1
4 4 2 4 4
CitStudents.in
Page 105
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
1 x2
Now we have the following table
x
0
1/4
1
y
1
16/17
1 x2
y0
y1
By data y
1/2
3/4
4/5
16/25
1/2
y2
y3
y4
rd
Simpsons
b
1
rule for n = 4 is given by
3
ydx 3 y
y4 4 y1 y3 2 y2
1
1 / 4 1 1 4 16 16 2. 4 0.7854
dx
1 x2
3 2
5
17 25
0
Thus
1 x
.in
dx 0.7854
en
ts
1
1
1
tan
tan
(1)
(0)
dx tan
x
2
0
1 x
4
0
tu
d
C
itS
We must have,
2) Given that
x
4
log x 1.3863
4.2
1.4351
4.4
1.4816
4.6
1.5261
4.8
1.5686
5
1.6094
5.2
1.6487
3 th
rule
Evaluate log x dx using Simpsons
8
4
5.2
Solution: Simpsons
CitStudents.in
3 th
rule for n = 6 is given by
8
Page 106
SUBJECT:MATHEMATICS
b
ydx
a
3h
y0 y6 3y1 y2 y4 y5 2 y3
5.2
log
SUBJECTCODE:10MAT31
xdx
3(0.2)
1.3863 1.6487 3 1.4351 1.4816 1.5686 1.6094 2 1.5261
8
5.2
log
xdx 1.8279
xdx
1 x
en
ts
.in
find loge2
Solution: Let us divide [0,1] into 6 equal strips ( since seven ordinates)
1 0 1
length of each strip: h
6
6
1 2 1 3 1 4 2 5 6
The points of division are x 0, , , , , , 1
6 6 3 6 2 6 3 6 6
1
By data y
1 x2
Now we have the following table
x
0
1/6
1/3
1/2
2/3
5/6
0
6/37
3/10
2/5
6/13
30/61
x
y
2
1 x
y0
y1
y2
y3
y4
y5
tu
d
1
1/2
y6
C
itS
1 x
0
dx
dx 0.3466
1 x
3(1 / 6)
0 5(6 / 37) 3 /10 6(2 / 5) 6 / 13 5(30 / 61) 1 / 2
10
To deduce the value of loge2: We perform theoretical integration and equate the
resulting value to the numerical value obtained.
CitStudents.in
Page 107
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
x
1
1
1
log e (1 x 2 ) log e 2 log e 1
2 dx
1 x
2
2
0 2
0
1
Hence
1 x
1
dx loge 2
2
1
log e 2 0.3466 loge 2 2(0.3466) 0.6932
2
Thus loge 2 0.6932
tu
d
en
ts
.in
We must have,
C
itS
UNIT VII
NUMERICAL METHODS -3
CONTENTS:
CitStudents.in
Page 108
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
tu
d
UNIT-VII
C
itS
NUMERICAL METHODS-3
Classification of PDE s of second order
The general second order linear PDE in two independent variables x,yis of the form
Auxx+ Buxy+ Cuyy+ Dux+ Euy+ Fu=0
Where A,B,C,D,E,F are in general functions of x,y
This equation is said to be
i) Parabolic if
B2-4AC=0
ii) Elliptic
if
B2-4AC<0
iii) Hyperbolic if
B2-4AC>0
Now let us examine the nature of three PDE which are under our discussion
P.D.E
A
B
C
B24AC=0 Nature of
PDE
2
2
wave C
1 One dimensional
0
-1
4C >0
Hyperbolic
equationc2uxx-utt=0
dimensional
heat C2
2 One
0
0
0
parabolic
equationc2uxx-ut=0
3 two
dimensional 1
0
C2
-4<0
elliptic
Laplacesequationuxx+uyy=0
CitStudents.in
Page 109
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
Consider a rectangular region in the xy plane. Let us divide this region into a network
of rectangular of sides h and k. In other words , we draw lines
x=ih,y=jk:I,j=1,2,3.being parallel to the Y-axis and X-axis respectively resulting
into a network of rectangles.the points of intersection of these lines are called mesh
points or grid points.
C
itS
tu
d
We write u(x,y) =u(ih,jk) and the finite difference approximation for the the partial
derivatives are put in the modified form
1
u x u
i 1, j ui , j
h
1
u y ui , j ui 1, j
h
1
ux ui 1, j ui 1, j
2h
1
u y ui , j 1 u i , j
k
1
u y ui , j u i , j 1
k
1
ui , j 1 ui , j 1
uy
2k
1
uxx 2 ui 1, j 2ui , j ui 1, j
h
1
u yy 2 u i , j 1 2ui , j ui , j 1
k
The substitution of these finite diference approximation into the given PDE converts the
PDE into a finite difference equation.
Now we discuss numerical solution of the three important PDE namely
1) One dimensional wave equation
2) One dimensional heat equation
CitStudents.in
Page 110
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
We shall substitute the finite difference approximation for the partial derivatives
present in (1)
1
1
2ui , j ui , j 1
c 2 . 2 u
i 1, j 2ui , j u i 1, j
2 i , j 1
h
k
2
2
c 2 u i 1, j 2ui , j ui 1, j 2 u
u
i , j 1
i, j
i , j 1
k
tu
d
c 2 2 u
i 1, j 2ui , j ui 1, j ui , j 1 2ui , j ui , j 1
ui , j 1 2 1 c2 2 ui , j c2 2 ui 1, j ui 1, j ui , j 1 ..(6)
C
itS
This is called the explicit formula for the solution of wave equation.
Examples
2u
2u
subject to u=(0,t) =0,u(4,t)=0,ut(x,0)=0
4
t 2
x 2
and u(x,0)=x(4-x) by taking h=1,k=0.5 upto four steps
1.Solve the wave equation
Soln: Below is the initial table wherein the first and last column are zero since
(0,t)=0=u(4,t)
CitStudents.in
Page 111
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
Next consider
ui ,1 ui 1,0 ui 1,0
2
1
1
u1,1 u
0,0 u2,0
2 0 4 2
2
1
1
3 3 3
u2,1 u
1,0 u3,0
2
2
1
1
u1,1 u0,0 u4,0
4 0 2
2
2
.in
tu
d
We now consider the explicit formula to find the remaining values in the table
ui , j 1 ui 1, j ui 1, j ui , j 1
C
itS
Page 112
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
0
0.5
1
1.5
2
0
0
0
0
0
3
2
0
-2
-3
4
3
0
-3
-4
3
2
0
-2
-3
0
0
0
0
0
.in
t x
2u 2u
given that u(x,0) =0; u(0,t)=0 ut(x,0)=0 and u(l,t)=100sin(t)
t 2 x 2
in the range 0t1 by taking h=1/4
en
ts
2. Solve
C
itS
tu
d
Soln: Comparing the wave equation c2uxx = utt with the equation uxx= utt we have
c2=1 or c=1
By data h=1/4,k=h/c=1/4
We have seen that the condition ut(x,0)=0 will lead us to the formula
ui , j ui 1,0 ui 1,0
2
1
1
u1,1 u0,0 u2,0 0 0 0
2
2
1
1
u2,1 u1,0 u 3,0
0 0 0
2
2
1
u3,1 u u 1 0 0 0
2,0
4,0
2
2
CitStudents.in
Page 113
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
u3,0 u5,0
Hence
u4,1 = u x4 , t1 u(1,1 / 4) 100 sin( / 4) 0.707
(Second row of the table is completed)
We shall now conider the explicit formula to find the remaining values in the
table
ui , j 1 ui 1, j ui 1, j ui , j 1
u4,1
en
ts
.in
tu
d
C
itS
1/4
1/2
3/4
0
0.25
0.5
.75
1
0
0
0
0
0
0
0
0
0
70.7
0
0
0
70.7
100
0
0
70.7
100
70.7
0
70.7
100
70.7
0
Page 114
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
ui , j 1 ui , j c 2 2 u
i 1, j 2ui , j u i 1, j
h
k
2
kc
ui , j 1 ui , j 2 ui 1, j 2ui , j ui 1, j
h
2
kc
Taking 2 =a the above equation becomes
h
ui , j 1 ui , j aui 1, j 2aui , j aui 1, j
C
itS
tu
d
u
i , j 1 aui 1, j (1 2a)ui , j aui 1, j .(5)
This is called Schmidt explicit formula valid for 0<a<1/2
For convenience let us set 1-2a=0 or a=1/2
kc2
That is 2 =1/2
h
1
Thus (5) becomes ui , j 1 ui 1, j ui 1, j
2
This is called Bendre Schmidt formula .
EXAMPLES
2u
u
2
2
x
t
Page 115
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
C
itS
tu
d
In particular
1
ui ,1 ui 1,0 u i 1,0
2
1
1
u1,1 u0,0 u2,0 0 4 2
2
2
1
1
3 3 3
u2,1 u1,0 u 3,0
2
2
1
1
u3,1 u2,0 u4,0 4 0 2
2
2
(The second row in the table is completed)
1
Again ui ,2 ui 1,1 ui 1,1
2
1
1
0 3 1.5
u1,2 u0,1 u2,1
2
2
1
1
u2,2 u1,1 u 3,1 2 2 2
2
2
1
1
3 0 1.5
u3,2 u
2,1 u 4,1
2
2
(The third row in the table is completed)
1
Again ui ,3 ui 1,3 ui 1,2
2
CitStudents.in
Page 116
SUBJECTCODE:10MAT31
C
itS
tu
d
en
ts
1
1
u1,3 u0,2 u2,2 0 2 1
2
2
1
1
1.5 1.5 1.5
u2,3 u1,2 u3,2
2
2
1
1
2 0 1
u3,3 u2,2 u4,2
2
2
(Fourth row in the table is completed)
1
Again ui ,4 ui 1,3 ui 1,3
2
1
1
u1,4 u0,3 u 2,3 0 1.5 0.75
2
2
1
1
1 1 1
u2,4 u1,3 u3,3
2
2
1
1
u3,4 u2,3 u 4,3 1.5 0 0.75
2
2
(Fifth row in the table is completed)
1
Again ui ,5 ui 1,4 ui 1,4
2
1
1
u1,5 u0,4 u2,4 0 1 0.5
2
2
1
1
0.75 0.75 0.75
u2,5 u1,4 u3,4
2
2
1
1
u3,5 u2,4 u4,4 1 0 0.5
2
2
He last row in the table is completed)
Thus the required values 0f ui,j are tabulated
.in
SUBJECT:MATHEMATICS
t x
0
1
2
3
4
5
0
0
0
0
0
0
3
2
1.5
1
0.75
0.5
4
03
02
701.5.7
1001
0.75
3
2
1.5
1
0.75
0.5
0
0
0
0
0
0
0
x 2 y 2
CitStudents.in
Page 117
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
en
ts
.in
We shall substitute the finite difference approximation for the partial derivatives
,hence we have
1
1
u
2ui , j ui 1, j 2 ui , j 1 2ui , j ui , j 1 0
2 i 1, j
h
h
ui 1, j ui 1, j ui , j 1 ui , j 1 4ui , j
C
itS
tu
d
1
ui , j ui 1, j ui 1, j u i , j 1 ui , j 1 (2)
4
This is called the standard five point formula. It may be observed that the value of
ui,j at any interior mesh point is the average of its values at four neighboring
points which is given in the figure below
1
ui 1, j _ 1 ui 1, j 1 ui 1, j 1 ui 1, j 1 (3)
4
Equation (30 is called diagonal five point formula.
ui , j
Examples
1.solve Laplaces uxx+uyy=0 for the following square mesh with boundary values
as shown below
CitStudents.in
Page 118
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
C
itS
tu
d
en
ts
.in
CitStudents.in
Page 119
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Soln: we shall apply standard five point formula for u1, u2,
system of equations
1
u1 20 u2 100 u3
4
1
u u 0 100 u
en
ts
.in
4
1
u3 30 u4 u1 0
4
1
u4 u3 0 u2 0
4
Now we have a system of equations to be solved
4u1 u2 u3 120 (1)
tu
d
u1 4u3 u4 30 ..(3)
C
itS
u2 u3 4u4 0 ..(4)
Let us eliminate u1 from (1) and (2);(20 and (3)
That is 15 u2 - u3 -4 u4 =520..(5)
4 u2 -4 u3 =70 ..(6)
we shall now eliminate u4 from (4) and (5)
That is 14 u2 -2 u3 =520
u4 =15.825
3. solve the elliptic equation uxx+uyy=0 at the pivotal points for the following square
mesh
CitStudents.in
Page 120
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
4
1
u3 400 u4 u1 400
4
1
u u 200 u 300
2
en
ts
.in
Soln: it is evident that the values at the boundary points on AB are respectively 200 and
100
1
Thus u1 300 u2 200 u3
4
1
u u 100 100 u
tu
d
4
4u1 u2 u3 500 (1)
u1 4u2 u4 200 .(2)
C
itS
u4 =250
4. Solve the elliptic partial differential equation for the following square mesh using
the 5 point difference formula by setting up the linear equations at the unknown
points P,Q,R,S
The linear equations for the unknownfor the 5 point difference formula are
Thus
CitStudents.in
Page 121
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1 Q
1 S
P
C
itS
tu
d
en
ts
.in
CitStudents.in
Page 122
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1
P 4 R 2
4
1
R S 5 5 Q
4
1
S 2 R 4 P
4
4P-Q-S=2(1)
-P+4Q-R=6(2)
-Q+4R-S=10(3)
C
itS
tu
d
en
ts
.in
-P-R+4S=6(4)
Page 123
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Damping Rule
Shifting RuleTheorem
Inverse Z-Transforms
Power Series Method
C
itS
tu
d
en
ts
.in
Introduction
The Z-transform plays an important role plays in the study of communications,
sample data control systems, discrete signal processing , solutions of difference
equations etc.
Definition
Let un = f(n) be a real-valued function defined for n=0,1,2,3,.. and un = 0 for n<0.
Then the Z-transform of un denoted by Z(un) is defined by
CitStudents.in
Page 124
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
u( z) Z (u n ) u n z n
(1)
n 0
The transform also is referred to as the one sided Z-transform or unilateral Z-transform.
Next, we define un = f(n) for n=0, 1, 2, .
The two-sided Z-transform is defined by
Z (un ) u n z n
(2)
The region of the Z-plane in which the series (1) or (2) converges is called the region of
convergence of the transform.
.in
Properties of Z-transform
1. Linearity property
en
ts
Consider the sequences {un} and {vn} and constants a and b. Then
Z[aun + bvn ] = aZ(un) + bZ(vn)
tu
d
C
itS
a un z n bvn z n
n 0
n 0
aZ (un ) bZ (vn )
In particular, for a=b=1, we get
Z[un+vn] = Z(un) + Z(vn)
(i) Z (a nu n ) u z
CitStudents.in
Page 125
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
z
Z (a nun ) (a nun ) z n un
a
n0
n0
z
u
a
Thus
z
Z (an un ) u
a
This is the result as desired. Here, we note that that if Z(un) = u( z) , then
z
n
Z (a u n ) [u z ] Z Z = u
a
a
Next,
n0
n0
en
ts
u(az)
.in
Z (a nun ) u(az)
This is the result as desired.
C
itS
If
tu
d
3. Shifting property
Z un k un k z n
n 0
Z un k un k z n
nk
u0 z
Hence
u1 z ( k 1) .......
z k [u0 u1 z 1 ....... ]
z
u z
n0
z u( z)
CitStudents.in
Page 126
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Thus
Z(un-k) = z-k u( z)
(b)Left shifting rule :
Z (un k ) z k [u( z) u0 u1 z 1 u2 z 2 ...... uk 1 z ( k 1) ]
Proof :
Z u n k un k z n
n 0
z k un k z ( k n ) z k u n k z ( k n ) , where m n k
n 0
n 0
k 1
z k u n z n u n z n
n0
n0
.in
en
ts
= z k [u( z) u 0 u 1z 1 u 2z 2 ...... uk 1 z ( k 1) ]
Particular cases :
tu
d
2. Z (un 2 ) z 2[u( z) u0 u1 z 1 ]
C
itS
3. Z (un 3) z 3[u( z) u0 u1 z 1 u2 z 2 ]
etc.
Z (a n ) a n z n
n0
2
n
a a
a
1 .....
z z
n 0 z
CitStudents.in
Page 127
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
2. Transform of ean
Here
Z (e an ) Z (k n )
z
z
z k z ea
where k = ea
Z (e an )
z
z ea
en
ts
.in
Thus
We have,
Z (n p ) n p z n
n 0
(1)
tu
d
z n p 1 z ( n 1) n
n 0
Z (n p 1 ) n p 1 z n
C
itS
n0
d
d
Z (n p 1 ) n p 1 z n
dz
dz n 0
n p 1 (n) z ( n 1)
n0
d
[Z (n p 1 )]
dz
d
Z (1) z d z z 2
dz
dz z 1 ( z 1)
Page 128
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
Thus,
Z (n)
z
( z 1) 2
2. For p = 2, we get
Z (n 2 ) z
2
d
Z (n) z d z 2 z z3
dz
dz ( z 1) ( z 1)
Thus,
z2 z
Z (n )
( z 1)3
2
3. For p = 3, we get
z 3 4z 2 z
Z (n )
( z 1) 4
en
ts
4. Transform of nan
By damping property, we have
.in
z
Z (na n ) Z (n)Z Z
2
a
( z 1) Z Z a
z
az
2
2
z ( z a)
1
a
view
of
damping
tu
d
in
C
itS
property
Thus,
Z (na n )
az
( z a) 2
5. Transform of n2an
We have,
Z (n a ) Z (n )
2
Z
Z
a
z 2 z
3
(
z
1)
Z Z
Thus,
az 2 a 2 z
Z (n a )
( z a)3
2
Page 129
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
We have
e n e n
2
1
Z (cosh n ) Z (e n e n )
2
cosh n
1
Z (e n ) Z (e n ) , by using the linearity property
2
z
1 z
2 z e z e
Next,
en
ts
.in
(e e )
z
z z e z e
2
2
2 z z(e e ) 1 z 2 z(e e ) 1
z z cosh
2
z 2z cosh 1
e n e n
2
z 1
1
Z (sinh n )
2 z e z e
tu
d
sinh n
C
itS
z
e e
2
2 z 2z cosh 1
z sinh
2
z 2 z cosh 1
ein e in
2
1
Z (cos n ) Z (ein e in )
2
cos n
CitStudents.in
Page 130
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
1 z
z
2 z ei z e i
z 2z (ein e in )
2 z 2 z(ein e in ) 1
z[ z cos ]
z 2z cos 1
2
Next,
ein e in
2i
z
1 z
Z (sin n )
i
2i z e z e i
z e i e i
2
2i z 2z cos 1
z sin
z 2z cos 1
en
ts
.in
sin n
tu
d
Examples :
C
itS
1.
n
n
1 1
un
2 4
We have,
Z (u ) Z
n
1 n
2
n
1
n
n
1
1
Z Z
2
4
2z 4z
z
z
1
1 2z 1 4z 1
z
z
2
4
2z(8z 3)
(2z 1)(4z 1)
2.
Here
CitStudents.in
Page 131
SUBJECT:MATHEMATICS
1
n
!
C
itS
tu
d
en
ts
.in
un
SUBJECTCODE:10MAT31
CitStudents.in
Page 132
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
n
1
z
n!
n0
1
1
z n
n! n 0 n!
2
1 1
1
z z
........ e z
1!
2!
Z (un ) Z
3.
We have
,
, by exponential theorem
un a n cos n
Z (cos n )
z( z cos )
z 2z cos 1
2
tu
d
en
ts
z z
cos
aa
2
z
z
2 cos 1
a
a
z( z a cos )
2
z 2az a 2
.in
z( z cos )
Z (a n cos n ) 2
z 2z cos 1 Z Z a
Let us denote vn =
Here
1
(n 2)!
C
itS
4.
un =
1
1
, so that vn+2 =
= un
(n 2)!
n!
1
Z (v n ) e z
Hence
v
1 1 1
z 2 e z .
0! z 1!
1
1
2
z
z e 1
z
Page 133
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
z
1
1. Z T1
z 1
z
kn
2. Z T1
z k
z
3. Z T1
n
2
z 1
kz n
k n
4. Z T1
2
z k
z 2 z 2
5. Z
n
3
z 1
kz 2 k 2 z n 2
6. Z
k n
3
z k
z 3 4 z 2 z 3
7. Z
n
4
z 1
kz 3 4k 2 z 2 k 3 z n 3
8. Z
k n
z k 4
z
9. Z 2 sin(n 2)
z 1
z 2
10. Z 2
cos(n 2)
z 1
1
T
1
T
1
T
.in
1
T
1
T
en
ts
1
T
C
itS
tu
d
We obtain the inverse Z-transforms using any of the following three methods:
( I ) Power series Method:- This is the simplest of all the method of finding the inverse
Z-transform. If U (z) is expressed as the ratio of two polynomials which cannot be
factorized, we simply divide the numerator by the denominator and take the inverse Ztransform of each term in the quotient.
Problems:
(1)Find the inverse transform of log z z by power series method.
1
Putting
1
log(1 y) y 1 y 2 1 y 3 ...
z 1 , U ( z) log
y
t
1 1
y
1
1
z 1 z 2 z 3 ...
2
3
i.e,U ( z) u n z n
n 1
0 for n 0
Thus un (1) n
otherwise
n
CitStudents.in
Page 134
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
( z 1) 2
by division method.
z
z 2z 1
z
2
z (1 2 z 1 z 2 )
U ( z)
z
z (1 1 z ) 2
1
2
1 1z
z
1
1 2( 1 z ) 3( 1 z 2 ) 14 ( 1z 3 )
z
1
1
1
1
U ( z) 2 2 3 3 4 4
z
z
z
z
2
.in
en
ts
(1) n 1 nZ n
n 1
tu
d
Thus u n (1) n 1 n
( II ) Partial fractions Method:- This method is similar to that of finding the inverse
Laplace transforms using partial fractions. The method consists of decomposing U ( z)
into partial fractions, multiplying the resulting expansion by z and then inverting the
same.
C
itS
Problems:
2 z 2 3z
(1)
( z 2)(z 4)
2z 2 3z
as
( z 2)(z 4)
A B
U ( z) 2 z 3
where A 1 6 and
z
( z 2)( z 4) z 2 z 4
Therefore
1 z
11 z
U ( z)
6 z2 6 z4
On inversion, we have
1
11
z 1 ( z z k ) k n
un (2) n (4)n
6
6
We write U ( z)
(2)
B 11
z 3 20z
( z 2)3 ( z 4)
CitStudents.in
Page 135
SUBJECT:MATHEMATICS
We write U ( z)
SUBJECTCODE:10MAT31
z 3 20 z
as
( z 2)3 ( z 4)
z 2 20
A Bz Cz 2
D
U ( z)
3
3
z4
( z 2)
z
( z 2) ( z 4)
Multiplying throughout by
z 2 20 ( A Bz Cz 2 )( z 4) D( z 2)3 .
3
3
z
z4
( z 2)
( z 2) ( z 4)
en
ts
1
6 0z 1 z 2
U ( z)
z 2 20
2
2
z
z4
( z 2)3
( z 2)3 ( z 4)
.in
we get
( z 2)3 ( z 4)
C
itS
tu
d
z 1 12z 4z 2 4 z 2 z 3 1
z
1 12 z z 3 1
U ( z) .
2 ( z 2)3 2 z 4 2
2
z
4
( z 2)3
3
2
2
2
2
3
1
z 1 z 4 z 4 z 8 z 4 z
1
z
1 8 z 4 z 4 z 4 z z
2
z
4
2
( z 2)3
( z 2)3
2 z 4 2
z
z
1 z( z 2) 2 4z 2 8z 1
1 z
2z 2 4z 1
2z 2 2
3
2
( z 2)
( z 2)3 2 z 4
2 z 4
On inversion, we get
1
un (2n 2.n2 2n ) 4n
2
n1
2 n
2n1
2 n 2 2
2( z 2 5z 6.5)
, for 2 z 3
(3)Find the inverse Z-transform of
( z 2)( z 3) 2
Splitting into partial fractions, we obtain
A B C
2( z 2 5z 6.5)
U ( z)
where A B C 1
2
z 2 z 3 ( z 3) 2
( z 2)( z 3)
1
1 1
U ( z)
z 2 z 3 ( z 3) 2
CitStudents.in
Page 136
SUBJECT:MATHEMATICS
1
SUBJECTCODE:10MAT31
1 2
1 z 1 z
1 1 1 so that 2 z 1 and z 3 1
2 z 3 3 9 3
2
1 2z 3z 2 4z3
z3
1 2 4 8
1 z z
where 2 z 3
1 2 3 1
1
9
27
z
z z z
3 3 9 27
9 3
1 2z 3z 2 4z 3
1 2 2 2 23
1 z
z2 z3
2 3 4 2 3 4 2 3 4 5
z
z
3
3
3
3
3
2 z
3 3
3
n 1
n 0
n 0
n 1
n 2
2 n 1 z n 31 z n (n 1)13 z n
.in
Difference Equations
C
itS
tu
d
en
ts
INTRODUCTION
Difference equations arise in all situations in which sequential relation exists at various
discrete values of the independent variable. The need to work with discrete functions
arises because there are physical phenomena which are inherently of a discrete nature. In
control engineering, it often happens that the input is in the form of discrete pulses of
short duration. The radar tracking devices receive such discrete pulses from the target
which is being tracked. As such difference equations arise in the study of electrical
networks, in the theory of probability, in statistical problems and many other fields.
Just as the subject of difference equations grew out of differential calculus to
become one of the must powerful instruments in the hands of a practical mathematician
when dealing with continuous processes in nature, so the subject of difference equations
is forcing its way to the fore for the treatment of discrete processes. Thus the difference
equations may be thought of as the discrete counterparts of the differential equations.
Definition
A difference equation is a relation between the differences of an unknown function at one
or more general values of the argument.
Eg:
1) yn1 yn 2
2) 2 yn 5yn 6 yn 0
3) 3 yn 3 2 yn 2yn yn x 2 are difference equations.
An alternative way of writing a difference equation is as follows:
Putting E 1 , we get
(1) may be written as,
(E 1) yn 1 yn 2
Eyn 1 yn 1 yn 2 [sin ce E r yn yn r ]
yn 2 yn 1 yn 2 (4)
(2) may be written as,
CitStudents.in
Page 137
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
(E 1) 2 y n 5(E 1) y n 6 y n 0
(E 2 2E 1) y n (5E 5) y n 6 y n 0
y n 2 2 y n 1 y n 5 y n1 y n 0
y n 2 3 y n 1 2 y n 0 (5)
(3) may be written as
(E 1) 3 y n 3(E 1) 2 y n 2(E 1) y n y n x 2
(E 3 3E 2 3E 1) y n 3( E 2 2E 1) y n 2(E 1) y n y n x 2
y n 3 3 y n 2 3 y n 1 y n 3 y n 2 6 y n 1 3 y n 2 y n 1 2 y n y n x 2
y n 3 6 y n 2 11y n 1 5 y n x 2
(6)
.in
The equations (4), (5) and (6) can also be written in terms of the operator E. i.e,
(E 2 E 1) y n 2
(E 3 6E 2 11E 5) y n x 2
en
ts
(E 2 3E 2) y n 0
The order of a difference equation is the difference between the largest and the smallest
arguments occurring in the difference equation divided by the unit of increment.
largest argument - smallest argument
unit of increment (interval)
tu
d
C
itS
Note: To find the order, the equation must be expressed in a form free of s . [because
the highest power of does not give the order of difference equation]
therefore the order of the difference equation
(n 2) (n)
(4) is =
2
1
(n 2) (n)
(5) is =
2
1
(n 3) (n)
(6) is =
3
1
The order of a difference equation can also be obtained by considering the highest power
of the operator E involved in the equation.
Page 138
SUBJECT:MATHEMATICS
SUBJECTCODE:10MAT31
A particular solution (or particular integral) is that solution which is obtained from the
general solution by giving particular values to the constants.
en
ts
.in
Working Procedure to solve a linear difference equation with constant coefficient by Ztransforms:
1) Take the Z-transform of both sides of the difference equations using the Z-transforms
formulae and the given conditions.
2) Transpose all terms without U ( z) to the right.
3) Divide by the coefficient ofU ( z) , getting U ( z) as a function of z.
4) Express this function in terms of Z-transforms of known functions and take the inverse
Z-transform of both sides. This gives u n as a function of n which is the desired solution.
Problems:
(1) Using the Z-transform, solve u n 2 4u n 1 3u n 3 n with u 0 0, u1 1
We note that If Z (u n ) U ( z), then Z (u n 1 ) z U ( z) u 0 ,
Also Z (2 n ) z
tu
d
Z (un 2 ) z 2 U ( z) u 0 u1 z 1
( z 2)
Taking the Z-transforms of both sides of the above difference equation, we get
z 2 U ( z) u 0 u1 z 1 4 zU ( z) u 0 3U ( z) z
( z 3)
Using the given conditions, it reduces to
U ( z)( z 2 4z 3) z z
( z 3)
1
U ( z)
1
z
( z 1)( z 3) ( z 3)( z 1)( z 3)
3 1
1 1
5 1
,
8 z 1 24 z 3 12 z 3
on breaking into partial fractions, then
3 z
1 z
5 z
U ( z)
8 z 1 24 z 3 12 z 3
On inversion, we obtain
3
z 1 1 z 5 1 z
u n Z 1
Z
Z
8
z 1 24
z 3 12
z 3
3
1
5
(1) n 3 n (3) n
8
24
12
C
itS
CitStudents.in
Page 139
SUBJECT:MATHEMATICS
(2) Solve y n 2 6 y n 1 9 y n 2 n
SUBJECTCODE:10MAT31
If Z ( y n ) Y ( z), then Z ( y n 1 ) z Y ( z) y 0 , Z ( y n 2 ) z 2 Y ( z) y 0 y1 z 1
Also Z (2 n ) z
( z 2)
Taking Z-transforms of both sides, we get
z 2 Y ( z) y 0 y1 z 1 6z Y ( z) y 0 9Y ( z) z
( z 2)
2
Since y 0 0, and y1 0, we have Y ( z)( z 6z 9) z
( z 2)
Y ( z)
1
5
1 1
1
Or
, on splitting into partial
2
z
( z 2)( z 3) 2 25 z 2 z 3 ( z 3)
fractions.
1 z
z
z
Or Y ( z)
25 z 2 z 3
( z 3) 2
On taking inverse Z-transform of both sides, we obtain
1
3z
z
y n Z 1 z 2
Z 1 z 3z 53 Z 1 ( z 3)
2
25
1 n
az
n
n
n
1
na
2 (3) 35 n(3)
Z
2
25
(
z
a)
C
itS
tu
d
en
ts
.in
CitStudents.in
Page 140
SUBJECTCODE:10MAT31
C
itS
tu
d
en
ts
.in
SUBJECT:MATHEMATICS
CitStudents.in
Page 141