Skip to content
Family Table Math
Auto

Systems of Linear Equations (Three Unknowns)

You already know how to solve two equations in two unknowns by elimination. With three unknowns the idea is the same, just with one more round of eliminating. The new part is understanding what kind of answer you get: exactly one solution, infinitely many, or none at all. Each equation in xx, yy and zz is a plane, so this is really a question about how three planes meet.

A system of linear equations has exactly one of these:

OutcomeNameGeometric meaning (three planes)
unique solutionconsistentthe planes meet at a single point
infinitely many solutionsconsistentthe planes share a whole line (or are all the same plane)
no solutioninconsistentthere is no point on all three planes

The different ways planes can meet (or fail to) are drawn on intersections of planes.

Writing xx, yy, zz and == over and over is tiring. An augmented matrix keeps just the numbers: one row per equation, one column per variable, and a bar before the constants.

x+y+z=62x−y+z=3x+2y−z=2⟷(11162−11312−12)\begin{aligned} x + y + z &= 6 \\ 2x - y + z &= 3 \\ x + 2y - z &= 2 \end{aligned} \qquad\longleftrightarrow\qquad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & -1 & 1 & 3 \\ 1 & 2 & -1 & 2 \end{array}\right)

It’s only a shorthand: each row is still an equation.

These three moves never change the solutions of a system:

  • swap two rows;
  • multiply a row by a non-zero number;
  • add (or subtract) a multiple of one row to another row.

We write them like R2→R2−2R1R_2 \to R_2 - 2R_1 (“replace row 22 with row 22 minus twice row 11”).

The goal of row reduction is to make zeros below the leading diagonal (a “triangular” or row echelon form):

(∗∗∗∗0∗∗∗00∗∗)\left(\begin{array}{ccc|c} * & * & * & * \\ 0 & * & * & * \\ 0 & 0 & * & * \end{array}\right)

Then the last row gives zz, and you back-substitute to find yy and xx.

Once the matrix is triangular (rows 1 and 2 have leading entries), the last row tells you which outcome you have. In general, any row of the form (0  0  0∣b)(0 \ \ 0 \ \ 0 \mid b) with b≠0b \ne 0, wherever it appears, means there is no solution.

Last rowEquationOutcome
(0  0  a∣b)(0 \ \ 0 \ \ a \mid b) with a≠0a \ne 0az=baz = bunique solution
(0  0  0∣0)(0 \ \ 0 \ \ 0 \mid 0)0=00 = 0infinitely many solutions
(0  0  0∣b)(0 \ \ 0 \ \ 0 \mid b) with b≠0b \ne 00=b0 = b, which is falseno solution

When a row becomes 0=00 = 0, one equation was really a combination of the others, so you have fewer genuine equations than unknowns. Let one variable be a parameter, usually z=λz = \lambda, where λ\lambda can be any real number, and write the other variables in terms of λ\lambda. This is the general solution. Each value of λ\lambda gives one particular solution.

With three unknowns and one free parameter, the solutions form a line, and the general solution is its vector equation in disguise:

(xyz)=(x0y0z0)+λ(abc)\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} x_0 \\ y_0 \\ z_0 \end{pmatrix} + \lambda \begin{pmatrix} a \\ b \\ c \end{pmatrix}

On a GDC you can:

  • use the simultaneous equation solver: enter the coefficients and it gives the unique solution, or reports that there are no solutions or infinitely many;
  • enter the augmented matrix and use rref (reduced row echelon form). The GDC row reduces all the way, so you can read off the answer, or the general solution, directly.

The guide expects you to solve systems both by algebra and with technology, so practise both. When a question has an unknown constant in it (like kk), you have to work by hand.

If a coefficient is an unknown kk, row reduce as usual, keeping kk in the working. The last row will look like (0  0  f(k)∣g)(0 \ \ 0 \ \ f(k) \mid g):

  • if f(k)≠0f(k) \ne 0: a unique solution;
  • if f(k)=0f(k) = 0 and the right-hand side is not zero: no solution;
  • if f(k)=0f(k) = 0 and the right-hand side is also zero: infinitely many solutions.

Solve the system

x+y+z=62x−y+z=3x+2y−z=2\begin{aligned} x + y + z &= 6 \\ 2x - y + z &= 3 \\ x + 2y - z &= 2 \end{aligned}

Solution. Write the augmented matrix and clear the first column below the top row:

