MAT1041 · Week 3 · - The Inverse of a Matrix

Inverse matrix, the [A | I] method and elementary matrices

You learn to find the inverse of a matrix with the 2×2 formula and with Gauss-Jordan on [A | I], to recognize a singular matrix, to solve AX = B and XA = B from the correct side, and to write row operations as products with elementary matrices.

inverse matrixinvertible (nonsingular)singular (noninvertible)identity matrixelementary matrixrow equivalentGauss-Jordan eliminationinvertible matrix theorem

With numbers you solve the equation 3x=63x = 6 by multiplying both sides by 3−13^{-1}. For matrices the same idea is called the inverse matrix: if Ax=bA\mathbf{x} = \mathbf{b} then x=A−1b\mathbf{x} = A^{-1}\mathbf{b}. But not every matrix has an inverse, and it matters from which side you multiply. On the midterm you will almost certainly get a 2×22 \times 2 formula question, a 3×33 \times 3 [A∣I][A \mid I] question and an AX=BAX = B question from this topic.

Golden rules:

  1. The inverse is defined only for square matrices.
  2. For 2×22 \times 2 use the formula, for 3×33 \times 3 the [A∣I][A \mid I] method.
  3. If AX=BAX = B then X=A−1BX = A^{-1}B; if XA=BXA = B then X=BA−1X = BA^{-1}. Mixing up the side is the most common mistake.
  4. Always check: a row · a column must give 11 or 00.

Definition

For an n×nn \times n matrix AA, if there is a BB with

AB=BA=InAB = BA = I_n

then AA is invertible (nonsingular) and BB is the inverse A−1A^{-1} of AA. If there is no such BB, AA is called singular.

The inverse is unique. If BB and CC are both inverses of AA, then B=BI=B(AC)=(BA)C=IC=CB = BI = B(AC) = (BA)C = IC = C.

For square matrices one side is enough: if AB=IAB = I then automatically BA=IBA = I. That is why the problem book has the question “AB = I ⇒ BA = I”.

The 2×2 formula

A=[abcd],ad−bc≠0⇒A−1=1ad−bc[d−b−ca].A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, \quad ad - bc \neq 0 \quad\Rightarrow\quad A^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}.

Recipe to memorize: swap the diagonal, flip the signs of the other two, divide by ad−bcad - bc. If ad−bc=0ad - bc = 0 there is no inverse. This number is the 2×22 \times 2 determinant (next week).

Example: A=[5273]A = \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix}, ad−bc=15−14=1ad - bc = 15 - 14 = 1:

A−1=[3−2−75].Check: [5273][3−2−75]=[15−14−10+1021−21−14+15]=I.A^{-1} = \begin{bmatrix} 3 & -2 \\ -7 & 5 \end{bmatrix}. \qquad \text{Check: } \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix}\begin{bmatrix} 3 & -2 \\ -7 & 5 \end{bmatrix} = \begin{bmatrix} 15 - 14 & -10 + 10 \\ 21 - 21 & -14 + 15 \end{bmatrix} = I.

The [A | I] method

Why does it work? All the row operations that take AA to II can be thought of as a product: Ek⋯E2E1A=IE_k \cdots E_2E_1A = I. This product is exactly A−1A^{-1}. If you apply the same operations to II on the side, you get Ek⋯E1I=A−1E_k \cdots E_1 I = A^{-1}.

Recipe:

  1. Write the n×2nn \times 2n matrix: [A∣I][A \mid I].
  2. Reduce the left side to II with Gauss-Jordan. Apply every operation to all 2n2n columns.
  3. If the left side becomes II, the right side is A−1A^{-1}. If a zero row appears on the left, AA is singular; stop.

Example. A=[120251121]A = \begin{bmatrix} 1 & 2 & 0 \\ 2 & 5 & 1 \\ 1 & 2 & 1 \end{bmatrix}.

