Professional Documents
Culture Documents
If f(x) contains some other functions like Trigonometric, Logarithmic, exponential etc.
then f(x) = 0 is called a Transcendental equation.
(1) x4 - 7x3 + 3x + 5 = 0 is algebraic
Ex:
Bisection Method:
This method is used in locating a root of the equation f(x) = 0 between a and b.
If f(x) is continuous between a and b, f(a) and f(b) are opposite in sign then exists a root between
a and b.
1
(a b )
2
x2
1
(a x 1 )
2
Now if f(x2) is - ve then the root lies between x2 and x1 and the third approximation to the root is
x3
1
(x 2 x1 )
2
This process is continued until the root is found with desired accuracy
Fig.
1. Solve x3 - 9x + 1 = 0 for the root lying between 2 and 3 using bisection method in six stages.
Answer:
f(x) = x3 - 9x + 1 = 0
f(2) =-9
-ve
f(3) = 55 +ve
x1
23
2.5
2
f ( x 1 ) 5.8 ve
x2
2 .5 3
2.75
2
x3
2.75 3
2.875
2
-ve
x4
2.875 3
2.9375
2
2.9375 3
2.969
2
2.9375 2.953
2.95
2
Let x0 and x1 be two points such that f(x0) and f(x1) are opposite in sign.
y f (x 0 )
f (x1 ) f (x 0 )
(x x 0 )
x1 x 0
...(1)
When y =0 we get x = x2
i.e. x 2 x 0
x1 x 0
f (x 0 )
f (x1 ) f (x 0 )
...(2)
x3 x0
x2 x0
f (x 0 )
f (x 2 ) f (x 0 )
This procedure is continued till the root is found with desired accuracy.
1. Find a real root of x3 - 2x -5 = 0 by method of false position correct to three decimal
places between 2 and 3.
Answer:
Let
f(x) = x3 - 2x - 5 = 0
f(2) = -1
f(3) = 16
Take x0 = 2, x1 = 3
x0 = 2, x1 = 3
x1 x 0
f (x 0 )
f (x1 ) f (x 0 )
32
2
(1)
16 1
= 2.0588
f(x2) = f(2.0588) = -0.3908
Now x 2 x 0
We get x 3 x 0
x1 x 0
.f ( x 0 )
f (x1 ) f (x 0 )
2.0588
0.9412
(0.3908)
16.3908
= 2.0813
f(x3) = f(2.0813) = -0.14680
0.9187
(0.14680) 2.0897
16.1468
2. Find the root of the equation xex = cos x using Regula falsi method correct to three
decimal places.
Answer:
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
x2 x0
0
x1 x 0
.f ( x 0 )
f (x1 ) f (x 0 )
1
(1) 0.31467
3.17798
1 0.31467
(0.51987) 0.44673
2.17798 0.51987
0.55327
0.20356 0.49402
2.38154
f(m) = 0
Let
f (a )
f ' (a )
f (a )
or m a '
f (a )
a = x 0, m = x 1
then
x1 x 0
or m a
x 2 x1
f (x 0 )
f ' (x 0 )
f (x1 )
f ' (x1 )
.
.
.
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
We have f ( x )
x log e x
1 log e x
1 .2 f ' ( x )
log e 10
log e 10
log10 e log10 x
x k 1 x k
Let x0 = 2.5
x k log10 x k 1.2
log10 e log10 x K
x 1 2 .5
x 2 2.7465
x 3 2.7406
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
x k 1 x k
x1 1
x k e xk 2
( x k 1) e x k
e2
0.8678
2e
x 2 0.8678
x 3 0.8527
(0.8678 ) e 0.8678 2
(1.8678 ) e 0.8678
(0.8527 ) e 0.8527 2
(1.8527 ) e 0.8527
0.8527
0.8526
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
x k 1 x k
3x k cos x k 1
3 sin x k
x 2 0.6071
Since x1 = x2
The desired root is 0.6071
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
x k 1 x k
xk
i.e. x k 1
To find
x 2k N
2x k
xk
N
2 2x k
1
N
x k
2
xk
41
41
Observe that
36
41
Choose x 0 6
x1
1
41
6 6.4166
2
6
x2
1
41
6.4166
6.4031
2
6.4166
x3
1
41
6.4031
6.4031
2
6.4031
Since x2 = x3 = 6.4031
The value of
41 6.4031
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 p 1
Now
x k 1 x k
x pk N
px pk 1
81 / 3 101 / 3
i.e.
2 (10)1 / 3
Use x0 = 2, p = 3, N=10
x1 2
2 3 10
2.1666
3 (2 2 )
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
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
p
x k 1 x k
xk N
p 1
p xk
sin ce (32)1 / 5
1
0.5
2
We use x0 = 0.5, p = 5, N = 30
x 1 0 .5
(0.5) 5 30
0.50625, Re peating the process
5(0.5) 6
x 2 0.506495, x 3 0.506495
(30) 1 / 5 0.5065
x0
x1
x2
x3
xn
y:
y0
y1
y2
y3
yn
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
Now 2 y 0 (y 0 ) ( y1 y 0 )
y1 y 0 ( y 2 y1 ) ( y1 y 0 )
y 2 2 y1 y 0
||| ly
2 y1 y 3 2 y 2 y1
2 y r y r 2 2 y r 1 y r
Note : 3 y 0 y 3 3y 2 3y1 y 0
k y r y r k k C1 y r k 1 k C 2 y r k 2 .... (1) k C r
Difference Table
x
x0
y0
2 y
3 y
4 y
5 y
y0
x1
2y0
y1
y1
x2
3y0
2y1
y2
4y0
y2
x3
3y0
2y2
y3
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
15
21.51
-0.58
0.96
20
22.47
0.67
0.09
1.05
25
23.52
-0.68
-0.01
0.08
0.72
0.04
1.13
30
24.65
0.03
0.11
1.24
35
25.89
9
2
13
12
21
34
6
18
39
4
73
0
6
24
63
136
x0
10
x1
11
0
10
x2
21
-3
-3
7
x3
28
0
-3
-6
1
x4
29
i.e.
= y1 - y0 = y0
y2 = y2 - y1 = y1
y3 = y3 - y2 = y2
'
'
yn = yn - yn-1 = yn - 1
y r y r y r 1 y r 1
Note:
1. f(x + h) = f(x + h) - f(x) = f(x)
2. 2 f(x + 2h) = (f(x + 2h))
= {f(x + 2h) - f(x + h)}
X0
y0
2y
3y
4y
5y
y1
X1
2y2
y1
y2
X2
3y3
2y3
y2
4y4
y3
X3
3y4
2y4
y3
4y5
y4
X4
4y5
3y5
2y5
y4
y5
X5
y5
40
50
60
70
80
90
184
204
226
250
276
304
40
184
2y
3y
4y
5y
20
50
204
2
22
60
226
0
2
24
70
250
0
2
26
80
276
0
2
28
90
304
2. Given
x
f(x)
12
32
76
156
Construct the difference table and write the values of f (4), 2f (4), 3f (3)
2y
3y
8
1
12
12
20
12
32
24
44
12
76
36
80
156
x0
x1
x2
x3
xn
y:
y0
y1
y2
y3
yn
Note 1:
y1 / 2 y1 y 0 y 0 y1
y 3 / 2 y 2 y1 y1 y 2
y n 1 / 2 y n y n 1 y n 1 y n
Note 2:
y 3 / 2 y1 / 2 2 y1
y 5 / 2 y 3 / 2 2 y 2
y 7 / 2 5 / 2 2 y 3
Note 3: We have
f (x 0 h / 2) f (x1 ) f (x 0 )
h
h
f (x ) f x f x
2
2
x0
y0
2y
3y
4y
y1/2
x1
2y1
y1
y3/2
x2
3y3/2
2y2
y2
y5/2
x3
3y5/2
2y3
y3
y7/2
x4
y4
1. Show that:
i) 2 y 5 y 6 2 y 5 y 4
2 y 5 y11 / 2 y 9 / 2
y11 / 2 y 6 y 5
y 9 / 2 y 5 y 4
Now 2 y 5 y11 / 2 y 9 / 2
(y6 y5 ) (y5 y 4 )
y 6 2y 5 y 4
2 y 0 y1 / 2 y 1 / 2
4y4
y1 / 2 y1 y 0
y 1 / 2 y 0 y 1
2 y 0 y1 / 2 y 1 / 2
( y1 y 0 ) ( y 0 y 1 )
y1 2 y 0 y1
2. Given f(-2) = 12, f(-1) = 16, f(0) = 15, f(1) = 18, f(2) = 20
form the central difference table and write down the values of y-3/2, 2y0, 3y1/2 by
taking x0 = 0
x
-2
y-2 12
2y
3y
4y
y-3/2 4
-1
2y1 -5
y-1 16
y-1/2 -1
3y-1/2 9
y1/2 3
1
3y1/2 -5
2y1 -1
y1 18
y3/2 2
y2 20
y 3 / 2 4, 2 y 0 4, 3 y1 / 2 5
4y0 -14
2y0 4
y0 15
Note: 1
f (x) f (x h) f (x)
f ( x ) Ef ( x ) f ( x )
f ( x ) (E 1) f ( x )
|| ly 2 (E 1) 2 f ( x )
n (E 1)n f (x )
n y 0 y n n C1 y n 1 n C 2 y n 2 .... (1) n y 0
Note 2:
f (x) f (x) f (x h)
f ( x ) f ( x )
1
f (x)
E
E 1
1 .
1. Show that
i) 6 y 0 y 6 6 y 5 16 y 4 20 y 3 15 y 2 6 y1 y 0
ii) 3 y 2 y 5 3y 4 3y 3 y 2
2. If f(x) = x3 + 6x2 + 11x + 6. Prove that the second difference is 6x + 18 using h = 1.
f ( x ) x 3 6 x 2 11x 6
f ( x 1) ( x 1) 3 6( x 1) 2 11( x 1) 6
f ( x ) f ( x 1) f ( x ) 3x 2 15x 18
2 f ( x ) f ( x 1) f ( x )
3( x 1) 2 15( x 1) 18 3x 2 15x 18
= 6x + 18
3. If f(x) = eax show that f(0) and its leading differences form a G.P
f(x) = eax
f(0) = e0 = 1
f ( x ) e ax ah e ax e ax (e ah 1)
2 f ( x ) (e ah 1) (e a ( x h ) e ax )
(e ah 1) (e ah 1) . e ax (e ah 1) 2 e ax
n f ( x ) (e ah 1) n e ax
4. Find i) sinx
ii) tan-1x
iii) log x
2 cos x
h
h
sin
2
2
xhx
tan 1
1 ( x h ) x
h
tan 1 2
x hx 1
x
h
log 1
x
5. Evaluate i)
Answer:
2 x 3
Ex 3
2
ii) e 2
E
choose h = 1
i)
2 ( x 3 )
E (x 3 )
[( x 1) 3 x 3 ]
( x 1) 3
6
( x 1) 2
ii) 2 e x (e x 1 e x )
e e x e x
(e 1) e x
(e 1) {e x 1 e x }
(e 1) (e x ) (e 1) (e 1) 2 e x
81
2 y
3 y
4 y
a-9
a - 15
a - 19
-4a + 124
81 - a
81 - a
-3a +105
81
Method 2:
(E - 1)4 y0 = 0
y4 - 4E3y0 + 6E2y0- 4Ey0 + y0 = 0
y4 - 4y3 + 6y2 - 4y1 + y0 = 0 y3 = 31
2 u
3 u
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
We carryout upto the stage where we get two entries ( 2 unknowns) and equate each of
those entries to zero. (Assuming) to be a polynomial of degree 2.
b + 3a - 200 = 0
-3b - a + 408 = 0
We get a = 24 b = 128
Method 2:
Given 3 set of values
Assume 3u0 = 0
(E 1) 3 u 0 0
u 3 3 E 2 u 0 3 Eu 0 u 0 0
u 3 3u 2 3u 1 u 0 0
i.e.,
u 4 3u 3 3u 2 u 1 0
b 3(64) 3a 8 0
3a b 200 0
u 5 3u 4 3u 3 u 2 0
216 3b 3(64) a 0
3b a 408 0
a 3b 408 0
Try these
9. Find the missing value in the table
x
16
Answer: a = 8.25
-1
-1