Linear Algebra

Advanced Topics: Adjoint and Cramer's Rule

1. The Adjoint Matrix and Finding Inverses

We learned the Gauss-Jordan algorithm to find the inverse of a large matrix. There is also a determinant-based formula to find the inverse using the Adjoint.

Definition

Let AA be a square matrix, and let CC be its corresponding cofactor matrix (the matrix formed by replacing every entry in AA with its cofactor).

The adjoint of AA, denoted by adj(A)\text{adj}(A), is the transpose of the cofactor matrix:

adj(A)=CT\text{adj}(A) = C^T

The Adjoint Inverse Formula

If AA is an invertible matrix, then you can find its inverse by multiplying the adjoint by 11 over the determinant:

A1=1det(A)adj(A)A^{-1} = \frac{1}{\det(A)} \text{adj}(A)

How to Use It

  1. Calculate the determinant of AA. (If it's 00, stop—it's not invertible!)
  2. Find the cofactor for every single entry to build matrix CC.
  3. Transpose CC to get adj(A)\text{adj}(A).
  4. Multiply adj(A)\text{adj}(A) by the scalar 1det(A)\frac{1}{\det(A)}.

2. Cramer's Rule

Cramer's Rule is a fantastic shortcut for solving a linear system without ever doing row reduction! It uses determinants to solve directly for individual variables.

The Theorem

Let AX=bAX = b be a system of nn equations in nn unknowns such that det(A)0\det(A) \neq 0. Then the system has a unique solution given by the formulas:

x1=det(A1)det(A),x2=det(A2)det(A),,xn=det(An)det(A)x_1 = \frac{\det(A_1)}{\det(A)}, \quad x_2 = \frac{\det(A_2)}{\det(A)}, \quad \dots, \quad x_n = \frac{\det(A_n)}{\det(A)}

How to find AjA_j

The matrix AjA_j is obtained by taking the original coefficient matrix AA, and completely replacing its jj-th column with the constant vector bb.

Example

Solve the system:

{x3y+z=42xy=24x3z=0\begin{cases} x - 3y + z = 4 \\ 2x - y = -2 \\ 4x - 3z = 0 \end{cases}

Step 1 - Find det(A)\det(A):

Evaluate the determinant of the coefficient matrix. Let's say det(A)=11\det(A) = -11.

Step 2 - Find xx:

Replace the 1st column of AA with the constants (4,2,0)(4, -2, 0). Evaluate the determinant of this new matrix A1A_1:

x=det(A1)11x = \frac{\det(A_1)}{-11}

Step 3 - Find yy:

Replace the 2nd column of AA with the constants (4,2,0)(4, -2, 0). Evaluate the determinant to get det(A2)\det(A_2):

y=det(A2)11y = \frac{\det(A_2)}{-11}

Step 4 - Find zz:

Replace the 3rd column of AA with the constants (4,2,0)(4, -2, 0). Evaluate the determinant to get det(A3)\det(A_3):

z=det(A3)11z = \frac{\det(A_3)}{-11}
Back to Linear Algebra