Linear Systems & Direct Methods
Solving powers simulations and data fitting with millions of unknowns. Theory uses Gaussian elimination, reducing to triangular form before back-substitution.
The cost is about operations for an system. Because it is cubic, doubling multiplies the work eightfold. For huge sparse systems, iterative methods (Jacobi, Gauss-Seidel, conjugate gradient) refine guesses step-by-step instead.
Plain elimination fails on a zero pivot and amplifies round-off error on a small one. Partial pivoting swaps rows to place the largest available entry on the pivot, making the method numerically stable and safe for real-world use.
Conditioning & Pitfalls
Even stable solvers fail if a system is inherently fragile. The condition number of measures solution sensitivity to input errors.
| System Type | Condition Number | Geometric Meaning | Robustness |
|---|---|---|---|
| Well-conditioned | Small | Nearly perpendicular | Robust to errors |
| Ill-conditioned | Large | Nearly parallel lines | Swings wildly |
Common pitfall: Blaming the algorithm when the problem is ill-conditioned. A large condition number means the solution is hyper-sensitive. Even a perfect solver cannot rescue imprecise data; error lives in the problem, not the method.