(11162−11312−12)R2→R2−2R1R3→R3−R1(11160−3−1−901−2−4)\left(\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & -1 & 1 & 3 \\ 1 & 2 & -1 & 2 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - 2R_1 \\ R_3 \to R_3 - R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & -3 & -1 & -9 \\ 0 & 1 & -2 & -4 \end{array}\right)

Now clear the second column below row 22. Using R3→3R3+R2R_3 \to 3R_3 + R_2 avoids fractions:

(11160−3−1−900−7−21)\left(\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & -3 & -1 & -9 \\ 0 & 0 & -7 & -21 \end{array}\right)

Back-substitute:

−7z=−21⇒z=3−3y−3=−9⇒y=2x+2+3=6⇒x=1\begin{aligned} -7z &= -21 &&\Rightarrow\quad z = 3 \\ -3y - 3 &= -9 &&\Rightarrow\quad y = 2 \\ x + 2 + 3 &= 6 &&\Rightarrow\quad x = 1 \end{aligned}

The solution is x=1x = 1, y=2y = 2, z=3z = 3: the three planes meet at the point (1,2,3)(1, 2, 3).

Check in the original equations: 1+2+3=61 + 2 + 3 = 6 ✓, 2−2+3=32 - 2 + 3 = 3 ✓, 1+4−3=21 + 4 - 3 = 2 ✓.

Solve the system

x+2y−z=32x+5y+z=9x+3y+2z=6\begin{aligned} x + 2y - z &= 3 \\ 2x + 5y + z &= 9 \\ x + 3y + 2z &= 6 \end{aligned}

Solution.

(12−1325191326)R2→R2−2R1R3→R3−R1(12−1301330133)R3→R3−R2(12−1301330000)\left(\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 2 & 5 & 1 & 9 \\ 1 & 3 & 2 & 6 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - 2R_1 \\ R_3 \to R_3 - R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & 1 & 3 & 3 \\ 0 & 1 & 3 & 3 \end{array}\right) \quad R_3 \to R_3 - R_2 \quad \left(\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & 1 & 3 & 3 \\ 0 & 0 & 0 & 0 \end{array}\right)

The last row says 0=00 = 0, so there are infinitely many solutions. Let z=λz = \lambda. Then

y+3λ=3⇒y=3−3λx+2(3−3λ)−λ=3⇒x=−3+7λ\begin{aligned} y + 3\lambda &= 3 &&\Rightarrow\quad y = 3 - 3\lambda \\ x + 2(3 - 3\lambda) - \lambda &= 3 &&\Rightarrow\quad x = -3 + 7\lambda \end{aligned}

The general solution is x=−3+7λx = -3 + 7\lambda, y=3−3λy = 3 - 3\lambda, z=λz = \lambda, for λ∈R\lambda \in \mathbb{R}. In vector form:

(xyz)=(−330)+λ(7−31)\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} -3 \\ 3 \\ 0 \end{pmatrix} + \lambda \begin{pmatrix} 7 \\ -3 \\ 1 \end{pmatrix}

Geometrically, the three planes meet in this line. (No two of the equations are multiples of each other, so the planes are all different: they form a sheaf, like pages around a book’s spine.)

Check with λ=1\lambda = 1, the point (4,0,1)(4, 0, 1): 4+0−1=34 + 0 - 1 = 3 ✓, 8+0+1=98 + 0 + 1 = 9 ✓, 4+0+2=64 + 0 + 2 = 6 ✓.

With a GDC: rref of the augmented matrix gives rows (1  0  −7∣−3)(1 \ \ 0 \ \ {-7} \mid {-3}) and (0  1  3∣3)(0 \ \ 1 \ \ 3 \mid 3) and a row of zeros. That’s x−7z=−3x - 7z = -3 and y+3z=3y + 3z = 3, the same general solution.

Show that this system has no solution, and describe it geometrically.

x+y+z=2x−y+2z=12x+3z=4\begin{aligned} x + y + z &= 2 \\ x - y + 2z &= 1 \\ 2x + 3z &= 4 \end{aligned}

Solution.

(11121−1212034)R2→R2−R1R3→R3−2R1(11120−21−10−210)R3→R3−R2(11120−21−10001)\left(\begin{array}{ccc|c} 1 & 1 & 1 & 2 \\ 1 & -1 & 2 & 1 \\ 2 & 0 & 3 & 4 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - R_1 \\ R_3 \to R_3 - 2R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 2 \\ 0 & -2 & 1 & -1 \\ 0 & -2 & 1 & 0 \end{array}\right) \quad R_3 \to R_3 - R_2 \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 2 \\ 0 & -2 & 1 & -1 \\ 0 & 0 & 0 & 1 \end{array}\right)

The last row says 0=10 = 1, which is impossible. So the system is inconsistent: there is no solution.

You can see why in the original equations: adding the first two gives 2x+3z=32x + 3z = 3, but the third equation says 2x+3z=42x + 3z = 4.

Geometrically: the normals (1,1,1)(1, 1, 1), (1,−1,2)(1, -1, 2) and (2,0,3)(2, 0, 3) are not parallel to each other, so no two planes are parallel. Each pair of planes meets in a line, but there’s no point common to all three: the planes form a triangular prism.

Consider the system

x+2y−z=12x+5y+z=4x+3y+kz=m\begin{aligned} x + 2y - z &= 1 \\ 2x + 5y + z &= 4 \\ x + 3y + kz &= m \end{aligned}

where k,m∈Rk, m \in \mathbb{R}.

  • (a) Find the value of kk for which the system does not have a unique solution.
  • (b) For this value of kk, find the value of mm for which the system has infinitely many solutions, and find the general solution.
  • (c) Describe what happens for the same kk and any other value of mm.

Solution. Row reduce, keeping kk and mm:

(12−11251413km)R2→R2−2R1R3→R3−R1(12−11013201k+1m−1)\left(\begin{array}{ccc|c} 1 & 2 & -1 & 1 \\ 2 & 5 & 1 & 4 \\ 1 & 3 & k & m \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - 2R_1 \\ R_3 \to R_3 - R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 2 & -1 & 1 \\ 0 & 1 & 3 & 2 \\ 0 & 1 & k + 1 & m - 1 \end{array}\right) R3→R3−R2(12−11013200k−2m−3)R_3 \to R_3 - R_2 \qquad \left(\begin{array}{ccc|c} 1 & 2 & -1 & 1 \\ 0 & 1 & 3 & 2 \\ 0 & 0 & k - 2 & m - 3 \end{array}\right)

(a) The last row is (k−2)z=m−3(k - 2)z = m - 3. If k≠2k \ne 2, it gives a single value of zz, and so a unique solution. The system does not have a unique solution when k=2k = 2.

(b) With k=2k = 2, the last row is 0=m−30 = m - 3. For infinitely many solutions this must say 0=00 = 0, so m=3m = 3.

Then let z=λz = \lambda:

y+3λ=2⇒y=2−3λx+2(2−3λ)−λ=1⇒x=−3+7λ\begin{aligned} y + 3\lambda &= 2 &&\Rightarrow\quad y = 2 - 3\lambda \\ x + 2(2 - 3\lambda) - \lambda &= 1 &&\Rightarrow\quad x = -3 + 7\lambda \end{aligned}

The general solution is x=−3+7λx = -3 + 7\lambda, y=2−3λy = 2 - 3\lambda, z=λz = \lambda, for λ∈R\lambda \in \mathbb{R}.

(c) If k=2k = 2 and m≠3m \ne 3, the last row says 0=m−30 = m - 3 with m−3≠0m - 3 \ne 0, which is false. The system is inconsistent and has no solution.

Check for (b), with λ=0\lambda = 0, the point (−3,2,0)(-3, 2, 0): −3+4−0=1-3 + 4 - 0 = 1 ✓, −6+10+0=4-6 + 10 + 0 = 4 ✓, −3+6+0=3-3 + 6 + 0 = 3 ✓.

Doing a row operation on only part of a row. R2→R2−2R1R_2 \to R_2 - 2R_1 applies to every entry in the row, including the number after the bar.

Reading a row of zeros as “no solution”. A row (0  0  0∣0)(0 \ \ 0 \ \ 0 \mid 0) means 0=00 = 0, which is always true: infinitely many solutions. It’s (0  0  0∣b)(0 \ \ 0 \ \ 0 \mid b) with b≠0b \ne 0 that means no solution.

Giving one particular solution instead of the general solution. When there are infinitely many solutions, the question wants all of them: write xx, yy and zz in terms of a parameter λ\lambda, and say λ∈R\lambda \in \mathbb{R}.

Stopping at “no unique solution”. When the last coefficient is zero (for example k=2k = 2 in Example 4), you still have to decide between no solution and infinitely many, by looking at the right-hand side.

Dividing by an expression that could be zero. Solving (k−2)z=m−3(k - 2)z = m - 3 as z=m−3k−2z = \dfrac{m - 3}{k - 2} is only allowed when k≠2k \ne 2. Deal with the case k=2k = 2 separately.

Arithmetic slips with negatives. Row reduction involves a lot of subtraction. Check your final answer by substituting it into all three original equations, not just one.

1. (Warm-up) Solve the system by back-substitution:

x+2y+z=7y−z=−12z=6\begin{aligned} x + 2y + z &= 7 \\ y - z &= -1 \\ 2z &= 6 \end{aligned}
Solution2z=6⇒z=3y−3=−1⇒y=2x+4+3=7⇒x=0\begin{aligned} 2z &= 6 &&\Rightarrow\quad z = 3 \\ y - 3 &= -1 &&\Rightarrow\quad y = 2 \\ x + 4 + 3 &= 7 &&\Rightarrow\quad x = 0 \end{aligned}

The solution is x=0x = 0, y=2y = 2, z=3z = 3.

2. (Warm-up) Each augmented matrix has been row reduced. Say whether the system has a unique solution, infinitely many solutions, or no solution.

  • (a) (121301−120005)\left(\begin{array}{ccc|c} 1 & 2 & 1 & 3 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & 0 & 5 \end{array}\right)
  • (b) (121301−120000)\left(\begin{array}{ccc|c} 1 & 2 & 1 & 3 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & 0 & 0 \end{array}\right)
  • (c) (121301−120048)\left(\begin{array}{ccc|c} 1 & 2 & 1 & 3 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & 4 & 8 \end{array}\right)
Solution

(a) The last row says 0=50 = 5, which is false: no solution.

(b) The last row says 0=00 = 0: infinitely many solutions.

(c) The last row says 4z=84z = 8, so z=2z = 2, and back-substitution gives one value each for yy and xx: a unique solution.

3. (Core) Solve the system by row reduction:

2x+y−z=3x−y+2z=53x+2y+z=10\begin{aligned} 2x + y - z &= 3 \\ x - y + 2z &= 5 \\ 3x + 2y + z &= 10 \end{aligned}
Solution

Swap R1R_1 and R2R_2 so the top-left entry is 11:

(1−12521−1332110)R2→R2−2R1R3→R3−3R1(1−12503−5−705−5−5)\left(\begin{array}{ccc|c} 1 & -1 & 2 & 5 \\ 2 & 1 & -1 & 3 \\ 3 & 2 & 1 & 10 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - 2R_1 \\ R_3 \to R_3 - 3R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & -1 & 2 & 5 \\ 0 & 3 & -5 & -7 \\ 0 & 5 & -5 & -5 \end{array}\right)R3→3R3−5R2(1−12503−5−7001020)R_3 \to 3R_3 - 5R_2 \qquad \left(\begin{array}{ccc|c} 1 & -1 & 2 & 5 \\ 0 & 3 & -5 & -7 \\ 0 & 0 & 10 & 20 \end{array}\right)

Back-substitute:

10z=20⇒z=23y−10=−7⇒y=1x−1+4=5⇒x=2\begin{aligned} 10z &= 20 &&\Rightarrow\quad z = 2 \\ 3y - 10 &= -7 &&\Rightarrow\quad y = 1 \\ x - 1 + 4 &= 5 &&\Rightarrow\quad x = 2 \end{aligned}

The solution is x=2x = 2, y=1y = 1, z=2z = 2.

Check: 4+1−2=34 + 1 - 2 = 3 ✓, 2−1+4=52 - 1 + 4 = 5 ✓, 6+2+2=106 + 2 + 2 = 10 ✓.

4. (Core) Show that this system has infinitely many solutions, and find the general solution.

x+y+z=4x−y+3z=23x+y+5z=10\begin{aligned} x + y + z &= 4 \\ x - y + 3z &= 2 \\ 3x + y + 5z &= 10 \end{aligned}
Solution(11141−13231510)R2→R2−R1R3→R3−3R1(11140−22−20−22−2)R3→R3−R2(11140−22−20000)\left(\begin{array}{ccc|c} 1 & 1 & 1 & 4 \\ 1 & -1 & 3 & 2 \\ 3 & 1 & 5 & 10 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - R_1 \\ R_3 \to R_3 - 3R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 4 \\ 0 & -2 & 2 & -2 \\ 0 & -2 & 2 & -2 \end{array}\right) \quad R_3 \to R_3 - R_2 \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 4 \\ 0 & -2 & 2 & -2 \\ 0 & 0 & 0 & 0 \end{array}\right)

