Exercise 10.1 Examples – 12th Class Math Federal Board (Root Finding by Iteration)

All textbook examples for Exercise 10.1 (Root Finding by Iteration) of Chapter 10: Numerical Methods, 12th class Mathematics, Federal Board (FBISE). All 6 examples are worked step by step, with the final answers highlighted.
Worked textbook examples
Example 1Use the Bisection method to find (correct to two decimal points) the root between $0.4$ and $0.6$ of the equation $\sin(x)-5x+2=0$.
Solution:
Let $f(x)=\sin(x)-5x+2$; $x_0=0.4$, $x_1=0.6$.
The angles are in radians, so set the calculator to radian mode.
$f(x_0)f(x_1)<0$, so the root lies between $0.4$ and $0.6$.
Keep full values in the calculator. The values shown are rounded.
$f(x_0)f(x_2)<0$, so the root lies between $x_0$ and $x_2$, that is, between $0.4$ and $0.5$.
$f(x_2)f(x_3)<0$, so the root lies between $x_2$ and $x_3$, that is, between $0.45$ and $0.5$.
$f(x_2)f(x_4)<0$, so the root lies between $x_2$ and $x_4$, that is, between $0.475$ and $0.5$.
$f(x_2)f(x_5)<0$, so the root lies between $x_2$ and $x_5$, that is, between $0.4875$ and $0.5$.
$f(x_2)f(x_6)<0$, so the root lies between $x_2$ and $x_6$, that is, between $0.4938$ and $0.5$.
$f(x_6)f(x_7)<0$, so the root lies between $x_6$ and $x_7$, that is, between $0.4938$ and $0.4969$.
The ends $0.4938$ and $0.4969$ round to $0.49$ and $0.50$. So the second decimal place is not settled yet. The two ends are still on opposite sides of $0.495$. We continue, and show 6 decimal places.
| New value | Value of $f$ | The root lies between |
|---|---|---|
| $x_8=\dfrac{x_6+x_7}{2}\approx 0.495313$ | $-0.001256\ (-\text{ve})$ | $x_6$ and $x_8$, that is, $0.493750$ and $0.495313$ |
| $x_9=\dfrac{x_6+x_8}{2}\approx 0.494531$ | $0.001963\ (+\text{ve})$ | $x_8$ and $x_9$, that is, $0.494531$ and $0.495313$ |
| $x_{10}=\dfrac{x_8+x_9}{2}\approx 0.494922$ | $0.000354\ (+\text{ve})$ | $x_8$ and $x_{10}$, that is, $0.494922$ and $0.495313$ |
| $x_{11}=\dfrac{x_8+x_{10}}{2}\approx 0.495117$ | $-0.000451\ (-\text{ve})$ | $x_{10}$ and $x_{11}$, that is, $0.494922$ and $0.495117$ |
| $x_{12}=\dfrac{x_{10}+x_{11}}{2}\approx 0.495020$ | $-0.000049\ (-\text{ve})$ | $x_{10}$ and $x_{12}$, that is, $0.494922$ and $0.495020$ |
| $x_{13}=\dfrac{x_{10}+x_{12}}{2}\approx 0.494971$ | $0.000152\ (+\text{ve})$ | $x_{12}$ and $x_{13}$, that is, $0.494971$ and $0.495020$ |
| $x_{14}=\dfrac{x_{12}+x_{13}}{2}\approx 0.494995$ | $0.000052\ (+\text{ve})$ | $x_{12}$ and $x_{14}$, that is, $0.494995$ and $0.495020$ |
| $x_{15}=\dfrac{x_{12}+x_{14}}{2}\approx 0.495007$ | $0.000001\ (+\text{ve})$ | $x_{12}$ and $x_{15}$, that is, $0.495007$ and $0.495020$ |
Both ends, $0.495007$ and $0.495020$, round to $0.50$. So the root is $0.50$ correct to two decimal places.
Example 2Find a root of equation $x^3-x-11=0$ correct to one decimal.
Solution:
Let $f(x)=x^3-x-11$.
Two starting values are not given, so we first look for $x_0$ and $x_1$ at which $f$ has opposite signs. Take $x_0=2$ and $x_1=3$.
$f(x_0)f(x_1)<0$, so the root lies between $2$ and $3$.
Keep full values in the calculator. The values shown are rounded.
$f(x_0)f(x_2)<0$, so the root lies between $x_0$ and $x_2$, that is, between $2$ and $2.5$.
$f(x_2)f(x_3)<0$, so the root lies between $x_2$ and $x_3$, that is, between $2.25$ and $2.5$.
$f(x_3)f(x_4)<0$, so the root lies between $x_3$ and $x_4$, that is, between $2.25$ and $2.375$.
$f(x_4)f(x_5)<0$, so the root lies between $x_4$ and $x_5$, that is, between $2.3125$ and $2.375$.
$f(x_4)f(x_6)<0$, so the root lies between $x_4$ and $x_6$, that is, between $2.3438$ and $2.375$.
$f(x_4)f(x_7)<0$, so the root lies between $x_4$ and $x_7$, that is, between $2.3594$ and $2.375$.
Both ends, $2.3594$ and $2.375$, round to $2.4$. So the root is $2.4$ correct to one decimal place.
Example 3Use the method of False position for finding the root correct to two decimal places between $0.4$ and $0.6$ of the equation $\sin(x)=5x-2$.
Solution:
Let $f(x)=\sin(x)-5x+2$; $x_0=0.4$, $x_1=0.6$.
Use radian mode in the calculator.
The root comes very close to $0.495$, so six decimal places are shown.
Since $f(x_0)f(x_1)<0$, the root lies between $x_0$ and $x_1$, that is, between $0.4$ and $0.6$.
Keep full values in the calculator. The values shown are rounded.
$f(x_1)f(x_2)<0$, so the root lies between $x_1$ and $x_2$, that is, between $0.494430$ and $0.6$.
$f(x_1)f(x_3)<0$, so the root lies between $x_1$ and $x_3$, that is, between $0.495004$ and $0.6$.
$x_3$ and $x_4$ both round to $0.50$.
Check: $f(0.495)\approx0.000032>0$ and $f(0.505)\approx-0.041193<0$. So the root lies between $0.495$ and $0.505$, and it rounds to $0.50$.
Example 4Find the root of $xe^x=3$ by Regula Falsi method correct to two decimal places by taking two initial approximations.
Solution:
Let $f(x)=xe^x-3$; $x_0=1$, $x_1=1.5$.
Since $f(x_0)f(x_1)<0$, the root lies between $x_0$ and $x_1$, that is, between $1$ and $1.5$.
Keep full values in the calculator. The values shown are rounded.
$f(x_1)f(x_2)<0$, so the root lies between $x_1$ and $x_2$, that is, between $1.0352$ and $1.5$.
$f(x_1)f(x_3)<0$, so the root lies between $x_1$ and $x_3$, that is, between $1.0456$ and $1.5$.
$x_3$ and $x_4$ both round to $1.05$.
Example 5Solve $x^3+2x^2+10x-20=0$ by Newton's Raphson method.
Solution:
Let $f(x)=x^3+2x^2+10x-20$. Then $f'(x)=3x^2+4x+10$.
So the root lies between $1$ and $2$. Let $x_0=1.2$ be the initial approximation, with $f(1.2)=-3.392<0$.
Keep full values in the calculator. The values shown are rounded.
Putting $n=0$ in (i):
Putting $n=1$ in (i):
Putting $n=2$ in (i):
Putting $n=3$ in (i):
$x_3$ and $x_4$ both round to $1.3688081$.
Example 6Solve $\sin(x)=1+x^3$ using Newton's Raphson method by taking initial approximation $x_0=-1.1$ up to 6 decimal places.
Solution:
Let $f(x)=\sin x-1-x^3$. Then $f'(x)=\cos x-3x^2$.
Here $x_0=-1.1$. Use radian mode in the calculator. Keep full values in the calculator. The values shown are rounded.
Putting $n=0$ in (i):
Putting $n=1$ in (i):
Putting $n=2$ in (i):
Putting $n=3$ in (i):
Putting $n=4$ in (i):
$x_4$ and $x_5$ both round to $-1.249052$.