Skip to content
Quantoros

To compute x in Ax=b, why prefer solving the system to explicitly forming inv(A)?

MathematicsLevel: IntermediateStable linear systems

To compute x in Ax=b, why prefer solving the system to explicitly forming inv(A)?

Hints
  • Only A⁻¹b is needed.
  • Do not compute unused inverse entries.

Answer

A direct solve avoids constructing an unnecessary inverse and usually reduces work and numerical error. A must satisfy the solver's shape and rank assumptions.

Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial

Related questions