Mathematics I / Applications of Matrices and Vectors
Practice question · Multiple choice

Solving Ax = b by computing A⁻¹ then multiplying is mathematically correct and numerically discouraged. What is the objection?

Hints
  1. Computing A⁻¹ means solving Ax = e for each column of the identity. How many systems is that?
  2. Every arithmetic operation rounds. Which route performs more of them?
Show the answer

D. Both cost and accuracy: n systems instead of one, with more error

Why

The inverse costs n systems where you needed one, roughly three times the work, and every extra operation rounds. Both routes are exact on paper and only one is exact in floating point, which is why numpy.linalg.solve exists and calling inv first is the classic beginner's tell.

Read the lesson: Applications of Matrices and Vectors →

Practise Applications of Matrices and Vectors

The app has 4 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Applications of Matrices and Vectors