tutorials
Table of contents
- Recall: Elementary row operations
- Question 1: Solve the following system of equations using reduced row echelon form (RREF)
- Question 2: Find the matrix product of AB
- A find A-1
- 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.

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 cRi, where c is the nonzero constant and Ri represents the i-th row.
- Interchanging two rows: This operation swaps the positions of two rows within the matrix. It is denoted as Ri↔Rj, where Ri and Rj are the i-th and j-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+Rj, where c is a constant, Ri is the row being multiplied, and Rj 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 (R2) by a constant, such as 21, to make the leading entry in that row a 1. This step is represented as 21R2. 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: 100020200
- Multiply the second row by 21: 21R2 100010200
- 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=6 x1+2x2=3 x2+x3=2
The augmented matrix is transformed through row operations:
- Swap R1 and R2: 130211011∣∣∣362
- Perform −3R1+R2: 1002−51011∣∣∣3−32
- Swap R2 and R3: 10021−5011∣∣∣32−3
- Perform 2R2+R1 and 5R2+R3: 100010−216∣∣∣−127
- Multiply R3 by 1/6: 100010−211∣∣∣−127/6
- Perform −1R3+R2 and 2R3+R1: 100010001∣∣∣35/67/6 The RREF matrix indicates a unique solution where x1=3, x2=5/6, and x3=7/6 2.
📝 For the system 3x1+x2+x3=6, x1+2x2=3, and x2+x3=2, the RREF of the augmented matrix is 100010001∣∣∣35/67/6, indicating the unique solution x1=3, x2=5/6, and x3=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=−1 2x+y−2z−2w=−2 −x+y−4z+w=1 3x−3w=−3
The augmented matrix is: 12−1311102−2−40−1−21−3∣∣∣∣−1−21−3 After applying row operations, the matrix reduces to: 10000100−1−200−1000∣∣∣∣−1000 This RREF shows two leading variables (x and y) and two free variables (z and w). Let z=S and w=t.
The equations become x−w=−1 and y−2z=0. Solving for the leading variables gives x=−1+w=−1+t and y=2z=2S.
Thus, the solution set is {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] is obtained, where c is a non-zero constant. This represents a contradiction, such as 0=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=0 x1+2x2=0 x2+x3=0
The augmented matrix is: 210121301∣∣∣000 After row reduction, the matrix becomes: 100010001∣∣∣000 This RREF indicates that x1=0, x2=0, and x3=0, which is the unique trivial solution 4.
Consider another homogeneous system: 3x1+x2+x3+x4=0 5x1−x2+x3−x4=0
The augmented matrix is: [351−1111−1∣∣00] After row reduction, the matrix becomes: [10011/41/41/41/4∣∣00] This RREF shows two leading variables (x1,x2) and two free variables (x3,x4). Let x3=S and x4=t.
The equations are x1+41x3+41x4=0 and x2+41x3+41x4=0. Solving for the leading variables yields x1=−41x3=−41S and x2=−41x3−x4=−41S−t.
The solution set is {x1=−1/4S,x2=−1/4S−t,x3=S,x4=t}, indicating infinitely many solutions 5.
| Matrix Form | Number of Solutions | Interpretation |
|---|---|---|
| Each variable is a leading variable (no zero rows in coefficient part). | Unique Solution | The 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 0 | c where c!= 0). | Infinitely Many Solutions |
| A contradictory row (e.g., [0 0 | c 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×n and matrix B has dimensions n×p, their product AB will have dimensions m×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.

3.2 Example: Multiplying a 2x2 matrix by a 2x3 matrix
Given matrix A as [42−3−1] and matrix B as [0−21321], we can find the matrix product AB. Matrix A has dimensions 2×2 and matrix B has dimensions 2×3.
The resulting matrix AB will have dimensions 2×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.
- The element in the first row, second column of AB is (4×1)+(−3×3)=4−9=−5.
- The element in the first row, third column of AB is (4×2)+(−3×1)=8−3=5.
- The element in the second row, first column of AB is (2×0)+(−1×−2)=0+2=2.
- The element in the second row, second column of AB is (2×1)+(−1×3)=2−3=−1.
- The element in the second row, third column of AB is (2×2)+(−1×1)=4−1=3.
Therefore, the resulting matrix AB is [62−5−153] 6.
📝 Find the matrix product of AB, where A=[42−3−1] and B=[0−21321]. The product AB is [62−5−153] 6.
3.3 Example: Multiplying a 2x3 matrix by a 3x2 matrix
Given matrix A as [142536] and matrix B as 135246, we can find the matrix product AB. Matrix A has dimensions 2×3 and matrix B has dimensions 3×2.
The resulting matrix AB will have dimensions 2×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.
- The element in the first row, second column of AB is (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.
- The element in the second row, second column of AB is (4)(2)+(5)(4)+(6)(6)=8+20+36=64.
Therefore, the resulting matrix AB is [22492864] 7.

📝 Find the matrix product of AB, where A=[142536] and B=135246. The product AB is [22492864] 7.
4. A find A-1
4.1 The inverse of a square matrix
The inverse of a square matrix, denoted as A−1, is a matrix such that when multiplied by the original matrix A, it results in the identity matrix I. This relationship is expressed as A−1A=AA−1=I.
The identity matrix I is a square matrix with ones on the main diagonal and zeros elsewhere. For a 3x3 matrix, the identity matrix I3 is: I3=100010001 For a 2x2 matrix, the identity matrix I2 is: I2=[1001] 8.
4.2 Finding the inverse using elementary row operations
To find the inverse of a square matrix A, we can use elementary row operations. This process involves augmenting the matrix A with the identity matrix I, creating a combined matrix [A∣I].
The goal is to transform the left side of this augmented matrix (originally A) into the identity matrix I using elementary row operations. If this transformation is successful, the right side of the augmented matrix will then be the inverse of A, resulting in [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].
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−1, resulting in [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=222677667 10.
To find its inverse, we set up the augmented matrix [A∣I3]: 222677667∣∣∣100010001 10.
Applying elementary row operations, we transform the left side into the identity matrix I3: 100310301∣∣∣1/2−1001−1001 10.
Further row operations lead to: 100010001∣∣∣7/2−10−31−1001 10.
Thus, the inverse matrix A−1 is: A−1=7/2−10−31−1001 10.
To verify, we can check if A−1A=AA−1=I3 10.
📝 For the matrix A=222677667, the inverse is found to be A−1=7/2−10−31−1001 10.
5.3 Example: Another invertible matrix
Consider the matrix: A=101011110 11.
Augmenting with the identity matrix [A∣I]: 101011110∣∣∣100010001 11.
After applying row operations to achieve Reduced Row Echelon Form (RREF): 100010001∣∣∣1/2−1/21/2−1/21/21/21/21/2−1/2 11.
The inverse matrix A−1 is: A−1=1/2−1/21/2−1/21/21/21/21/2−1/2 11.
This can be checked by confirming A−1A=AA−1=I3 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: 100…10……0∣∣∣……… 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.