Chalk−1

Math · Precalculus · Worked example

Solve a 3 × 3 system with row reduction

Solve the system x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2 by row reduction.

[11162−11312−12]

Clear the first column

Replace R₂ with R₂ − 2R₁ and R₃ with R₃ − R₁ to put zeros below the first pivot.

[11160−3−1−901−2−4]

Clear the second column

Swap R₂ and R₃ so that the second pivot is 1, then replace the new R₃ with R₃ + 3R₂.

[111601−2−400−7−21]

Back-substitute

The last row says −7z = −21, so z = 3. Then y − 2z = −4 gives y = 2, and x + y + z = 6 gives x = 1.

−7⁢z=−21z=3

Or finish to RREF

Scaling R₃ by −1/7 and clearing the entries above each pivot leaves the identity matrix on the left; the last column is the solution.

[100101020013]

Check

Substitute (1, 2, 3) into each original equation.

1+2+3=62⋅1−2+3=31+2⋅2−3=2

Result

x = 1, y = 2, z = 3.

Your turn

Solve x − y + 2z = 5, 2x + y − z = 2, x + 2y + z = 1 with an augmented matrix.

Show the answer and explanation

x = 2, y = −1, z = 1.

Row reduction leaves the identity matrix beside the column (2, −1, 1). Substituting checks each equation: 2 + 1 + 2 = 5, 4 − 1 − 1 = 2 and 2 − 2 + 1 = 1.

2−(−1)+2⋅1=52⋅2+(−1)−1=22+2⋅(−1)+1=1

Keep exploring

In Matrices & linear systems, the operation trail shows each step to the RREF. Remove the last column and switch the task to Determinant: it is 7, not 0, which is why the system has exactly one solution.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

Make it concrete

Try in the workspace

Open the example inputs, change a value and keep a useful result on your board.

Row-reduce it in Matrices & linear systems Check the solution in Math Open worked example on a board Matrix Transformations in Math Reference

Your existing work stays on this device. Examples open as editable copies.