Linear AlgebraLinear Systems5 of 8
Linear Systems · 5

Number of Solutions

When we solve a system of linear equations, we want to know how many solutions it can have and how to read that answer straight from elimination.

1

Why There Are Only Three Possibilities

We want to find every pair (x,y)(x, y) that satisfies two linear equations at the same time, such as:

x+y=4x−y=2\displaystyle \begin{aligned} \rowone{x + y} &\rowone{= 4} \\ \rowtwo{x - y} &\rowtwo{= 2} \end{aligned}
Why Only Zero, One, or Infinitely Many Solutions
x+y=4(x,y)=  ?\begin{aligned} \rowone{x + y} &= \rowone{4} \\ (x, y) &= \;? \end{aligned}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
x+y=4\htmlClass{lc-blue}{x + y = 4}
(3,1)(3, 1)
x−y=2\htmlClass{lc-violet}{x - y = 2}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
One solution\text{One solution}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
Zero solutions\htmlClass{lc-orange}{\text{Zero solutions}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
Infinitely many solutions\htmlClass{lc-blue}{\text{Infinitely many solutions}}

Because linear equations have no powers like x2x^2 or curves like sin⁡(x)\sin(x), their graphs in any dimension are completely flat and can never bend back to cross a second time. Here the two lines cross at the single point (3,1)(3, 1), giving one solution.

2

0=00 = 0, Contradictions, and Free Variables

For three or more variables we can't rely on a graph, so we need to see what happens during elimination when the variables cancel out in systems like these two:

2x+3y=64x+6y=12and2x+3y=64x+6y=15\displaystyle \begin{aligned} \rowone{2x + 3y} &\rowone{= 6} \\ \rowtwo{4x + 6y} &\rowtwo{= 12} \end{aligned} \qquad \text{and} \qquad \begin{aligned} \rowone{2x + 3y} &\rowone{= 6} \\ \rowtwo{4x + 6y} &\rowtwo{= 15} \end{aligned}
0 = 0, Contradictions, and Free Variables
{2x+3y=64x+6y=12\displaystyle \left\{ \begin{aligned} \rowone{2x + 3y} &= \rowone{6} \\ \rowtwo{4x + 6y} &= \rowtwo{12} \end{aligned} \right.
{2x+3y=64x+6y=15\displaystyle \left\{ \begin{aligned} \rowone{2x + 3y} &= \rowone{6} \\ \rowtwo{4x + 6y} &= \rowtwo{15} \end{aligned} \right.
Text solution
Subtract 22 times the first equation from the second in the first systemEliminating 4x4x cancels out both variables and leaves 0=00 = 0, which is always true. This shows the second equation is just double the first and adds no new restriction.
4x+6y=12−(4x+6y=12)0=0\displaystyle \begin{aligned} \rowtwo{4x + 6y} &\rowtwo{= 12} \\ -(4x + 6y &= 12) \\ \hline 0 &= 0 \end{aligned}
Solve the remaining equation for xx in terms of the free variable y\freevar{\text{free variable } y}Because only 2x+3y=6\rowone{2x + 3y = 6} is left, we can pick any number for y\freevar{y} and let xx adjust to keep the equation true.
2x=6−3y⏟free variablex=3−32y\displaystyle \begin{aligned} 2x &= 6 - 3\underbrace{\freevar{y}}_{\freevar{\text{free variable}}} \\ x &= 3 - \frac{3}{2}\freevar{y} \end{aligned}
Subtract 22 times the first equation from the second in the second systemReplacing 1212 with 1515 makes the exact same elimination step give 0=30 = \contra{3}, which is impossible, showing the two lines are parallel and never meet.
4x+6y=15−(4x+6y=12)0=3(contradiction)\displaystyle \begin{aligned} \rowtwo{4x + 6y} &\rowtwo{= 15} \\ -(4x + 6y &= 12) \\ \hline 0 &= \contra{3} \quad (\text{contradiction}) \end{aligned}

So the first system has infinitely many solutions given by (3−32y,y)(3 - \tfrac{3}{2}\freevar{y}, \freevar{y}) for any number y\freevar{y}, while the second system has zero solutions.

Whenever we pick a number for y\freevar{y}, x=3−32yx = 3 - \tfrac{3}{2}\freevar{y} adjusts to keep (x,y)(x, y) on the line 2x+3y=6\rowone{2x + 3y = 6}. So infinitely many solutions means every point on that line works, not every point on the grid.

Picking any value for the free variable y\freevar{y} locks in the one xx that keeps the point on the line.
3

Solving Three-Variable Systems in Echelon Form

Now let's find all solutions to a three-variable system by reducing its augmented matrix to echelon form:

x+2y+z=52x+5y+3z=12x+3y+2z=7\displaystyle \begin{aligned} x + 2y + z &= 5 \\ 2x + 5y + 3z &= 12 \\ x + 3y + 2z &= 7 \end{aligned}
Solving Three-Variable Systems in Echelon Form
x  +  2y  +  z  =  52x  +  5y  +  3z  =  12x  +  3y  +  2z  =  7\displaystyle \begin{alignedat}{4} x &\;+\;& 2y &\;+\;& z &\;=\;& 5& \\ 2x &\;+\;& 5y &\;+\;& 3z &\;=\;& 12& \\ x &\;+\;& 3y &\;+\;& 2z &\;=\;& 7& \end{alignedat}
(x,y,z)\displaystyle (x, y, z) =  ?\displaystyle = \;?
Text solution
Clear column 1 below the first pivot (R2←R2−2R1R_2 \leftarrow R_2 - 2R_1 and R3←R3−R1R_3 \leftarrow R_3 - R_1)We use the top-left pivot 11 to eliminate xx from the second and third rows.
[1215253121327]→R2←R2−2R1R3←R3−R1[121501120112]\displaystyle \begin{aligned} &\left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 2 & 5 & 3 & 12 \\ 1 & 3 & 2 & 7 \end{array}\right] \\ \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} &\left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 0 & \mathbf{1} & 1 & 2 \\ 0 & 1 & 1 & 2 \end{array}\right] \end{aligned}
Clear column 2 below the second pivot (R3←R3−R2R_3 \leftarrow R_3 - R_2)Subtracting the second row from the third puts the matrix in echelon form and makes the bottom row all zeros, leaving the third column without a pivot.
[121501120112]→R3←R3−R2[1⏟pivot21501⏟pivot12000⏟no pivot(z free)0]\displaystyle \begin{aligned} &\left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 0 & \mathbf{1} & 1 & 2 \\ 0 & 1 & 1 & 2 \end{array}\right] \\ &\qquad \xrightarrow{R_3 \leftarrow R_3 - R_2} \\ &\left[\begin{array}{ccc|c} \underbrace{\mathbf{1}}_{\text{pivot}} & 2 & 1 & 5 \\ 0 & \underbrace{\mathbf{1}}_{\text{pivot}} & 1 & 2 \\ 0 & 0 & \underbrace{\freevar{0}}_{\freevar{\begin{gathered}\text{no pivot} \\ \text{(}z\text{ free)}\end{gathered}}} & 0 \end{array}\right] \end{aligned}
Back-substitute from the bottom up to express the pivot variables xx and yy in terms of the free variable z\freevar{z}Solving Row 2 for yy and substituting the result into Row 1 tells us how xx and yy adjust for any choice of z\freevar{z}.
y+z=2  ⟹  y=2−zx+2(2−z)+z=5  ⟹  x+4−2z+z=5  ⟹  x=1+z\displaystyle \begin{aligned} & y + \freevar{z} = 2 \implies y = 2 - \freevar{z} \\ & x + 2(2 - \freevar{z}) + \freevar{z} = 5 \implies x \\ &\quad + 4- 2\freevar{z} + \freevar{z} = 5 \\ &\quad \implies x = 1 + \freevar{z} \end{aligned}

So the system has infinitely many solutions given by x=1+zx = 1 + \freevar{z}, y=2−zy = 2 - \freevar{z}, with z\freevar{z} free (any number), tracing out the 3D line where all three planes meet.

4

The Pivot Test for Any Matrix Shape

In a 3×33 \times 3 system, a 0=00 = 0 row always leaves a column without a pivot, which makes it tempting to assume 0=00 = 0 always means infinitely many solutions. Let's see what happens when we have three equations in only two unknowns, xx and yy:

x+y=4x−y=22x+y=7\displaystyle \begin{aligned} \rowone{x + y} &\rowone{= 4} \\ \rowtwo{x - y} &\rowtwo{= 2} \\ \rowthree{2x + y} &\rowthree{= 7} \end{aligned}
The Pivot Test for Any Matrix Shape
x+y=4x−y=22x+y=7\begin{aligned} \rowone{x + y} &= \rowone{4} \\ \rowtwo{x - y} &= \rowtwo{2} \\ \rowthree{2x + y} &= \rowthree{7} \end{aligned}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
Text solution
Eliminate xx below the first pivot (R2←R2−R1R_2 \leftarrow R_2 - R_1 and R3←R3−2R1R_3 \leftarrow R_3 - 2R_1)Subtracting multiples of the first row clears the first column.
[1141−12217]→R2←R2−R1R3←R3−2R1[1140−2−20−1−1]\displaystyle \begin{aligned} &\left[\begin{array}{cc|c} \mathbf{1} & 1 & 4 \\ 1 & -1 & 2 \\ 2 & 1 & 7 \end{array}\right] \\ \xrightarrow{\substack{R_2 \leftarrow R_2 - R_1 \\ R_3 \leftarrow R_3 - 2R_1}} &\left[\begin{array}{cc|c} \mathbf{1} & 1 & 4 \\ 0 & \mathbf{-2} & -2 \\ 0 & -1 & -1 \end{array}\right] \end{aligned}
Eliminate yy below the second pivot and check the variable columns for pivotsSubtracting half of Row 2 from Row 3 leaves 0=00 = 0 at the bottom, but both the xx column and the yy column still have pivots.
[1140−2−2000]  ⟹  −2y=−2  ⟹  y=1x+1=4  ⟹  x=3\displaystyle \left[\begin{array}{cc|c} \mathbf{1} & 1 & 4 \\ 0 & \mathbf{-2} & -2 \\ 0 & 0 & 0 \end{array}\right] \implies \begin{aligned} -2y = -2 &\implies y = 1 \\ x + 1 = 4 &\implies x = 3 \end{aligned}

So the system has one unique solution, (3,1)(3, 1), even though the echelon matrix ends with a 0=00 = 0 row.

Geometrically, the third line goes right through the point (3,1)(3, 1) where the first two lines cross. That makes the third equation redundant and gives a 0=00 = 0 row, even though there is only one solution.

When the third line meets the crossing point, the bottom row turns to all zeros, and since both columns still have pivots, there is only one solution.
The Pivot Test (in Echelon Form)1. Any contradiction row[  0  ⋯  0∣non-zero  ]  ⟹  Zero solutions2. No contradictions, and a pivotin every variable column  ⟹  One solution(no free variables)3. No contradictions, and a variablecolumn with no pivot  ⟹  Infinitely many solutions (free variable)\displaystyle \begin{aligned} &\textbf{The Pivot Test (in Echelon Form)} \\[4pt] &\text{1. Any contradiction row} \\ &\quad [\;0 \;\cdots\; 0 \mid \contra{\text{non-zero}}\;] \\ &\qquad \implies \textbf{Zero solutions} \\[4pt] &\text{2. No contradictions, and a }\text{pivot} \\ &\quad \text{in every variable column} \\ &\qquad \implies \textbf{One solution} \\ &\qquad\quad \text{(no free variables)} \\[4pt] &\text{3. No contradictions, and a variable} \\ &\quad \text{column with }\freevar{\text{no pivot}} \\ &\qquad \implies \textbf{Infinitely many solutions } \\ &\qquad\quad \text{(free variable)} \end{aligned}
5

Systems with an Unknown Constant kk

Now we want to find which values of an unknown constant kk give one solution, infinitely many solutions, or zero solutions in the system:

[12152531213k2−2k+5]\displaystyle \left[\begin{array}{ccc|c} 1 & 2 & 1 & 5 \\ 2 & 5 & 3 & 12 \\ 1 & 3 & k^2 - 2 & k + 5 \end{array}\right]

After elimination, we can factor the bottom pivot spot using the difference of squares, a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b), to find which values of kk make the pivot zero.

