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.
[9754]=[1001]A
Step 2 — Make the first pivot equal to 1.
We divide the first row by 9 so that it starts with 1: R1→91R1.
The new rows, worked one at a time, are:
Left R1: 91(9, 5)Right R1: 91(1, 0)=(1, 95)=(91, 0)
The equation A=IA now reads:
[17954]=[91001]A
Step 3 — Clear the entry below the first pivot.
To make the 7 below the pivot zero, we subtract 7 times the first row from the second: R2→R2−7R1.
The new rows, worked one at a time, are:
Left R2: (7, 4)−7(1, 95)Right R2: (0, 1)−7(91, 0)=(0, 91)=(−97, 1)
The equation A=IA now reads:
[109591]=[91−9701]A
Step 4 — Make the second pivot equal to 1.
The second row now starts 0, 91, so we multiply it by 9: R2→9R2.
The new rows, worked one at a time, are:
Left R2: 9(0, 91)Right R2: 9(−97, 1)=(0, 1)=(−7, 9)
The equation A=IA now reads:
[10951]=[91−709]A
Step 5 — Clear the entry above the second pivot.
To turn the 95 in the first row into 0, we subtract 95 times the second row: R1→R1−95R2.
The new rows, worked one at a time, are:
Left R1: (1, 95)−95(0, 1)Right R1: (91, 0)−95(−7, 9)=(1, 0)=(4, −5)
The equation A=IA now reads:
[1001]=[4−7−59]A
Step 6 — Read off the inverse.
The left side is now the unit matrix, so the equation reads I=BA, where B=[4−7−59]. Hence B is A−1.
Step 7 — Check the inverse.
Multiplying A by the matrix found should give the unit matrix.
AA−1=[9754][4−7−59]=[(9)(4)+(5)(−7)(7)(4)+(4)(−7)(9)(−5)+(5)(9)(7)(−5)+(4)(9)]=[1001]
Therefore, A−1=[4−7−59].