tutorials

Table of contents

  1. Recall: Elementary row operations
  2. Question 1: Solve the following system of equations using reduced row echelon form (RREF)
  3. Question 2: Find the matrix product of AB
  4. A find A-1
  5. Question 3: Find the inverse of the following matrix.

1. Recall: Elementary row operations

1.1 Definition of elementary row operations

Elementary row operations are fundamental transformations applied to matrices in linear algebra. These operations are crucial for solving systems of linear equations and for transforming matrices into simpler forms, such as Row Reduced Echelon Form (RREF).

The three types of elementary row operations are: multiplying a row by a nonzero constant, interchanging two rows, and adding a constant multiple of one row to another 1.

This diagram shows a matrix undergoing row operations to reach Row Reduced Echelon Form (RREF).

1.2 Types of elementary row operations

The three elementary row operations are defined as follows:

  • Multiplying a row by a nonzero constant: This operation involves scaling a row by any number except zero. It is denoted as cRicR_i, where cc is the nonzero constant and RiR_i represents the ii-th row.
  • Interchanging two rows: This operation swaps the positions of two rows within the matrix. It is denoted as Ri↔RjR_i \leftrightarrow R_j, where RiR_i and RjR_j are the ii-th and jj-th rows, respectively.
  • Adding a constant times one row to another: This operation involves adding a scalar multiple of one row to another row. It is denoted as cRi+RjcR_i + R_j, where cc is a constant, RiR_i is the row being multiplied, and RjR_j is the row to which the result is added 1.

1.3 Example of row operations to reach RREF

Consider a matrix that needs to be transformed into Row Reduced Echelon Form (RREF). The process involves applying a sequence of elementary row operations.

For instance, to obtain RREF, one might multiply the second row (R2R_2) by a constant, such as 12\frac{1}{2}, to make the leading entry in that row a 1. This step is represented as 12R2\frac{1}{2} R_2. The goal is to systematically create leading 1s in each row and zeros elsewhere, as illustrated in the transformation towards RREF 1.

📝 Transforming a matrix to RREF.

Given a matrix, the following operations can lead to RREF:

  • Initial matrix transformation: [102020000]\begin{bmatrix} 1 & 0 & 2 \\ 0 & 2 & 0 \\ 0 & 0 & 0 \end{bmatrix}
  • Multiply the second row by 12\frac{1}{2}: 12R2\frac{1}{2} R_2 [102010000]\begin{bmatrix} 1 & 0 & 2 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{bmatrix}
  • This resulting matrix is in Row Reduced Echelon Form (RREF) 1.

2. Question 1: Solve the following system of equations using reduced row echelon form (RREF)

2.1 Solving systems of equations using RREF

This section demonstrates how to solve systems of linear equations by transforming their augmented matrices into reduced row echelon form (RREF). The RREF of a matrix is a simplified form where leading entries (pivots) are 1, and all other entries in a pivot column are 0. This process helps identify the nature of the solution: a unique solution, infinitely many solutions, or no solution.

The core technique involves applying elementary row operations to the augmented matrix. These operations include swapping two rows, multiplying a row by a non-zero scalar, and adding a multiple of one row to another.

The goal is to systematically create leading 1s and zeros in the matrix.

2.2 System with a unique solution

A system of equations has a unique solution when, after transforming the augmented matrix to RREF, each variable corresponds to a leading 1 (a pivot) in its column, and there are no contradictions. This typically results in a diagonal matrix of coefficients with zeros in the last column for a homogeneous system, or specific values for each variable in a non-homogeneous system.

For the system: 3x1+x2+x3=63x_1 + x_2 + x_3 = 6 x1+2x2=3x_1 + 2x_2 = 3 x2+x3=2x_2 + x_3 = 2