Systems with an Unknown Constant k
[12152531213k2−2k+5]\displaystyle \left[\begin{array}{ccc|c} 1 & 2 & 1 & 5 \\ 2 & 5 & 3 & 12 \\ 1 & 3 & k^2 - 2 & k + 5 \end{array}\right]
one solution:    k=  ?no solution:    k=  ?infinitely many:    k=  ?\displaystyle \begin{aligned} \text{one solution:}\;\; & k = \;? \\ \htmlClass{lc-orange}{\text{no solution}}\text{:}\;\; & k = \;? \\ \htmlClass{lc-blue}{\text{infinitely many}}\text{:}\;\; & k = \;? \end{aligned}
Text solution
Eliminate xx and yy to put all the kk terms in the bottom rowRunning the same elimination steps (R2←R2−2R1R_2 \leftarrow R_2 - 2R_1, R3←R3−R1R_3 \leftarrow R_3 - R_1, then R3←R3−R2R_3 \leftarrow R_3 - R_2) puts all the kk expressions in the third row.
[12152531213k2−2k+5]→R2←R2−2R1R3←R3−R1[1215011201k2−3k]→R3←R3−R2[1215011200k2−4k−2]\displaystyle \begin{aligned} & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 2 & 5 & 3 & 12 \\ 1 & 3 & k^2 - 2 & k + 5 \end{array}\right] \\ & \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 0 & \mathbf{1} & 1 & 2 \\ 0 & 1 & k^2 - 3 & k \end{array}\right] \\ & \xrightarrow{R_3 \leftarrow R_3 - R_2} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & 5 \\ 0 & \mathbf{1} & 1 & 2 \\ 0 & 0 & k^2 - 4 & k - 2 \end{array}\right] \end{aligned}
Factor the third pivot spot in the bottom row equationWriting the bottom row as (k2−4)z=k−2(k^2 - 4)z = k - 2 and factoring shows when the third pivot becomes zero.
(k−2)(k+2)⏟third pivot spotz\displaystyle \underbrace{(k - 2)(k + 2)}_{\text{third pivot spot}} z =k−2\displaystyle = k - 2
Test the values of kk where the third pivot is non-zero or zeroWhenever (k−2)(k+2)≠0(k - 2)(k + 2) \neq 0, all three columns have pivots; plugging in k=2k = 2 or k=−2k = -2 makes the third pivot zero and either makes the right side zero or creates a contradiction.
k≠2 and k≠−2  ⟹  three pivots  ⟹  one solutionk=2  ⟹  0z=0 (no third pivot, z free)  ⟹  infinitely many solutionsk=−2  ⟹  0z=−4 (contradiction 0=−4)  ⟹  zero solutions\displaystyle \begin{aligned} & k \neq 2 \text{ and } k \\ &\quad \neq -2 \implies \text{three }\text{pivots} \\ &\quad \implies \text{one solution} \\[6pt] & k = 2 \implies 0z = 0 \\ &\quad \text{ (no third pivot, }\freevar{z}\text{ free)} \\ &\quad \implies \\ &\quad \text{infinitely many solutions} \\[6pt] & k = -2 \implies 0z = \contra{-4} \\ &\quad \text{ (contradiction }0 = \contra{-4}\text{)} \\ &\quad \implies \text{zero solutions} \end{aligned}

