About

1.5 Solution Sets of Linear Systems

Theory: Solution Sets of Linear Systems

Homogeneous vs. Nonhomogeneous Systems (Lay §1.5)

A linear system is

A homogeneous system is always consistent: x=0\mathbf{x} = \mathbf{0} always works, because A0=0A\mathbf{0} = \mathbf{0}. This zero solution is called the trivial solution. So for Ax=0A\mathbf{x} = \mathbf{0} the question is never “is there a solution?” but “is there a nontrivial solution, i.e. some x≠0\mathbf{x} \ne \mathbf{0}?”. Uniqueness depends on free variables:

Fact (Lay §1.5): The homogeneous equation Ax=0A\mathbf{x} = \mathbf{0} has a nontrivial solution if and only if the equation has at least one free variable, i.e. if and only if some column of the coefficient matrix AA is not a pivot column.

How to recognise it fast: you only need an echelon form (REF), not the RREF. Circle the pivots of the coefficient part; any column without a pivot gives a free variable.

Shortcut — more unknowns than equations. If AA has fewer rows than columns (e.g. 2 equations, 3 unknowns), there are at most 2 pivots but 3 variables, so at least one variable must be free. Then Ax=0A\mathbf{x} = \mathbf{0} has a nontrivial solution — no row operations needed (Exercises 3 and 4 below).

Parametric Vector Form

Once the free variables are known, solve each basic variable in terms of the free ones and write the whole solution vector as a linear combination with the free variables as weights. For example, if x1=2x2x_1 = 2x_2, x2x_2 free, x3=5x_3 = 5:

x=[x1x2x3]=[2x2x25]=[005]+[2x2x20]=[005]⏟p+x2[210]⏟v\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 2x_2 \\ x_2 \\ 5 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 5 \end{bmatrix} + \begin{bmatrix} 2x_2 \\ x_2 \\ 0 \end{bmatrix} = \underbrace{\begin{bmatrix} 0 \\ 0 \\ 5 \end{bmatrix}}_{\mathbf{p}} + x_2 \underbrace{\begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}}_{\mathbf{v}}

The trick: split the vector into one piece per free variable plus a constant piece, then factor each free variable out.

Geometrically, one free variable gives a line, two free variables give a plane.

The 6-Step Solution-Set Recipe

  1. Find REF of the augmented matrix and circle the pivots.
  2. Check for free variables: if a coefficient column has no pivot, that variable is free and (for Ax=0A\mathbf{x} = \mathbf{0}) a nontrivial solution exists. (For Ax=bA\mathbf{x} = \mathbf{b}, also check there is no row [0 ⋯ 0∣c][0 \ \cdots \ 0 \mid c] with c≠0c \ne 0.)
  3. Reduce to RREF.
  4. Write the RREF as equations.
  5. Express the basic variables in terms of the free variables.
  6. Write the parametric vector form: split by free variable and factor.

Mini-example (Lay §1.5, Example 1): homogeneous

Determine if the system has a nontrivial solution and describe the solution set: 3x1+5x2−4x3=03x_1 + 5x_2 - 4x_3 = 0,  −3x1−2x2+4x3=0\ -3x_1 - 2x_2 + 4x_3 = 0,  6x1+x2−8x3=0\ 6x_1 + x_2 - 8x_3 = 0.

Step 1 (R2←R2+R1R_2 \leftarrow R_2 + R_1, R3←R3−2R1R_3 \leftarrow R_3 - 2R_1, then R3←R3+3R2R_3 \leftarrow R_3 + 3R_2):

[35−40−3−24061−80]∼[35−4003000−900]∼[35−4003000000]\left[\begin{array}{ccc|c} 3 & 5 & -4 & 0 \\ -3 & -2 & 4 & 0 \\ 6 & 1 & -8 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 3 & 5 & -4 & 0 \\ 0 & 3 & 0 & 0 \\ 0 & -9 & 0 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} \boxed{3} & 5 & -4 & 0 \\ 0 & \boxed{3} & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]

Step 2: column 3 has no pivot → x3x_3 is free → a nontrivial solution exists.

