Row operations and linear models · Mathematics Class… | StemPy Lab
Course 8.3·Lesson 3 of 3
Row operations and linear models
There are three elementary row operations: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. Applying the operations that turn A into I to the matrix I
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
use the three elementary row operations;
find an inverse by turning [A∣I] into [I∣A−1];
read the three cases of a system from the reduced augmented matrix;
set up a real situation, such as traffic or an economy, as a system and solve it.
Elementary row operations
There are three elementary row operations:
Swap two rows: Ri↔Rj.
Scale a row by a non-zero number: Ri→kRi.
Add a multiple of one row to another: Ri→Ri+kRj.
Each operation can be undone by another one, so none of them changes the solutions of a system of equations. Row operations are the steps you use when you eliminate unknowns by hand.
The inverse by row operations
Write A next to the identity matrix: [A∣I]. Now use row operations until the left half becomes I. The same operations turn the right half into A−1:
[A∣I]⟶[I∣A−1].
Why does it work? Each row operation is a multiplication on the left by some matrix. All the operations together multiply A by one matrix E so that EA=I. Then E=A−1, and since E also multiplied I, the right half is EI=A−1.
If a row of zeros appears in the left half, A is singular and has no inverse. Stop: the work has told you that ∣A∣=0.
Solving a system by row operations
Write the augmented matrix[A∣B] and reduce the left half as far as you can.
If you can reach [I∣X], the system has the unique solution X.
If a row becomes (000∣c) with c=0, the system is inconsistent: no solution.
If a row becomes (000∣0) and there is no contradiction, there are infinitely many solutions.
For x+y+z=6, x+2y+3z=14, 2x+3y+4z=21, the operations R2→R2−R1 and R3→R3−2R1, then R3→R3−R2, give a last row (000∣1). The system has no solution. With 20 in place of 21, the last row is (000∣0) and there are infinitely many.
Linear models
An economy. Two industries, say steel and power, each need some of their own output and some of the other's. Let C hold these amounts: cij is the amount of industry i used to make one unit of industry j. If the outside demand is d and the industries produce x, then production minus the amount used up equals the demand:
A traffic network. At a junction, the cars that arrive equal the cars that leave. Each junction gives one linear equation. The unknowns are the flows on the roads. A problem below sets up three junctions.
A diagram of three road junctions P, Q and R joined in a triangle by three roads. The road between P and Q carries x cars per hour, the road between Q and R carries y, and the road between R and P carries z. Arrows show 800 cars per hour at Q, 700 at R and 900 at P. The equations x plus y equals 800, y plus z equals 700 and x plus z equals 900 are written beside the diagram.
The program keeps the augmented matrix [A∣I] as exact fractions. It finds a pivot in each column, scales it to 1, clears the rest of the column and prints the matrix after each column. The last print shows the inverse.
Common mistakes
Applying a row operation to only one half. The operation acts on the whole row of [A∣I].
Scaling a row by 0. The scaling number must not be 0.
Clearing a column and spoiling the one before. Work column by column, using the pivot row.
Reading the wrong half. The inverse is the right half once the left half is I.
Ignoring a row of zeros. It means the matrix is singular, or the system has a free unknown.
Remember these
The three row operations: swap, scale by a non-zero number, add a multiple of another row.
[A∣I]→[I∣A−1].
On [A∣B]: a row (000∣c) with c=0 means no solution.
Models: junction flows give Ax=b, and an economy gives x=(I−C)−1d.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Apply R2→R2−3R1 to [13271001]. Write the new row 2.
Continue the last exercise with R1→R1−2R2 and read off the inverse.
[7−3−21]
$.
After row operations an augmented matrix has the last row (000∣5). What does this say?
After row operations an augmented matrix has the last row (000∣0) and no contradiction. What does this say?
Three junctions give x+y=5, y+z=7 and x+z=6. Add all three equations and find x+y+z.
References
NCERT, Mathematics Textbook for Class XII, Part I, Chapter 3 (Matrices), the section on elementary operations and the inverse of a matrix.
OpenStax, Precalculus 2e, Section 9.6 (Solving Systems with Gaussian Elimination).
Enroll free in Inverse of a Matrix and Systems of Linear Equations
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.