Elementary Matrix — Definition, Formula & Examples
An elementary matrix is a square matrix you get by performing exactly one row operation on the identity matrix. Multiplying another matrix on the left by it performs that same row operation.
An matrix is elementary if it is obtained from by a single elementary row operation. There are three types: (1) interchange rows and (a swap or permutation matrix); (2) multiply row by a scalar ; (3) add times row to row , with (a replacement). For any matrix , the product equals the result of applying that operation to . Every elementary matrix is invertible, and its inverse is an elementary matrix of the same type.
Key Formula
Where:
- = the replacement-type elementary matrix that adds times row to row
- = the identity matrix
- = any scalar
- = standard basis column vectors (a 1 in position or , zeros elsewhere)
Worked Example
Problem: Let . Find the elementary matrix for the row operation , verify that performs this operation, and find .
Step 1: Apply to the identity . Row 2 of is . Subtracting gives .
Step 2: Multiply on the left of . Row 1 is unchanged. Row 2 becomes .
Step 3: To undo the operation, add 3 times row 1 back to row 2. That reverse operation gives the inverse, which is also an elementary matrix.
Answer: and , which is exactly after . The inverse is .
Why It Matters
In a first linear algebra course, writing Gaussian elimination as lets you prove that every invertible matrix is a product of elementary matrices and leads directly to the LU factorization. Elementary matrices also explain the determinant rules for row operations. A swap has determinant , scaling a row by has determinant , and a replacement has determinant .
Common Mistakes
Mistake: Multiplying on the right, computing instead of , and expecting a row operation.
Correction: Right-multiplication by performs the corresponding column operation on . To change rows, put on the left.