Step 3 (R2←13R2R_2 \leftarrow \tfrac13 R_2, R1←R1−5R2R_1 \leftarrow R_1 - 5R_2, R1←13R1R_1 \leftarrow \tfrac13 R_1): [10−43001000000]\left[\begin{array}{ccc|c} 1 & 0 & -\frac43 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]

Step 4: x1−43x3=0x_1 - \tfrac43 x_3 = 0,  x2=0\ x_2 = 0,  0=0\ 0 = 0.

Step 5: x1=43x3x_1 = \tfrac43 x_3, x2=0x_2 = 0, x3x_3 free.

Step 6:

x=[43x30x3]=x3[4301]=x3v\mathbf{x} = \begin{bmatrix} \frac43 x_3 \\ 0 \\ x_3 \end{bmatrix} = x_3 \begin{bmatrix} \frac43 \\ 0 \\ 1 \end{bmatrix} = x_3 \mathbf{v}

The solution set is Span⁡{v}\operatorname{Span}\{\mathbf{v}\}: a line through the origin in R3\mathbb{R}^3.

Mini-example (Lay §1.5, Example 3): nonhomogeneous

Same coefficient matrix, now with b=(7,−1,−4)\mathbf{b} = (7, -1, -4). The same row operations give

[35−47−3−24−161−8−4]∼[10−43−101020000]\left[\begin{array}{ccc|c} 3 & 5 & -4 & 7 \\ -3 & -2 & 4 & -1 \\ 6 & 1 & -8 & -4 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 0 & -\frac43 & -1 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 0 & 0 \end{array}\right]

So x1=−1+43x3x_1 = -1 + \tfrac43 x_3, x2=2x_2 = 2, x3x_3 free, and

x=[−1+43x32x3]=[−120]⏟p+x3[4301]⏟v\mathbf{x} = \begin{bmatrix} -1 + \frac43 x_3 \\ 2 \\ x_3 \end{bmatrix} = \underbrace{\begin{bmatrix} -1 \\ 2 \\ 0 \end{bmatrix}}_{\mathbf{p}} + x_3 \underbrace{\begin{bmatrix} \frac43 \\ 0 \\ 1 \end{bmatrix}}_{\mathbf{v}}

Notice: the same v\mathbf{v} as in Example 1, just shifted by p\mathbf{p}. That is no accident:

Solutions of Nonhomogeneous Systems

Theorem 6 (Lay §1.5): Suppose Ax=bA\mathbf{x} = \mathbf{b} is consistent for some given b\mathbf{b}, and let p\mathbf{p} be a solution. Then the solution set of Ax=bA\mathbf{x} = \mathbf{b} is the set of all vectors of the form w=p+vh,\mathbf{w} = \mathbf{p} + \mathbf{v}_h, where vh\mathbf{v}_h is any solution of the homogeneous equation Ax=0A\mathbf{x} = \mathbf{0}.

Why it works: if Ap=bA\mathbf{p} = \mathbf{b} and Avh=0A\mathbf{v}_h = \mathbf{0}, then A(p+vh)=b+0=bA(\mathbf{p} + \mathbf{v}_h) = \mathbf{b} + \mathbf{0} = \mathbf{b}. Conversely, if Aw=bA\mathbf{w} = \mathbf{b} then A(w−p)=0A(\mathbf{w} - \mathbf{p}) = \mathbf{0}, so w−p\mathbf{w} - \mathbf{p} is a homogeneous solution.

Geometric picture: the solution set of Ax=bA\mathbf{x} = \mathbf{b} is the solution set of Ax=0A\mathbf{x} = \mathbf{0} translated by p\mathbf{p}. A line through the origin becomes a parallel line through p\mathbf{p}; a plane through the origin becomes a parallel plane through p\mathbf{p}. Here p\mathbf{p} is called a particular solution.