Don't divide both sides of (k−2)(k+2)z=k−2(k - 2)(k + 2)z = k - 2 by k−2k - 2, because canceling k−2k - 2 hides the case k=2k = 2 where both sides become zero and the system has infinitely many solutions.

6

The Column Picture and Which Right-Hand Sides Are Solvable

In the column picture, solving Ax=bAx = \target{b} means combining the columns of AA to reach a target vector b=⟨b1,b2,b3⟩\target{b} = \target{\langle b_1, b_2, b_3 \rangle}. When the columns all lie on a single plane, we want to find the exact condition on b1,b2,b3\target{b_1, b_2, b_3} for the system to have a solution:

x[121]+y[253]+z[132]=[b1b2b3]\displaystyle \colone{x\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 2 \\ 5 \\ 3 \end{bmatrix}} + \colthree{z\begin{bmatrix} 1 \\ 3 \\ 2 \end{bmatrix}} = \target{\begin{bmatrix} b_1 \\ b_2 \\ b_3 \end{bmatrix}}
The Column Picture and Which Right-Hand Sides Are Solvable
[121253132][xyz]=[b1b2b3]\displaystyle \begin{bmatrix} \colone{1} & \coltwo{2} & \colthree{1} \\ \colone{2} & \coltwo{5} & \colthree{3} \\ \colone{1} & \coltwo{3} & \colthree{2} \end{bmatrix} \begin{bmatrix} \colone{x} \\ \coltwo{y} \\ \colthree{z} \end{bmatrix} = \target{\begin{bmatrix} b_1 \\ b_2 \\ b_3 \end{bmatrix}}
which b can we reach?\displaystyle \text{which } \target{b} \text{ can we reach?}
Text solution
Reduce the augmented matrix with b1,b2,b3\target{b_1, b_2, b_3} on the right-hand sideApplying R2←R2−2R1R_2 \leftarrow R_2 - 2R_1, R3←R3−R1R_3 \leftarrow R_3 - R_1, and R3←R3−R2R_3 \leftarrow R_3 - R_2 produces a row of zeros on the left and a combination of b1,b2,b3\target{b_1, b_2, b_3} on the right.
[121b1253b2132b3]→R2←R2−2R1R3←R3−R1[121b1011b2−2b1011b3−b1]→R3←R3−R2[121b1011b2−2b1000b1−b2+b3]\displaystyle \begin{aligned} & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & \target{b_1} \\ 2 & 5 & 3 & \target{b_2} \\ 1 & 3 & 2 & \target{b_3} \end{array}\right] \\ & \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & \target{b_1} \\ 0 & \mathbf{1} & 1 & \target{b_2 - 2b_1} \\ 0 & 1 & 1 & \target{b_3 - b_1} \end{array}\right] \\ & \xrightarrow{R_3 \leftarrow R_3 - R_2} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 1 & \target{b_1} \\ 0 & \mathbf{1} & 1 & \target{b_2 - 2b_1} \\ 0 & 0 & 0 & \target{b_1 - b_2 + b_3} \end{array}\right] \end{aligned}
Set the right-hand side of the zero row equal to 00Avoiding a contradiction 0=non-zero0 = \contra{\text{non-zero}} gives the equation of the plane in 3D space spanned by the three columns.
b1−b2+b3\displaystyle \target{b_1 - b_2 + b_3} =0(or b1+b3=b2)\displaystyle = 0 \quad (\text{or } \target{b_1 + b_3} = \target{b_2})

