What we are solvingThe spillway height h satisfies a cubic equation
It has no simple whole number root
Start from a first guess of 3.0, and improve it step by step
Stop when the answer is steady to three decimal places
Chapter: Numerical methods
Topic: the Newton Raphson method
Concept and formulasf(h)=0Start from a guess on the curve
Draw the tangent to the curve at that point
Where the tangent cuts the axis is a better guess
hn+1=hn−f′(hn)f(hn)Repeat until two values agree
Working: setting upf(h)=h3−6h−20f′(h)=3h2−6h0=3.0f(3)=27−18−20=−11f′(3)=27−6=21h1=3−21−11=3.5238Working: repeatingf(3.5238)=2.6131,f′(3.5238)=31.2517h2=3.5238−0.0836=3.4402f(3.4402)=0.0733,f′(3.4402)=29.5048h3=3.4402−0.0025=3.4377f(3.4377)≈0 ⇒ h4=3.4377Two values agree
h=3.438 (3 decimal places)ConclusionThe values settle at 3.4377
Correct to three decimal places, this is 3.438
The required spillway height is 3.438 metres
Answer: h = 3.438 m
Tip: Keep four decimal places while you work, and round only at the end