Common mistakes:

  • Theorem 6 needs Ax=bA\mathbf{x} = \mathbf{b} to be consistent. If REF has a row [0 ⋯ 0∣b][0 \ \cdots \ 0 \mid b] with b≠0b \ne 0, there is no p\mathbf{p} and the solution set is empty — it is not a shifted copy of anything.
  • A variable whose column is all zeros (e.g. x3x_3 in [1 3 0 −4][1 \ 3 \ 0 \ -4]) is free, not zero. Don’t drop it from the parametric form.
  • Read free variables from the coefficient columns only — the augmented column is never a variable.

Solved Examples (Textbook Questions)

Exercise 1

(Adapted from Lay §1.5, Exercises 1–4)

Determine if the system has a nontrivial solution. Try to use as few row operations as possible.

  1. 2x1−5x2+8x3=02x_1 - 5x_2 + 8x_3 = 0,  −2x1−7x2+x3=0\ -2x_1 - 7x_2 + x_3 = 0,  4x1+2x2+7x3=0\ 4x_1 + 2x_2 + 7x_3 = 0
  2. x1−3x2+7x3=0x_1 - 3x_2 + 7x_3 = 0,  −2x1+x2−4x3=0\ -2x_1 + x_2 - 4x_3 = 0,  x1+2x2+9x3=0\ x_1 + 2x_2 + 9x_3 = 0
  3. −3x1+5x2−7x3=0-3x_1 + 5x_2 - 7x_3 = 0,  −6x1+7x2+x3=0\ -6x_1 + 7x_2 + x_3 = 0
  4. −5x1+7x2+9x3=0-5x_1 + 7x_2 + 9x_3 = 0,  x1−2x2+6x3=0\ x_1 - 2x_2 + 6x_3 = 0
Show solution ↓
Solution

Strategy: reduce to echelon form only and look for a coefficient column with no pivot.

1. R2←R2+R1R_2 \leftarrow R_2 + R_1, R3←R3−2R1R_3 \leftarrow R_3 - 2R_1, then R3←R3+R2R_3 \leftarrow R_3 + R_2:

[2−580−2−7104270]∼[2−5800−1290012−90]∼[2−5800−12900000]\left[\begin{array}{ccc|c} 2 & -5 & 8 & 0 \\ -2 & -7 & 1 & 0 \\ 4 & 2 & 7 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 2 & -5 & 8 & 0 \\ 0 & -12 & 9 & 0 \\ 0 & 12 & -9 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} \boxed{2} & -5 & 8 & 0 \\ 0 & \boxed{-12} & 9 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]

Column 3 has no pivot → x3x_3 is free → nontrivial solution exists.

2. 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:

[1−370−21−401290]∼[1−3700−51000520]∼[1−3700−510000120]\left[\begin{array}{ccc|c} 1 & -3 & 7 & 0 \\ -2 & 1 & -4 & 0 \\ 1 & 2 & 9 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & -3 & 7 & 0 \\ 0 & -5 & 10 & 0 \\ 0 & 5 & 2 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} \boxed{1} & -3 & 7 & 0 \\ 0 & \boxed{-5} & 10 & 0 \\ 0 & 0 & \boxed{12} & 0 \end{array}\right]

Every column is a pivot column → no free variable → only the trivial solution.

3. R2←R2−2R1R_2 \leftarrow R_2 - 2R_1:

[−35−70−6710]∼[−35−700−3150]\left[\begin{array}{ccc|c} -3 & 5 & -7 & 0 \\ -6 & 7 & 1 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} \boxed{-3} & 5 & -7 & 0 \\ 0 & \boxed{-3} & 15 & 0 \end{array}\right]

x3x_3 is free → nontrivial solutions exist.

4. Swap R1↔R2R_1 \leftrightarrow R_2, then R2←R2+5R1R_2 \leftarrow R_2 + 5R_1:

[1−260−5790]∼[1−2600−3390]\left[\begin{array}{ccc|c} 1 & -2 & 6 & 0 \\ -5 & 7 & 9 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} \boxed{1} & -2 & 6 & 0 \\ 0 & \boxed{-3} & 39 & 0 \end{array}\right]

x3x_3 is free → nontrivial solutions exist.

Alert-student shortcut for 3 and 4: with only 2 equations there can be at most 2 pivots, but there are 3 variables, so at least one variable must be free. Row operations are unnecessary.

Exercise 2

(Adapted from Lay §1.5, Exercises 5–6)

Write the solution set of each homogeneous system in parametric vector form.

  1. x1+3x2+x3=0x_1 + 3x_2 + x_3 = 0,  −4x1−9x2+2x3=0\ -4x_1 - 9x_2 + 2x_3 = 0,  −3x2−6x3=0\ -3x_2 - 6x_3 = 0
  2. x1+3x2−5x3=0x_1 + 3x_2 - 5x_3 = 0,  x1+4x2−8x3=0\ x_1 + 4x_2 - 8x_3 = 0,  −3x1−7x2+9x3=0\ -3x_1 - 7x_2 + 9x_3 = 0
Show solution ↓
Solution

5. R2←R2+4R1R_2 \leftarrow R_2 + 4R_1; R3←R3+R2R_3 \leftarrow R_3 + R_2; R2←13R2R_2 \leftarrow \tfrac13 R_2; R1←R1−3R2R_1 \leftarrow R_1 - 3R_2:

[1310−4−9200−3−60]∼[131003600−3−60]∼[131003600000]∼[10−5001200000]\left[\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ -4 & -9 & 2 & 0 \\ 0 & -3 & -6 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ 0 & 3 & 6 & 0 \\ 0 & -3 & -6 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ 0 & 3 & 6 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 0 & -5 & 0 \\ 0 & 1 & 2 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]

Equations: x1−5x3=0x_1 - 5x_3 = 0, x2+2x3=0x_2 + 2x_3 = 0. So x1=5x3x_1 = 5x_3, x2=−2x3x_2 = -2x_3, x3x_3 free:

x=[5x3−2x3x3]=x3[5−21]\mathbf{x} = \begin{bmatrix} 5x_3 \\ -2x_3 \\ x_3 \end{bmatrix} = x_3 \begin{bmatrix} 5 \\ -2 \\ 1 \end{bmatrix}

6. R2←R2−R1R_2 \leftarrow R_2 - R_1, R3←R3+3R1R_3 \leftarrow R_3 + 3R_1; R3←R3−2R2R_3 \leftarrow R_3 - 2R_2; R1←R1−3R2R_1 \leftarrow R_1 - 3R_2:

[13−5014−80−3−790]∼[13−5001−3002−60]∼[13−5001−300000]∼[104001−300000]\left[\begin{array}{ccc|c} 1 & 3 & -5 & 0 \\ 1 & 4 & -8 & 0 \\ -3 & -7 & 9 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 3 & -5 & 0 \\ 0 & 1 & -3 & 0 \\ 0 & 2 & -6 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 3 & -5 & 0 \\ 0 & 1 & -3 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] \sim \left[\begin{array}{ccc|c} 1 & 0 & 4 & 0 \\ 0 & 1 & -3 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]

Equations: x1+4x3=0x_1 + 4x_3 = 0, x2−3x3=0x_2 - 3x_3 = 0. So x1=−4x3x_1 = -4x_3, x2=3x3x_2 = 3x_3, x3x_3 free:

x=[−4x33x3x3]=x3[−431]\mathbf{x} = \begin{bmatrix} -4x_3 \\ 3x_3 \\ x_3 \end{bmatrix} = x_3 \begin{bmatrix} -4 \\ 3 \\ 1 \end{bmatrix}

Both solution sets are lines through the origin.

Exercise 3

(Adapted from Lay §1.5, Exercises 7–10)

Describe all solutions of Ax=0A\mathbf{x} = \mathbf{0} in parametric vector form, where AA is row equivalent to the given matrix.

7. [13−3701−45]8. [1−2−95012−6]\textbf{7. } \begin{bmatrix} 1 & 3 & -3 & 7 \\ 0 & 1 & -4 & 5 \end{bmatrix} \qquad \textbf{8. } \begin{bmatrix} 1 & -2 & -9 & 5 \\ 0 & 1 & 2 & -6 \end{bmatrix}9. [3−96−13−2]10. [130−4260−8]\textbf{9. } \begin{bmatrix} 3 & -9 & 6 \\ -1 & 3 & -2 \end{bmatrix} \qquad \textbf{10. } \begin{bmatrix} 1 & 3 & 0 & -4 \\ 2 & 6 & 0 & -8 \end{bmatrix}
Show solution ↓
Solution

These are coefficient matrices, so append a zero column mentally (it never changes under row operations).

7. R1←R1−3R2R_1 \leftarrow R_1 - 3R_2:

[13−3701−45]∼[109−801−45]\begin{bmatrix} 1 & 3 & -3 & 7 \\ 0 & 1 & -4 & 5 \end{bmatrix} \sim \begin{bmatrix} 1 & 0 & 9 & -8 \\ 0 & 1 & -4 & 5 \end{bmatrix}

x1+9x3−8x4=0x_1 + 9x_3 - 8x_4 = 0, x2−4x3+5x4=0x_2 - 4x_3 + 5x_4 = 0. Basic: x1,x2x_1, x_2; free: x3,x4x_3, x_4. So x1=−9x3+8x4x_1 = -9x_3 + 8x_4, x2=4x3−5x4x_2 = 4x_3 - 5x_4:

x=[−9x3+8x44x3−5x4x3x4]=x3[−9410]+x4[8−501]\mathbf{x} = \begin{bmatrix} -9x_3 + 8x_4 \\ 4x_3 - 5x_4 \\ x_3 \\ x_4 \end{bmatrix} = x_3 \begin{bmatrix} -9 \\ 4 \\ 1 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 8 \\ -5 \\ 0 \\ 1 \end{bmatrix}

8. R1←R1+2R2R_1 \leftarrow R_1 + 2R_2:

[1−2−95012−6]∼[10−5−7012−6]\begin{bmatrix} 1 & -2 & -9 & 5 \\ 0 & 1 & 2 & -6 \end{bmatrix} \sim \begin{bmatrix} 1 & 0 & -5 & -7 \\ 0 & 1 & 2 & -6 \end{bmatrix}

x1=5x3+7x4x_1 = 5x_3 + 7x_4, x2=−2x3+6x4x_2 = -2x_3 + 6x_4, x3,x4x_3, x_4 free:

x=x3[5−210]+x4[7601]\mathbf{x} = x_3 \begin{bmatrix} 5 \\ -2 \\ 1 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 7 \\ 6 \\ 0 \\ 1 \end{bmatrix}

9. R1←13R1R_1 \leftarrow \tfrac13 R_1, then R2←R2+R1R_2 \leftarrow R_2 + R_1:

[3−96−13−2]∼[1−32000]\begin{bmatrix} 3 & -9 & 6 \\ -1 & 3 & -2 \end{bmatrix} \sim \begin{bmatrix} 1 & -3 & 2 \\ 0 & 0 & 0 \end{bmatrix}

x1−3x2+2x3=0x_1 - 3x_2 + 2x_3 = 0, so x1=3x2−2x3x_1 = 3x_2 - 2x_3 with x2,x3x_2, x_3 free:

x=x2[310]+x3[−201]\mathbf{x} = x_2 \begin{bmatrix} 3 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix}

(a plane through the origin in R3\mathbb{R}^3).

10. R2←R2−2R1R_2 \leftarrow R_2 - 2R_1:

[130−4260−8]∼[130−40000]\begin{bmatrix} 1 & 3 & 0 & -4 \\ 2 & 6 & 0 & -8 \end{bmatrix} \sim \begin{bmatrix} 1 & 3 & 0 & -4 \\ 0 & 0 & 0 & 0 \end{bmatrix}

The only equation is x1+3x2−4x4=0x_1 + 3x_2 - 4x_4 = 0. The only basic variable is x1x_1; x2,x3,x4x_2, x_3, x_4 are all free (note x3x_3 is free, not zero — its column is all zeros). So x1=−3x2+4x4x_1 = -3x_2 + 4x_4:

