Advanced Mathematics

Gaussian Elimination and Inverses

A systematic way to solve any linear system by row operations, which also finds the inverse of a matrix.

Needs a step first: 3

Write the system as an augmented matrix and use three row operations (swap two rows, scale a row, add a multiple of one row to another) to reach a staircase shape, then solve from the bottom up. Running the same steps on [A∣I][A\mid I] until the left side is II leaves A−1A^{-1} on the right. It is the algorithm inside every linear solver, and it reveals the rank of a matrix: how many of its equations are really independent.

Where it shows up: Solving the normal equations of least squares is Gaussian elimination; computers store the same steps as an LU factorisation.

How to hold it: Give it to the machine, then check

Let a computer row-reduce large systems and find inverses; know what rank and pivots mean, and check by multiplying AA by the claimed inverse or putting the solution back into the equations.

What knowing it looks like

  • Reduce an augmented matrix to row echelon form and solve by back substitution.
  • Find the inverse of a 3×33\times3 matrix by row-reducing [A∣I][A\mid I], and check it by multiplying.
  • Read the rank of a matrix from its echelon form.

Test yourself

Use row reduction to find the inverse of A=(110011101)A=\begin{pmatrix}1&1&0\\0&1&1\\1&0&1\end{pmatrix}.
Show the worked answer
Start from [A∣I][A\mid I]. R3−R1R_3-R_1 gives (0,−1,1∣−1,0,1)(0,-1,1\mid-1,0,1); adding R2R_2 gives (0,0,2∣−1,1,1)(0,0,2\mid-1,1,1); halving gives (0,0,1∣−12,12,12)(0,0,1\mid-\tfrac12,\tfrac12,\tfrac12). Then R2−R3R_2-R_3 gives (0,1,0∣12,12,−12)(0,1,0\mid\tfrac12,\tfrac12,-\tfrac12), and R1−R2R_1-R_2 gives (1,0,0∣12,−12,12)(1,0,0\mid\tfrac12,-\tfrac12,\tfrac12). So A−1=12(1−1111−1−111)A^{-1}=\tfrac12\begin{pmatrix}1&-1&1\\1&1&-1\\-1&1&1\end{pmatrix}, and multiplying by AA gives II.

Needs a step first: 3

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "Gaussian Elimination and Inverses" (Core tier): A systematic way to solve any linear system by row operations, which also finds the inverse of a matrix.
I already know: Matrices as Transformations.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Use row reduction to find the inverse of $A=\begin{pmatrix}1&1&0\\0&1&1\\1&0&1\end{pmatrix}$.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended