Math Lab
Home/Class XII/Ch 3/Elementary operations

Elementary operations

An elementary operation is a single, reversible row (or column) modification that we can apply to a matrix. Three types are allowed, and chaining them is the workhorse of linear algebra: they reduce matrices to simpler forms, solve linear systems, and compute inverses. This subtopic introduces the three types of operations, gives examples of their use, and prepares the way for the inverse-by-row-operations method in the next subtopic.

The three elementary row operations

For a matrix AA:

  1. Swap two rows. RiRjR_i \leftrightarrow R_j swaps rows ii and jj.
  2. Scale a row. RikRiR_i \to k R_i multiplies row ii by a nonzero scalar kk.
  3. Add a multiple of one row to another. RiRi+kRjR_i \to R_i + k R_j where iji \neq j.

Each operation is reversible by another operation of the same type. The three corresponding elementary matrices are obtained by applying the operation to the identity matrix.

Column operations

The three types of column operations CiCjC_i \leftrightarrow C_j, CikCiC_i \to k C_i, CiCi+kCjC_i \to C_i + k C_j are defined identically. Applying a row operation to AA is the same as multiplying AA on the left by the corresponding elementary matrix; column operations correspond to multiplication on the right.

Row-equivalent matrices

Two matrices AA and BB are row-equivalent if one can be transformed into the other by a finite sequence of elementary row operations. We write ABA \sim B.

If ABA \sim B, the systems AX=OAX = O and BX=OBX = O have the same solutions. This is what makes row operations useful for solving systems.

Reduced row echelon form (RREF)

A matrix is in row echelon form if

  • All zero rows are at the bottom.
  • The leading entry (first nonzero entry) of each nonzero row is strictly to the right of the leading entry above.

It is in reduced row echelon form if additionally

  • Each leading entry is 11.
  • The leading entry is the only nonzero entry in its column.

Every matrix is row-equivalent to a unique reduced row echelon form. This is the goal of Gaussian elimination.

Worked example: bringing a matrix to RREF

Let A=(121231110)A = \begin{pmatrix} 1 & 2 & 1 \\ 2 & 3 & 1 \\ 1 & 1 & 0 \end{pmatrix}.

Step 1. R2R22R1R_2 \to R_2 - 2 R_1, R3R3R1R_3 \to R_3 - R_1:

(121011011)\begin{pmatrix} 1 & 2 & 1 \\ 0 & -1 & -1 \\ 0 & -1 & -1 \end{pmatrix}.

Step 2. R2R2R_2 \to -R_2:

(121011011)\begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 0 & -1 & -1 \end{pmatrix}.

Step 3. R3R3+R2R_3 \to R_3 + R_2:

(121011000)\begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{pmatrix}.

Step 4. R1R12R2R_1 \to R_1 - 2 R_2:

(101011000)\begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{pmatrix}.

This is the reduced row echelon form.

Application: solving linear systems

The system {x+2y+z=42x+3y+z=5x+y=1\begin{cases} x + 2y + z = 4 \\ 2x + 3y + z = 5 \\ x + y = 1 \end{cases} has augmented matrix (121423151101)\begin{pmatrix} 1 & 2 & 1 & | & 4 \\ 2 & 3 & 1 & | & 5 \\ 1 & 1 & 0 & | & 1 \end{pmatrix}.

Row-reducing (similar to the example above), we reach (101a011b000c)\begin{pmatrix} 1 & 0 & -1 & | & a \\ 0 & 1 & 1 & | & b \\ 0 & 0 & 0 & | & c \end{pmatrix} for some a,b,ca, b, c. If c=0c = 0, the system has infinitely many solutions parametrised by zz. If c0c \neq 0, no solution.

Elementary matrices

Each elementary operation corresponds to multiplication by an elementary matrix. For n=2n = 2:

  • E1=(0110)E_1 = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} swaps rows when multiplied on the left.
  • E2=(k001)E_2 = \begin{pmatrix} k & 0 \\ 0 & 1 \end{pmatrix} scales row 11.
  • E3=(1k01)E_3 = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix} adds kk times row 22 to row 11.

Elementary matrices are always invertible.

Worked examples

Example 1. Apply R2R23R1R_2 \to R_2 - 3 R_1 to A=(1245)A = \begin{pmatrix} 1 & 2 \\ 4 & 5 \end{pmatrix}.

New matrix: (1211)\begin{pmatrix} 1 & 2 \\ 1 & -1 \end{pmatrix}.