The augmented matrix is transformed through row operations:

  • Swap R1 and R2: [120∣3311∣6011∣2]\begin{bmatrix} 1 & 2 & 0 & | & 3 \\ 3 & 1 & 1 & | & 6 \\ 0 & 1 & 1 & | & 2 \end{bmatrix}
  • Perform −3R1+R2-3R_1 + R_2: [120∣30−51∣−3011∣2]\begin{bmatrix} 1 & 2 & 0 & | & 3 \\ 0 & -5 & 1 & | & -3 \\ 0 & 1 & 1 & | & 2 \end{bmatrix}
  • Swap R2 and R3: [120∣3011∣20−51∣−3]\begin{bmatrix} 1 & 2 & 0 & | & 3 \\ 0 & 1 & 1 & | & 2 \\ 0 & -5 & 1 & | & -3 \end{bmatrix}
  • Perform 2R2+R12R_2 + R_1 and 5R2+R35R_2 + R_3: [10−2∣−1011∣2006∣7]\begin{bmatrix} 1 & 0 & -2 & | & -1 \\ 0 & 1 & 1 & | & 2 \\ 0 & 0 & 6 & | & 7 \end{bmatrix}
  • Multiply R3 by 1/6: [10−2∣−1011∣2001∣7/6]\begin{bmatrix} 1 & 0 & -2 & | & -1 \\ 0 & 1 & 1 & | & 2 \\ 0 & 0 & 1 & | & 7/6 \end{bmatrix}
  • Perform −1R3+R2-1R_3 + R_2 and 2R3+R12R_3 + R_1: [100∣3010∣5/6001∣7/6]\begin{bmatrix} 1 & 0 & 0 & | & 3 \\ 0 & 1 & 0 & | & 5/6 \\ 0 & 0 & 1 & | & 7/6 \end{bmatrix} The RREF matrix indicates a unique solution where x1=3x_1 = 3, x2=5/6x_2 = 5/6, and x3=7/6x_3 = 7/6 2.

📝 For the system 3x1+x2+x3=63x_1 + x_2 + x_3 = 6, x1+2x2=3x_1 + 2x_2 = 3, and x2+x3=2x_2 + x_3 = 2, the RREF of the augmented matrix is [100∣3010∣5/6001∣7/6]\begin{bmatrix} 1 & 0 & 0 & | & 3 \\ 0 & 1 & 0 & | & 5/6 \\ 0 & 0 & 1 & | & 7/6 \end{bmatrix}, indicating the unique solution x1=3x_1 = 3, x2=5/6x_2 = 5/6, and x3=7/6x_3 = 7/6 2.

2.3 System with infinitely many solutions

A system has infinitely many solutions when the RREF of its augmented matrix contains rows of zeros, indicating that some variables (free variables) can take on any value, and the other variables (leading variables) depend on these free variables.

Consider the system: x+y+2z−w=−1x + y + 2z - w = -1 2x+y−2z−2w=−22x + y - 2z - 2w = -2 −x+y−4z+w=1-x + y - 4z + w = 1 3x−3w=−33x - 3w = -3

The augmented matrix is: [112−1∣−121−2−2∣−2−11−41∣1300−3∣−3]\begin{bmatrix} 1 & 1 & 2 & -1 & | & -1 \\ 2 & 1 & -2 & -2 & | & -2 \\ -1 & 1 & -4 & 1 & | & 1 \\ 3 & 0 & 0 & -3 & | & -3 \end{bmatrix} After applying row operations, the matrix reduces to: [10−1−1∣−101−20∣00000∣00000∣0]\begin{bmatrix} 1 & 0 & -1 & -1 & | & -1 \\ 0 & 1 & -2 & 0 & | & 0 \\ 0 & 0 & 0 & 0 & | & 0 \\ 0 & 0 & 0 & 0 & | & 0 \end{bmatrix} This RREF shows two leading variables (xx and yy) and two free variables (zz and ww). Let z=Sz=S and w=tw=t.

The equations become x−w=−1x - w = -1 and y−2z=0y - 2z = 0. Solving for the leading variables gives x=−1+w=−1+tx = -1 + w = -1 + t and y=2z=2Sy = 2z = 2S.

Thus, the solution set is {x=−1+t,y=2S,z=S,w=t}\{x = -1+t, y = 2S, z = S, w = t\}, indicating infinitely many solutions 3.

2.4 System with no solution

A system of equations has no solution if, during the process of reducing the augmented matrix to RREF, a row of the form [0 0 … 0 ∣ c][0 \ 0 \ \dots \ 0 \ | \ c] is obtained, where cc is a non-zero constant. This represents a contradiction, such as 0=c0 = c, which is impossible.

2.5 Homogeneous systems

Homogeneous systems of linear equations are those where all constant terms are zero. They always have at least one solution: the trivial solution, where all variables are zero.

If the RREF of the coefficient matrix has fewer leading variables than total variables, the system will have infinitely many solutions in addition to the trivial one.

Consider the homogeneous system: 2x1+x2+3x3=02x_1 + x_2 + 3x_3 = 0 x1+2x2=0x_1 + 2x_2 = 0 x2+x3=0x_2 + x_3 = 0

