Professional Documents
Culture Documents
null
null
null
𝟏. 𝟑 𝑩𝒊𝒔𝒆𝒄𝒕𝒊𝒐𝒏 𝒎𝒆𝒕𝒉𝒐𝒅:
𝑆𝑢𝑝𝑝𝑜𝑠𝑒 𝑓 (𝑥) = 0 𝑏𝑒 𝑎𝑛𝑦 𝑒𝑞𝑢𝑎𝑡𝑖𝑜𝑛.
1. 𝐶ℎ𝑜𝑜𝑠𝑒 𝑡𝑤𝑜 𝑐𝑜𝑛𝑠𝑒𝑐𝑢𝑡𝑖𝑣𝑒 𝑣𝑎𝑙𝑢𝑒 𝑎 𝑎𝑛𝑑 𝑏 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝑓 (𝑎) 𝑎𝑛𝑑 𝑓 (𝑏) ℎ𝑎𝑠 𝑜𝑝𝑝𝑜𝑠𝑖𝑡𝑒 𝑠𝑖𝑔𝑛.
𝑆𝑎𝑦 𝑆𝑢𝑝𝑝𝑜𝑠𝑒 𝑓 (𝑎) = – 𝑣𝑒 𝑎𝑛𝑑 𝑓 ( 𝑏 ) = + 𝑣𝑒 𝑖. 𝑒. f (a). f (b) 0
𝑟𝑜𝑜𝑡𝑠 𝑙𝑖𝑒𝑠 𝑖𝑛 𝑡ℎ𝑒 𝑖𝑛𝑡𝑒𝑟𝑣𝑎𝑙 (𝑎, 𝑏).
[𝑵𝒐𝒕𝒆: (𝒊). 𝒇 (𝒂) = – 𝒗𝒆 , 𝒇 (𝒃) = + 𝒗𝒆 𝒔𝒐 𝒕𝒉𝒂𝒕 f (a). f (b) 0 𝒂𝒏𝒅
(𝒊𝒊). 𝒇 (𝒂) = + 𝒗𝒆, 𝒇 (𝒃) = – 𝒗𝒆 𝒔𝒐 𝒕𝒉𝒂𝒕 f (a). f (b) 0 ]
ab
2. 𝐸𝑣𝑎𝑙𝑢𝑎𝑡𝑒 𝑡ℎ𝑒 𝑚𝑖𝑑 − 𝑝𝑜𝑖𝑛𝑡 𝑜𝑓 𝑎 𝑎𝑛𝑑 𝑏 𝑠𝑢𝑐ℎ 𝑎𝑠 x0
2
(i). 𝐼𝑓 𝑓 (x0) = 0 𝑡ℎ𝑒𝑛 x0 𝑖𝑠 𝑟𝑜𝑜𝑡 𝑜𝑓 𝑡ℎ𝑒 𝑔𝑖𝑣𝑒𝑛 𝑒𝑞𝑢𝑎𝑡𝑖𝑜𝑛.
(ii). 𝐼𝑓 f (x0) 0 𝑡ℎ𝑒𝑛 𝑒𝑖𝑡ℎ𝑒𝑟 𝑓(x0) < 0 or f(x0) > 0
Case 1: 𝐿𝑒𝑡 𝑢𝑠 𝑐𝑜𝑛𝑠𝑖𝑑𝑒𝑟 𝑡ℎ𝑎𝑡 f(x0) < 0 and f (a) > 0
𝑆𝑜 𝑡ℎ𝑎𝑡 f(x0). f (a) < 0
Roots lies between (a, x0)
x0 a
x1
2
5th Approximation
2.25 2.3125
x5 2.28125
2
and f (2.28125) (2.28125)3 3(2.28125) 5 0.02810 ve
6th Approximation
2.25 2.28125
x6 2.265625
2
and f (2.265625) (2.265625)3 3(2.265625) 5 0.16729 ve
7th Approximation
2.265625 2.28125
x7 2.27343
2
and f (2.27343) (2.27343)3 3(2.27343) 5 0.07010 ve
9th Approximation
10th Approximation
2.27734 2.27929
x10 2.27831
2
and f (2.27831) (2.27831)3 3(2.27831) 5 0.008914 ve
Problem 2 Find a real root of the equation x3 – 2x – 5 = 0 using bisection method. Carry
out the computation up to 3rd stage. [RGPV Dec. 2019]
Solution: Suppose f ( x) x3 2 x 5 … (1)
Putting, x 2, f (2) 23 2 2 5 1 ve
x 3, f (3) 33 2 3 5 16 ve
Clearly f (2). f (3) 0
root lies between 2 and 3. Say a = 2 and b = 3
1. First Approximation:
ab 23
x0 2.5
2 2
Putting in equation (1), we get
f 2.5 2.5 2 2.5 5 5.625 ve
3
2. Second Approximation:
a x0 2 2.5
x1 2.25
2 2
Putting in equation (1), we get
f 2.25 2.25 2 2.25 5 1.89 ve
3
3. Third Approximation:
a x1 2 2.25
x2 2.125
2 2
Putting in equation (1), we get
f 2.125 2.125 2 2.125 5 0.3457 ve
3
2. Using Bisection method, find the root of the equation x3 + x – 1 = 0 near x = 0. (upto three
iteration only).
[Answer: 2.125]
3. Find a real root of the equation f (x) = x3 – 4x – 9 = 0, using bisection method in four stages.
[Answer: 2.6875]
4. Find the root of the equation x log10 x = 1.2, that lies between 2 and 3.
[Answer: 2.741]
𝑃𝑟𝑜𝑏𝑙𝑒𝑚 − 1 Give convergence values of Regula Falsi, Secant method and Newton
Raphson method.
Solution:
( x a)
(i). Convergence of 𝑅𝑒𝑔𝑢𝑙𝑎 False method p=1 ei 1 er r f ( R )
f ( R)
Where R is some point in the interval xi and a. the convergence is Linear.
(ii). Convergence of Secant Method p = 1.618
2nd Approximation:
Say, x1 = 2.6429, b = 3 and f (2.6428) = –1.7547, f (3) = 5, by False position formula,
x1 f (b) b f ( x1 ) 2.6429 f (3) 3 f (2.6429)
x2
f (b) f ( x1 ) f (3) f (2.6429)
2.6429 5 3 1.7547
x2 2.7356
5 1.7547
3rd Approximation:
Say, x2 = 2.7356, b = 3 and f (2.7356) = –0.2054, f (3) = 5, by False position formula,
x2 f (b) b f ( x2 ) 2.7356 f (3) 3 f (2.7356)
x3
f (b) f ( x2 ) f (3) f (2.7356)
2.7356 5 3 0.2054
x3 2.7461
5 0.2054
2nd Approximation:
Say, x1 = 2.721017, b = 3 and f (2.721017) = -0.01709, f (3) = 0.23136, by False position
formula,
x1 f (b) b f ( x1 ) (2.72101) f (3) 3 f (2.72101)
x2
f (b) f ( x1 ) f (3) f (2.72101)
(2.72101) (0.23136) 3(0.01709)
x2 2.74021
(0.23136) (0.01709)
f (2.74021) (2.74021)log10 (2.74021) 1.2 0.00038 ve
So, the root lies between 2.74021 and 3.
3rd Approximation:
Say, x2 = 2.74021, b = 3 and f (2.74019) = -0.00038, f (3) = 0.23136, by False position
formula,
x2 f (b) b f ( x2 ) (2.74021) f (3) 3 f (2.74021)
x3
f (b) f ( x2 ) f (3) f (2.74021)
(2.74019) (0.23136) 3(0.00038)
x3 2.74064
(0.23136) (0.00038)
4th Approximation:
Say, x3 = 2.74064, b = 3 and f (2.74021) = –0.00001, f (3) = 0.23136, by False position
formula,
x2 f (b) b f ( x2 ) (2.74064) f (3) 3 f (2.74064)
x3
f (b) f ( x2 ) f (3) f (2.74064)
(2.74064) (0.23136) 3(0.00001)
x3 2.74065
(0.23136) (0.00001)
Clearly, x3 ~ x4 = 2.7406
Hence, the root of the equation is 2.7406, correct to four decimal places.
Answer
Problem -1 Find a real root of the equation x4 x 13 0 by Newton Rapshon method
correct to three decimal places.
( x0 ) 4 4( x0 ) 13 (1.5) 4 4(1.5) 13
x1 x0 1.5 2.255
4( x0 )3 1 4(1.5)3 1
2nd Approximation
f x1
x2 x1
f x1
( x2 ) 4 4( x2 ) 13 (2.0186)4 4(2.0186) 13
x3 x2 2.0186 1.9689
4( x2 )3 1 4(2.0186)3 1
4th Approximation
f x3
x4 x3
f x3
( x3 ) 4 4( x3 ) 13 (1.9689)4 4(1.9689) 13
x4 x3 1.9689 1.9669
4( x3 )3 1 4(1.9689)3 1
5th Approximation
f x4
x5 x4
f x4
( x4 ) 4 4( x4 ) 13 (1.9669) 4 4(1.9669) 13
x5 x4 1.9669 1.9669
4( x4 )3 1 4(1.9669)3 1
Clearly, x5 ~ x4 1.9669
Therefore, required root to three decimal places is 1.9669. Ans
Problem- 2 Using Newton-Raphson method find a real root of the equation x log10 x 1.2 0
correct four decimal places.
Solution: Given: f ( x) x log10 x 1.2
Taking x = 2, f (2) 2 log10 (2) 1.2 0.597940 ve
and x = 3 f (3) 3 log10 (3) 1.2 0.231363 ve
Therefore a root lies between 2 and 3 and it is nearer to 3.
Now, f ( x) x log10 e log10 x 0.434294 log10 x
1
x
23
Taking x0 2.5 , such that f (2.5) 0
2
The nth iteration formula of Newton-Raphson method is,
6 D-operator D E ehD
2 x E e x
1. Prove that: e . 2 x e x , the interval of difference being h. [RGPV Dec. 2018]
E e
f x
2. Prove that: log f x log 1 [RGPV Dec. 2019]
f x
2.8 Extrapolation
It is the operation of estimating the values of function outside the given range of values of
argument.
Solution: By Difference table: Suppose the missing value are y15 and y30
x y y 2y 3y 4y
10 43
y15 – 43
15 y15 –2y15 + 72
29 – y15 3 y15 – 98
20 29 y15 – 26 y30 – 4 y15 + 89
3 y30 - y15 – 9
25 32 y30 – 35 – 4 y30 + y15 +
y30 – 32 –3 y30 + 153
30 y30 – 2 y30 + 144
77 – y30 109
35 77
x 1 2 3 4 5
f (x) 7 - 13 21 37
Explain why the value is different from that putting x = 2 in the expression 2x + 5.
[Answer: f (2) = 9.5]
2. Estimate the missing term in the following data: [RGPV Dec.
2002, 2008]
x 0 1 2 3 4
f (x) 1 3 9 - 81
p ( p 1) ( p 2 ) - - - ( p n 1) n
f (a) ...
n
x x0 x a
Where, p
h h
# This formula is used usually for interpolating the values of f (x) when x is slightly greater or
less than a i.e. near the beginning of x = a
# The above formula can be writing as,
f (a ph) y0 p
C1 y0 p
C2 2 y0 p
C3 3 y0 ... p
Cn n y0 ...
Problem 1 Given that: sin 450 = 0.7071, sin 500 = 0.76600, sin 550 = 0.8192, sin 600 =
0.8660, find the value of sin 520. [RGPV Dec.
2019]
Solution: Let us calculate the number of students whose marks between 40 and 45.
x x0 45 40
We have x0 = 40, x = 45 (given), h = 10, therefore p 0.5 and x0 + ph = 45
h 10
By Newton’s forward difference interpolation formula is,
p p p 1 2 p p 1 p 2 3 p p 1 p 2 p 3 4
f ( x0 ph) y0 y0 y0 y0 y0 ...
1 2 3 4
… (1)
Since the table given in the continuous interval form, then we convert in the below form such
that. The difference table is,
x y y 2y 3y 4y
Marks (No. of
Below students)
40 31
42
50 73 9
51 –25
60 124 –16 37
35 12
70 159 –4
31
80 190
Putting the values in equation (1), we get
0.5 0.5 1 0.5 0.5 1 0.5 2 0.5 0.5 1 0.5 2 0.5 3
f (45) = 31 0.5 42 9 25 37
2 6 24
31+21 1.125 1.5625 1.4453125 47.8671875 48(Approximated)
Hence, the number of students whose marks between 40 and 45 is,
= f(45) – f(40) = 48 – 31 = 17 Answer
1. Given y20 = 24, y24 = 32, y28 = 35, y32 = 40, find y22 by using Newton-Gregory forward
interpolation formula.
[Answer: y22 = 29.0625]
2. Find the lowest degree polynomial f (x) that will fit the data:
x 0 2 4 6 8
f (x) 5 9 61 209 501
[Answer: f (x) = x – 2x + 5]
3
3. Find the number of men getting wages between Rs. 10 and Rs. 15 from the following table.
p p( p 1 ) 2 p( p 1 ) ( p 2 ) ... ( p n 1 ) n
y x yn yn yn yn ...
1 2 n
3. Given that :
x : 1 2 3 4 5
f (x) : 2 5 10 17 26. Find the value of 2y5
[Answer: 2y5 = 2]
( x x0 )( x x1 )( x x3 )...( x xn )
f ( x2 ) ...
( x2 x0 )( x2 x1 )( x2 x3 )...( x2 xn )
( x x0 )( x x1 )( x x2 )...( x xn 1)
... f ( xn ) ...
( xn x0 )( xn x1 )( xn x2 )...( xn xn 1)
Lagrange’s formula may also be written as
f ( x) f ( x0 ) L0 ( x) f ( x1) L1( x) f ( x2 ) L2 ( x) .... f ( xn ) Ln ( x)
( x x1 )( x x2 )...( x xn ) ( x x0 )( x x2 )...( x xn )
Where, L0 ( x) , L1 ( x)
( x0 x1 )( x0 x2 )...( x0 xn ) ( x1 x0 )( x1 x2 )...( x1 xn )
( x x0 )( x x1 )( x x3 )...( x xn ) ( x x0 )( x x1 )( x x2 )...( x xn 1 )
L2 ( x) and Ln ( x)
( x2 x0 )( x2 x1 )( x2 x3 )...( x2 xn ) ( xn x0 )( xn x1 )( xn x2 )...( xn xn 1 )
Problem 1 From the following table find the value of tan330 by Lagrange’s formula
x tan300 tan320 tan320 tan380
y 0.5774 0.6249 0.7002 0.7813
Solution: Given:
x0 0 , x1 1 x2 2 x3 4
f ( x0 ) 1 f ( x1) 1 f ( x2 ) 2 f ( x3 ) 5
and x = 33
Lagrange’s interpolation formula is,
( x x1 )( x x2 )( x x3 ) ( x x0 )( x x2 )( x x3 )
f ( x) f ( x0 ) f ( x1 )
( x0 x1 )( x0 x2 )( x0 x3 ) ( x1 x0 )( x1 x2 )( x1 x3 )
( x x0 )( x x1 )( x x3 ) ( x x0 )( x x1 )( x x2 )
f ( x2 ) f ( x3 )
( x2 x0 )( x2 x1 )( x2 x3 ) ( x3 x0 )( x3 x1 )( x3 x2 )
Putting the values in above formula,
( x 1)( x 2)( x 4) ( x 0)( x 2)( x 4) ( x 0)( x 1)( x 4) ( x 0)( x 1)( x 2)
f ( x) 1 1 2 5
(0 1)(0 2)(0 4) (1 0)(1 2)(1 4) (2 0)(2 1)(2 4) (4 0)(4 1)(4 2)
1 1 1 5
f x x3 7 x 2 2 x 8 x3 6 x 2 8 x x3 5 x 2 4 x x3 3x 2 2 x
8 3 2 24
f x x3
1 1 1 5 7 5 5 1 8 5
2 x2 2 x 1
8 3 2 24 8 2 8 4 3 12
1 3 3 2 5
f x x x x 1
12 4 6
Answer
1. Use the Lagrange’s formula to find f (6) from the following table,
x : 2 5 7 10 12
f ( x ): 18 180 448 1210 2028 [Answer: f (6) =
294]
2. Given log10 654 = 2.8156, log10 658 = 2.8182, log10 659 = 2.8189, log10 661 = 2.8202, find
the value of log10 656 by using Lagrange’s formula.
[Answer: log10 656 = 2.8168]
3. Apply Lagrange’s formula to find f (5) and f (6) given that, f (1) = 2, f (2) = 4, f (3) = 8, f (7)
= 128, explain why the result differs from those obtained by completing the series of powers of
2.
[Answer f (5) = 32.93 and f (6) = 66.67]
Problem 1 Use Newton’s divided difference formula or Lagrange’s formula evaluate f (8)
and (15)
from the given table,
x: 4 5 7 10 11 13
f (x): 48 100 294 900 1210 2028
Solution: Given:
x0 = 4, x1 = 5, x2 = 7, x3 = 10, x4 = 11 x5 = 13
and f(x0) = 48, f(x1) = 100, f(x2) = 294,f(x3) = 900, f(x4) = 1210,f(x5) = 2028
Divided difference table is,
2 3 4 5
Arguments Entry f (x) f ( x0 ) f ( x0 ) f ( x0 ) f ( x0 ) f ( x0 )
x1 x1 , x2 x1 , x2 , x3 x1 , x2 , x3 , x4 x1 , x2 , x3 , x4 , x5
(x)
4 48
100 48
52
54
5 100 97 52
15
294 100 74
97
75 21 15
1
7 294 202 97 10 4
21
900 294 10 5 11
202 0
10 7 27 21 11 4
1
10 900 310 202 11 5 00
27 0
1210 900 11 7 1 1 13 4
310 0
11 10 33 27 13 5
11 1210 1
409 310 13 7
33
2028 1210 13 10
409
13 11
13 2028
4 5
f ( x0 ) f ( x0 )
( x x0 ) ( x x1 ) ( x x2 ) ( x x3 ) x1 , x2 , x3 , x4 + ( x x0 ) ( x x1 ) ( x x2 ) ( x x3 ) ( x x4 ) x1 , x2 , x3 , x4 , x5
–1 33 28 404
94
5 33 04
28
0 1
10 94
14
2 28 24
0 5 10 13 14
95 2 1 3
2 5 4
20
88 10
13
442 2 5 1
2 9 88
1335 9 50
442
52
5 1335
f ( x) 1245 404x 1616 94x2 470x 376 14x3 70x2 56x 3x4 9x3 18x2 24x
Problem 3 Find the missing term using Newton’s divided difference formula.
x 0 1 2 3 4
f (x) 1 3 9 - 81 r
Solution: Given:
x: 0 1 2 4
y: 1 3 9 81
Divided Difference table:
2 3
x y y y y
0 1
2
1 3 2
6 2
2 9 10
36
4 81
1. Find the polynomial function f (x) by using Newton’s divided difference formula:
x 0 2 3 6
f(x) 648 704 729 792
[Answer: f ( x) x2 30 x 648 ]
3. Use Newton’s divided difference formula to find the form of f (x) given
x : 0 2 3 6
f (x) : 648 704 729 792
[Answer f (x) = 648 + 30x – x2]