Maths Applied1.2

All books

S02 — One rigid triangle

The book's first suspension model looks at the corner from in front of the car: two arms and an upright, each one rigid body, joined by pins. It has one degree of freedom, and solving it means intersecting two circles. Two circles meet twice, so the model has two answers at every wheel position, and only one of them is a car. This notebook solves it three ways (closed form, Newton, continuation), reads camber, camber gain and the instant centre off the pose, and then steps up to otkd's three-dimensional double-wishbone model to see what the front view costs.

Book pages: 1.2 One rigid triangle (Walkthrough) and Why two circles meet twice (Deeper) in books/maths-applied. Design: solvers/otkd/docs/problem-mapping.md §4, §6, §7 and §8.

The question. Fix the lower arm's angle. Where is the wheel, how much does its camber change over ±40 mm of travel, and how do you know the solver handed you the car rather than the other assembly of the same parts?

By the end you can:

  • count the front view's freedom and write its two rows as circles
  • derive the closed form, and say when the circles stop meeting
  • explain why Newton's basins for this system are half-planes bounded by the line BC
  • say why seeding each frame from the last keeps the physical branch, and what a fixed seed does
  • compute camber, camber gain and the instant centre from a pose, with the right sign
  • read otkd's damped Newton history on the 3D corner and measure its order

Assumes: M01 (order from successive errors), M02 (Newton, basins, multiple roots, damping), M08 §1 (the corner as a square system).

How to use it: predict before you reveal, commit before you check, and move the controls until the equation's behaviour stops surprising you.

Predict first. Try first: the wheel rises 40 mm from rest (bump). With xx outboard and camber positive when the top of the wheel leans outboard, the camber of this corner

Choose a prediction

Check answer (without scripting)

Answer: falls by about 1°: the top leans further in. The upper arm is the shorter one and slopes up outboard, so as both rise its ball joint swings inboard relative to the lower one: the top of the upright tips in.

Warm-up: remember

1. The two-leg corner has 21 unknowns and 21 constraint rows (18 hard, 3 norm), so Grübler's count gives mobility 0. What is its mobility?

Question 1
How sure?

2. A linear solve reports a relative residual of 10−1310^{-13}, and κ(A)=106\kappa(A) = 10^6. What can you say about the relative error?

Question 2
How sure?

3. Jacobi on the five-point Laplacian has spectral radius ρ=cos⁡(πh)\rho = \cos(\pi h). Halve hh: the iterations to a fixed tolerance grow by about

Question 3
How sure?

Show answers and explanations

1. 1, because one row depends on the others. The rank of the 21 constraint rows is 20, so mobility =n−rank=1= n - \text{rank} = 1 and one row is redundant. The count only bounds the mobility from below.

2. At most about 1e-7. κ⋅∥r∥/∥b∥=106×10−13=10−7\kappa \cdot \|r\| / \|b\| = 10^6 \times 10^{-13} = 10^{-7}. A small residual is evidence only after the conditioning has been multiplied in.

3. a factor of 4. Iterations ≈ln⁡(tol)/ln⁡ρ≈2ln⁡(1/tol)/(π2h2)\approx \ln(\text{tol})/\ln\rho \approx 2\ln(1/\text{tol})/(\pi^2 h^2), so halving hh multiplies them by four. §6 measures 4.0.

1. The front view: a four-bar with one freedom

Setting: the problem, its sets and its symbols

Problem. Given the design points pk∈R3p_k \in \mathbb{R}^3, k∈Kk \in K, and a lower-arm rotation θ∈(−π,π]\theta \in (-\pi, \pi], find the mobility MM of the planar linkage of the body set B\mathcal{B} joined by the pin set P\mathcal{P}, and the pose (C,D,W)∈(R2)3(C, D, W) \in (\mathbb{R}^2)^3 of the upright at θ\theta.