[120100251010121001]→R3←R3−R1R2←R2−2R1[120100011−210001−101]\left[\begin{array}{ccc|ccc} 1 & 2 & 0 & 1 & 0 & 0 \\ 2 & 5 & 1 & 0 & 1 & 0 \\ 1 & 2 & 1 & 0 & 0 & 1 \end{array}\right] \xrightarrow[R_3 \leftarrow R_3 - R_1]{R_2 \leftarrow R_2 - 2R_1} \left[\begin{array}{ccc|ccc} 1 & 2 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & -2 & 1 & 0 \\ 0 & 0 & 1 & -1 & 0 & 1 \end{array}\right]

The left side is upper triangular and the pivots are 1. Now clear above the pivots from right to left:

→R2←R2−R3[120100010−11−1001−101]→R1←R1−2R2[1003−22010−11−1001−101]\xrightarrow{R_2 \leftarrow R_2 - R_3} \left[\begin{array}{ccc|ccc} 1 & 2 & 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & -1 & 1 & -1 \\ 0 & 0 & 1 & -1 & 0 & 1 \end{array}\right] \xrightarrow{R_1 \leftarrow R_1 - 2R_2} \left[\begin{array}{ccc|ccc} 1 & 0 & 0 & 3 & -2 & 2 \\ 0 & 1 & 0 & -1 & 1 & -1 \\ 0 & 0 & 1 & -1 & 0 & 1 \end{array}\right]

A−1=[3−22−11−1−101].A^{-1} = \begin{bmatrix} 3 & -2 & 2 \\ -1 & 1 & -1 \\ -1 & 0 & 1 \end{bmatrix}.

check: row 1 of A (1, 2, 0) · column 1 of A⁻¹ (3, -1, -1) = 3 - 2 + 0 = 1   ✓
       row 2 of A (2, 5, 1) · column 1 of A⁻¹ (3, -1, -1) = 6 - 5 - 1 = 0   ✓

A singular example. S=[10221301−1]S = \begin{bmatrix} 1 & 0 & 2 \\ 2 & 1 & 3 \\ 0 & 1 & -1 \end{bmatrix}:

[10210021301001−1001]→R2←R2−2R1[10210001−1−21001−1001]→R3←R3−R2[10210001−1−2100002−11]\left[\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 2 & 1 & 3 & 0 & 1 & 0 \\ 0 & 1 & -1 & 0 & 0 & 1 \end{array}\right] \xrightarrow{R_2 \leftarrow R_2 - 2R_1} \left[\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & 1 & -1 & -2 & 1 & 0 \\ 0 & 1 & -1 & 0 & 0 & 1 \end{array}\right] \xrightarrow{R_3 \leftarrow R_3 - R_2} \left[\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & 1 & -1 & -2 & 1 & 0 \\ 0 & 0 & 0 & 2 & -1 & 1 \end{array}\right]

A zero row has appeared on the left side. Whatever you do, there will be no pivot in row 3: SS is singular. The fact that the right side is not zero changes nothing; the decision is made by looking at the left side.

Solving a system with the inverse

If AA is invertible, Ax=bA\mathbf{x} = \mathbf{b} has a unique solution: x=A−1b\mathbf{x} = A^{-1}\mathbf{b}. For the AA above and b=(1,3,2)T\mathbf{b} = (1, 3, 2)^T:

x=[3−22−11−1−101][132]=[3−6+4−1+3−2−1+0+2]=[101].\mathbf{x} = \begin{bmatrix} 3 & -2 & 2 \\ -1 & 1 & -1 \\ -1 & 0 & 1 \end{bmatrix}\begin{bmatrix} 1 \\ 3 \\ 2 \end{bmatrix} = \begin{bmatrix} 3 - 6 + 4 \\ -1 + 3 - 2 \\ -1 + 0 + 2 \end{bmatrix} = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}.

If many different b\mathbf{b} are to be solved with the same AA, finding A−1A^{-1} once speeds things up. For a single system, Gaussian elimination is usually shorter.

Matrix equations. Let AA be invertible:

EquationSolveWhy
AX=BAX = BX=A−1BX = A^{-1}Bmultiply by A−1A^{-1} from the left
XA=BXA = BX=BA−1X = BA^{-1}multiply by A−1A^{-1} from the right
AXC=BAXC = BX=A−1BC−1X = A^{-1}BC^{-1}from both sides

PITFALL · there is no “division”. There is no such thing as X=BAX = \frac{B}{A}. A−1BA^{-1}B and BA−1BA^{-1} are generally different (Q6 and Q7 give two different answers with the same matrices).

Properties of the inverse

AA, BB invertible n×nn \times n, c≠0c \neq 0:

PropertyNote
(A−1)−1=A(A^{-1})^{-1} = A
(AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}order reverses, as with the transpose
(AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T
(cA)−1=1cA−1(cA)^{-1} = \frac1c A^{-1}
(Ak)−1=(A−1)k(A^k)^{-1} = (A^{-1})^kwritten as A−kA^{-k}

Check of (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}: (AB)(B−1A−1)=A(BB−1)A−1=AA−1=I(AB)(B^{-1}A^{-1}) = A(BB^{-1})A^{-1} = AA^{-1} = I. If the order were not reversed, BB and B−1B^{-1} would not meet in the middle.

The cancellation rule now holds too: if AA is invertible, AB=AC⇒B=CAB = AC \Rightarrow B = C (multiply from the left by A−1A^{-1}).

Elementary matrices

An elementary matrix EE is a matrix obtained by applying one row operation to the identity matrix. Its magic property: the product EAEA is the same as applying that row operation to AA.

Operation (3×33 \times 3)EEE−1E^{-1}
R3←R3−4R1R_3 \leftarrow R_3 - 4R_1[100010−401]\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -4 & 0 & 1 \end{bmatrix}[100010401]\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 4 & 0 & 1 \end{bmatrix}
R1↔R2R_1 \leftrightarrow R_2[010100001]\begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}itself
R2←5R2R_2 \leftarrow 5R_2diag⁡(1,5,1)\operatorname{diag}(1, 5, 1)diag⁡(1,15,1)\operatorname{diag}(1, \frac15, 1)

Every elementary matrix is invertible and its inverse is elementary too: the operation that undoes the operation.

Writing a matrix as a product of elementary matrices. A=[1237]A = \begin{bmatrix} 1 & 2 \\ 3 & 7 \end{bmatrix}:

A  --R2 ← R2 - 3R1-->  [1 2; 0 1]  --R1 ← R1 - 2R2-->  I
E1 = [1 0; -3 1],   E2 = [1 -2; 0 1],   E2 E1 A = I
A = E1⁻¹ E2⁻¹ = [1 0; 3 1] [1 2; 0 1]

Check: [1031][1201]=[1237]\begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 7 \end{bmatrix}. The order of the inverses reversed, because A=(E2E1)−1=E1−1E2−1A = (E_2E_1)^{-1} = E_1^{-1}E_2^{-1}.

The invertible matrix theorem (first version)

If AA is n×nn \times n, the following are equivalent (if one is true, all are true):

  1. AA is invertible.
  2. Ax=0A\mathbf{x} = \mathbf{0} has only the trivial solution.
  3. The RREF of AA is InI_n.
  4. AA is a product of elementary matrices.
  5. Ax=bA\mathbf{x} = \mathbf{b} is consistent with a unique solution for every b\mathbf{b}.

The list will grow through the semester: det⁡A≠0\det A \neq 0 (week 4), columns independent (week 7), rank =n= n (week 9), 0 is not an eigenvalue (week 13).

Common mistakes