The last row is 0=00 = 0, so there are infinitely many solutions. Let z=λz = \lambda:

−2y+2λ=−2⇒y=1+λx+(1+λ)+λ=4⇒x=3−2λ\begin{aligned} -2y + 2\lambda &= -2 &&\Rightarrow\quad y = 1 + \lambda \\ x + (1 + \lambda) + \lambda &= 4 &&\Rightarrow\quad x = 3 - 2\lambda \end{aligned}

The general solution is x=3−2λx = 3 - 2\lambda, y=1+λy = 1 + \lambda, z=λz = \lambda, for λ∈R\lambda \in \mathbb{R}.

Check with λ=1\lambda = 1, the point (1,2,1)(1, 2, 1): 1+2+1=41 + 2 + 1 = 4 ✓, 1−2+3=21 - 2 + 3 = 2 ✓, 3+2+5=103 + 2 + 5 = 10 ✓.

5. (Core) Show that this system is inconsistent, and describe the three planes geometrically.

x+2y+3z=12x+4y+6z=5x−y+z=0\begin{aligned} x + 2y + 3z &= 1 \\ 2x + 4y + 6z &= 5 \\ x - y + z &= 0 \end{aligned}
Solution

Apply R2→R2−2R1R_2 \to R_2 - 2R_1:

(123100031−110)\left(\begin{array}{ccc|c} 1 & 2 & 3 & 1 \\ 0 & 0 & 0 & 3 \\ 1 & -1 & 1 & 0 \end{array}\right)

The second row says 0=30 = 3, which is false, so the system is inconsistent: there’s no solution.

Geometrically, the first two equations have parallel normals, (2,4,6)=2(1,2,3)(2, 4, 6) = 2(1, 2, 3), but the second equation is not twice the first (5≠2×15 \ne 2 \times 1). So the first two planes are parallel and distinct. The third plane’s normal (1,−1,1)(1, -1, 1) isn’t parallel to them, so it cuts both planes, in two parallel lines.

6. (Core) A café sells small coffees, lattes and teas. Three orders cost:

  • 22 coffees, 11 latte and 33 teas: $15.50
  • 11 coffee, 22 lattes and 11 tea: $13.50
  • 33 coffees, 11 latte and 22 teas: $16.00

Use your GDC to find the price of each drink.

Solution

Let cc, ll and tt be the prices of a coffee, a latte and a tea, in dollars:

2c+l+3t=15.50c+2l+t=13.503c+l+2t=16.00\begin{aligned} 2c + l + 3t &= 15.50 \\ c + 2l + t &= 13.50 \\ 3c + l + 2t &= 16.00 \end{aligned}

Enter the coefficients in the GDC’s simultaneous equation solver (or find the rref of the augmented matrix). It gives

c=2.5,l=4.5,t=2c = 2.5, \qquad l = 4.5, \qquad t = 2

A coffee costs $2.50, a latte $4.50 and a tea $2.00.

Check the first order: 2(2.5)+4.5+3(2)=5+4.5+6=15.52(2.5) + 4.5 + 3(2) = 5 + 4.5 + 6 = 15.5 ✓.

7. (Core) Consider the system

x+y+z=3x+2y+3z=52x+3y+kz=9\begin{aligned} x + y + z &= 3 \\ x + 2y + 3z &= 5 \\ 2x + 3y + kz &= 9 \end{aligned}

Find the value of kk for which the system does not have a unique solution, and show that for this value it has no solution.

Solution(1113123523k9)R2→R2−R1R3→R3−2R1(1113012201k−23)R3→R3−R2(1113012200k−41)\left(\begin{array}{ccc|c} 1 & 1 & 1 & 3 \\ 1 & 2 & 3 & 5 \\ 2 & 3 & k & 9 \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - R_1 \\ R_3 \to R_3 - 2R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 3 \\ 0 & 1 & 2 & 2 \\ 0 & 1 & k - 2 & 3 \end{array}\right) \quad R_3 \to R_3 - R_2 \quad \left(\begin{array}{ccc|c} 1 & 1 & 1 & 3 \\ 0 & 1 & 2 & 2 \\ 0 & 0 & k - 4 & 1 \end{array}\right)