x=[−3x2+4x4x2x3x4]=x2[−3100]+x3[0010]+x4[4001]\mathbf{x} = \begin{bmatrix} -3x_2 + 4x_4 \\ x_2 \\ x_3 \\ x_4 \end{bmatrix} = x_2 \begin{bmatrix} -3 \\ 1 \\ 0 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 4 \\ 0 \\ 0 \\ 1 \end{bmatrix}
Exercise 4

(Adapted from Lay §1.5, Exercises 11–12)

Describe all solutions of Ax=0A\mathbf{x} = \mathbf{0} in parametric vector form, where AA is row equivalent to

11. [1−4−203−500100−100001−4000000]12. [152−690001−74−8000001000000]\textbf{11. } \begin{bmatrix} 1 & -4 & -2 & 0 & 3 & -5 \\ 0 & 0 & 1 & 0 & 0 & -1 \\ 0 & 0 & 0 & 0 & 1 & -4 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix} \qquad \textbf{12. } \begin{bmatrix} 1 & 5 & 2 & -6 & 9 & 0 \\ 0 & 0 & 1 & -7 & 4 & -8 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix}
Show solution ↓
Solution

11. Already in echelon form, pivots in columns 1, 3, 5. Clear above the pivots: R1←R1−3R3R_1 \leftarrow R_1 - 3R_3, then R1←R1+2R2R_1 \leftarrow R_1 + 2R_2:

A∼[1−4−200700100−100001−4000000]∼[1−4000500100−100001−4000000]A \sim \begin{bmatrix} 1 & -4 & -2 & 0 & 0 & 7 \\ 0 & 0 & 1 & 0 & 0 & -1 \\ 0 & 0 & 0 & 0 & 1 & -4 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix} \sim \begin{bmatrix} \boxed{1} & -4 & 0 & 0 & 0 & 5 \\ 0 & 0 & \boxed{1} & 0 & 0 & -1 \\ 0 & 0 & 0 & 0 & \boxed{1} & -4 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix}

Equations: x1−4x2+5x6=0x_1 - 4x_2 + 5x_6 = 0, x3−x6=0x_3 - x_6 = 0, x5−4x6=0x_5 - 4x_6 = 0. Basic: x1,x3,x5x_1, x_3, x_5. Free: x2,x4,x6x_2, x_4, x_6 (in particular x4x_4 is free, not zero!). x1=4x2−5x6x_1 = 4x_2 - 5x_6, x3=x6x_3 = x_6, x5=4x6x_5 = 4x_6:

x=[4x2−5x6x2x6x44x6x6]=x2[410000]+x4[000100]+x6[−501041]=x2u+x4v+x6w\mathbf{x} = \begin{bmatrix} 4x_2 - 5x_6 \\ x_2 \\ x_6 \\ x_4 \\ 4x_6 \\ x_6 \end{bmatrix} = x_2 \begin{bmatrix} 4 \\ 1 \\ 0 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 0 \\ 0 \\ 0 \\ 1 \\ 0 \\ 0 \end{bmatrix} + x_6 \begin{bmatrix} -5 \\ 0 \\ 1 \\ 0 \\ 4 \\ 1 \end{bmatrix} = x_2\mathbf{u} + x_4\mathbf{v} + x_6\mathbf{w}

12. Pivots in columns 1, 3, 6. R2←R2+8R3R_2 \leftarrow R_2 + 8R_3, then R1←R1−2R2R_1 \leftarrow R_1 - 2R_2:

A∼[152−690001−740000001000000]∼[150810001−740000001000000]A \sim \begin{bmatrix} 1 & 5 & 2 & -6 & 9 & 0 \\ 0 & 0 & 1 & -7 & 4 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix} \sim \begin{bmatrix} \boxed{1} & 5 & 0 & 8 & 1 & 0 \\ 0 & 0 & \boxed{1} & -7 & 4 & 0 \\ 0 & 0 & 0 & 0 & 0 & \boxed{1} \\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix}

Equations: x1+5x2+8x4+x5=0x_1 + 5x_2 + 8x_4 + x_5 = 0, x3−7x4+4x5=0x_3 - 7x_4 + 4x_5 = 0, x6=0x_6 = 0. Basic: x1,x3,x6x_1, x_3, x_6. Free: x2,x4,x5x_2, x_4, x_5. x1=−5x2−8x4−x5x_1 = -5x_2 - 8x_4 - x_5, x3=7x4−4x5x_3 = 7x_4 - 4x_5, x6=0x_6 = 0:

x=x2[−510000]+x4[−807100]+x5[−10−4010]\mathbf{x} = x_2 \begin{bmatrix} -5 \\ 1 \\ 0 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} -8 \\ 0 \\ 7 \\ 1 \\ 0 \\ 0 \end{bmatrix} + x_5 \begin{bmatrix} -1 \\ 0 \\ -4 \\ 0 \\ 1 \\ 0 \end{bmatrix}

Two classic mistakes on this type (mentioned by the Study Guide): (1) treating a variable with an all-zero column, like x4x_4 in Exercise 11, as zero instead of free; (2) forgetting a basic variable that equals 00, like x6x_6 in Exercise 12 — it is basic, so it gets no vector of its own, but its entry 00 still appears in every vector.

Exercise 5

(Adapted from Lay §1.5, Exercises 17–18)

  1. Describe and compare the solution sets of x1+9x2−4x3=0x_1 + 9x_2 - 4x_3 = 0 and x1+9x2−4x3=−2x_1 + 9x_2 - 4x_3 = -2.

  2. Describe and compare the solution sets of x1−3x2+5x3=0x_1 - 3x_2 + 5x_3 = 0 and x1−3x2+5x3=4x_1 - 3x_2 + 5x_3 = 4.

Show solution ↓
Solution

A single equation in 3 unknowns: x1x_1 is basic, x2x_2 and x3x_3 are free.

17. Nonhomogeneous: x1=−2−9x2+4x3x_1 = -2 - 9x_2 + 4x_3:

x=[−2−9x2+4x3x2x3]=[−200]+x2[−910]+x3[401]=p+x2u+x3v\mathbf{x} = \begin{bmatrix} -2 - 9x_2 + 4x_3 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} -2 \\ 0 \\ 0 \end{bmatrix} + x_2 \begin{bmatrix} -9 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} 4 \\ 0 \\ 1 \end{bmatrix} = \mathbf{p} + x_2\mathbf{u} + x_3\mathbf{v}

Homogeneous: x1=−9x2+4x3x_1 = -9x_2 + 4x_3, so x=x2u+x3v\mathbf{x} = x_2\mathbf{u} + x_3\mathbf{v} with the same u,v\mathbf{u}, \mathbf{v}.

Comparison: the homogeneous solution set is the plane through the origin spanned by u\mathbf{u} and v\mathbf{v}. The nonhomogeneous solution set is the parallel plane through p=(−2,0,0)\mathbf{p} = (-2, 0, 0) (Theorem 6).

18. Nonhomogeneous: x1=4+3x2−5x3x_1 = 4 + 3x_2 - 5x_3:

x=[400]+x2[310]+x3[−501]=p+x2u+x3v\mathbf{x} = \begin{bmatrix} 4 \\ 0 \\ 0 \end{bmatrix} + x_2 \begin{bmatrix} 3 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} -5 \\ 0 \\ 1 \end{bmatrix} = \mathbf{p} + x_2\mathbf{u} + x_3\mathbf{v}

Homogeneous: x1=3x2−5x3x_1 = 3x_2 - 5x_3, so x=x2u+x3v\mathbf{x} = x_2\mathbf{u} + x_3\mathbf{v}.

Comparison: the homogeneous solution set is the plane through the origin spanned by u,v\mathbf{u}, \mathbf{v}; the nonhomogeneous one is the parallel plane through p=(4,0,0)\mathbf{p} = (4, 0, 0).

Exercise 6