The augmented matrix is: [213∣0120∣0011∣0]\begin{bmatrix} 2 & 1 & 3 & | & 0 \\ 1 & 2 & 0 & | & 0 \\ 0 & 1 & 1 & | & 0 \end{bmatrix} After row reduction, the matrix becomes: [100∣0010∣0001∣0]\begin{bmatrix} 1 & 0 & 0 & | & 0 \\ 0 & 1 & 0 & | & 0 \\ 0 & 0 & 1 & | & 0 \end{bmatrix} This RREF indicates that x1=0x_1=0, x2=0x_2=0, and x3=0x_3=0, which is the unique trivial solution 4.

Consider another homogeneous system: 3x1+x2+x3+x4=03x_1 + x_2 + x_3 + x_4 = 0 5x1−x2+x3−x4=05x_1 - x_2 + x_3 - x_4 = 0

The augmented matrix is: [3111∣05−11−1∣0]\begin{bmatrix} 3 & 1 & 1 & 1 & | & 0 \\ 5 & -1 & 1 & -1 & | & 0 \end{bmatrix} After row reduction, the matrix becomes: [101/41/4∣0011/41/4∣0]\begin{bmatrix} 1 & 0 & 1/4 & 1/4 & | & 0 \\ 0 & 1 & 1/4 & 1/4 & | & 0 \end{bmatrix} This RREF shows two leading variables (x1,x2x_1, x_2) and two free variables (x3,x4x_3, x_4). Let x3=Sx_3 = S and x4=tx_4 = t.

The equations are x1+14x3+14x4=0x_1 + \frac{1}{4}x_3 + \frac{1}{4}x_4 = 0 and x2+14x3+14x4=0x_2 + \frac{1}{4}x_3 + \frac{1}{4}x_4 = 0. Solving for the leading variables yields x1=−14x3=−14Sx_1 = -\frac{1}{4}x_3 = -\frac{1}{4}S and x2=−14x3−x4=−14S−tx_2 = -\frac{1}{4}x_3 - x_4 = -\frac{1}{4}S - t.

The solution set is {x1=−1/4S,x2=−1/4S−t,x3=S,x4=t}\{x_1 = -1/4 S, x_2 = -1/4 S - t, x_3 = S, x_4 = t\}, indicating infinitely many solutions 5.

