NivaarExam PrepOfficial exam papers ↗

04-BS-5 · May 2015

Question 6 of 7: Root finding by bisection then Halley's iteration

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — May 2015 — 04-BS-5 Advanced Mathematics. Three-hour, closed-book exam (one double-sided 8.5"×11" aid sheet permitted; approved Casio/Sharp calculator allowed). Format: seven questions of equal value (20 marks each, with internal splits as marked); any five constitute a complete paper and only the first five appearing in the answer book are marked. All seven are solved below for completeness.

Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — power-series solutions of ODEs about an ordinary point (Ch. 5), Fourier series and the Fourier transform (Ch. 11), least-squares curve fitting and Cramer’s rule (Ch. 7, 19.7), Romberg integration, bisection and Halley’s (second-order Newton) iteration (Ch. 19), Cholesky factorization of a symmetric positive-definite matrix (Ch. 20.4).

Question 6: Root finding by bisection then Halley's iteration (a) 8 marks; (b) 12 marks

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. $f(x)=6^x-30x+10$; a root lies in $[2.0,3.0]$ since $f(2)=-14\lt0$ and $f(3)=136\gt0$.

Find. (a) bisect 3 times (5 sig. figs.); (b) apply the given second-order (Halley) iteration twice from (a)'s result (7 sig. figs.).

Approach. Standard bisection (halve the sign-changing bracket) followed by Halley's method, which uses $f,f',f''$ for cubic convergence.

  1. Bisection 1. Midpoint $x_1=(2.0+3.0)/2=2.5000$: $f(2.5)=6^{2.5}-75+10=+23.182\gt0\ \Rightarrow$ root in $[2.0,2.5]$.
  2. Bisection 2. $x_2=(2.0+2.5)/2=2.2500$: $f(2.25)=6^{2.25}-67.5+10=-1.1570\lt0\ \Rightarrow$ root in $[2.25,2.5]$.
  3. Bisection 3. $x_3=(2.25+2.5)/2=2.3750$: $f(2.375)=6^{2.375}-71.25+10=+9.2370\gt0\ \Rightarrow$ root in $[2.25,2.375]$. $$\boxed{x\approx2.3750\quad\text{(after 3 bisections; bracket }[2.25,2.375]\text{)}}$$
  4. Halley iteration 1 (part b), from $x_0=2.375$. $f(x_0)=9.23703$, $f'(x_0)=6^{x_0}\ln6-30=96.2958$, $f''(x_0)=6^{x_0}(\ln6)^2=226.2917$: $$x_1=2.375-\dfrac{9.23703}{96.2958-\dfrac{(9.23703)(226.2917)}{2(96.2958)}}=2.266892$$
  5. Halley iteration 2. $f(x_1)=0.067640$, $f'(x_1)=74.05535$, $f''(x_1)=186.44215$: $$\boxed{x_2=2.266892-\dfrac{0.067640}{74.05535-\dfrac{(0.067640)(186.44215)}{2(74.05535)}}=2.265977}$$ (the true root is $2.2659774\ldots$, in agreement with all 7 quoted digits.)
Final results — Question 6
StageApproximation
Bisection $x_1,x_2,x_3$$2.5000,\ 2.2500,\ 2.3750$
Halley iteration 1$2.266892$
Halley iteration 2$2.265977$