So the system has a solution (in fact, infinitely many solutions, since the third column has no pivot) whenever b1−b2+b3=0\target{b_1 - b_2 + b_3} = 0, such as for b=⟨5,12,7⟩\target{b} = \target{\langle 5, 12, 7 \rangle} where 5−12+7=05 - 12 + 7 = 0, and zero solutions whenever b1−b2+b3≠0\target{b_1 - b_2 + b_3} \contra{\neq 0}, such as for b=⟨5,12,11⟩\target{b} = \target{\langle 5, 12, 11 \rangle} where 5−12+11=4≠05 - 12 + 11 = \contra{4 \neq 0}.

Geometrically, the three column vectors all lie on the plane b1−b2+b3=0\target{b_1 - b_2 + b_3} = 0, so they can only combine to reach vectors b\target{b} on that same plane.

The three columns can combine to reach the right-hand vector only when it sits on their plane, where the bottom row of the matrix stays zero.

Key concepts

Every question about the number of solutions starts by reducing the augmented matrix to echelon form and reading its rows and pivots. Check for a contradiction row first: a row of zeros on the left with a non-zero number on the right, like [0,0,0∣4][0, 0, 0 \mid \contra{4}] (0=40 = \contra{4}), means the planes never all meet at one point (or in the column picture, b\target{b} lies outside the space spanned by the columns), so you stop immediately with zero solutions. If there are no contradictions, count the pivots across the variable columns rather than just looking for a 0=00 = 0 row. When every variable column has a pivot\text{pivot}, every unknown is locked in and there is one solution, even if an extra redundant equation creates a [0,0∣0][0, 0 \mid 0] row at the bottom of a 3×23 \times 2 matrix like [11∣40−2∣−200∣0]\left[\begin{smallmatrix} \mathbf{1} & 1 & \mid & 4 \\ 0 & \mathbf{-2} & \mid & -2 \\ 0 & 0 & \mid & 0 \end{smallmatrix}\right]. When at least one variable column has no pivot\freevar{\text{no pivot}}, that variable is a free variable\freevar{\text{free variable}} that can take any value, giving infinitely many solutions where you back-substitute to express the pivot variables in terms of the free variable (such as x=1+z,y=2−z,zx = 1 + \freevar{z}, y = 2 - \freevar{z}, \freevar{z} free).