WrongRight
Swapping the off-diagonal entries in 2×22 \times 2The diagonal swaps, the off-diagonal entries change sign
Forgetting to divide by ad−bcad - bcThe 1ad−bc\frac{1}{ad - bc} at the front of the formula
Applying the operation only to the left side in [A∣I][A \mid I]To all 2n2n columns
X=BA−1X = BA^{-1} for AX=BAX = BX=A−1BX = A^{-1}B
(AB)−1=A−1B−1(AB)^{-1} = A^{-1}B^{-1}B−1A−1B^{-1}A^{-1}
Looking for the inverse of a non-square matrixThe inverse exists only for square matrices
Saying “invertible” because the right side has a nonzero rowThe decision is made from the left side
(A+B)−1=A−1+B−1(A + B)^{-1} = A^{-1} + B^{-1}There is no such rule

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Find the inverse of A=[2714]A = \begin{bmatrix} 2 & 7 \\ 1 & 4 \end{bmatrix}.

Show answer
[4−7−12]\begin{bmatrix} 4 & -7 \\ -1 & 2 \end{bmatrix}

ad−bc=8−7=1ad - bc = 8 - 7 = 1. Swap the diagonal, flip the signs of the other two, divide by 11.
Check: [2714][4−7−12]=[8−7−14+144−4−7+8]=I\begin{bmatrix} 2 & 7 \\ 1 & 4 \end{bmatrix}\begin{bmatrix} 4 & -7 \\ -1 & 2 \end{bmatrix} = \begin{bmatrix} 8 - 7 & -14 + 14 \\ 4 - 4 & -7 + 8 \end{bmatrix} = I.

Question 2easy

For which values of kk is [k42k−2]\begin{bmatrix} k & 4 \\ 2 & k - 2 \end{bmatrix} singular?

Show answer
k=4k = 4 or k=−2k = -2

A 2×22 \times 2 matrix is singular if and only if ad−bc=0ad - bc = 0.k(k−2)−8=k2−2k−8=(k−4)(k+2)=0k(k-2) - 8 = k^2 - 2k - 8 = (k - 4)(k + 2) = 0.

Question 3medium

Use the [A∣I][A \mid I] method to find A−1A^{-1} for A=[111012124]A = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 1 & 2 & 4 \end{bmatrix}.

Show answer
[0−2123−2−1−11]\begin{bmatrix} 0 & -2 & 1 \\ 2 & 3 & -2 \\ -1 & -1 & 1 \end{bmatrix}

R3←R3−R1R_3 \leftarrow R_3 - R_1: (0,1,3∣−1,0,1)(0, 1, 3 \mid -1, 0, 1). R3←R3−R2R_3 \leftarrow R_3 - R_2: (0,0,1∣−1,−1,1)(0, 0, 1 \mid -1, -1, 1).
Clear above pivot 3: R2←R2−2R3R_2 \leftarrow R_2 - 2R_3: (0,1,0∣2,3,−2)(0, 1, 0 \mid 2, 3, -2). R1←R1−R3R_1 \leftarrow R_1 - R_3: (1,1,0∣2,1,−1)(1, 1, 0 \mid 2, 1, -1).R1←R1−R2R_1 \leftarrow R_1 - R_2: (1,0,0∣0,−2,1)(1, 0, 0 \mid 0, -2, 1). The left side is II, the right side is A−1A^{-1}.
Check: row 1 of AA · column 1 of A−1A^{-1} =0+2−1=1= 0 + 2 - 1 = 1.

Question 4medium

With AA from the previous question, solve Ax=bA\mathbf{x} = \mathbf{b} for b=(2,1,3)T\mathbf{b} = (2, 1, 3)^T using A−1A^{-1}.

Show answer
x=(1,1,0)T\mathbf{x} = (1, 1, 0)^T

x=A−1b\mathbf{x} = A^{-1}\mathbf{b}: row 1: 0−2+3=10 - 2 + 3 = 1; row 2: 4+3−6=14 + 3 - 6 = 1; row 3: −2−1+3=0-2 - 1 + 3 = 0.
Check: A(1,1,0)T=(2,1,3)TA(1, 1, 0)^T = (2, 1, 3)^T.

Question 5medium

Is [1232573710]\begin{bmatrix} 1 & 2 & 3 \\ 2 & 5 & 7 \\ 3 & 7 & 10 \end{bmatrix} invertible? Justify with row reduction.

