Hexa Scholar

Condition numbers and error blow-up

A navy straightedge and a gold straightedge on a wooden drafting table beside a blank sheet of paper.
Two straightedges and a blank sheet set up a drafting experiment with intersecting lines.

The question

  1. 1 SeeShift two lines and compare their intersections.
  2. 2 TryChange the direction of the input error.
  3. 3 ProveBuild a bound on the output error.
  4. 4 ApplyCheck solutions against a measurement budget.
Before you start · 3 quick checks on elimination, relative error, and absolute value

Two ideas before you start

2 ideas

A reading moves a line

Changing the right side of an equation translates its line in parallel.

Each equation is a line. The intersection satisfies both equations. A change to a right-side reading shifts its line without rotating it.

Exact definition

Write the system as \(Au=b\), where \(A\) contains the coefficients, \(u=(x,y)\) contains the unknowns, and \(b=(b_1,b_2)\) contains the readings. For a nonzero coefficient row \((a,c)\), the equation \(ax+cy=b_i\) describes a line. Its normal direction is \((a,c)\), so changing \(b_i\) leaves its direction fixed.

The lesson on linear systems explains when a system has a unique solution. Here the line pairs in the game and explorer each have a unique intersection.

Measure the largest component

Two bars extend from a shared zero line. Use the longer bar to measure the vector's size.

With the maximum norm, the size of a vector is the largest absolute value of its components.

Exact definition

For a vector \(v\), the maximum norm is \(\|v\|_\infty=\max_i |v_i|\). This measures the largest coordinate change when \(v\) is the difference between two points. If the original vector \(v\) is nonzero and the change is \(\Delta v\), the relative change is \(\|\Delta v\|_\infty/\|v\|_\infty\). Multiplying that ratio by a hundred writes it as a percentage.

Fine print on the matrix norm

The matrix norm used here is the largest absolute row sum. Take the absolute value of each entry, add within each row, and keep the largest sum. For any real square matrix \(M\),

\[\|M\|_\infty=\max_i\sum_j |m_{ij}|.\]

The triangle inequality gives \(|(Mv)_i|\le (\sum_j|m_{ij}|)\,\|v\|_\infty\) for each row. Taking the largest left side gives \(\|Mv\|_\infty\le\|M\|_\infty\|v\|_\infty\). To attain equality, take a row with the largest sum and choose the entries of \(v\) to match its signs. Use either sign for a zero entry. Then \(\|v\|_\infty=1\) and in that row the signed products add as absolute values.

This is why the row sum describes how much a matrix can stretch an input in the maximum norm. The norm depends on the choice of coordinates and how those coordinates are scaled. In applications, choose comparable units before treating the largest numerical component as a physical error measure.

1 See

Find the largest shift at the crossing

2 Try

Change how the readings shift

3 Prove

Bound relative error for a fixed matrix

Theorem

Let \(A\) be a fixed, invertible real square matrix. Let \(b\ne0\) and \(\Delta b\ne0\). Let \(u\) solve \(Au=b\), and \(u+\Delta u\) solve the system with right side \(b+\Delta b\). In the maximum norm, write

\[\begin{aligned} E_b&=\frac{\|\Delta b\|_\infty}{\|b\|_\infty},\\ E_u&=\frac{\|\Delta u\|_\infty}{\|u\|_\infty}. \end{aligned}\]

Then \(E_u\le \kappa_\infty(A)\,E_b\), where \(\kappa_\infty(A)=\|A\|_\infty\|A^{-1}\|_\infty\). The bound also holds for \(\Delta b=0\), when both errors are zero.

Build the bound one step at a time. The two matrix products in the proof use different matrices.

4 Apply

Use the bound and measure actual error

Use the maximum norm throughout. For questions in percent, type the percentage as a number. Each problem has a hint and a worked solution.

Key point A bound answers how large the error could be. With the actual perturbation and the matrix, you can solve for the actual change. When you have a computed answer, its residual gives the right-side change for which that answer is exact.
Level Intermediate Prerequisites Linear systems and relative error Time ~30 min

Further reading