When the system has an unknown constant kk or an unknown right-hand side b=⟨b1,b2,b3⟩\target{b} = \target{\langle b_1, b_2, b_3 \rangle}, run the exact same elimination steps to put the letters into the bottom row. For a constant kk in a bottom row like (k−2)(k+2)z=k−2(k - 2)(k + 2)z = k - 2, the values that keep the pivot non-zero (k≠2,−2k \neq 2, -2) give one solution, while the values that make the pivot 00 give either 0=00 = 0 (k=2k = 2, infinitely many solutions) or a contradiction 0=−40 = \contra{-4} (k=−2k = -2, zero solutions). For a right-hand side b=⟨b1,b2,b3⟩\target{b} = \target{\langle b_1, b_2, b_3 \rangle} that reduces to a zero row [0,0,0∣b1−b2+b3][0, 0, 0 \mid \target{b_1 - b_2 + b_3}], setting the bottom-right entry to zero (b1−b2+b3=0\target{b_1 - b_2 + b_3} = 0) gives the equation of the plane of vectors b\target{b} we can reach.

7

Practice

1

Use elimination to find whether the system 3x−2y=53x - 2y = 5 and 6x−4y=76x - 4y = 7 has zero, one, or infinitely many solutions.

What multiple of the first equation eliminates 6x6x from the second equation, and what happens to the yy term at the same time?

