04-BS-5 · December 2013
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
National Exams — December 2013 — 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 (Q1 20, Q2 20, Q3 20, Q4 20, Q5 20, Q6 20, Q7 20 marks, per the printed marking scheme); 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), numerics in general: interpolation, root-finding, Romberg integration (Ch. 19), numeric linear algebra: LU factorization (Ch. 20); Burden & Faires, Numerical Analysis (9th ed., Cengage) — Newton divided-difference interpolation, finite-difference derivative stencils, Newton–Raphson/bisection/fixed-point convergence theory, Romberg extrapolation, Doolittle LU factorization.
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 (A). $g(x)=x^2-2-\sin^2x$, $x_0=1.8$.
Find (A). $x_1,x_2,x_3$ by Newton's method, $x_{n+1}=x_n-g(x_n)/g'(x_n)$.
Approach (A). $g'(x)=2x-2\sin x\cos x=2x-\sin(2x)$; iterate three times from $x_0=1.8$, carrying eight digits.
Given (B)(i). $g(x)=\ln(1+x^2)-x^2+3x+4$ (the difference of the two given curves), bracket $[a,b]=[4.5,4.6]$ with $g(4.5)\gt0,\ g(4.6)\lt0$.
Find (B)(i). The bisection midpoint after 5 iterations.
Approach (B)(i). Halve the bracket, keeping the sub-interval whose endpoints still bracket the sign change, five times.
| Iter. | $[a,b]$ | midpoint $m$ | $g(m)$ |
|---|---|---|---|
| 1 | $[4.5,4.6]$ | 4.55 | $+0.024927$ |
| 2 | $[4.5,4.55]$ | 4.575 | $-0.117741$ |
| 3 | $[4.55,4.575]$ | 4.5625 | $-0.046244$ |
| 4 | $[4.55,4.5625]$ | 4.55625 | $-0.010618$ |
| 5 | $[4.55,4.55625]$ | 4.553125 | $+0.007165$ |
Given (B)(ii). $\varphi(x)=\dfrac{\ln(1+x^2)+3x+4}{x}$, start value $x_0=4.5531250$ (the last bisection midpoint from (i)).
Find (B)(ii). $x_1,x_2,x_3$ by fixed-point iteration $x_{n+1}=\varphi(x_n)$, carrying seven digits.
Approach (B)(ii). Iterate $\varphi$ three times from the bisection result; the sequence should settle near the same root found in (i).
| Quantity | Result |
|---|---|
| Newton root (A), after 3 iters | $x_3=1.7252089$ |
| Bisection root (B)(i), after 5 iters | $x\approx4.5531250$ |
| Fixed-point root (B)(ii), after 3 iters | $x_3\approx4.5544041$ |