BIT203 · 2082 · 10 marks
Explain how bisection method differ from secant. Derive the formula for Newton Raphson. Use Newton Raphson method to solve the equation f(x) = x3 + 2x - 2 correct upto three decimal places. [2+4+4]
Explain how bisection method differ from secant. Derive the formula for Newton Raphson. Use Newton Raphson method to solve the equation $f(x) = x^3 + 2x - 2$ correct upto three decimal places. [2+4+4]
Numerical Methods: Bisection vs Secant, Newton-Raphson
Given Data
- Equation: $f(x) = x^3 + 2x - 2 = 0$
- Required accuracy: three decimal places
- Marks split: $2 + 4 + 4$
(a) Bisection Method vs Secant Method
| Feature | Bisection Method | Secant Method |
|---|---|---|
| Type | Bracketing (closed) method | Open method |
| Initial points | Needs $a,b$ with $f(a)\cdot f(b) < 0$ | Needs any two starting points $x_0, x_1$ (no sign change required) |
| Formula | $x = \dfrac{a+b}{2}$ | $x_{n+1} = x_n - f(x_n)\dfrac{x_n - x_{n-1}}{f(x_n) - f(x_{n-1})}$ |
| Convergence rate | Linear (slow), order 1 | Superlinear, order $\approx 1.618$ |
| Convergence guarantee | Always converges | May diverge |
| Idea | Repeated halving of interval | Chord (secant line) approximation |
Key difference: Bisection guarantees convergence by successively halving a bracketed interval but is slow; the secant method uses the line joining two previous points and converges faster but is not guaranteed.
(b) Derivation of Newton-Raphson Formula
Let $x_0$ be an initial approximation and $h$ a small correction so that $x_1 = x_0 + h$ is the root, i.e. $f(x_0 + h) = 0$.
Taylor expansion:
$$f(x_0 + h) = f(x_0) + h,f'(x_0) + \frac{h^2}{2!}f''(x_0) + \cdots$$
Neglecting $h^2$ and higher order terms (since $h$ is small):
$$f(x_0) + h,f'(x_0) = 0 \implies h = -\frac{f(x_0)}{f'(x_0)}$$
Therefore:
$$x_1 = x_0 - \frac{f(x_0)}{f'(x_0)}$$
The general iterative formula:
$$\boxed{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}, \quad n = 0,1,2,\ldots}$$
(valid provided $f'(x_n) \neq 0$).
(c) Solve $f(x) = x^3 + 2x - 2 = 0$
$$f(x) = x^3 + 2x - 2, \qquad f'(x) = 3x^2 + 2$$
Bracketing: $f(0) = -2 < 0$, $f(1) = 1 > 0$, so root in $[0,1]$. Take $x_0 = 1$.
$$x_{n+1} = x_n - \frac{x_n^3 + 2x_n - 2}{3x_n^2 + 2}$$
Iteration 1: $x_0 = 1$ $$f(1) = 1,\quad f'(1) = 5$$ $$x_1 = 1 - \frac{1}{5} = 0.800000$$
Iteration 2: $x_1 = 0.8$ $$f(0.8) = 0.512 + 1.6 - 2 = 0.112$$ $$f'(0.8) = 1.92 + 2 = 3.92$$ $$x_2 = 0.8 - \frac{0.112}{3.92} = 0.771429$$
Iteration 3: $x_2 = 0.771429$ $$f(x_2) = 0.771429^3 + 2(0.771429) - 2 = 0.459045 + 1.542857 - 2 = 0.001902$$ $$f'(x_2) = 3(0.595102) + 2 = 1.785306 + 2 = 3.785306$$ $$x_3 = 0.771429 - \frac{0.001902}{3.785306} = 0.771429 - 0.000502 = 0.770926$$
Iteration 4: $x_3 = 0.770926$ $$f(x_3) = 0.770926^3 + 2(0.770926) - 2$$ $$= 0.458148 + 1.541853 - 2 = 0.000001 \approx 0$$
Check: $|x_3 - x_2| = |0.770926 - 0.771429| = 0.000503 < 0.001$ region; one more confirms stability.
Rounded to three decimals:
$$\boxed{x \approx 0.771}$$
Verification: $f(0.771) = 0.458314 + 1.542 - 2 = 0.000314 \approx 0$. ✓
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.