Subtracting 22 times the first equation from the second gives:
6x−4y=7−(6x−4y=10)0=−3\displaystyle \begin{aligned} \rowtwo{6x - 4y} &\rowtwo{= 7} \\ -(6x - 4y &= 10) \\ \hline 0 &= \contra{-3} \end{aligned}
(Watch out: if you see both xx and yy cancel and immediately answer "infinitely many solutions" without checking the right-hand side, you will miss the contradiction 0=−30 = \contra{-3}. And if you forget to multiply 55 by 22, you get 0=20 = 2 instead of 0=−30 = \contra{-3}.) The two lines are parallel and never cross, so there are zero solutions.
2

Each augmented matrix is in echelon form. State whether the system has zero, one, or infinitely many solutions, and identify any free variables:

(a) [1490−36000]\left[\begin{array}{cc|c} 1 & 4 & 9 \\ 0 & -3 & 6 \\ 0 & 0 & 0 \end{array}\right] in variables x,yx, y

(b) [2−15401−23]\left[\begin{array}{ccc|c} 2 & -1 & 5 & 4 \\ 0 & 1 & -2 & 3 \end{array}\right] in variables x,y,zx, y, z

Circle the first non-zero number (pivot) in each row and check whether every variable column has one.

(a) There is no contradiction row, and both the xx and yy columns have pivots (11 and −3-3) despite the 0=00 = 0 row. (Watch out: seeing the bottom row [0,0∣0][0, 0 \mid 0] and answering "infinitely many solutions with a free variable" is the most common mistake; there are only two variables xx and yy, and both columns already have pivots.) One solution (no free variables).
(b) There is no contradiction row, the xx and yy columns have pivots (22 and 11), and the z\freevar{z} column has no pivot. (Watch out: don't assume a matrix without a 0=00 = 0 row has one solution; two rows can hold at most two pivots, leaving the third column without a pivot.) Infinitely many solutions (z\freevar{z} is a free variable).
3

Reduce the system x+y+2z=4x + y + 2z = 4, 2x+3y+3z=112x + 3y + 3z = 11, and x+2y+z=7x + 2y + z = 7 to echelon form and write the complete solution by expressing the pivot variables in terms of any free variables.

Clear the first column below the pivot 11, then compare the new second and third rows to see which variable column loses its pivot.

Eliminate xx below Row 1 (R2←R2−2R1R_2 \leftarrow R_2 - 2R_1 and R3←R3−R1R_3 \leftarrow R_3 - R_1), then subtract Row 2 from Row 3 (R3←R3−R2R_3 \leftarrow R_3 - R_2):
[1124233111217]→R2←R2−2R1R3←R3−R1[112401−1301−13]→R3←R3−R2[112401−130000]\displaystyle \begin{aligned} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 2 & 4 \\ 2 & 3 & 3 & 11 \\ 1 & 2 & 1 & 7 \end{array}\right] \\ \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 2 & 4 \\ 0 & \mathbf{1} & -1 & 3 \\ 0 & 1 & -1 & 3 \end{array}\right] \\ \xrightarrow{R_3 \leftarrow R_3 - R_2} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 2 & 4 \\ 0 & \mathbf{1} & -1 & 3 \\ 0 & 0 & \freevar{0} & 0 \end{array}\right] \end{aligned}
The xx and yy columns have pivots and z\freevar{z} is a free variable. Back-substitution from Row 2 to Row 1 gives:
y−z=3  ⟹  y=3+zx+(3+z)+2z=4  ⟹  x+3+3z=4\displaystyle \begin{aligned} & y - \freevar{z} = 3 \implies y = 3 + \freevar{z} \\ & x + (3 + \freevar{z}) + 2\freevar{z} = 4 \implies x \\ &\quad + 3+ 3\freevar{z} = 4 \end{aligned}
(Watch out: when substituting y=3+zy = 3 + \freevar{z} into x+y+2z=4x + y + 2\freevar{z} = 4, subtracting z\freevar{z} from 2z2\freevar{z} instead of adding +z+\freevar{z} and +2z+2\freevar{z} gives the wrong answer x=1−zx = 1 - \freevar{z}.) x=1−3zx = 1 - 3\freevar{z}, y=3+zy = 3 + \freevar{z}, with z\freevar{z} free (any number).
4