Matrix FormNumber of SolutionsInterpretation
Each variable is a leading variable (no zero rows in coefficient part).Unique SolutionThe system has exactly one set of values for the variables.
Zero rows in the coefficient part of the RREF matrix, with no contradictory rows (e.g., [0 0c where c!= 0).Infinitely Many Solutions
A contradictory row (e.g., [0 0c where c!= 0) appears in the RREF matrix.No Solution

3. Question 2: Find the matrix product of AB

3.1 Matrix multiplication

Matrix multiplication is a binary operation that produces a matrix from two matrices. For the product of two matrices, A and B, to be defined, the number of columns in matrix A must equal the number of rows in matrix B. If matrix A has dimensions m×nm \times n and matrix B has dimensions n×pn \times p, their product AB will have dimensions m×pm \times p.

Each element in the resulting matrix is calculated by summing the products of the corresponding elements from a row of the first matrix and a column of the second matrix 6 7.

This diagram illustrates the process of multiplying two matrices, A and B, showing the dimensions and the step-by-step calculation of the resulting matrix.

3.2 Example: Multiplying a 2x2 matrix by a 2x3 matrix

Given matrix A as [4−32−1]\begin{bmatrix} 4 & -3 \\ 2 & -1 \end{bmatrix} and matrix B as [012−231]\begin{bmatrix} 0 & 1 & 2 \\ -2 & 3 & 1 \end{bmatrix}, we can find the matrix product AB. Matrix A has dimensions 2×22 \times 2 and matrix B has dimensions 2×32 \times 3.

The resulting matrix AB will have dimensions 2×32 \times 3 6.

The calculation proceeds as follows:

  • The element in the first row, first column of AB is (4×0)+(−3×−2)=0+6=6(4 \times 0) + (-3 \times -2) = 0 + 6 = 6.
  • The element in the first row, second column of AB is (4×1)+(−3×3)=4−9=−5(4 \times 1) + (-3 \times 3) = 4 - 9 = -5.
  • The element in the first row, third column of AB is (4×2)+(−3×1)=8−3=5(4 \times 2) + (-3 \times 1) = 8 - 3 = 5.
  • The element in the second row, first column of AB is (2×0)+(−1×−2)=0+2=2(2 \times 0) + (-1 \times -2) = 0 + 2 = 2.
  • The element in the second row, second column of AB is (2×1)+(−1×3)=2−3=−1(2 \times 1) + (-1 \times 3) = 2 - 3 = -1.
  • The element in the second row, third column of AB is (2×2)+(−1×1)=4−1=3(2 \times 2) + (-1 \times 1) = 4 - 1 = 3.

Therefore, the resulting matrix AB is [6−552−13]\begin{bmatrix} 6 & -5 & 5 \\ 2 & -1 & 3 \end{bmatrix} 6.

📝 Find the matrix product of AB, where A=[4−32−1]A = \begin{bmatrix} 4 & -3 \\ 2 & -1 \end{bmatrix} and B=[012−231]B = \begin{bmatrix} 0 & 1 & 2 \\ -2 & 3 & 1 \end{bmatrix}. The product AB is [6−552−13]\begin{bmatrix} 6 & -5 & 5 \\ 2 & -1 & 3 \end{bmatrix} 6.

3.3 Example: Multiplying a 2x3 matrix by a 3x2 matrix

Given matrix A as [123456]\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} and matrix B as [123456]\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{bmatrix}, we can find the matrix product AB. Matrix A has dimensions 2×32 \times 3 and matrix B has dimensions 3×23 \times 2.

The resulting matrix AB will have dimensions 2×22 \times 2 7.

The calculation proceeds as follows:

  • The element in the first row, first column of AB is (1)(1)+(2)(3)+(3)(5)=1+6+15=22(1)(1) + (2)(3) + (3)(5) = 1 + 6 + 15 = 22.
  • The element in the first row, second column of AB is (1)(2)+(2)(4)+(3)(6)=2+8+18=28(1)(2) + (2)(4) + (3)(6) = 2 + 8 + 18 = 28.
  • The element in the second row, first column of AB is (4)(1)+(5)(3)+(6)(5)=4+15+30=49(4)(1) + (5)(3) + (6)(5) = 4 + 15 + 30 = 49.
  • The element in the second row, second column of AB is (4)(2)+(5)(4)+(6)(6)=8+20+36=64(4)(2) + (5)(4) + (6)(6) = 8 + 20 + 36 = 64.

Therefore, the resulting matrix AB is [22284964]\begin{bmatrix} 22 & 28 \\ 49 & 64 \end{bmatrix} 7.

This diagram illustrates the process of multiplying two matrices, A and B, showing the dimensions of the matrices and the calculation steps.

📝 Find the matrix product of AB, where A=[123456]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} and B=[123456]B = \begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{bmatrix}. The product AB is [22284964]\begin{bmatrix} 22 & 28 \\ 49 & 64 \end{bmatrix} 7.

4. A find A-1

4.1 The inverse of a square matrix

The inverse of a square matrix, denoted as A−1A^{-1}, is a matrix such that when multiplied by the original matrix AA, it results in the identity matrix II. This relationship is expressed as A−1A=AA−1=IA^{-1}A = AA^{-1} = I.

The identity matrix II is a square matrix with ones on the main diagonal and zeros elsewhere. For a 3x3 matrix, the identity matrix I3I_3 is: I3=[100010001]I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} For a 2x2 matrix, the identity matrix I2I_2 is: I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} 8.

4.2 Finding the inverse using elementary row operations

To find the inverse of a square matrix AA, we can use elementary row operations. This process involves augmenting the matrix AA with the identity matrix II, creating a combined matrix [A∣I][A|I].

The goal is to transform the left side of this augmented matrix (originally AA) into the identity matrix II using elementary row operations. If this transformation is successful, the right side of the augmented matrix will then be the inverse of AA, resulting in [I∣A−1][I|A^{-1}] 8.

5. Question 3: Find the inverse of the following matrix.

5.1 Finding the inverse of a matrix

To find the inverse of a matrix, we can use the Gauss-Jordan elimination method. This involves augmenting the matrix with the identity matrix of the same dimension, [A∣I][A|I].

We then apply elementary row operations to transform the left side (matrix A) into the identity matrix. If this transformation is successful, the right side of the augmented matrix will become the inverse of A, denoted as A−1A^{-1}, resulting in [I∣A−1][I|A^{-1}].

If the matrix cannot be reduced to the identity matrix, it means the matrix is not invertible and has no inverse 9.

