Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Numerical Methods / Linear systems, integrals and equations of motion

Solving Linear Systems Numerically

LU factorisation, pivoting, condition numbers and iterative methods for systems with millions of unknowns.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Factor once, solve many times
  2. ?Check yourself

By the end you can

  • Explain LU factorisation with partial pivoting
  • Interpret the condition number
  • Describe an iterative method

Helps to know: Systems and Gaussian Elimination, Floating-Point Arithmetic and Error

§1Factor once, solve many times

Gaussian elimination records itself as PA=LUPA = LU: a row permutation, a lower-triangular and an upper-triangular matrix. Factoring costs about 23n3\tfrac23 n^3 operations; each further right-hand side costs only n2n^2. Partial pivoting, swapping in the largest available pivot, keeps rounding errors under control.

κ(A)=∥A∥ ∥A−1∥∥δx∥∥x∥≲κ(A) ∥δb∥∥b∥\kappa(A) = \|A\|\,\|A^{-1}\| \qquad \frac{\|\delta x\|}{\|x\|} \lesssim \kappa(A)\,\frac{\|\delta b\|}{\|b\|}

Check yourself

  1. Q1
    A condition number near 1 means the system is…