Maths Applied1.4 The redundancy was ours

All books

1.4 The redundancy was ours

The question this section answers

§1.3 ended with a model that had three equations for two unknowns, and a decomposition that reported a singular value of zero. But a zero singular value, on its own, proves nothing at all: any matrix with more rows than columns has one. It is a fact about the shape of the matrix, not about the model.

So the question is not "is there a redundancy". It is which equation is the spare one, and how you can tell.

What the decomposition says

The Jacobian is a 3×23 \times 2 matrix. Its singular value decomposition is

J=U Σ VT,J = U\,\Sigma\,V^{\mathsf{T}},

with Σ\Sigma holding the singular values down its diagonal, and UU and VV the two rotations it is built from. At the design pose, those values are

σ=(1.415, 0.998, 0.000).\sigma = \left(1.415,\ 0.998,\ 0.000\right).

Two of them are not zero, so the Jacobian has rank 2. The two unknowns are both determined, and no direction in the point's own plane is left free. The third belongs to the rows, and it says there is a combination of the three equations that is empty.

Which combination? That is a vector in the left null space, and here it is:

w=(0.707, −0.707, 0.000).w = \left(0.707,\ -0.707,\ 0.000\right).
Figure 1

Add 0.707 of the first equation to −0.707 of the second, add nothing of the third, and the result constrains nothing. In plain words: the two legs are one equation.

The numbers in ww are not a coincidence of the arithmetic. The rows of JJ are u^\hat{u}, u^\hat{u} and v^\hat{v}; two of them are equal, so their difference is zero however the mechanism is posed. A different pose gives the same ww, and a different geometry gives a different σ\sigma and the same pattern.

Drop the row, and you are back where you started

If one row of a three-row model is a duplicate, deleting it cannot change the answer. That is a claim worth testing rather than asserting. It is the third of the four tests in the solver's own suite. With the spare equation removed, the least-squares answer and the direct answer are the same number.

Getting the same answer by a shorter route is the useful outcome. The model is not wrong; it was doing work it did not need to do.

Why this is not a general-purpose diagnosis

Two cautions, and the second one matters more than the first.

A zero singular value is not evidence. Three rows and two unknowns always give a zero. If the mechanism had four equations, it would give two. The evidence is the null vector and its pattern of zeros. A null vector supported on two rows says those two rows are one. A null vector with entries in every row says the equations are in conflict, which is a different situation with a different remedy.

What the decomposition inspects is the matrix, not the mechanism. Which rows are independent, and whether the system has a solution at all, are properties of that matrix.

Deleting a row is only safe when it is the spare one. Delete a row that carries information and the model changes silently. The answer is still a number, still looks plausible, and is the answer to a different question. The decomposition is what makes the choice visible.

In three dimensions the legs come apart

Everything above is a statement about the front view. Look from the side, or from above, and the wishbone's two legs no longer lie on top of each other. They are two distinct demands on the same point, and the upright's length is a third.

Figure 2

Turn it. In this direction the two legs are visibly separate, and the plate between them is what makes the triangle rigid. The front view threw that direction away, which is why its two rows collapsed into one.

That is why the general solver models each wishbone as one rigid triangle. It counts the legs once, rather than as two legs with an upright's length bolted on. The count is a modelling decision, and the decomposition is how you check that the decision you made was the one you thought you made.

The front view is an idealisation, and worth a number

One loose end, stated because the chapter's method is to state it. A projection of a triangle is not a triangle with the same edges. The upper arm in this chapter's front view is 0.30336 m long, and the two legs of the real wishbone are 0.31875 m and 0.32016 m. The view's single arm is shorter than either leg, by 15 mm and 17 mm. The front view flattens the fore-aft splay of the two chassis pivots.

So the front view is an idealisation of the three-dimensional linkage. It is chosen to match it at the design position and to be simple enough to solve in closed form. The three-dimensional solver and this chapter's model therefore agree at the design pose. Elsewhere they drift apart by a fraction of a millimetre. That difference is far below the question the chapter asks, and exactly the kind a reader should want a number for rather than an assurance.

The agreement panel

Check Value
Singular values of the three-row Jacobian at the design pose 1.415, 0.998, 0.000
Left null vector (0.707, −0.707, 0), so the two legs cancel
Least squares with all three rows same point as §1.2, to the last bit of a double, about 10⁻¹⁶ m
Direct 2×2 solve with the spare row deleted the same point again

The same structure appears in the package's three-dimensional model, which these three rows are a front-view imitation of. otkd check examples/double-wishbone-two-leg reports 21 unknowns, 22 rows, rank 20, redundancy 1 — one dependent row, exactly as here. Its diagnosis names the rows that participate. The three-row model is not a smaller story; it is the same rank story with fewer numbers to read.

The decomposition is computed by the page's own model at load, and the figure shows it on every frame. What the section claims is structural: three rows, two unknowns, one dependent row. The null vector's support is the evidence. A vector with entries in the two leg rows says those two rows are one. The vendored exports solve the three-dimensional model, whose unknowns are not these two, so they cannot check this table. The structure is checked by the arithmetic above and by the pose comparison at the bottom.

Pseudocode, and the file it comes from

# svd.py — what a diagnosis has to return to be useful
def diagnose(system, q, rows=None, rtol=1e-10):
    """Which equations are the same equation, and by how much."""
    jac = system.jacobian(q, rows)
    rank, null, sigma = left_null(jac, rtol)
    names = [system.problem.rows[i].name for i in rows or system.constrained]
    dependent = [name for name, w in zip(names, np.max(np.abs(null), axis=1))
                 if w > rtol]
    return Diagnosis(singular_values=sigma, rank=rank,
                     redundancy=len(names) - rank,
                     dependent_rows=dependent, null_space=null)

The file is svd.py. Returning the row names rather than only the singular values is the whole point. A figure can then say which equations are the same, instead of shouting that something is wrong somewhere.

You should now be able to

Watch out

The tempting reading — "a zero singular value means the model is over-determined" — is true here and false as a rule. The zero is guaranteed by the shape of the matrix, so it appears whether or not the model is redundant. It disappears from view the moment you write a square system instead.

The other trap is a null vector whose entries are all non-zero. That is not a duplicate: it is a conflict, and least squares is then splitting the difference between equations that cannot all hold. The remedy is not to delete a row but to find out which equation is wrong.

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
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.