The process involves a series of row operations:

  • Swapping two rows.
  • Multiplying a row by a non-zero scalar.
  • Adding a multiple of one row to another row.

The goal is to systematically eliminate elements above and below the main diagonal, turning the original matrix into the identity matrix 10.

5.2 Example: Invertible matrix

Consider the matrix: A=[266276277]A = \begin{bmatrix} 2 & 6 & 6 \\ 2 & 7 & 6 \\ 2 & 7 & 7 \end{bmatrix} 10.

To find its inverse, we set up the augmented matrix [A∣I3][A|I_3]: [266∣100276∣010277∣001]\begin{bmatrix} 2 & 6 & 6 & | & 1 & 0 & 0 \\ 2 & 7 & 6 & | & 0 & 1 & 0 \\ 2 & 7 & 7 & | & 0 & 0 & 1 \end{bmatrix} 10.

Applying elementary row operations, we transform the left side into the identity matrix I3I_3: [133∣1/200010∣−110001∣0−11]\begin{bmatrix} 1 & 3 & 3 & | & 1/2 & 0 & 0 \\ 0 & 1 & 0 & | & -1 & 1 & 0 \\ 0 & 0 & 1 & | & 0 & -1 & 1 \end{bmatrix} 10.

Further row operations lead to: [100∣7/2−30010∣−110001∣0−11]\begin{bmatrix} 1 & 0 & 0 & | & 7/2 & -3 & 0 \\ 0 & 1 & 0 & | & -1 & 1 & 0 \\ 0 & 0 & 1 & | & 0 & -1 & 1 \end{bmatrix} 10.

Thus, the inverse matrix A−1A^{-1} is: A−1=[7/2−30−1100−11]A^{-1} = \begin{bmatrix} 7/2 & -3 & 0 \\ -1 & 1 & 0 \\ 0 & -1 & 1 \end{bmatrix} 10.

To verify, we can check if A−1A=AA−1=I3A^{-1}A = AA^{-1} = I_3 10.

📝 For the matrix A=[266276277]A = \begin{bmatrix} 2 & 6 & 6 \\ 2 & 7 & 6 \\ 2 & 7 & 7 \end{bmatrix}, the inverse is found to be A−1=[7/2−30−1100−11]A^{-1} = \begin{bmatrix} 7/2 & -3 & 0 \\ -1 & 1 & 0 \\ 0 & -1 & 1 \end{bmatrix} 10.

5.3 Example: Another invertible matrix

Consider the matrix: A=[101011110]A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & 0 \end{bmatrix} 11.

Augmenting with the identity matrix [A∣I][A|I]: [101∣100011∣010110∣001]\begin{bmatrix} 1 & 0 & 1 & | & 1 & 0 & 0 \\ 0 & 1 & 1 & | & 0 & 1 & 0 \\ 1 & 1 & 0 & | & 0 & 0 & 1 \end{bmatrix} 11.

After applying row operations to achieve Reduced Row Echelon Form (RREF): [100∣1/2−1/21/2010∣−1/21/21/2001∣1/21/2−1/2]\begin{bmatrix} 1 & 0 & 0 & | & 1/2 & -1/2 & 1/2 \\ 0 & 1 & 0 & | & -1/2 & 1/2 & 1/2 \\ 0 & 0 & 1 & | & 1/2 & 1/2 & -1/2 \end{bmatrix} 11.

The inverse matrix A−1A^{-1} is: A−1=[1/2−1/21/2−1/21/21/21/21/2−1/2]A^{-1} = \begin{bmatrix} 1/2 & -1/2 & 1/2 \\ -1/2 & 1/2 & 1/2 \\ 1/2 & 1/2 & -1/2 \end{bmatrix} 11.

This can be checked by confirming A−1A=AA−1=I3A^{-1}A = AA^{-1} = I_3 11.

5.4 Example: Non-invertible matrix

Consider a matrix where row operations lead to a row of zeros on the left side of the augmented matrix. For instance, if after applying elementary row operations, the matrix transforms into: [1……∣…01…∣…000∣…]\begin{bmatrix} 1 & \dots & \dots & | & \dots \\ 0 & 1 & \dots & | & \dots \\ 0 & 0 & 0 & | & \dots \end{bmatrix} 9.

The presence of a row of zeros on the left side indicates that the original matrix cannot be reduced to the identity matrix. This means the matrix is singular and does not possess an inverse 9.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also