Problems For Chapter 2
Problems For Chapter 2
In the interval (0, 8), with an accuracy of 5 digits. Initially locate the root roughly with incremental search
technique, and then refine it using Newton-Raphson method.
Solution:
𝑥𝑥 2 𝑥𝑥 4 𝑥𝑥 6
1− + + =0
6 120 5040
(0,8)
Starting with increment search of 1
x 0 1 2 3 4
f(x) 1 0.8414 0.4539 0.03036 -0.3461
𝑓𝑓(𝑥𝑥𝑛𝑛 )
𝑥𝑥𝑛𝑛−1 = 𝑥𝑥𝑛𝑛 +
𝑓𝑓’(𝑥𝑥𝑛𝑛 )
𝑥𝑥 𝑥𝑥3 𝑥𝑥5
f1 (x) = - + - =0
3 30 540
Answer: 3.078642
4. Find the point where the following function has a maximum in the range 2 ≤ x ≤ 6 using the Bisection
method.
𝑓𝑓(𝑥𝑥) = 𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐 𝑐𝑐𝑐𝑐𝑐𝑐ℎ𝑥𝑥 − 1 = 0
With an accuracy of 3 digits.
Solution:
f(x) = cos x cosh x – 1 = 0
𝑑𝑑 𝑓𝑓(𝑥𝑥)
for maximum g(x) = = 0 or cosx sinhx – coshx sinx = 0
𝑑𝑑𝑑𝑑
n a b p fa fb fp
1 3 4 3.5 -11.3384 2.829058 -9.67799
2 3.5 4 3.75 -9.67799 2.829058 -5.27746
3 3.75 4 3.875 -5.27746 2.829058 -1.75589
4 3.875 4 3.9375 -1.75589 2.829058 0.394922
5 3.875 3.9375 3.90625 -1.75589 0.394922 -0.7148
6 3.90625 3.9375 3.921875 -0.7148 0.394922 -0.16866
7 3.921875 3.9375 3.929688 -0.16866 0.394922 0.110936
8 3.921875 3.929688 3.925782 -0.16866 0.110954 -0.0294
9 3.921578 3.929688 3.925633 -0.17919 0.110954 -0.03471
10 3.925633 3.929688 3.927661 -0.03471 0.110954 0.037973
11 3.925633 3.927611 3.926622 -0.03471 0.036195 0.000706
12 3.925633 3.926622 3.926128 -0.03471 0.000706 -0.01701
Solution:
1
f(x) = cosx - 1n x
𝑥𝑥
Solutuion:
sin(x) – 4x2 + 1 = 0
f’(x) = cos(x) – 8x
Therefore,
x0 = 0.6
x = 0.63036
25. Find cubic root of 8 using Secant method accurate to 4 digits.
(Hint: solve x3 – 8 = 0).
Solution:
x3 – 8 = 0
Cubic root of 8 is 2. Therefore we start at 1.9;
xn = 1.9 and xn – 1 = 1.8