For which values of kk does the system x+y+z=2x + y + z = 2, 2x+3y+4z=72x + 3y + 4z = 7, and x+2y+(k2−6)z=k+2x + 2y + (k^2 - 6)z = k + 2 have (a) one solution, (b) infinitely many solutions, and (c) zero solutions?

Eliminate xx and yy so all kk terms sit in the bottom row, then factor the coefficient of zz using the difference of squares.

Apply R2←R2−2R1R_2 \leftarrow R_2 - 2R_1 and R3←R3−R1R_3 \leftarrow R_3 - R_1, followed by R3←R3−R2R_3 \leftarrow R_3 - R_2:
[1112234712k2−6k+2]→R2←R2−2R1R3←R3−R1[1112012301k2−7k]→R3←R3−R2[1112012300k2−9k−3]\displaystyle \begin{aligned} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 1 & 2 \\ 2 & 3 & 4 & 7 \\ 1 & 2 & k^2 - 6 & k + 2 \end{array}\right] \\ \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 1 & 2 \\ 0 & \mathbf{1} & 2 & 3 \\ 0 & 1 & k^2 - 7 & k \end{array}\right] \\ \xrightarrow{R_3 \leftarrow R_3 - R_2} &\left[\begin{array}{ccc|c} \mathbf{1} & 1 & 1 & 2 \\ 0 & \mathbf{1} & 2 & 3 \\ 0 & 0 & k^2 - 9 & k - 3 \end{array}\right] \end{aligned}
The bottom row reduces to (k2−9)z=k−3(k^2 - 9)z = k - 3, or:
(k−3)(k+3)z\displaystyle (k - 3)(k + 3)z =k−3\displaystyle = k - 3
(Watch out: dividing both sides by k−3k - 3 to get (k+3)z=1(k + 3)z = 1 throws away the case k=3k = 3, and taking only the positive square root of k2=9k^2 = 9 misses k=−3k = -3.) (a) One solution when k≠3k \neq 3 and k≠−3k \neq -3 (all three columns have pivots). (b) Infinitely many solutions when k=3k = 3 (the bottom row becomes 0=00 = 0, so z\freevar{z} has no pivot). (c) Zero solutions when k=−3k = -3 (the bottom row becomes 0=−60 = \contra{-6}, a contradiction).
5