The last row is (k−4)z=1(k - 4)z = 1. If k≠4k \ne 4, z=1k−4z = \dfrac{1}{k - 4} and there’s a unique solution. So the system does not have a unique solution when k=4k = 4.

When k=4k = 4, the last row says 0=10 = 1, which is false. So for k=4k = 4 the system has no solution.

8. (Challenge) Consider the system

x+y+2z=12x+3y+5z=4x+2y+kz=m\begin{aligned} x + y + 2z &= 1 \\ 2x + 3y + 5z &= 4 \\ x + 2y + kz &= m \end{aligned}
  • (a) Find the values of kk and mm for which the system has infinitely many solutions.
  • (b) For these values, find the general solution.
  • (c) For which values of kk and mm does the system have no solution?
Solution(1121235412km)R2→R2−2R1R3→R3−R1(1121011201k−2m−1)R3→R3−R2(1121011200k−3m−3)\left(\begin{array}{ccc|c} 1 & 1 & 2 & 1 \\ 2 & 3 & 5 & 4 \\ 1 & 2 & k & m \end{array}\right) \quad \begin{array}{l} \\ R_2 \to R_2 - 2R_1 \\ R_3 \to R_3 - R_1 \end{array} \quad \left(\begin{array}{ccc|c} 1 & 1 & 2 & 1 \\ 0 & 1 & 1 & 2 \\ 0 & 1 & k - 2 & m - 1 \end{array}\right) \quad R_3 \to R_3 - R_2 \quad \left(\begin{array}{ccc|c} 1 & 1 & 2 & 1 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & k - 3 & m - 3 \end{array}\right)

(a) Infinitely many solutions need the last row to be 0=00 = 0: k−3=0k - 3 = 0 and m−3=0m - 3 = 0. So k=3k = 3 and m=3m = 3.

(b) Let z=λz = \lambda:

y+λ=2⇒y=2−λx+(2−λ)+2λ=1⇒x=−1−λ\begin{aligned} y + \lambda &= 2 &&\Rightarrow\quad y = 2 - \lambda \\ x + (2 - \lambda) + 2\lambda &= 1 &&\Rightarrow\quad x = -1 - \lambda \end{aligned}

The general solution is x=−1−λx = -1 - \lambda, y=2−λy = 2 - \lambda, z=λz = \lambda, for λ∈R\lambda \in \mathbb{R}.

Check with λ=0\lambda = 0, the point (−1,2,0)(-1, 2, 0): −1+2+0=1-1 + 2 + 0 = 1 ✓, −2+6+0=4-2 + 6 + 0 = 4 ✓, −1+4+0=3-1 + 4 + 0 = 3 ✓.

(c) No solution when the last row reads 0=m−30 = m - 3 with m−3≠0m - 3 \ne 0: that is, k=3k = 3 and m≠3m \ne 3.

9. (Challenge) Return to the system in Question 7.

  • (a) For k≠4k \ne 4, find the unique solution in terms of kk.
  • (b) Describe the three planes geometrically when k=4k = 4.
Solution

(a) From the reduced matrix in Question 7, z=1k−4z = \dfrac{1}{k - 4}. Back-substitute into y+2z=2y + 2z = 2:

y=2−2k−4y = 2 - \frac{2}{k - 4}

Then from x+y+z=3x + y + z = 3:

x=3−(2−2k−4)−1k−4=1+1k−4x = 3 - \left(2 - \frac{2}{k - 4}\right) - \frac{1}{k - 4} = 1 + \frac{1}{k - 4}

So x=1+1k−4x = 1 + \dfrac{1}{k - 4}, y=2−2k−4y = 2 - \dfrac{2}{k - 4}, z=1k−4z = \dfrac{1}{k - 4}.

Check with k=5k = 5: (2,0,1)(2, 0, 1) gives 2+0+1=32 + 0 + 1 = 3 ✓, 2+0+3=52 + 0 + 3 = 5 ✓, 4+0+5=94 + 0 + 5 = 9 ✓.

(b) When k=4k = 4 the normals are (1,1,1)(1, 1, 1), (1,2,3)(1, 2, 3) and (2,3,4)(2, 3, 4). No two are parallel (none is a multiple of another), so no two planes are parallel. But the system has no solution, so the three planes have no common point: each pair meets in a line, and the three lines are parallel. The planes form a triangular prism.