Show answer
No, it is singular

R2←R2−2R1R_2 \leftarrow R_2 - 2R_1: (0,1,1)(0, 1, 1). R3←R3−3R1R_3 \leftarrow R_3 - 3R_1: (0,1,1)(0, 1, 1). R3←R3−R2R_3 \leftarrow R_3 - R_2: (0,0,0)(0, 0, 0).
A zero row appeared on the left side; it cannot be reduced to II. Singular.
Intuition: row 3 = row 1 + row 2.

Question 6medium

Let A=[2153]A = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix} and B=[1021]B = \begin{bmatrix} 1 & 0 \\ 2 & 1 \end{bmatrix}. Solve AX=BAX = B.

Show answer
X=[1−1−12]X = \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}

det⁡A=6−5=1\det A = 6 - 5 = 1, A−1=[3−1−52]A^{-1} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}.
If AX=BAX = B, multiply from the left by A−1A^{-1}: X=A−1B=[3−2−1−5+42]=[1−1−12]X = A^{-1}B = \begin{bmatrix} 3 - 2 & -1 \\ -5 + 4 & 2 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}.

Question 7medium

With the same AA and BB, solve XA=BXA = B.

Show answer
X=[3−110]X = \begin{bmatrix} 3 & -1 \\ 1 & 0 \end{bmatrix}

If XA=BXA = B, multiply by A−1A^{-1} from the right: X=BA−1X = BA^{-1}.[1021][3−1−52]=[3−16−5−2+2]=[3−110]\begin{bmatrix} 1 & 0 \\ 2 & 1 \end{bmatrix}\begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix} = \begin{bmatrix} 3 & -1 \\ 6 - 5 & -2 + 2 \end{bmatrix} = \begin{bmatrix} 3 & -1 \\ 1 & 0 \end{bmatrix}.
Different from the answer to the previous question: matrix multiplication is not commutative.

Question 8medium

Suppose A−1=[1201]A^{-1} = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} and B−1=[3111]B^{-1} = \begin{bmatrix} 3 & 1 \\ 1 & 1 \end{bmatrix}. Find (AB)−1(AB)^{-1}.

Show answer
[3713]\begin{bmatrix} 3 & 7 \\ 1 & 3 \end{bmatrix}

(AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} (the order reverses).[3111][1201]=[36+112+1]=[3713]\begin{bmatrix} 3 & 1 \\ 1 & 1 \end{bmatrix}\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 3 & 6 + 1 \\ 1 & 2 + 1 \end{bmatrix} = \begin{bmatrix} 3 & 7 \\ 1 & 3 \end{bmatrix}.
Whoever writes A−1B−1A^{-1}B^{-1} finds a different (wrong) matrix.

Question 9easy

Let A=[120013−214]A = \begin{bmatrix} 1 & 2 & 0 \\ 0 & 1 & 3 \\ -2 & 1 & 4 \end{bmatrix} and B=[120013054]B = \begin{bmatrix} 1 & 2 & 0 \\ 0 & 1 & 3 \\ 0 & 5 & 4 \end{bmatrix}. Find an elementary matrix EE with EA=BEA = B, and E−1E^{-1}.

Show answer
E=[100010201]E = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 2 & 0 & 1 \end{bmatrix}, E−1=[100010−201]E^{-1} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -2 & 0 & 1 \end{bmatrix}

Only row 3 changed: (0,5,4)=(−2,1,4)+2(1,2,0)(0, 5, 4) = (-2, 1, 4) + 2(1, 2, 0). The operation is R3←R3+2R1R_3 \leftarrow R_3 + 2R_1.EE = this operation applied to I3I_3: a 22 in position (3,1)(3,1).E−1E^{-1} undoes the operation: R3←R3−2R1R_3 \leftarrow R_3 - 2R_1, that is, −2-2 in position (3,1)(3,1).

Question 10hard

