Solution:
Key idea: To invert A by elementary row operations, write A=IA. Apply each row operation to the matrix on the left and the same operation to the factor I on the right (never to the A at the end). When the left side has become I, the equation reads I=BA, and then B=A−1.
Step 1 — Write the equation A=IA.
We write A on the left and, on the right, the unit matrix of the same order multiplied by A. This equation is true because IA=A.
[122−1]=[1001]A
Step 2 — Clear the entry below the first pivot.
The first column starts with a 1. To make the 2 below it zero, we subtract twice the first row from the second: R2→R2−2R1.
The new rows, worked one at a time, are:
Left R2: (2, −1)−2(1, 2)Right R2: (0, 1)−2(1, 0)=(0, −5)=(−2, 1)
The equation A=IA now reads:
[102−5]=[1−201]A
Step 3 — Make the second pivot equal to 1.
The second row now starts 0, −5. Multiplying it by −51 makes the pivot 1: R2→−51R2.
The new rows, worked one at a time, are:
Left R2: −51(0, −5)Right R2: −51(−2, 1)=(0, 1)=(52, −51)
The equation A=IA now reads:
[1021]=[1520−51]A
Step 4 — Clear the entry above the second pivot.
To turn the 2 in the first row into 0, we subtract twice the second row: R1→R1−2R2.
The new rows, worked one at a time, are:
Left R1: (1, 2)−2(0, 1)Right R1: (1, 0)−2(52, −51)=(1, 0)=(51, 52)
The equation A=IA now reads:
[1001]=[515252−51]A
Step 5 — Read off the inverse.
The left side is now the unit matrix, so the equation reads I=BA, where B=[515252−51]. Hence B is A−1.
Step 6 — Check the inverse.
Multiplying A by the matrix found should give the unit matrix.
AA−1=[122−1][515252−51]=[(1)(51)+(2)(52)(2)(51)+(−1)(52)(1)(52)+(2)(−51)(2)(52)+(−1)(−51)]=[1001]
Therefore, A−1=[515252−51].