Professional Documents
Culture Documents
NUMERICAL ANAL
YSIS-I
ANALYSIS-I
In this unit, we shall discuss finite differences, forward, backward and central
differences. Newtons forward and backward differences interpolation formula,
Stirlings formula, Lagranges interpolation formula.
The unit is divided into five chapters:
The chapter first deals with the forward, backward, central differences and relation
between them, fundamental theorem of the difference calculus, factorial notation
and examples.
Chapter second deals with interpolation formula of Newtons forward, Newtons
backward, Stirlings for equally width of arguments, and Lagranges formula for
unequally width of arguments.
Chapter third deals with solution of linear simultaneous equation by Gauss
elimination and Gauss-Seidel method.
Chapter fourth deals with solution of algebraic and transcendental equation by
Regula-Falsi and Newton-Raphson method.
Chapter fifth deals with fitting of curves for straight line and parabola of second
degree by method of least squares.
CHAPTER
and
ADVANCED MATHEMATICS
2y1 =
2yx =
Again, the differences of second forward differences are called third forward differences and
denoted by 3y0, 3y1 etc.
Therefore, we have 3y0 = 2y1 2y0
= (y3 2y2 + y1) (y2 2y1 + y0)
= y3 3y2 + 3y1 y0 and so on
In general, the nth forward difference is given by
n yx = n 1 yx + 1 n 1 yx
Forward Difference Table
Argument
Entry
y = f(x)
x0
y0
x0 + h
y1
x0 + 2h
y2
x0 + 3h
y3
x0 + 4h
y4
2y
y1 y0 = 2y0
y2 y1 =
2y1
y3 y2 =
2y2
Third Differences
Fourth Differences
3 y
4y
2y1 2 y0 = 3 y0
2y2 2 y1 = 3 y1
3y1 3y0 = 4 y0
y0
x0 + h
y1
x0 + 2h
First Diff.
y
y1 y0 = y1
y3
x0 + 4h
y4
Third Diff.
3y
y2 y1 = 2y2
y2 y1 = y2
y2
x0 + 3h
Second Diff.
2y
y3 y2 =
y3 y2 = y3
2 y3
y4 y3 = 2y4
Fourth Diff.
4y
2y3 2y2 = 3 y3
2y
2 y3
3 y
y4 y3 = y4
Entry
y = f(x)
x0
y0
x1
y1
x2
y2
x3
y3
x4
y4
First Diff.
y
y1/2
y3/2
y5/2
y7/2
Second Diff.
2y
2y 1
2y
2y 3
Third Diff.
3y
3y3/2
2y
5/2
Fourth Diff.
4y
4y 2
ADVANCED MATHEMATICS
M
M
Enyx = yx + nh
The inverse operator E1 is defined as
E1 yx = yx + ( h) = yx h.
1.6. RELATIONS BETWEEN THE OPERATORS
(i) We know that
yx = yx+h yx = Eyx yx
yx = (E 1) yx
=E1
E=+1
or
(ii) We have
yx = yx yx h = yx E1 yx
yx = (1 E1) yx
= 1 E1
E1 = 1
or
(iii) We have
Again
...(i)
Eyx = yx+h = yx +h yx
Eyx = yx
E =
or
By (i) and (ii)
(iv) Since
Thus
(v) We have
E = E =
yx = yx + h/2 yx h/2 = E1/2yx E1/2 yx
yx = (E1/2 E1/2) yx
= E1/2 E1/2
yx = yx + h yx
= Eyx yx = (E 1) yx
= (E1/2 E1/2) E1/2 yx
...(ii)
yx = E1/2 yx
= E1/2
(vi) We have
E f(x) = f(x + h)
= f (x) + hf (x) +
h2
f (x) + ...
2!
= f (x) + hD f(x) +
FG
H
= 1 + hD +
h2 2
D f(x) + ....
2!
h2 2
D .....
2!
IJ
K
f (x)
(1 + ) (1 ) = 1
...(1.1)
ADVANCED MATHEMATICS
Again
2f(x) = f (x + h) f(x)
= B1 + B2 (x + h) + B3 (x + h)2 + ..... + Bn1 (x + h)n 2 + nAnh (x + h)n1
[B1 + B2x + B3 x2 + ..... + Bn 1 xn 2 + n Anh xn1]
= B2 h + B3 [(x + h)2 x2] + B4 [(x + h)3 x3] + ......
+ Bn1[(x + h)n2 xn2] + n An h [(x + h)n1 xn 1]
= B2 h + B3 [ x2 + 2C1 x h + h2 x2] + B4 [x3 + 3C1 x2 h
+ 3C2 x h2 + h3 x3] + ..... + Bn 1 [xn 2 + n2C1 xn3 h
+ n2C2 xn 3 h2 + ...... + n2Cn2 hn 2 xn 2 ]
+ nAn h [xn1 + n1C1 xn 2 h + n1C2 xn3 h2 + ... + n1Cn1 hn xn1]
= C2 + C3 x + C4 x2 + ...... + Cn 1 xn3 + n(n 1) h2 An xn 2
...(1.2)
i.e.,
[Q C = 0]
Again
1.10. TO SHOW THAT f(a + nh) = f(a) + nC1 f(a) + nC2 2 f(a) + ..... + nCn n f(a)
We shall prove this by the method of mathematical induction
f (a) = f (a + h) f (a)
We have
Again
f (a + h) = f(a + 2h) f (a + h)
it is true for n = 1
It is true for n = 3
Now Assume that it is true for n = k then
f(a + kh) = f(a) + kC1 f(a) + kC2 2 f(a) + ...... + kCk k f(a)
Now we shall show that this result is true for n = k + 1
Now
10
ADVANCED MATHEMATICS
[Q
kC
r
+ kCr + 1 = k +1Cr + 1]
SOLVED EXAMPLES
Example 1. Prove that 3 E3 3E2 + 3E 1.
Solution. By the definition we have
f(x) = f(x + h) f(x), E f (x) = f(x + h)
and
En
3f(x)
and
...(i)
3
or
f(x) =
(E3
E3
[Using (i)]
3E2
+ 3E 1) f(x)
3E2
+ 3E 1. Hence proved.
Example 2. Evaluate
(i) cosh (a + bx)
(ii) tan1 ax
a + b( x + h ) + a + bx
a + b( x + h ) a bx
sinh
2
2
F
H
= 2 sinh a + bx +
I
K
F I
H K
bh
bh
sinh
2
2
Ans.
FG
H
IJ
K
ah
. Ans.
= tan1 a( x + h) ax = tan1
2 2
1 + a x + a 2 xh
1 + a( x + h)ax
Example 3. Evaluate:
(i) 2(3ex)
11
Solution. (i)
F a( x + h) + b + ax + b I sin F a( x + h) + b ax + b I
H
K H
K
2
2
ah
ah
= 2 cos F ax + b + I sin
.
H
2K
2
= 2 cos
F x + h + x I sin x + h x
H 2 K
2
h
h
1) + 2 cos F x + I sin F I .
H 2K H 2K
= 3h + e2x(e2h
Example 5. Evaluate [e2x log 3x].
then
LM
N
F
H
= e2x e 2 h log 1 +
I
K
OP
Q
h
+ (e 2 h 1) log 3x .
x
Again
r yx + r = (1 E1)r yx +r
[Q 1 E1]
12
ADVANCED MATHEMATICS
F E 1I
H EK
yx+r = (E 1)r Er yx +r
[Q = E 1]
= (E 1)r yx
=
yx.
Hence proved.
LM
N
OP
Q
f(x)
.
f(x)
LM
N
f ( x + h)
E f (x)
= log
f (x)
f (x)
OP
Q
LM (1 + ) f ( x ) OP
N f (x) Q
L f ( x ) + f ( x) OP = log LM1 + f ( x ) OP
= log M
N f (x) Q N f (x) Q
F I
Example 9. Evaluate G J x , h = 1.
H EK
F I L ( E I ) OP x = LM E + I 2 E OP x
Solution. We have G J x = M
H EK N E Q N E Q
[Q E = 1 + ]
= log
Hence proved.
Example 11. If
x
10
20
30
13
y = f(x)
2y
3y
4y
3
2
5
3
10
3
5
10
4
20
8
5
0
10
30
...(i)
where A, B, C, D and E are constants . Now, we will find the value of these constants
Putting
x = 0 in (i) we get, E = 9
D=1
Putting
x = 2 in (i), we get 16 12 8 + 42 4 30 2 + 9 = 2C + 2D + E
C = 13
B=6
Aliter: Let
14
ADVANCED MATHEMATICS
12
42
30
11
31
11
31
18
9=E
1=D
13 = C
6=B
0
1=A
f(x) = x(4) 6x(3) + 13x(2) + x(1) + 9.
Hence
Example 13. Find the function whose first difference is 9x2 + 11x + 5.
Solution. Let f(x) be the required function then f(x) = 9x2 + 11x + 5
First, we change f (x) in factorial notation
f(x) = 9x2 + 11x + 5 = Ax(2) + Bx(1) + C
Let
= Ax(x 1) + Bx + C
Putting
x=0
we get C = 5
Putting
x=1
we get 9 + 11 + 5 = B + C C = 20
...(i)
f(x) =
9 x ( 3) 20 x ( 2 )
+
+ 5x + C1 where C1 is constant of Integration
3
2
= 3x(x 1) (x 2) + 10x(x 1) + 5x + C1
f(x) = 3x3 + x2 + x + C.
Example 14. Find the function whose first difference is eax + b.
Solution. Let f(x) be the required function
Then
Let us consider
so that
f(x) = eax +b
f(x) =
...(i)
Aeax + b
...(ii)
15
f(x) =
1
e 1
a
e ax + b
.
ea 1
Example 15. What is the lowest degree polynomial which takes the following values
x
f(x)
15
24
35
f(x)
15
24
35
f(x)
2f(x)
3f(x)
3
2
5
0
2
0
2
0
2
11
We know that f (a + nh) = f(a) + nC1 f (a) + nC2 2 f (a) + nC3 3 f (a) + .....
Putting a = 0, h = 1, n = x, we get
f(x) = f(0) + xC1 f (0) + xC2 2 f(0) + xC3 3 f(0) + .....
...(1)
Putting the value of f(0), f(0), 2 f(0) and 3f(0) in (1) from Difference table, we get
f(x) = 0 + x . 3 +
x ( x 1)
x ( x 1) ( x 2)
.0+0
2+
2!
3!
= 3x + x (x 1) = x2 + 2x.
Example 16. A second degree polynomial passes through the points (0, 1) (1, 3), (2, 7), and
(3, 13). Find the polynomial.
16
ADVANCED MATHEMATICS
f(x)
f(x)
2f(x)
3f(x)
2
2
4
2
13
0
2
We know that
f(a + nh) = f(a) + nC1 f(a) + nC2 2 f(a) + nC3 3 f(a) ...... nCn n f(a)
Putting a = 0, h = 1, n = x, we get
f(x) = f(0) + xC1 f(0) + xC2 2 f(0) + xC3 3 f(0) + ...
Putting the values of f(0), f(0),
2f(0)
f(x) = 1 + x . 2 +
and
3f(0)
...(1)
x ( x 1)
x ( x 1) ( x 2)
.0
2+
2!
3!
= 1 + 2x + x (x 1) = x2 + x + 1.
Example 17. Given u0 = 1, u1 = 11, u2 = 21, u3 = 28 and u4 = 29 find 4u0 without forming
difference table.
Solution. We have
f(1) +
17
(ii) We have
f(4) = f( 1 + 5) = E5 f( 1) = (1 + )5 f( 1)
= (1 + 5C1 + 5C2 2 + 5C3 3 + 5C4 4 + 5C5 5) f(1)
= f ( 1) + 5f( 1) + 10 2 f( 1) + 10 3 f( 1)
= [f( 1) + f( 1)] + 4 [f( 1) +
2f(
1)] + 6
62
f( 1) +
103
f( 1)
Hence proved.
FG
H
IJ
K
FG
H
IJ
K
E n n
n
ux =
ux
n
En
E
1 ( E ) [ E n 1 + E n 2 + E n 3 2 + ..... + n 1 ]u x
(E )
En
(Q E = 1 + )
x2
x3
x
u1 +
2 u1 + ..... and 0 < x < 1.
=
2 u1 +
(1 x )
(1 x ) 3
1 x
Solution. R.H.S. =
x
x3
x2
u1 +
u
+
2 u1 + .....
1
(1 x ) 3
1 x
(1 x ) 2
x
x2
x3
(
)
( E 1) 2 u1 + ......
E
1
u
u
+
+
=
1
1
(1 x ) 2
(1 x ) 3
1 x
FG x x
H 1 x (1 x)
2
IJ
K
FG
H
FG x
H (1 x)
IJ
K
FG
H
x
x
1+
1 x
(1 x )
IJ
K
IJ
K
2x3
x3
x2
u1 +
+ ...... Eu1
2
3 ......
(1 x )
(1 x ) 3
(1 x )
u1 +
F
H
x2
x
1+
1 x
(1 x ) 2
I
K
u2
F
H
x3
x
1+
+
(1 x ) 3
1 x
= u1 x + u2 x2 + u3 x3 + ...... .
I
K
u3 + ......
18
ADVANCED MATHEMATICS
En + 1 1
u0
E 1
(1 + ) n +1 1
u0
1
= [1 + n + 1C1 + n + 1C2 2 + n + 1C3 3 + ...... + n + 1Cn + 1 n + 1 1] u0
1 n+1
=
[ C1 u0 + n+1C22 u0 + n+1C3 3 u0 + ...... + n+1Cn+1 n+1 u0]
Example 22. Prove that u0 + nC1 u1x + nC2 u2x2 + ..... + unxn
= (1 + x)n u0 + nC1 (1 + x)n1 x u0 + nC2 (1 + x)n2 x2 2 u0 + ..... + xn n u0
Solution. R.H.S. (1 + x)n u0 + nC1 (1 + x)n1 xu0 + nC2 (1 + x)n2 x22 u0 + ...... + xnn u0
= ((1 + x) + x)n u0 = (1 + x ( 1 + ))n u0 = (1 + xE)n u0
= (1 + nC1 xE + nC2 x2 E2 + nC3 x3 E3 + ..... + xn E n ) u0
= u0 + nC1 u1 x + nC2 u2 x2 + nC3 u3 x3 + ..... + xn un = L.H.S.
Example 23. n ux = ux+n nC1ux+n1 + nC2 ux + n2 ......+ ( 1)n ux.
R.H.S. ux +n nC1 ux + n 1 + nC2 ux + n2 ..... + ( 1)n ux
Solution.
EXERCISE 1.1
1. Prove that
2 E2 2E + 1.
(iii) [f(x) g(x)] = f(x) g(x) + g(x + 1) f(x) = f(x + 1) g(x) + g(x) f(x)
(iv)
LM f ( x) OP = g( x) f ( x) f ( x) g( x) .
g( x ) g( x + h)
N g( x) Q
3. Evaluate
(i) [sinh (a + bx)]
(iii) [cot
2x ]
19
(v) (x2 + ex + 2)
(vi) [log x]
LM x OP
N cos 2 x Q
2
(viii)
4. Evaluate
(i) 2 cos 2x
(ii) 2 (abcx)
F I x
GH E JK
2
(iii)
(iv) 2
LM 5x + 12 OP .
N x + 5x + 6 Q
2
5. Evaluate
F 1I
H xK
(i) n
F I e
GH E JK
2
6. Prove that ex =
Ee x
; the interval of differencing being h.
2e x
(iii) (E + 2) (E + 1) (2x + h + x)
9. Write down the polynomial of lowest degree which satisfies the following set of number 0, 7, 26, 63,
124, 215, 342, 511.
10. A third degree polynomial passes through the points (0, 1) (1, 1) (2, 1) and (3, 2). Find the
polynomial.
11. Construct a forward difference table for
x
10
15
20
25
f(x)
11
14
18
24
32
(ii) x(x 1)
(iii) a
(v) sin x
(vi) 5x.
20
ADVANCED MATHEMATICS
19. Prove that u0 + xC1 u1 + xC2 2 u2 + .... = ux + xC1 2 ux1 + xC2 4 u x2 + .....
ux+n = un + xC1 ux1 + x+1C2 2 ux2 + x+2C33 ux3 + ......
21. Prove that n uxn = ux nC1 ux1 + nC2 ux2 nC3 ux3 + .....
22. Prove that
u0 +
u1 x u2 x 2 u3 x 3
+
+
+ ..... = ex
1!
2!
3!
LMu
N
OP
Q
x2 2
x3 3
u0 +
u0 + .....
2!
3!
+ x u0 +
ANSWERS
3. (i) 2 sinh
F b I cosh F a + b + bxI
H 2K H 2 K
(ii)
F
H
(iv) h 2 sin x +
F
H
LM
N
F
H
(vi) log 1 +
I
K
OP
Q
(viii)
(iv)
+ 2hx + 2h
I
K
4
6
+
( x + 2) ( x + 3) ( x + 4) ( x + 3) ( x + 4) ( x + 5)
(ii) 2 sin
I sin F h I
K H 2K
F
H
( 1)n n !
x ( x + 1) ( x + 2 ) ...... ( x + n )
5h2
h
x
h
2
(iii) 6x
5. (i)
sin a
cos ax cos a( x + 1)
a
2
I
K
FG
H
sin ax + b + n
F a + I IJ
H 2 KK
(iv) a (n !).
x2
2x 1
(iii) h
(iv) h
9. x3 + 3x2 + 3x
10.
1 3
(x + 3x2 16x + 6)
6
13. 755
14. 755
15. 126
17.
1 (4)
9 (2)
x + 2x(3) +
x + 12x(1) + C
4
2
18. (i)
(iv)
ex
+C
(e h 1)
x ( 3) 5 x ( 2 )
+
+C
3
2
(ii)
x ( 3)
+C
3
(iii) ax + C
(v)
1
sin x
2
(vi)
1 x
5.
4