Symbol In Meaning
x, zx,\ z R\mathbb{R} front-view coordinates: xx lateral, positive outboard; zz up; m
KK set\text{set} otkd's point names: lcaf, lcar, ucaf, ucar, lbj, ubj, wc
pkp_k R3\mathbb{R}^3 design point kk from geometry.yaml, (x,y,z)(x, y, z) with yy forward; m
A, BA,\ B R2\mathbb{R}^2 lower and upper arm axes cut with the plane y=0y = 0; m
C, D, WC,\ D,\ W R2\mathbb{R}^2 lower ball joint, upper ball joint, wheel centre (unknowns once θ\theta is set); m
C0, D0, W0C_0,\ D_0,\ W_0 R2\mathbb{R}^2 their design positions (data); m
RA, RB, LR_A,\ R_B,\ L R>0\mathbb{R}_{>0} lengths of ACAC, BDBD and CDCD: lower arm, upper arm, upright; m
θ\theta (−π,π](-\pi, \pi] rotation of the lower arm about AA from design, anticlockwise; rad (slider in degrees)
B\mathcal{B} set\text{set} bodies: ground, lower arm, upper arm, upright; #B=4\#\mathcal{B} = 4
P\mathcal{P} set\text{set} pins at AA, BB, CC, DD; each removes ci=2c_i = 2 of a planar body's three freedoms
MM Z\mathbb{Z} mobility, 3(#B−1)−∑i∈Pci3(\#\mathcal{B} - 1) - \sum_{i \in \mathcal{P}} c_i
ss R\mathbb{R} wheel travel, the rise of WW from W0W_0; mm
How these symbols connect

Projecting the 3D design points pkp_k (k∈Kk \in K, in metres) onto the front-view plane (x,z)(x, z) gives the fixed chassis pivots A,BA, B (where each wishbone hinge axis meets y=0y = 0) and the rest positions C0,D0,W0C_0, D_0, W_0, which in turn fix the rigid link lengths RA,RB,LR_A, R_B, L. Counting the four planar bodies B\mathcal{B} and four pin joints P\mathcal{P} yields the mobility MM, confirming how many inputs are needed to pose the linkage. Specifying the lower-arm angle θ∈(−π,π]\theta \in (-\pi, \pi] (rad) then determines the unknown upright pose (C,D,W)(C, D, W) in metres and the resulting wheel travel ss in millimetres.

Symbol-by-symbol notes
$p\lt em>k$ versus $(A, B, C\lt /em>0, D\lt em>0, W\lt /em>0)$ — from 3D geometry to the front view

Each pk∈R3p_k \in \mathbb{R}^3 comes from geometry.yaml with xx outboard, yy forward and zz up. The ball joints and wheel centre drop yy to give C0,D0,W0∈R2C_0, D_0, W_0 \in \mathbb{R}^2, whereas each chassis pivot AA or BB is the intersection of the line through its front and rear pivots with the plane y=0y = 0.

$R\lt em>A, R\lt /em>B, L$ — the three invariant link lengths

Computed at design as ∥C0−A∥\lVert C_0 - A \rVert, ∥D0−B∥\lVert D_0 - B \rVert and ∥D0−C0∥\lVert D_0 - C_0 \rVert in metres, these three positive lengths remain fixed as the linkage moves. Because the upright triangle CDWCDW is rigid, once CC and DD are found, WW follows from its fixed coordinates relative to segment CDCD.

$\theta$ — input angle and unit mismatch with the slider

In the equations θ∈(−π,π]\theta \in (-\pi, \pi] is measured in radians, anticlockwise from the lower arm's design orientation about AA. The interactive slider displays degrees for readability and converts to radians before evaluating the pose.

$\mathcal{B}$, $\mathcal{P}$ and $M$ — planar Grübler count

Each of the #B−1\#\mathcal{B} - 1 moving planar bodies starts with three freedoms (two translations and one rotation), and each pin in P\mathcal{P} locks ci=2c_i = 2 relative translations. Thus M=3(#B−1)−∑i∈PciM = 3(\#\mathcal{B} - 1) - \sum_{i \in \mathcal{P}} c_i gives the linkage's planar mobility count.

$s$ — wheel travel in millimetres

s=1000 (Wz−W0,z)s = 1000\,(W_z - W_{0,z}) is the vertical rise of the wheel centre from rest, in millimetres, so positive ss is bump and negative ss is droop. Note the unit change from metres for all point coordinates to millimetres for ss.

Look at the corner from in front of the car, xx outboard and zz up. Each wishbone turns about the line through its two chassis pivots. That line runs nearly fore–aft, so the front view sees it as a point: cut each axis with the plane y=0y = 0 and the lower arm pivots about A=(0.300,0.155)A = (0.300, 0.155), the upper about B=(0.380,0.475)B = (0.380, 0.475) (metres, from otkd's geometry.yaml). The ball joints C=(0.72,0.15)C = (0.72, 0.15) and D=(0.68,0.52)D = (0.68, 0.52) and the wheel centre W=(0.76,0.32)W = (0.76, 0.32) are points of one rigid upright: the triangle of the title.

Four bodies (ground, two arms, upright), four pins, each pin removing two of a planar body's three freedoms:

3 (4−1)−4×2=1.3\,(4 - 1) - 4 \times 2 = 1 .

One freedom. Set the lower arm's angle θ\theta and the rest follows, up to a choice §2 makes explicit. Three lengths carry the whole model: RA=∣AC∣R_A = |AC| = 0.4200 m, RB=∣BD∣R_B = |BD| = 0.3034 m and the upright's L=∣CD∣L = |CD| = 0.3722 m.

0.30.4150.530.6450.760.0960.2080.320.4320.544x, outboard (m)z, up (m)

θ = 0.0°: lower ball joint (0.7200, 0.1500), upper ball joint (0.6800, 0.5200), wheel centre (0.7600, 0.3200), wheel travel +0.0 mm. The dotted line is the ground, one tyre radius below the wheel centre at rest. A turn of about ±5.4° covers the chapter's ±40 mm.

2. Two circles: a closed form, and two assemblies

Setting: the problem, its sets and its symbols

Problem. Given θ∈(−π,π]\theta \in (-\pi, \pi], hence C=C(θ)C = C(\theta), and the data BB, RBR_B, LL, find every D∈R2D \in \mathbb{R}^2 with ∥D−B∥2=RB2\lVert D - B \rVert^2 = R_B^2 and ∥D−C∥2=L2\lVert D - C \rVert^2 = L^2, and the set Θ\Theta of θ\theta for which one exists.

Symbol In Meaning
θ\theta (−π,π](-\pi, \pi] lower-arm rotation from design; rad (slider in degrees)
A, BA,\ B R2\mathbb{R}^2 the arms' pivots in the front view (data); m
RA, RB, LR_A,\ R_B,\ L R>0\mathbb{R}_{>0} lower arm, upper arm and upright lengths (data); m
α\alpha (−π,π](-\pi, \pi] direction of ACAC at design; rad
CC (−π,π]→R2(-\pi, \pi] \to \mathbb{R}^2 lower ball joint, C(θ)=A+RA(cos⁡(α+θ),sin⁡(α+θ))C(\theta) = A + R_A(\cos(\alpha + \theta), \sin(\alpha + \theta)); m
DD R2\mathbb{R}^2 upper ball joint: the unknown; m
D0D_0 R2\mathbb{R}^2 the design upper ball joint, the assembly the car is built on; m
dd R≥0\mathbb{R}_{\ge 0} distance from BB to CC; m
u, nu,\ n S1S^1 unit vector from BB towards CC, and uu turned anticlockwise by a right angle
a, ha,\ h R\mathbb{R} coordinates of DD in the frame (B;u,n)(B; u, n): D=B+a u+h nD = B + a\,u + h\,n; m
Θ\Theta ⊆(−π,π]\subseteq (-\pi, \pi] the rotations at which the mechanism assembles
How these symbols connect

Given the fixed pivots A,BA, B, lengths RA,RB,LR_A, R_B, L and design angle α\alpha, choosing θ∈(−π,π]\theta \in (-\pi, \pi] places the lower ball joint directly at C(θ)C(\theta) on the circle of radius RAR_A about AA. That fixes the centre-to-centre distance d=∥C(θ)−B∥d = \lVert C(\theta) - B \rVert and defines the orthonormal frame (B;u,n)(B; u, n) aligned with the segment BCBC, in which any candidate upper ball joint is written as D=B+a u+h nD = B + a\,u + h\,n. Substituting this form into the two circle equations ∥D−B∥2=RB2\lVert D - B \rVert^2 = R_B^2 and ∥D−C∥2=L2\lVert D - C \rVert^2 = L^2 determines the coordinates (a,h)(a, h), identifies the feasible drive set Θ\Theta where real solutions exist, and uses D0D_0 to distinguish the physical car's assembly.

Symbol-by-symbol notes
$\alpha$ and $C(\theta)$ — explicit position of the lower ball joint

α=atan2⁡(C0,z−Az, C0,x−Ax)\alpha = \operatorname{atan2}(C_{0,z} - A_z,\ C_{0,x} - A_x) is the fixed angle of AC0AC_0 at design (rad), so rotating the lower arm by θ\theta puts C(θ)=A+RA(cos⁡(α+θ),sin⁡(α+θ))C(\theta) = A + R_A(\cos(\alpha + \theta), \sin(\alpha + \theta)) without any equation-solving. Once θ\theta is chosen, CC acts as known data for finding DD.

$d$ and $(u, n)$ — the moving local frame on $BC$

d=∥C−B∥≥0d = \lVert C - B \rVert \ge 0 (m) is the distance between the two circle centres, u=(C−B)/d∈S1u = (C - B)/d \in S^1 points along BCBC, and n=(−uz,ux)∈S1n = (-u_z, u_x) \in S^1 is uu rotated 90°90° anticlockwise. Both uu and nn are dimensionless unit vectors and rotate as C(θ)C(\theta) moves.

$a$ and $h$ — local coordinates of $D$

Writing D=B+a u+h nD = B + a\,u + h\,n resolves the unknown D∈R2D \in \mathbb{R}^2 into a component aa (m) along the line BCBC from BB and a signed perpendicular offset hh (m) along nn. Both aa and hh are signed real numbers, not necessarily positive.

$D$ versus $D_0$ — unknown solution versus design reference

D∈R2D \in \mathbb{R}^2 is the unknown upper ball joint at a general drive θ\theta, whereas D0D_0 is the known design position at θ=0\theta = 0. Comparing candidate solutions against D0D_0 identifies which assembly matches how the car is bolted together.

$\Theta \subseteq (-\pi, \pi]$ — feasible drive set

Θ\Theta collects the angles θ\theta for which the two circles intersect so that a real DD exists. Outside Θ\Theta, the rigid links cannot close at that value of θ\theta.

Fix θ\theta. The lower ball joint is then on a known circle about AA, so CC is known. The upper ball joint is RBR_B from BB (the upper arm is rigid) and LL from CC (the upright is rigid):

∣D−B∣2=RB2,∣D−C∣2=L2.|D - B|^2 = R_B^2, \qquad |D - C|^2 = L^2 .

Two equations, two unknowns, two circles.

Predict first. With θ\theta fixed, CC is known, and DD must satisfy ∣D−B∣=RB|D - B| = R_B and ∣D−C∣=L|D - C| = L. At rest the car's answer is D=(0.68,0.52)D = (0.68, 0.52). The other solution of the same two equations is

Choose a prediction

Check answer (without scripting)

Answer: the mirror image of D in the line BC. Each circle is symmetric about the line through its centre, so both are symmetric about BCBC, and so is the pair of points where they meet.

Reveal result (lock in your prediction above first)

The closed form. Put the origin at BB, let uu be the unit vector towards CC, nn the unit normal to it, and d=∣C−B∣d = |C - B|. Write D=B+a u+h nD = B + a\,u + h\,n. The two equations become a2+h2=RB2a^2 + h^2 = R_B^2 and (a−d)2+h2=L2(a - d)^2 + h^2 = L^2. Subtracting them removes h2h^2 and leaves a linear equation for aa:

a=RB2−L2+d22d,h=±RB2−a2.a = \frac{R_B^2 - L^2 + d^2}{2d}, \qquad h = \pm\sqrt{R_B^2 - a^2} .

The ±\pm is the two assemblies, mirror images in BCBC. At rest they are (0.680, 0.520) and (0.349, 0.173): the second has the upright folded down and inboard, almost onto the lower arm. Both satisfy the rows exactly; the book's car is built on the first (design DD = (0.68, 0.52)).

hh is real only while ∣RB−L∣≤d≤RB+L|R_B - L| \le d \le R_B + L. For this corner dd reaches RB+LR_B + L in droop at θ\theta = -51.48°: the upper arm and the upright fall into line (a toggle), the two assemblies merge, and beyond it the circles miss. In bump they keep meeting until θ\theta = 204.8°, far past any wheel travel. Move θ\theta past the droop limit.

0.07660.3310.5840.8381.09-0.282-0.002040.2780.5580.838design assemblyother assemblyseriesx, outboard (m)z, up (m)

dd = 0.4703 m, inside [0.0688, 0.6755] m. Design assembly DD = (0.6800, 0.5200); other (0.3486, 0.1733).

Figure 1
source: `open_textbook.otkd.analysis.analytic._solve` — `solvers/otkd/src/open_textbook/otkd/analysis/analytic.py:190`

otkd's closed-form cross-check meets the same kind of equation in 3D, Acos⁡φ+Bsin⁡φ=CA\cos\varphi + B\sin\varphi = C: two candidates, and it keeps the one nearer the previous angle (continuation, §4). Compare its clip of ratio with the condition ∣RB−L∣≤d≤RB+L|R_B - L| \le d \le R_B + L above.

def _solve(circle, target: np.ndarray, length: float, near: float) -> float:
    centre, a, b = circle
    delta = centre - target
    aa = 2.0 * float(delta @ a)
    bb = 2.0 * float(delta @ b)
    cc = length**2 - float(delta @ delta) - float(a @ a)
    radius = float(np.hypot(aa, bb))
    if radius == 0.0:
        raise ValueError("degenerate circle: the arm has no radius")
    ratio = max(-1.0, min(1.0, cc / radius))
    base = float(np.arctan2(bb, aa))
    candidates = [base + np.arccos(ratio), base - np.arccos(ratio)]
    return min(candidates, key=lambda angle: abs(_wrap(angle - near)))
When the closed form breaks
  • Assumes: the two circles meet: ∣RB−L∣≤d≤RB+L|R_B - L| \le d \le R_B + L
  • When it fails: outside the window across2<0\text{across}^2 \lt 0 and there is no assembly; near its edge across\text{across} is a square root of a small number, so a tiny change in dd moves the answer a lot
  • Check: compute the margin RB+L−dR_B + L - d at every frame and stop, naming the frame, when it goes negative

3. Newton on the same two equations: where do the basins go?

Setting: the problem, its sets and its symbols

Problem. Given C=C(0)C = C(0) and the data BB, RBR_B, LL, and a start D(0)∈R2D^{(0)} \in \mathbb{R}^2, find the limit of the Newton iterates D(k+1)=D(k)−J(D(k))−1r(D(k))D^{(k+1)} = D^{(k)} - J(D^{(k)})^{-1} r(D^{(k)}), k∈Nk \in \mathbb{N}, and the basin A0⊆R2\mathcal{A}_0 \subseteq \mathbb{R}^2 of starts whose iterates converge to D0D_0.

Symbol In Meaning
B, CB,\ C R2\mathbb{R}^2 upper arm pivot, and the lower ball joint at rest (data); m
RB, LR_B,\ L R>0\mathbb{R}_{>0} upper arm and upright lengths (data); m
rr R2→R2\mathbb{R}^2 \to \mathbb{R}^2 the rows, (∥D−B∥2−RB2, ∥D−C∥2−L2)(\lVert D - B \rVert^2 - R_B^2,\ \lVert D - C \rVert^2 - L^2); m²
f1, f2f_1,\ f_2 R2→R\mathbb{R}^2 \to \mathbb{R} the two components of rr; m²
JJ R2→R2×2\mathbb{R}^2 \to \mathbb{R}^{2 \times 2} Jacobian of rr; m
Δ\Delta R2\mathbb{R}^2 Newton step, the solution of J Δ=−rJ\,\Delta = -r; m
D(k)D^{(k)} R2\mathbb{R}^2 iterate kk; D(0)D^{(0)} is the start (two sliders); m
D0, D1D_0,\ D_1 R2\mathbb{R}^2 the two roots: the design assembly and the other one; m
A0, A1\mathcal{A}_0,\ \mathcal{A}_1 ⊆R2\subseteq \mathbb{R}^2 basins: starts whose iterates reach D0D_0, D1D_1
a, ha,\ h R\mathbb{R} coordinates of DD in the frame (B;u,n)(B; u, n) of §2, uu along BCBC; a∗a_*, h∗h_* at a root; m
θt\theta_t (−π,0)(-\pi, 0) the droop toggle, where d=RB+Ld = R_B + L (§2); rad
eke_k R≥0\mathbb{R}_{\ge 0} error ∥D(k)−D∗∥\lVert D^{(k)} - D^* \rVert against the root reached; m
How these symbols connect

With C=C(0)C = C(0) and the link lengths RB,LR_B, L fixed, the two squared-distance constraints form the residual map r(D)=(f1(D),f2(D))∈R2r(D) = (f_1(D), f_2(D)) \in \mathbb{R}^2 (in m2\text{m}^2) with 2×22 \times 2 Jacobian J(D)J(D) (in m). From a chosen start D(0)D^{(0)}, each Newton step solves J(D(k)) Δ=−r(D(k))J(D^{(k)})\,\Delta = -r(D^{(k)}) for Δ∈R2\Delta \in \mathbb{R}^2 and updates D(k+1)=D(k)+ΔD^{(k+1)} = D^{(k)} + \Delta, tracking convergence via the error ek=∥D(k)−D∗∥e_k = \lVert D^{(k)} - D^* \rVert and the local (a,h)(a, h) coordinates of §2. Partitioning R2\mathbb{R}^2 by which root D0D_0 or D1D_1 the sequence reaches defines the basins A0\mathcal{A}_0 and A1\mathcal{A}_1; at the droop toggle θt\theta_t, those two roots coincide.

Symbol-by-symbol notes
$r = (f\lt em>1, f\lt /em>2)$ and $J$ — squared-length residual and its units

Both components f1(D)=∥D−B∥2−RB2f_1(D) = \lVert D - B \rVert^2 - R_B^2 and f2(D)=∥D−C∥2−L2f_2(D) = \lVert D - C \rVert^2 - L^2 have units of m2\text{m}^2 rather than metres, because squaring avoids square roots and keeps rr polynomial. Differentiating with respect to DD (m) gives J(D)∈R2×2J(D) \in \mathbb{R}^{2 \times 2} in metres, so the step Δ=−J−1r\Delta = -J^{-1} r returns to metres.

$D^{(k)}$ versus $D\lt em>0, D\lt /em>1$ — iterates versus roots

Parenthesised superscripts D(k)D^{(k)} index Newton's iterate sequence starting at D(0)D^{(0)}, whereas subscripts D0D_0 and D1D_1 name the two exact roots (design assembly and other assembly) at rest. Do not confuse the start D(0)D^{(0)} with the design root D0D_0.

$\mathcal{A}\lt em>0$ and $\mathcal{A}\lt /em>1$ — basins of attraction

A0⊆R2\mathcal{A}_0 \subseteq \mathbb{R}^2 is the set of starts D(0)D^{(0)} whose Newton iterates converge to D0D_0, and A1\mathcal{A}_1 is the set converging to D1D_1. Starts that do not converge to either root belong to neither basin.

$(a, h)$ and $(a\lt em>*, h\lt /em>*)$ — coordinates in the $BC$ frame

As in §2, any iterate D(k)D^{(k)} can be written as B+a u+h nB + a\,u + h\,n along and perpendicular to BCBC, with (a∗,h∗)(a_*, h_*) denoting the coordinates of a root. Expressing Newton's update in (a,h)(a, h) makes its behaviour transparent.

$\theta\lt em>t$ and $e\lt /em>k$ — toggle angle and iterate error

θt∈(−π,0)\theta_t \in (-\pi, 0) is the droop angle from §2 where d=RB+Ld = R_B + L and the two assemblies merge into one double root. ek=∥D(k)−D∗∥≥0e_k = \lVert D^{(k)} - D^* \rVert \ge 0 (m) measures distance to the converged root D∗D^* at step kk, used to compare the convergence rate at rest against the rate at θt\theta_t.

otkd does not look for closed forms; it applies Newton (M02 §2) to whatever rows a model has. Here the rows and their Jacobian are

r(D)=[∣D−B∣2−RB2∣D−C∣2−L2],J=2[(D−B)T(D−C)T],r(D) = \begin{bmatrix} |D - B|^2 - R_B^2 \\ |D - C|^2 - L^2 \end{bmatrix}, \qquad J = 2 \begin{bmatrix} (D - B)^{\mathsf T} \\ (D - C)^{\mathsf T} \end{bmatrix},

and each step solves J Δ=−rJ\,\Delta = -r. There are two roots, so every start belongs to the basin of one of them, or of neither (M02 §3).

Predict first. Newton starts from every point of the plane around the linkage at rest. The starts that converge to the design assembly form

Choose a prediction

Check answer (without scripting)

Answer: a half-plane: every start on the design side of the line BC. After one step Newton sits on the chord line, and the coordinate across BCBC never changes sign. The boundary is BCBC itself, where JJ is singular.

Reveal result (lock in your prediction above first)
00.30.60.91.2-0.372-0.0360.30.6360.972otherdesignneitherseriesstart x (m)start z (m)

The dashed line is BCBC. Of the 3720 grid starts off it, 0 converge to the root on the other side. From (0.20, 0.20) Newton reaches the other assembly; the residual at the end is 2.8e-17, and at either root it is at round-off, so the residual cannot say which one you have.

Why a half-plane. f1−f2=2(C−B)⋅D+constf_1 - f_2 = 2(C - B)\cdot D + \text{const} is linear in DD, and Newton is exact on a linear equation, so after one step f1=f2f_1 = f_2: DD sits on the chord line a=a∗a = a_* of §2. Its signed distance hh from BCBC then updates as

hk+1=hk2+h∗2+Δak22hk,h_{k+1} = \frac{h_k^2 + h_*^2 + \Delta a_k^2}{2 h_k},

whose numerator is positive: hh keeps its sign, and Newton never crosses BCBC. With Δa=0\Delta a = 0 from the second step on, this is Heron's iteration for h2=h∗2h^2 = h_*^2, M02 §2's x2=2x^2 = 2 example in disguise. The signed distance along this path: -0.323, -0.275, -0.242, -0.240, -0.240, -0.240 m.

At the toggle. At θ\theta = -51.48° the two roots are one, the point where the circles touch, and JJ is singular there because D−BD - B and D−CD - C are parallel. Started 36 mm away, Newton's error ratios ek+1/eke_{k+1}/e_k are 0.663, 0.500, 0.500, 0.500, 0.500, 0.500, 0.500, 0.500: linear, tending to 1/2, the double-root rate of M02 §4. At rest, from the same offset, the errors are 3.6e-02, 2.4e-03, 1.2e-05, 2.8e-10, 1.1e-16: quadratic. Near the toggle the two assemblies are close and the problem is ill-conditioned, whichever method solves it (LL = 0.3722 m, RBR_B = 0.3034 m, so the upright and upper arm are then one straight bar of 0.6755 m).

When Newton on the two circles breaks
  • Assumes: the start is off the line BCBC and the two roots are distinct
  • When it fails: on BCBC the Jacobian is singular; at the toggle the roots merge and the convergence becomes linear with ratio 1/2
  • Check: watch det⁡J=4 (D−B)×(D−C)\det J = 4\,(D - B) \times (D - C); a ratio ek+1/eke_{k+1}/e_k settling near 0.5 means a double root

4. Following the branch along a sweep

Setting: the problem, its sets and its symbols

Problem. Given the travel grid sjs_j, j∈Jj \in \mathcal{J}, the rotations θj=θ(sj)\theta_j = \theta(s_j) and a seed rule σj\sigma_j, find DjD_j, the Newton limit of §3 for the rows at θj\theta_j started from σj\sigma_j, for (i) σj=Dj−1\sigma_j = D_{j-1} with σ0=D0(θ0)\sigma_0 = D_0(\theta_0), and (ii) σj=S\sigma_j = S fixed; and the frames jj at which DjD_j is not the design root D0(θj)D_0(\theta_j).

Symbol In Meaning
J\mathcal{J} set\text{set} frame indices {0,1,…,80}\{0, 1, \dots, 80\}
sjs_j [−40,40][-40, 40] wheel travel at frame jj, 1 mm apart; mm
θ\theta [−40,40]→(−π,π][-40, 40] \to (-\pi, \pi] the rotation giving travel ss (Brent on a bracket); rad
D0(θ), D1(θ)D_0(\theta),\ D_1(\theta) R2\mathbb{R}^2 design and other root at rotation θ\theta; m
σj\sigma_j R2\mathbb{R}^2 the seed (start) of frame jj; m
SS R2\mathbb{R}^2 the fixed seed (xW,zs)(x_W, z_s), xWx_W the design wheel centre's xx; m
zsz_s [−0.05,0.25][-0.05, 0.25] the fixed seed's height (slider); m
DjD_j R2\mathbb{R}^2 the answer at frame jj; m
h0h_0 R≥0\mathbb{R}_{\ge 0} distance of D0D_0 from the line BCBC at rest; m
δ\delta R>0\mathbb{R}_{>0} otkd's branch-change threshold on a body's position, 0.05 m (problem-mapping §7)
How these symbols connect

The travel grid sjs_j (j∈Jj \in \mathcal{J}, in mm) is mapped by θ(s)\theta(s) into a sequence of lower-arm angles θj\theta_j (rad), each defining a two-circle problem with roots D0(θj)D_0(\theta_j) and D1(θj)D_1(\theta_j). At every frame jj, Newton runs from a seed σj∈R2\sigma_j \in \mathbb{R}^2 — either the previous answer Dj−1D_{j-1} (continuation) or the fixed guess S=(xW,zs)S = (x_W, z_s) — and converges to Dj∈{D0(θj),D1(θj)}D_j \in \{D_0(\theta_j), D_1(\theta_j)\}. Comparing successive poses against otkd's jump threshold δ=0.05 m\delta = 0.05\text{ m} and comparing step motion against the rest clearance h0h_0 from the line BCBC reveals whether the sweep stayed on D0(θj)D_0(\theta_j) or jumped to D1(θj)D_1(\theta_j).

Symbol-by-symbol notes
$s_j$ and $\theta(s)$ — inverting wheel travel to lower-arm angle

The 81 grid points sj∈[−40,40]s_j \in [-40, 40] are spaced 1 mm apart in wheel travel, not in angle. For each sjs_j, the map θ(s)\theta(s) uses Brent's bracketing root finder to solve for the rotation θj\theta_j (rad) that produces that exact vertical rise of WW.

$D\lt em>0(\theta), D\lt /em>1(\theta)$ versus $D_j$ — true branches versus computed frame

D0(θ)D_0(\theta) and D1(θ)D_1(\theta) denote the exact design and folded roots as functions of θ\theta, whereas DjD_j is the root Newton actually lands on at frame jj. A frame has changed branch whenever Dj=D1(θj)D_j = D_1(\theta_j) instead of D0(θj)D_0(\theta_j).

$\sigma\lt em>j$, $S$ and $z\lt /em>s$ — continuation seed versus fixed seed

σj∈R2\sigma_j \in \mathbb{R}^2 is the starting guess handed to Newton at frame jj: under continuation σj=Dj−1\sigma_j = D_{j-1} (with σ0=D0(θ0)\sigma_0 = D_0(\theta_0)), while the fixed-seed experiment sets σj=S=(xW,zs)\sigma_j = S = (x_W, z_s) for every frame, varying only the height zs∈[−0.05,0.25]z_s \in [-0.05, 0.25] m via the slider.

$h_0$ — rest clearance from the basin boundary

h0≥0h_0 \ge 0 (m) is the perpendicular distance of D0(0)D_0(0) from the line BCBC at rest. As long as one continuation step moves BCBC by much less than this clearance, Dj−1D_{j-1} remains on the design side of the next frame's BCBC.

$\delta$ — branch-jump detection threshold

δ=0.05 m\delta = 0.05\text{ m} is otkd's guard threshold on how far a body's position may move from its seed in one frame; a jump larger than δ\delta flags a likely branch switch even though the residual is at round-off.

A camber curve is a sweep: θ\theta steps through the travel and every frame is solved. §3 says which root a frame lands on: the one on the same side of that frame's line BCBC as the seed. Seed each frame from the previous answer, and the seed is on the right side unless BCBC sweeps past it within one step. At rest DD is 0.240 m from BCBC, so that needs a step far larger than any sweep takes: continuity selects the branch, with no rule about which side is the car.

Seed every frame from one fixed guess instead (a constant x0 passed to a solver in a loop), and each frame lands on whichever side of its own BCBC the guess happens to be. The line BCBC turns as CC moves, so somewhere in the sweep it may cross the guess. Move the fixed seed's height.

-40-20020400.3260.4220.5170.6130.709previous framefixed guesstravel (mm)upper ball joint x (m)

Seed (0.76, 0.11): 42 of 81 frames land on the other assembly, every one at residual round-off. otkd (problem-mapping §7) flags a frame whose pose moved more than 0.05 m from its seed, which under continuation is the previous frame. The same test on the fixed-seed curve flags 1 frame(s): the jumps. Continuation stays on the design branch throughout.

When continuation breaks
  • Assumes: each frame moves the root less than its distance from the line BCBC, the across\text{across} of the chord construction
  • When it fails: near a toggle across→0\text{across} \to 0, so even a small step can cross into the other basin; a fixed seed crosses whenever BCBC sweeps past it
  • Check: flag any frame whose answer moved far from its seed (otkd: 0.25 rad or 0.05 m)

5. Camber, camber gain and the instant centre

Setting: the problem, its sets and its symbols

Problem. Given the design-branch pose (C,D,W)(θ(s))(C, D, W)(\theta(s)) for s∈[−40,40]s \in [-40, 40] mm, find the camber γ(s)\gamma(s), the camber gain γ′(s)\gamma'(s), the instant centre I(s)I(s), the roll-centre height and the track change.

Symbol In Meaning
ss [−40,40][-40, 40] wheel travel; mm
θ(s)\theta(s) (−π,π](-\pi, \pi] lower-arm rotation giving travel ss; rad
A, BA,\ B R2\mathbb{R}^2 arm pivots (data); m
C, D, WC,\ D,\ W R2\mathbb{R}^2 lower and upper ball joint, wheel centre on the design branch; m
ϕ, ϕ0\phi,\ \phi_0 (−π,π](-\pi, \pi] direction of CDCD, anticlockwise from +x+x, now and at design; rad
γ\gamma R\mathbb{R} camber, positive when the top of the wheel leans outboard; degrees
γ0\gamma_0 R\mathbb{R} design camber, −1.0°-1.0° as the book declares (otkd's geometry: 0); degrees
γ′\gamma' R\mathbb{R} camber gain dγ/dsd\gamma/ds; rad/m or °/mm
II R2\mathbb{R}^2 instant centre of the upright relative to the body; m
ω\omega R\mathbb{R} the upright's angular rate about II, per unit of any time-like parameter
ℓ\ell R\mathbb{R} horizontal lever Wx−IxW_x - I_x; m
RtR_t R>0\mathbb{R}_{>0} tyre radius, tyre-radius in geometry.yaml; m
PP R2\mathbb{R}^2 contact patch, W−(0,Rt)W - (0, R_t); m
zgz_g R\mathbb{R} ground height, W0,z−RtW_{0,z} - R_t; m
zrcz_{rc} R\mathbb{R} roll centre: where the line PIPI meets x=0x = 0, quoted above the ground; mm
Δt\Delta t R\mathbb{R} track change, both sides, 2(Px−W0,x)2(P_x - W_{0,x}); mm
How these symbols connect

At any wheel travel s∈[−40,40] mms \in [-40, 40]\text{ mm}, the design-branch pose (C,D,W)(θ(s))(C, D, W)(\theta(s)) fixes the upright's orientation ϕ\phi relative to ϕ0\phi_0, giving camber γ(s)=γ0−(ϕ−ϕ0)\gamma(s) = \gamma_0 - (\phi - \phi_0) in degrees. Intersecting the arm lines ACAC and BDBD gives the upright's instant centre I(s)∈R2I(s) \in \mathbb{R}^2, whose horizontal lever ℓ=Wx−Ix\ell = W_x - I_x (m) links the upright's angular rate ω\omega to the wheel's vertical rise and fixes the camber gain γ′(s)=−1/ℓ\gamma'(s) = -1/\ell (rad/m, convertible to °/mm). Dropping one tyre radius RtR_t below WW gives the contact patch PP and ground height zgz_g, from which the line PIPI yields the roll-centre height zrcz_{rc} above ground and the lateral motion of PP yields the total track change Δt\Delta t (both in mm).

Symbol-by-symbol notes
$\phi, \phi\lt em>0$ and $\gamma, \gamma\lt /em>0$ — upright angle versus camber sign

ϕ∈(−π,π]\phi \in (-\pi, \pi] (rad) is the direction of segment CDCD measured anticlockwise from +x+x, with ϕ0\phi_0 its design value. Camber γ\gamma (degrees) is positive when the top of the wheel leans outboard (+x+x), so an anticlockwise turn ϕ−ϕ0>0\phi - \phi_0 > 0 tips the top inboard and enters with a minus sign: γ=γ0−(ϕ−ϕ0)\gamma = \gamma_0 - (\phi - \phi_0).

$\gamma_0$ — design camber offset (book versus otkd)

The book declares a static camber γ0=−1.0°\gamma_0 = -1.0° (top leaning in at rest), whereas otkd's illustrative geometry starts at 0°0°. Because γ0\gamma_0 is an additive constant, it shifts the camber curve vertically without changing camber change or camber gain γ′\gamma'.

$I$, $\omega$ and $\ell$ — instant centre and horizontal lever

I∈R2I \in \mathbb{R}^2 (m) is the intersection of the lines ACAC and BDBD, where the upright has momentarily zero velocity; ω\omega is its instantaneous angular rate about II with respect to any smooth parameter. The signed horizontal lever ℓ=Wx−Ix\ell = W_x - I_x (m) links vertical wheel velocity ω ℓ\omega\,\ell to upright rotation ω\omega, giving γ′=dγ/ds=−1/ℓ\gamma' = d\gamma/ds = -1/\ell in rad/m (multiply by 180/(1000π)180/(1000\pi) for °/mm).

$R\lt em>t$, $P$ and $z\lt /em>g$ — contact patch and ground reference

With tyre radius Rt>0R_t > 0 (m) from geometry.yaml, the contact patch is placed vertically below the wheel centre at P=W−(0,Rt)P = W - (0, R_t), and the fixed ground plane sits at zg=W0,z−Rtz_g = W_{0,z} - R_t.

$z_{rc}$ — roll-centre height above ground

The roll centre is where the line through PP and II meets the car's centreline x=0x = 0. Here zrcz_{rc} is quoted in millimetres measured above the ground height zgz_g, not above z=0z = 0.

$\Delta t$ — total track change (both sides)

For a symmetric axle, shifting one contact patch laterally by Px−W0,xP_x - W_{0,x} moves both tyres by twice that amount, so Δt=2(Px−W0,x)\Delta t = 2(P_x - W_{0,x}), converted from metres to millimetres.

Camber from the pose. The wheel plane is fixed in the upright, so the wheel turns exactly as the upright does. Let ϕ\phi be the direction of CDCD, measured anticlockwise from +x+x (so xx outboard, zz up). Camber γ\gamma is positive when the top of the wheel leans outboard: otkd's convention (analysis/outputs.py, camber = asin(−n_z) from the axle vector), and the book's, whose design value γ0=−1.0°\gamma_0 = -1.0° is top-in. An anticlockwise turn carries the top of the upright towards −x-x, inboard, so

γ=γ0−(ϕ−ϕ0).\gamma = \gamma_0 - (\phi - \phi_0).

The instant centre. The lower ball joint moves perpendicular to ACAC, the upper one perpendicular to BDBD. A point of the upright with zero velocity must lie on both lines, so the upright is momentarily turning about their intersection II (Kennedy's theorem for the four-bar). If it turns at rate ω\omega, the wheel centre rises at ω ℓ\omega\,\ell with ℓ=Wx−Ix\ell = W_x - I_x the horizontal lever. Per metre ss of wheel travel, then,

dϕds=1ℓ,dγds=−1ℓ rad/m.\frac{d\phi}{ds} = \frac{1}{\ell}, \qquad \frac{d\gamma}{ds} = -\frac{1}{\ell}\ \text{rad/m}.

That is the camber gain, and the reason a far instant centre means a small one. The roll centre is where the line from the contact patch through II crosses the centreline x=0x = 0.

Reveal result (lock in your prediction above first)
-40-2002040-2.2-1.65-1.11-0.56-0.0143travel (mm)camber γ (°)
travel (mm) arm turn (°) camber γ (°) instant centre roll centre (mm) track, both sides (mm)
-40 -5.4 -0.13 2.21 m inboard, +0.30 m +47 +0.5
-20 -2.7 -0.54 1.88 m inboard, +0.16 m +33 +1.3
0 +0.0 -1.00 1.60 m inboard, +0.06 m +19 +0.0
20 +2.7 -1.51 1.36 m inboard, -0.02 m +5 -3.5
40 +5.4 -2.08 1.15 m inboard, -0.08 m -9 -9.2

The front view with the book's γ0=−1.0°\gamma_0 = -1.0°. Camber moves 1.95° over the 80 mm, an average of 0.024° per mm; the 40 mm of bump alone is worth 1.08°, a little more than half, because the curve bends. At rest the instant centre is 2.36 m from the hub. Those are the book's §1.2 numbers; the instant-centre and roll-centre columns match its table, and the track column its "narrows by 9.2 mm in bump, widens a little in droop". The camber column is the book's too, digit for digit: camber falls in bump, as otkd's does in §6.

at ss = +0 mm value
camber γ\gamma -1.000°
instant centre II (-1.602, 0.178) m, +0.058 m above the ground
lever ℓ=Wx−Ix\ell = W_x - I_x 2.3624 m
gain, central difference (hh = 0.5 mm, M01 §3) -0.024254 °/mm
gain, −1/ℓ-1/\ell -0.024254 °/mm
difference 2.0e-08 °/mm

Two routes, one number: the difference is the central difference's own O(h2)O(h^2) error. The instant centre lies between 1.15 and 2.21 m inboard of the centreline over the travel, so it cannot be drawn to scale beside the wheel; a drawing that shows it there has stretched one axis, and every angle in it is wrong.

When camber gain from the instant centre breaks
  • Assumes: the motion is planar: each arm turns about an axis perpendicular to the view
  • When it fails: otkd's arm axes tilt by a few degrees, so its front-view centre is a construction and differs from the planar one (by 20 mm here); with parallel arms the centre is at infinity and the formula reads 0
  • Check: compare 1/ℓ1/\ell with a central difference of the camber curve; they agree to the difference's own error in the planar model

6. Three dimensions: the same idea, solved by otkd's damped Newton

Setting: the problem, its sets and its symbols

Problem. Given the double-wishbone model (geometry gg) and a drive θ\theta, find q∈Rnq \in \mathbb{R}^n with r(q;g,θ)=0r(q; g, \theta) = 0 by otkd's damped Newton from the design pose q0q^0; record the iterates qkq^k, step factors αk\alpha_k and observed orders pkp_k; and compare the camber over s∈[−40,40]s \in [-40, 40] mm with the front view's.

Symbol In Meaning
Bm\mathcal{B}_m set\text{set} moving bodies: lca, uca, up
nn N\mathbb{N} unknowns, 7 #Bm7\,\#\mathcal{B}_m: per body a position (m) and a unit quaternion
qq Rn\mathbb{R}^n the pose of every moving body; q0q^0 the design pose, q∗q^* the final iterate
gg Rng\mathbb{R}^{n_g} geometry numbers: points, axes, the tie-rod length; m
θ\theta R\mathbb{R} drive of lca-drive, the lower arm's rotation about its 3D hinge; rad
R\mathcal{R} set\text{set} rows: joint (hard), driver and quaternion-norm rows; m=#Rm = \#\mathcal{R}
rr Rn→Rm\mathbb{R}^n \to \mathbb{R}^m the residual of the rows; m, rad or dimensionless by row
JJ Rn→Rm×n\mathbb{R}^n \to \mathbb{R}^{m \times n} ∂r/∂q\partial r / \partial q, derived symbolically
Δq\Delta q Rn\mathbb{R}^n Newton step, J Δq=−rJ\,\Delta q = -r
αk\alpha_k (0,1](0, 1] accepted step factor, halved until ∥r∥∞\lVert r \rVert_\infty falls
eke_k R≥0\mathbb{R}_{\ge 0} error ∥qk−q∗∥∞\lVert q^k - q^* \rVert_\infty, mixed units
pkp_k R\mathbb{R} observed order log⁡(ek+1/ek)/log⁡(ek/ek−1)\log(e_{k+1}/e_k) / \log(e_k/e_{k-1})
γ3D\gamma_{3D} R\mathbb{R} otkd camber arcsin⁡(−nz)\arcsin(-n_z) from the axle unit vector nn, change from design; degrees
ss [−40,40][-40, 40] wheel travel, set through the front view's θ(s)\theta(s); mm
How these symbols connect

In otkd's 3D double-wishbone model, the moving bodies Bm\mathcal{B}_m supply n=7 #Bmn = 7\,\#\mathcal{B}_m pose unknowns q∈Rnq \in \mathbb{R}^n, and with geometry gg and drive θ\theta fixed, the m=#Rm = \#\mathcal{R} equations form the residual map r(q;g,θ)∈Rmr(q; g, \theta) \in \mathbb{R}^m with symbolic Jacobian J(q)∈Rm×nJ(q) \in \mathbb{R}^{m \times n}. Starting from the design pose q0q^0, damped Newton solves J(qk) Δq=−r(qk)J(q^k)\,\Delta q = -r(q^k), halves the step factor αk∈(0,1]\alpha_k \in (0, 1] until ∥r∥∞\lVert r \rVert_\infty falls, and updates qk+1=qk+αkΔqq^{k+1} = q^k + \alpha_k \Delta q towards the final iterate q∗q^*. Tracking the errors ek=∥qk−q∗∥∞e_k = \lVert q^k - q^* \rVert_\infty gives the empirical order pkp_k, while extracting the axle unit vector from q∗q^* at each front-view drive θ(s)\theta(s) yields γ3D\gamma_{3D} to compare against the 2D model over s∈[−40,40] mms \in [-40, 40]\text{ mm}.

Symbol-by-symbol notes
$q$, $q^0$, $q^*$ and $n = 7\,\#\mathcal{B}_m$ — 3D pose vector

Each moving body in Bm\mathcal{B}_m (lca, uca, up) carries a 3D position (m) and a dimensionless four-component unit quaternion, giving nn mixed-unit unknowns in q∈Rnq \in \mathbb{R}^n. Superscripts qkq^k denote Newton iterates from the design pose q0q^0 to the converged pose q∗q^*.

$\mathcal{R}$, $r$ and $J$ — residual rows and symbolic Jacobian

The row set R\mathcal{R} combines hard joint constraints, the lca-drive position driver and one quaternion-norm row per moving body, so r(q;g,θ)∈Rmr(q; g, \theta) \in \mathbb{R}^m mixes metres, radians and dimensionless entries. J=∂r/∂q∈Rm×nJ = \partial r / \partial q \in \mathbb{R}^{m \times n} is differentiated symbolically from the topology and evaluated at each iterate qkq^k.

$\Delta q$ and $\alpha_k \in (0, 1]$ — damped Newton step

Δq\Delta q is the full linearised Newton step solving J Δq=−rJ\,\Delta q = -r, and αk∈{1,12,14,… }\alpha_k \in \{1, \tfrac12, \tfrac14, \dots\} is the largest power-of-two factor for which ∥r(qk+αkΔq)∥∞<∥r(qk)∥∞\lVert r(q^k + \alpha_k \Delta q) \rVert_\infty \lt \lVert r(q^k) \rVert_\infty. A full step has αk=1\alpha_k = 1; values αk<1\alpha_k \lt 1 indicate backtracking when the full step overshoots.

$e\lt em>k$ and $p\lt /em>k$ — error norm and observed order

ek=∥qk−q∗∥∞≥0e_k = \lVert q^k - q^* \rVert_\infty \ge 0 takes the largest component difference across mixed units (metres and dimensionless quaternion entries) against the final iterate q∗q^*. From three consecutive nonzero errors, pk=log⁡(ek+1/ek)/log⁡(ek/ek−1)p_k = \log(e_{k+1}/e_k) / \log(e_k/e_{k-1}) estimates the local order of convergence.

$\gamma_{3D}$ — 3D camber change from design

Computed by otkd as arcsin⁡(−nz)\arcsin(-n_z) (degrees) from the outboard axle unit vector nn of the converged 3D pose, with positive camber meaning top-out. Because otkd's illustrative geometry starts at zero camber, γ3D\gamma_{3D} is directly the camber change from design, matching the front view's sign convention.

$s$ and $\theta$ — matching frames between 2D and 3D

To compare models at the same inputs, each travel value s∈[−40,40] mms \in [-40, 40]\text{ mm} is converted via the front view's θ(s)\theta(s) (rad) and passed to otkd's 3D lca-drive actuator.

The double-wishbone model keeps the parts and drops the front view. Each arm is a body on a revolute hinge about its tilted 3D axis, the upright meets the arms at spherical joints, and a tie rod (a fixed distance) stops it spinning about the kingpin. Seven unknowns per moving body (a position and a unit quaternion) give nn = 21 unknowns and 21 rows: constraint rows of rank 20, mobility 1, closed by one driver row. Square, so Newton (M08 §1 has the row table). The two assemblies are still there: the upright can still fold about the line between the ball joints.

M08 §1 drove it 0.1 rad from the design pose. Drive it further, each solve cold from the design pose, and measure the order from the errors as in M01 §3: pk≈log⁡(ek+1/ek)/log⁡(ek/ek−1)p_k \approx \log(e_{k+1}/e_k) / \log(e_k/e_{k-1}), with eke_k the distance to the final iterate.

Predict first. otkd's Newton is damped: it solves J Δq=−rJ\,\Delta q = -r, then halves α\alpha until ∥r(q+αΔq)∥∞\|r(q + \alpha\Delta q)\|_\infty falls. Started at the design pose, a drive of 1.0 rad (ten times the chapter's travel) gives a residual history that

Choose a prediction

Check answer (without scripting)

Answer: stalls near one value for several damped steps, then doubles its digits. The middle steps are cut, to as little as 1/32, while the residual sits near 0.12; once close, full steps return and the last few are quadratic.

Reveal result (lock in your prediction above first)
03.5710.51410⁻¹⁶10⁻¹²10⁻⁸10⁻⁴10⁰residual ‖r‖∞error ‖q − q*‖∞stepmax-norm
step ‖r‖∞ ‖q − q*‖∞ α order p
0 1.00e+00 9.42e-01 1
1 4.90e-01 7.63e-01 1 0.05
2 1.25e-01 7.55e-01 0.03125 10.67
3 1.24e-01 6.75e-01 0.03125 0.89
4 1.23e-01 6.10e-01 0.0625 1.92
5 1.21e-01 5.03e-01 0.125 1.67
6 1.19e-01 3.64e-01 0.25 0.88
7 1.12e-01 2.74e-01 1 0.90
8 9.89e-02 2.13e-01 0.5 3.30
9 7.59e-02 9.20e-02 1 0.35
10 1.18e-02 6.88e-02 1 9.25
11 3.38e-03 4.67e-03 1 1.51
12 7.09e-06 8.02e-05 1 2.38
13 4.05e-09 5.01e-09 1
14 4.11e-16 0.00e+00

14 steps, 6 of them damped (α<1\alpha \lt 1). Camber at the answer -34.189° (otkd's sign, design 0). The order column scatters about 2 in the last rows and means nothing in the damped ones: an order is a statement about the asymptotic region (M01 §3).

What the front view costs. Both models driven at the same lower-arm angles, camber measured from the design pose in otkd's sign:

-40-2002040-1.2-0.653-0.1070.440.986front view (2 rows)otkd 3D (21 rows)travel (mm)camber change (°)

The largest gap over the 21 frames is 0.033°: the book's "within 0.033°", inside the chapter's tenth-of-a-degree budget. In bump both curves fall, as §5 said. The front view's instant centre at rest is 1.602 m inboard; otkd's front-view construction, with the tilted hinge axes, puts it at 1.622 m (the payload's design frame). The payload's own two routes, closed form against symbolic Newton, agree to agreement.max_abs_diff = 2e-13.

Continuation, and cold starts. Seeded from the previous frame, the 21 frames take 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 Newton steps; each solved cold from the design pose takes 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 0, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4. Over ±40 mm a cold start costs at most one step more and lands on the same branch. The difference is in where it fails:

source: `open_textbook.otkd.solvers.newton.newton` — `solvers/otkd/src/open_textbook/otkd/solvers/newton.py:11`

The damping is the inner loop: halve alpha until ‖r‖∞ falls. It guards the first frame and far starts; it does not choose the assembly.

def newton(
    system: System,
    q0: np.ndarray,
    *,
    rows: list[int] | None = None,
    tol: float = 1e-12,
    max_steps: int = 60,
) -> tuple[np.ndarray, int, list[tuple[np.ndarray, np.ndarray]]]:
    """Solve `rows(q) = 0` from `q0`. Returns the solution, step count and residual history."""
    q = np.array(q0, dtype=float)
    history: list[tuple[np.ndarray, np.ndarray]] = []
    for step in range(max_steps):
        r = system.residual(q, rows)
        history.append((q.copy(), r.copy()))
        error = float(np.max(np.abs(r))) if r.size else 0.0
        if error < tol:
            return q, step, history
        jac = system.jacobian(q, rows)
        try:
            delta = np.linalg.solve(jac, -r)
        except np.linalg.LinAlgError:
            delta, *_ = np.linalg.lstsq(jac, -r, rcond=None)
        if not np.all(np.isfinite(delta)):
            raise SolverError("Newton step is not finite", residual=error)
        base = float(np.max(np.abs(r)))
        alpha = 1.0
        for _ in range(40):
            trial = q + alpha * delta
            if float(np.max(np.abs(system.residual(trial, rows)))) < base or alpha < 1e-8:
                break
            alpha *= 0.5
        q = q + alpha * delta

    r = system.residual(q, rows)
    index = (rows or system.constrained)[int(np.argmax(np.abs(r)))]
    raise SolverError(
        f"Newton did not converge in {max_steps} steps: |r|inf = {np.max(np.abs(r)):.3e}, "
        f"worst row {system.problem.rows[index].name}",
        residual=float(np.max(np.abs(r))),
    )
When damped Newton from a far start breaks
  • Assumes: a root of the same assembly lies downhill of the start in ∥r∥∞\|r\|_\infty
  • When it fails: beyond an assembly limit there is no root and it stops after 60 steps; far from the design it can converge to another assembly with a residual of 1e-15
  • Check: solve by continuation from the design pose, and compare each answer with its seed

Practice

Practice A (steps partly filled). Circles about B=(0,0)B = (0, 0) with RB=0.30R_B = 0.30 m and about C=(0.40,0)C = (0.40, 0) with L=0.35L = 0.35 m. Then d=0.40d = 0.40, a=(RB2−L2+d2)/(2d)=  ?a = (R_B^2 - L^2 + d^2)/(2d) = \;? and h=RB2−a2h = \sqrt{R_B^2 - a^2}. Enter hh in metres.

Worked solution

a=(0.09−0.1225+0.16)/0.8a = (0.09 - 0.1225 + 0.16)/0.8 = 0.15938 m, so h=0.09−a2h = \sqrt{0.09 - a^2} = 0.2542 m. The assemblies are (a,±h)(a, \pm h).

Practice B (with a hint). A front view puts the instant centre 1.80 m inboard of the wheel centre. Enter the size of the camber gain in degrees per millimetre of wheel travel.

Worked solution

1/1.801/1.80 = 0.5556 rad/m = 31.83 °/m = 0.0318 °/mm: steeper than this corner's, whose lever is longer.

Hint 1

The upright turns about the instant centre: rise =ω ℓ= \omega\,\ell.

Hint 2

So the gain is 1/ℓ1/\ell rad per metre; convert to degrees, then divide by 1000.

Practice C (on your own). The last three nonzero errors of the 1.0 rad solve in §6 are 4.7e-03, 8.0e-05, 5.0e-09. Enter the observed order.

Worked solution

p≈log⁡(e3/e2)/log⁡(e2/e1)p \approx \log(e_3/e_2)/\log(e_2/e_1) = 2.38: quadratic, up to the scatter of an estimate from three max-norm errors over mixed units.

Mixed practice: which method, and why?

1. You need the lower-arm angle that puts the wheel centre exactly 40 mm up. The travel is a smooth increasing function of the angle, and the angle lies in [−0.5,0.5][-0.5, 0.5] rad. Use

Question 1
How sure?

2. The upper arm is remodelled as two ball-jointed legs: 22 rows, 21 unknowns, one row redundant but consistent. Solve it with

Question 2
How sure?

3. You have a camber curve sampled every 1 mm and want the camber gain at rest to four digits. Use

Question 3
How sure?

4. A 21-row square system is solved at 81 drive values, each close to the last. Seed each frame from

Question 4
How sure?

Show answers and explanations

1. a bracketing root finder (bisection or Brent). A sign change on a known interval is the one guarantee root finding offers (M02 §1, §5); this notebook's theta_for is Brent on that bracket.

2. least squares, then the SVD to name the spare row. Rows exceed rank and rank equals nn: redundant. Least squares solves it and the left null vector names the rows that say the same thing (M08 §2).

3. a central difference of neighbouring samples. Error O(h2)O(h^2) (M01 §3). With a solver in the loop, a smaller hh is cheap, and −1/ℓ-1/\ell from the instant centre is an independent check (§5).

4. the previous frame's answer. Closest start, fewest steps, and it keeps the branch: continuation (§4). Flag a frame that moves far from its seed.

Check yourself (closed book)

1. Two circles have radii RBR_B and LL and centres a distance dd apart. They meet in two points exactly when

Question 1
How sure?

2. Newton on the two-circle system ∣D−B∣2=RB2|D - B|^2 = R_B^2, ∣D−C∣2=L2|D - C|^2 = L^2. Which root it reaches is decided by

Question 2
How sure?

3. A camber sweep has a 20° step between two frames, and every frame's residual is about 1e-15. The most likely cause is

Question 3
How sure?

4. In the front view, the upright's instant centre is

Question 4
How sure?

5. Camber gain in the front view is 1/ℓ1/\ell radians per metre of wheel travel, with ℓ\ell the horizontal distance from the wheel centre to the instant centre. If a redesign moves the instant centre closer to the wheel, the gain

Question 5
How sure?

6. otkd's Newton halves its step until ∥r∥∞\|r\|_\infty falls. Started far from the root (a drive of 1.0 rad from the design pose) it

Question 6
How sure?

Show answers and explanations

1. the absolute difference of R_B and L is less than d, and d is less than R_B + L. Then the chord construction's across2=RB2−along2\text{across}^2 = R_B^2 - \text{along}^2 is positive. At either end the two assemblies merge (a toggle); beyond, there is no assembly.

2. which side of the line BC the start lies on. f1−f2f_1 - f_2 is linear, so the first step lands on the chord line, and the coordinate across BCBC keeps its sign every step after. The basins are two half-planes.

3. the solve landed on the other assembly at that frame. Both assemblies satisfy the rows to round-off. Seed each frame from the previous one and flag a frame that moves far from its seed (otkd: 0.25 rad or 0.05 m).

4. where the line through the lower arm's pivot and ball joint meets the same line for the upper arm. Each ball joint moves perpendicular to its arm, so the point with zero velocity lies on both arm lines (Kennedy). Here it is 2.36 m inboard of the hub.

5. rises, because the upright turns through a larger angle per millimetre. Rise =ω ℓ= \omega\,\ell, so ω\omega per unit rise is 1/ℓ1/\ell. Halve ℓ\ell and the gain doubles; parallel equal arms put the centre at infinity and the gain at 0.

6. takes several short damped steps that barely reduce the residual, then full steps that double the digits. Far away the full step overshoots, so it is cut, to as little as 1/32; near the root the full step is accepted and the convergence is quadratic again.

Keep these:

  1. The front view is a four-bar with one freedom; its two rows are circles, and circles meet twice: two assemblies of the same parts.
  2. Subtracting the rows gives a linear equation: the closed form, the mirror symmetry in BCBC, and the toggle where d=RB+Ld = R_B + L.
  3. Newton's basins for this system are the two half-planes of BCBC; a residual at round-off says a root, never which.
  4. Continuation (seed from the previous frame) keeps the branch; flag a frame that moves far from its seed.
  5. Camber gain is −1/ℓ-1/\ell with ℓ\ell the lever to the instant centre; mind the sign: an anticlockwise upright is negative camber with xx outboard.
  6. otkd's damped Newton is quadratic near the root and damped far from it; the 3D camber is within 0.033° of the front view over ±40 mm.

Your connection

Name another computation you run in a loop over a parameter (a sweep, a time step, a design study). Is each solve seeded from the last, and would you notice if one frame changed branch?

Answers

Practice A. aa = 0.15938 m, hh = 0.2542 m.

Practice B. 0.0318 °/mm.

Practice C. pp ≈ 2.38.

Mixed practice. Brent on the bracket; least squares and the SVD; a central difference; seed from the previous frame.

Where the maths is derived

Optional. These notes give the intuition and application; the sources below give the full derivations and proofs.

§1 The front view as a four-bar

§2 Two circles, two assemblies

§3 Newton on the two circles

§5 Camber gain and the instant centre

§6 Damped Newton on the 3D corner


Compiled from notebooks/suspension/s02_one_rigid_triangle.py — run locally with cd notebooks && uv run marimo edit suspension/s02_one_rigid_triangle.py for live Python scratch cells.

Back to the book: 1.2 One rigid triangle · Chapter 1 Review

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Reading offline

Keep this book on this device and read it offline.