Example 2. Reduce (2436)\begin{pmatrix} 2 & 4 \\ 3 & 6 \end{pmatrix} to row echelon form.

R112R1R_1 \to \tfrac{1}{2}R_1: (1236)\begin{pmatrix} 1 & 2 \\ 3 & 6 \end{pmatrix}. R2R23R1R_2 \to R_2 - 3 R_1: (1200)\begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix}. The matrix has rank 11.

Example 3. Find the rank of (123246369)\begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 3 & 6 & 9 \end{pmatrix}.

All rows are multiples of (1,2,3)(1, 2, 3). Row-reducing gives only one nonzero row. Rank =1= 1.

Example 4. Determine kk such that (12324611k)\begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & k \end{pmatrix} has rank 22.

R2R22R1R_2 \to R_2 - 2R_1 gives a zero row. R3R3R1R_3 \to R_3 - R_1 gives (01k3)\begin{pmatrix} 0 & -1 & k - 3 \end{pmatrix}. Rank =2= 2 iff this row is nonzero , always. (Rank is 22 regardless of kk.)

Example 5. Solve by row-reduction: {x+y=32xy=0\begin{cases} x + y = 3 \\ 2x - y = 0 \end{cases}.

Augmented: (113210)\begin{pmatrix} 1 & 1 & | & 3 \\ 2 & -1 & | & 0 \end{pmatrix}. R2R22R1R_2 \to R_2 - 2R_1: (113036)\begin{pmatrix} 1 & 1 & | & 3 \\ 0 & -3 & | & -6 \end{pmatrix}. Back-substitute: y=2,x=1y = 2, x = 1.

Example 6. Show that the elementary matrix E=(1201)E = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} when applied to AA on the left performs R1R1+2R2R_1 \to R_1 + 2 R_2.

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, EA=(a+2cb+2dcd)EA = \begin{pmatrix} a + 2c & b + 2d \\ c & d \end{pmatrix}. \checkmark

Try it yourself

  1. Apply R2R2+R1R_2 \to R_2 + R_1 to (1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}.
  2. Reduce (1123)\begin{pmatrix} 1 & 1 \\ 2 & 3 \end{pmatrix} to RREF.
  3. Reduce (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} to RREF.
  4. Find the rank of (121242363)\begin{pmatrix} 1 & 2 & 1 \\ 2 & 4 & 2 \\ 3 & 6 & 3 \end{pmatrix}.
  5. Solve by elimination: {x+2y=33x+y=4\begin{cases} x + 2y = 3 \\ 3x + y = 4 \end{cases}.
  6. Write down the elementary matrix that swaps rows 11 and 33 in a 3×33 \times 3 matrix.
  7. Write down the elementary matrix that scales row 22 by 55 in a 3×33 \times 3 matrix.
  8. Apply R3R3R2R1R_3 \to R_3 - R_2 - R_1 to (100210321)\begin{pmatrix} 1 & 0 & 0 \\ 2 & 1 & 0 \\ 3 & 2 & 1 \end{pmatrix}.
  9. Show that two elementary matrices in succession need not commute.
  10. Reduce (123234345)\begin{pmatrix} 1 & -2 & 3 \\ 2 & -3 & 4 \\ 3 & -4 & 5 \end{pmatrix} to RREF and state its rank.
  11. Find a row-echelon form of (001012123)\begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & 2 \\ 1 & 2 & 3 \end{pmatrix}.
  12. Show that two row-equivalent matrices have the same rank.
  13. Solve {x+y+z=1x+2y+3z=22x+3y+4z=3\begin{cases} x + y + z = 1 \\ x + 2y + 3z = 2 \\ 2x + 3y + 4z = 3 \end{cases} by row reduction.
  14. Determine if {x+y=12x+2y=3\begin{cases} x + y = 1 \\ 2x + 2y = 3 \end{cases} is consistent.

Pitfalls / Tricks

  • Row scaling requires a nonzero scalar , multiplying by 00 would destroy information.
  • The order of operations matters; chain them carefully.
  • When solving, keep the augmented matrix's bar consistent , entries to the left of | are coefficients, to the right are constants.
  • A consistent system has at least one solution; an inconsistent system has none (it reduces to a row 00c0 \cdots 0 | c with c0c \neq 0).

The next subtopic builds the inverse of a matrix by precisely these operations.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Elementary operations
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6