Given the augmented matrix [123b1258b24914b3]\left[\begin{array}{ccc|c} 1 & 2 & 3 & b_1 \\ 2 & 5 & 8 & b_2 \\ 4 & 9 & 14 & b_3 \end{array}\right] for Ax=bAx = b: (a) find the equation that b1,b2,b3b_1, b_2, b_3 must satisfy for the system to have a solution; (b) state how many solutions the system has when b=⟨1,3,5⟩b = \langle 1, 3, 5 \rangle and when b=⟨1,3,6⟩b = \langle 1, 3, 6 \rangle.

Carry b1,b2,b3b_1, b_2, b_3 through the row operations that clear the first two columns, and look at the bottom row where the left side becomes all zeros.

Clear column 1 (R2←R2−2R1R_2 \leftarrow R_2 - 2R_1 and R3←R3−4R1R_3 \leftarrow R_3 - 4R_1), then subtract Row 2 from Row 3 (R3←R3−R2R_3 \leftarrow R_3 - R_2):
[123b1258b24914b3]→R2←R2−2R1R3←R3−4R1[123b1012b2−2b1012b3−4b1]→R3←R3−R2[123b1012b2−2b1000−2b1−b2+b3]\displaystyle \begin{aligned} & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 3 & \target{b_1} \\ 2 & 5 & 8 & \target{b_2} \\ 4 & 9 & 14 & \target{b_3} \end{array}\right] \\ & \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - 4R_1}} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 3 & \target{b_1} \\ 0 & \mathbf{1} & 2 & \target{b_2 - 2b_1} \\ 0 & 1 & 2 & \target{b_3 - 4b_1} \end{array}\right] \\ & \xrightarrow{R_3 \leftarrow R_3 - R_2} \\ & \left[\begin{array}{ccc|c} \mathbf{1} & 2 & 3 & \target{b_1} \\ 0 & \mathbf{1} & 2 & \target{b_2 - 2b_1} \\ 0 & 0 & 0 & \target{-2b_1 - b_2 + b_3} \end{array}\right] \end{aligned}
(Watch out: when computing (b3−4b1)−(b2−2b1)\target{(b_3 - 4b_1) - (b_2 - 2b_1)}, forgetting to distribute the minus sign to −2b1\target{-2b_1} gives the wrong condition −6b1−b2+b3=0\target{-6b_1 - b_2 + b_3} = 0. In part (b), when the condition is satisfied, don't answer "one solution", because the third column has no pivot, so any vector b\target{b} we can reach gives infinitely many solutions.) (a) −2b1−b2+b3=0\target{-2b_1 - b_2 + b_3} = 0 (or b3=2b1+b2\target{b_3} = \target{2b_1 + b_2}). (b) For b=⟨1,3,5⟩\target{b} = \target{\langle 1, 3, 5 \rangle}, −2(1)−3+5=0-2(1) - 3 + 5 = 0: infinitely many solutions. For b=⟨1,3,6⟩\target{b} = \target{\langle 1, 3, 6 \rangle}, −2(1)−3+6=1≠0-2(1) - 3 + 6 = \contra{1 \neq 0}: zero solutions.