Femtobytes
Problem type

Solve a system of linear equations by row reduction

What it solves
Solve up to four linear equations in up to four unknowns by Gauss-Jordan elimination, with every row operation worked entry by entry. The system may have one solution, none, or infinitely many, and the answer is checked in every equation.
Subject
Linear Algebra
Topic
Row reduction and systems
Also called
simultaneous equations, system of equations, augmented matrix, solve a system
Your problem

Solve this system of linear equations.

x+y=5−3x+y=−11\begin{aligned} x + y &= 5 \\ -3 x + y &= -11 \end{aligned}
The augmented matrix
Equations2
Unknowns2
One row per equation. The last column holds the numbers on the right of the equals signs.
Invent a new one:
The problem

Solve this system of linear equations.

x+y=5−3x+y=−11\begin{aligned} x + y &= 5 \\ -3 x + y &= -11 \end{aligned}
The result
(x,y)=(4,  1)\left( x, y \right) = \left( 4, \; 1 \right)

The system has exactly one solution.

checked 17 lines of this solution were evaluated with exact arithmetic before it was shown to you. A solution with a false line is never served.
Picture 1 of 2Step 1: Write the system as one block of numbers
The system, as one block of numbers
how much xhow much yequals
equation 1equation 2
111155−3-311−11-11
The same system with the letters stripped out. Every column holds the numbers in front of one unknown, every row is one equation, and the upright rule stands where the equals signs were. Nothing has been lost: the POSITION of each number now carries what the letter used to say.
1

Write the system as one block of numbers

Why this step

While we solve, the letters x,yx, y and the == signs never change; only the numbers do. Carrying the letters through every line is pure copying, and copying is where slips happen. So we strip the system down to its numbers, keeping each number's POSITION to remember what it multiplies. That block is the augmented matrix.

x+y=5−3x+y=−11\begin{aligned} x + y &= 5 \\ -3 x + y &= -11 \end{aligned}
The system. Each unknown stands for a number we are trying to find; a solution is a choice of all of them that makes every equation true at once.
[115−31−11]\left[ \begin{array}{rr|r} 1 & 1 & 5 \\ -3 & 1 & -11 \end{array} \right]
The augmented matrix. Column 11 holds the numbers in front of xx, column 22 those in front of yy, and so on. The upright bar stands where the equals signs were. A missing unknown is a 00.
2

Pivot 1: column 1, row 1

Why this step

We work one column at a time, left to right. The goal for a column is a single 11 (the pivot) with zeros everywhere else in it. A column in that state says something very plain: its variable appears in exactly one equation, with nothing in front of it. Each cleared column is one variable pinned down.

Replace row 2 by R2+3R1R_{2} + 3 R_{1}. The multiplier is chosen so that the entry under attack, −3-3, is cancelled exactly by the pivot: −3+3⋅1=0-3 + 3 \cdot 1 = 0.

columnworkingnew entry
11−3+3⋅1-3 + 3 \cdot 100
221+3⋅11 + 3 \cdot 144
33−11+3⋅5-11 + 3 \cdot 544
Row 2, entry by entry: old entry plus the multiple of row 1.
[115044]\left[ \begin{array}{rr|r} \boxed{1} & 1 & 5 \\ 0 & 4 & 4 \end{array} \right]
The matrix now. The boxed entry is the pivot being worked on. checked
3

Pivot 2: column 2, row 2

4

Read the answer off the reduced matrix

5

Check the answer in every original equation