A square matrix AA satisfies A2−3A+I=OA^2 - 3A + I = O. Show that AA is invertible and express A−1A^{-1} in terms of AA.

Show answer
A−1=3I−AA^{-1} = 3I - A

A2−3A=−I⇒A(A−3I)=−I⇒A(3I−A)=IA^2 - 3A = -I \Rightarrow A(A - 3I) = -I \Rightarrow A(3I - A) = I. In the same way (3I−A)A=I(3I - A)A = I.
So AA is invertible and A−1=3I−AA^{-1} = 3I - A.
Example: A=[1112]A = \begin{bmatrix} 1 & 1 \\ 1 & 2 \end{bmatrix} satisfies this equation, A−1=[2−1−11]=3I−AA^{-1} = \begin{bmatrix} 2 & -1 \\ -1 & 1 \end{bmatrix} = 3I - A.

Question 11hard

If A−1=[2132]A^{-1} = \begin{bmatrix} 2 & 1 \\ 3 & 2 \end{bmatrix}, find AA and (2AT)−1(2A^T)^{-1}.

Show answer
A=[2−1−32]A = \begin{bmatrix} 2 & -1 \\ -3 & 2 \end{bmatrix}, (2AT)−1=[13/21/21](2A^T)^{-1} = \begin{bmatrix} 1 & 3/2 \\ 1/2 & 1 \end{bmatrix}

A=(A−1)−1A = (A^{-1})^{-1}: det⁡=4−3=1\det = 4 - 3 = 1, by the formula [2−1−32]\begin{bmatrix} 2 & -1 \\ -3 & 2 \end{bmatrix}.(cM)−1=1cM−1(cM)^{-1} = \frac1c M^{-1} and (AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T: (2AT)−1=12(A−1)T=12[2312](2A^T)^{-1} = \frac12 (A^{-1})^T = \frac12\begin{bmatrix} 2 & 3 \\ 1 & 2 \end{bmatrix}.

Question 12hard

True or false: If AA and BB are invertible n×nn \times n matrices, then A+BA + B is invertible.

Show answer
False

Counterexample: A=IA = I, B=−IB = -I. Both are invertible but A+B=OA + B = O, and the zero matrix has no inverse.
For the product it is true: ABAB is invertible and (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}. There is no such rule for the sum.

Verification: All inverse matrices were found in node by applying the row operations step by step on [A | I] with BigInt fractions and checked with the product A·A⁻¹ = I; in the singular examples the formation of a zero row was shown, and the AX = B / XA = B solutions were verified by multiplying back (verify/MAT1041/03.mjs).

Review card

A⁻¹: AA⁻¹ = A⁻¹A = I. Only for SQUARE matrices; if it exists it is UNIQUE. 2×2: [a b; c d]⁻¹ = 1/(ad-bc) · [d -b; -c a]. ad-bc = 0 → no inverse. 3×3: [A | I] → Gauss-Jordan → [I | A⁻¹]. A zero row on the left → SINGULAR. Check: row 1 of A · column 1 of A⁻¹ = 1. Ax = b, A invertible → x = A⁻¹b (unique solution). AX = B → X = A⁻¹B (from the left). XA = B → X = BA⁻¹ (from the right). (AB)⁻¹ = B⁻¹A⁻¹, (A⁻¹)⁻¹ = A, (A^T)⁻¹ = (A⁻¹)^T, (cA)⁻¹ = (1/c)A⁻¹, (A^k)⁻¹ = (A⁻¹)^k (A+B)⁻¹ ≠ A⁻¹ + B⁻¹ ; A+B may not be invertible. Elementary E = ONE row operation applied to I. EA = apply that operation to A. E⁻¹ = undo the operation: Ri+cRj ↔ Ri-cRj, cRi ↔ (1/c)Ri, swap ↔ swap. A invertible ⇔ A ~ I ⇔ Ax=0 only 0 ⇔ Ax=b has a unique solution for every b ⇔ A = product of elementaries. For square A, if AB = I then BA = I too (one side is enough).