Use the secant on a cubic
For \(F(x)=x^3-3\), use the two starts \(x_0=1\) and \(x_1=2\). Find the next secant iterate, compare it with one Newton update from 2, and evaluate both residuals. Does one comparison prove an asymptotic convergence order?
Worked solution
The secant slope is \((5-(-2))/(2-1)=7\), giving \(x_2=2-5/7=9/7\) and residual \(729/343-3\simeq-0.875\). Newton uses slope 12, giving \(19/12\simeq1.58333\) and residual \(6859/1728-3\simeq0.970\).
The methods take corrections from different local models. One residual comparison on early iterates does not establish their asymptotic rates, which concern successive errors near the root.
Explore the related calculation with adjustable inputs. Explore how initial values and the residual slope affect Newton and secant convergence on the quadratic reference problem; retain the stated residual when checking the present hand calculation.
Locate two coupled unknowns
Take \(F_1=x^2+y-3,\ F_2=x+y^2-3\). At \(x=y=1\), compute the Jacobian and full Newton update. Compare the residual after that update with the result of dropping both coupling terms from the Jacobian.
Worked solution
The residual is \((-1,-1)\) and \(J=\left(\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right)\). Symmetry gives \(s_x=s_y=1/3\), hence
Both new residuals equal \(1/9\).
Dropping the off-diagonal entries instead gives \(s_x=s_y=1/2\), landing at 1.5 in both coordinates with residual \(0.75\) in each row. The uncoupled derivative overestimates the correction because each unknown changes both balances.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Roundoff in a derivative test
Estimate the derivative of \(F(x)=x^2-2\) at 1.5 using a forward quotient with positive step \(s\). Derive the exact truncation error and suppose arithmetic introduces absolute numerator error at most \(10^{-14}\). Choose \(s\) to minimise the sum of the two error bounds.
Worked solution
Subtracting the function values and dividing by \(s\) gives \(3+s\), so the exact truncation error is \(s\). Numerator noise contributes at most \(10^{-14}/s\). The sum \(s+10^{-14}/s\) is minimised by \(s^2=10^{-14}\), giving \(s=10^{-7}\) and a bound \(2\times10^{-7}\).
A perturbation smaller than this model’s optimum amplifies cancellation. The numerical optimum depends on evaluation scale and arithmetic, so use several step sizes when testing an unfamiliar Jacobian.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Decide when a reused slope is still informative
Solve \(x^2=9\) from \(x_0=4\) using the initial slope for the first two steps. Compare the second result with refreshing the slope at the first iterate. For an arbitrary positive frozen slope \(B\), find the range giving a strict local contraction at the positive root.
Worked solution
The initial slope is 8. The first iterate is
Its residual is \(49/64\). Reuse gives
Refreshing the slope to \(25/4\) gives
At the root the error multiplier is \(1-6/B\). The strict inequality \(|1-6/B|<1\) requires \(B>3\). In particular \(B=8\) gives multiplier \(1/4\): factor reuse converges but does not retain Newton's local quadratic rate.
Explore the related calculation with adjustable inputs. Explore how initial values and the residual slope affect Newton and secant convergence on the quadratic reference problem; retain the stated residual when checking the present hand calculation.
Revisit chapter 4 · Quantify the cost of freezing a Jacobian.
Distinguish root accuracy from temperature sensitivity
For one implicit cooling step take \(T_n=2\) K, \(T_a=1\) K, \(h=1\) s and \(\beta=0.0015\) K⁻³s⁻¹. Differentiate the stage equation with respect to the input temperature, treating \(h,\beta,T_a\) as fixed. Use the tabulated root 1.97851479 K to predict the effect of a 0.001 K increase in \(T_n\). Compare its scale with an algebraic residual near \(10^{-16}\) K.
Work through the solution
Write \(F=x-T_n+h\beta(x^4-T_a^4)\). Implicit differentiation yields
The derivative at the tabulated root is approximately 0.956. A small 0.001 K input increase therefore shifts the physical stage root by about 0.000956 K. A tiny numerical residual verifies the equation for specified inputs, while the derivative measures uncertainty resulting from a change to those inputs.