(Adapted from Lay §1.5, Exercises 34–36)

  1. Given A=[4−6−8126−9]A = \begin{bmatrix} 4 & -6 \\ -8 & 12 \\ 6 & -9 \end{bmatrix}, find one nontrivial solution of Ax=0A\mathbf{x} = \mathbf{0} by inspection.

  2. Construct a 3×33 \times 3 nonzero matrix AA such that [111]\begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} is a solution of Ax=0A\mathbf{x} = \mathbf{0}.

  3. Construct a 3×33 \times 3 nonzero matrix AA such that [1−21]\begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix} is a solution of Ax=0A\mathbf{x} = \mathbf{0}.

Show solution ↓
Solution

Key idea: Ax=x1a1+x2a2+⋯A\mathbf{x} = x_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \cdots, so a solution of Ax=0A\mathbf{x} = \mathbf{0} is a list of weights that makes the columns add to 0\mathbf{0}.

34. Compare the columns: −6=−32⋅4-6 = -\tfrac32 \cdot 4, 12=−32⋅(−8)12 = -\tfrac32 \cdot (-8), −9=−32⋅6-9 = -\tfrac32 \cdot 6. So a2=−32a1\mathbf{a}_2 = -\tfrac32 \mathbf{a}_1, i.e. 3a1+2a2=03\mathbf{a}_1 + 2\mathbf{a}_2 = \mathbf{0}. Therefore

x=[32] satisfies Ax=0.Check row 1: 4(3)−6(2)=0 ✓\mathbf{x} = \begin{bmatrix} 3 \\ 2 \end{bmatrix} \text{ satisfies } A\mathbf{x} = \mathbf{0}. \quad \text{Check row 1: } 4(3) - 6(2) = 0 \ ✓

35. We need 1⋅a1+1⋅a2+1⋅a3=01\cdot\mathbf{a}_1 + 1\cdot\mathbf{a}_2 + 1\cdot\mathbf{a}_3 = \mathbf{0}: each row sum must be zero. One example:

A=[1−1020−203−3],A[111]=[000]A = \begin{bmatrix} 1 & -1 & 0 \\ 2 & 0 & -2 \\ 0 & 3 & -3 \end{bmatrix}, \qquad A\begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}

36. We need a1−2a2+a3=0\mathbf{a}_1 - 2\mathbf{a}_2 + \mathbf{a}_3 = \mathbf{0}, i.e. in every row, (first entry) + (third entry) = 2 × (middle entry): the sum of the first and third columns is twice the second column. One example:

A=[111210012],A[1−21]=[1−2+12−2+00−2+2]=[000]A = \begin{bmatrix} 1 & 1 & 1 \\ 2 & 1 & 0 \\ 0 & 1 & 2 \end{bmatrix}, \qquad A\begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 - 2 + 1 \\ 2 - 2 + 0 \\ 0 - 2 + 2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}

(Many answers are possible — any nonzero matrix with this row property works.)

Exercise 7

(Adapted from Lay §1.5, Exercise 38)

Suppose AA is a 3×33 \times 3 matrix and y\mathbf{y} is a vector in R3\mathbb{R}^3 such that the equation Ax=yA\mathbf{x} = \mathbf{y} does not have a solution. Does there exist a vector z\mathbf{z} in R3\mathbb{R}^3 such that Ax=zA\mathbf{x} = \mathbf{z} has a unique solution? Discuss.

Show solution ↓
Solution

No.

  1. If Ax=yA\mathbf{x} = \mathbf{y} has no solution, then AA does not have a pivot in every row (otherwise Ax=bA\mathbf{x} = \mathbf{b} would be consistent for every b\mathbf{b}, Lay §1.4 Theorem 4).
  2. AA is 3×33 \times 3, so it has at most two pivot positions.
  3. Hence among its 3 columns at least one is not a pivot column: any equation Ax=zA\mathbf{x} = \mathbf{z} has at most two basic variables and at least one free variable.
  4. So for any z\mathbf{z}, the solution set of Ax=zA\mathbf{x} = \mathbf{z} is either empty (inconsistent) or infinite (consistent with a free variable) — never a single vector.

This matches Theorem 6: if a p\mathbf{p} exists, the solution set is p\mathbf{p} + (solutions of Ax=0A\mathbf{x} = \mathbf{0}), and Ax=0A\mathbf{x} = \mathbf{0} has infinitely many solutions here.