Exercises — Solving nonlinear systems — Newton's method in n dimensions
This page is a graded ladder of problems for Newton's method in $n$ dimensions. Each problem states cleanly, then hides a full worked solution inside a collapsible callout so you can self-test. Reveal only after you have tried.
Prerequisites you may want open: Newton's method (1-D), Jacobian matrix, Taylor's theorem (multivariable), Gaussian elimination, LU decomposition.
Notation refresher (so nothing appears unearned)
Level 1 — Recognition
Exercise 1.1
Which of these is the correct -D Newton update? Pick and justify.
(a)
(b)
(c)
Recall Solution (1.1)
Answer: (b).
- (a) is nonsense: is a matrix, and you cannot "divide" a vector by a matrix. Division is replaced by solving a linear system.
- (c) has the wrong sign and multiplies by instead of by . We want the ramp to hit zero: .
- (b) is exactly Step 3–4 of the derivation: set the linear model to zero, solve for the step, walk there.
Exercise 1.2
For , write the Jacobian .
Recall Solution (1.2)
Row = derivatives of with respect to each variable, in order . Check the shape: equations, unknowns a matrix. Every entry is a function, re-evaluated each iteration.
Level 2 — Application
Exercise 2.1
System: . Start . Do one Newton step; give .
Recall Solution (2.1)
Jacobian: . Evaluate at :
- .
- , . Solve : Update: . Quick sanity: went from toward ; one component was already exactly satisfied and the step barely disturbed it.
Exercise 2.2
The linear system written as . Start . How many Newton steps to the exact root, and what is it?
Recall Solution (2.2)
Here , so constant — the linear model is exact, not an approximation. Therefore Newton converges in one step from anywhere.
- .
- Solve . .
- . Check: . ✓ Exact.
Level 3 — Analysis
Exercise 3.1 (geometric)
Solve (circle radius ) and (upward parabola). Start . Perform two Newton steps and report where you are heading.

Recall Solution (3.1)
Look at the figure: the circle and parabola cross in the first quadrant near the orange dot. Our start (blue) sits above the true crossing. Jacobian: . Step 1 — at :
- .
- , .
- .
- . Step 2 — at :
- — much smaller, good.
- , .
- Solve :
- . The exact root is (from , ). After two steps we already match to decimals — the error roughly squared.
Exercise 3.2 (why fast)
If the error after some step is and the method is quadratic with constant , estimate and .
Recall Solution (3.2)
Quadratic convergence means .
- .
- . The count of correct digits roughly doubles each step (). This is why Newton needs so few iterations once it is close — see Convergence order of iterative methods.
Level 4 — Synthesis
Exercise 4.1 (singular Jacobian)
For , at which start point does the first Newton step break, and why? Consider .
Recall Solution (4.1)
. At : The Jacobian is singular — its determinant is , so has no unique solution and Newton cannot take a step. Geometric reason: both rows have a zero in the -slot, so the linear model has no sensitivity to at that instant — both surfaces momentarily look flat in the -direction. The ramp is degenerate. Any point on the -axis () triggers this, since column of becomes . Cure: perturb the start off the -axis (e.g. ), or add damping / a small regularization. This is the -D echo of scalar Newton stalling where .
Exercise 4.2 (damped Newton)
Suppose at the full step gives but (it grew!). Using damping , describe how to pick and why halving works.
Recall Solution (4.2)
The full step () increased the residual, so the linear model was trusted too far. Backtracking line search: start with ; while , halve (). Why halving works: is a descent direction for (the linear model reduces the residual for small enough steps). So there is always some small that decreases ; shrinking geometrically is guaranteed to find it. As you approach where the residual is smaller, so eventually the test passes. Near the root you get back and full quadratic speed returns.
Level 5 — Mastery
Exercise 5.1 (three equations, one step)
Solve for one Newton step of starting at . The root is . Report .
Recall Solution (5.1)
Jacobian (row = ): At : every variable equals , so by symmetry each is equal:
- . Thus .
- . Problem! This is singular (, all rows identical). At the perfectly symmetric point the three surfaces present the same linear model — the step is not unique. This is a Mastery lesson: symmetry can create a singular Jacobian even when the root is simple. Cure — break symmetry. Start instead at :
- Solving by elimination:
- Rows : .
- Rows : .
- Row : .
- . The step is large (we started far), but the loop now proceeds; iterating drives toward . The mastery point: detect symmetry-induced singularity and perturb the start.
Exercise 5.2 (stopping test design)
You run Newton and observe but . Should you stop? What went wrong?
Recall Solution (5.2)
Do not stop. A tiny step with a large residual is the classic sign of a near-singular / ill-conditioned : the solve of produced a small not because we are near a root, but because barely moves the point in the needed direction. Correct stopping test requires BOTH: Here fails the first test — we are genuinely far from a root. Investigate the Jacobian (condition number), damp, or restart.
Recall Master checklist (reveal after finishing)
Build ::: stack all equation values into one vector; root = all zero. Build ::: row is ; entry ; re-evaluate each step. The update ::: solve , then . Never ::: form ; solve instead (cheaper, stabler). Stop when ::: both and are below tolerance. If ::: singular/ill-conditioned — perturb the start, damp, or regularize. Linear ::: converges in exactly one step ( constant).