homogeneous if it can be written as Ax=0 (every right-hand side is zero);
nonhomogeneous if it is Ax=b with b=0.
A homogeneous system is always consistent: x=0 always works, because A0=0. This zero solution is called the trivial solution. So for Ax=0 the question is never “is there a solution?” but “is there a nontrivial solution, i.e. some x=0?”. Uniqueness depends on free variables:
no free variable → only the trivial solution (unique);
at least one free variable → infinitely many solutions (so nontrivial ones exist).
Fact (Lay §1.5): The homogeneous equation Ax=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 A 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 A 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=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=2x2, x2 free, x3=5:
The trick: split the vector into one piece per free variable plus a constant piece, then factor each free variable out.
Homogeneous: Ax=0⇒x=xnv (or su+tv+⋯) — no constant vector, the solution set is Span{v,…}, a line/plane through the origin.
Nonhomogeneous: Ax=b⇒x=p+xnv, where p is a constant vector and v is multiplied by a free variable.
Geometrically, one free variable gives a line, two free variables give a plane.
The 6-Step Solution-Set Recipe
Find REF of the augmented matrix and circle the pivots.
Check for free variables: if a coefficient column has no pivot, that variable is free and (for Ax=0) a nontrivial solution exists. (For Ax=b, also check there is no row [0⋯0∣c] with c=0.)
Reduce to RREF.
Write the RREF as equations.
Express the basic variables in terms of the free variables.
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=0, −3x1−2x2+4x3=0, 6x1+x2−8x3=0.
Step 1 (R2←R2+R1, R3←R3−2R1, then R3←R3+3R2):
The solution set is Span{v}: a line through the origin in R3.
Mini-example (Lay §1.5, Example 3): nonhomogeneous
Same coefficient matrix, now with b=(7,−1,−4). The same row operations give
3−365−21−44−87−1−4∼100010−3400−120
So x1=−1+34x3, x2=2, x3 free, and
x=−1+34x32x3=p−120+x3v3401
Notice: the same v as in Example 1, just shifted by p. That is no accident:
Solutions of Nonhomogeneous Systems
Theorem 6 (Lay §1.5): Suppose Ax=b is consistent for some given b, and let p be a solution. Then the solution set of Ax=b is the set of all vectors of the form
w=p+vh,
where vh is any solution of the homogeneous equation Ax=0.
Why it works: if Ap=b and Avh=0, then A(p+vh)=b+0=b. Conversely, if Aw=b then A(w−p)=0, so w−p is a homogeneous solution.
Geometric picture: the solution set of Ax=b is the solution set of Ax=0translated by p. A line through the origin becomes a parallel line through p; a plane through the origin becomes a parallel plane through p. Here p is called a particular solution.
Common mistakes:
Theorem 6 needs Ax=b to be consistent. If REF has a row [0⋯0∣b] with b=0, there is no p and the solution set is empty — it is not a shifted copy of anything.
A variable whose column is all zeros (e.g. x3 in [130−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.
Every column is a pivot column → no free variable → only the trivial solution.
3.R2←R2−2R1:
[−3−657−7100]∼[−305−3−71500]
x3 is free → nontrivial solutions exist.
4. Swap R1↔R2, then R2←R2+5R1:
[1−5−276900]∼[10−2−363900]
x3 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.
x1−3x2+2x3=0, so x1=3x2−2x3 with x2,x3 free:
x=x2310+x3−201
(a plane through the origin in R3).
10.R2←R2−2R1:
[123600−4−8]∼[103000−40]
The only equation is x1+3x2−4x4=0. The only basic variable is x1; x2,x3,x4 are all free (note x3 is free, not zero — its column is all zeros). So x1=−3x2+4x4:
Two classic mistakes on this type (mentioned by the Study Guide): (1) treating a variable with an all-zero column, like x4 in Exercise 11, as zero instead of free; (2) forgetting a basic variable that equals 0, like x6 in Exercise 12 — it is basic, so it gets no vector of its own, but its entry 0 still appears in every vector.
Exercise 5
(Adapted from Lay §1.5, Exercises 17–18)
Describe and compare the solution sets of x1+9x2−4x3=0 and x1+9x2−4x3=−2.
Describe and compare the solution sets of x1−3x2+5x3=0 and x1−3x2+5x3=4.
Show solution ↓Hide solution ↑
Solution
A single equation in 3 unknowns: x1 is basic, x2 and x3 are free.
Homogeneous: x1=−9x2+4x3, so x=x2u+x3v with the sameu,v.
Comparison: the homogeneous solution set is the plane through the origin spanned by u and v. The nonhomogeneous solution set is the parallel plane through p=(−2,0,0) (Theorem 6).
18. Nonhomogeneous: x1=4+3x2−5x3:
x=400+x2310+x3−501=p+x2u+x3v
Homogeneous: x1=3x2−5x3, so x=x2u+x3v.
Comparison: the homogeneous solution set is the plane through the origin spanned by u,v; the nonhomogeneous one is the parallel plane through p=(4,0,0).
Exercise 6
(Adapted from Lay §1.5, Exercises 34–36)
Given A=4−86−612−9, find one nontrivial solution of Ax=0 by inspection.
Construct a 3×3 nonzero matrix A such that 111 is a solution of Ax=0.
Construct a 3×3 nonzero matrix A such that 1−21 is a solution of Ax=0.
Show solution ↓Hide solution ↑
Solution
Key idea: Ax=x1a1+x2a2+⋯, so a solution of Ax=0 is a list of weights that makes the columns add to 0.
34. Compare the columns: −6=−23⋅4, 12=−23⋅(−8), −9=−23⋅6. So a2=−23a1, i.e. 3a1+2a2=0. Therefore
x=[32] satisfies Ax=0.Check row 1: 4(3)−6(2)=0✓
35. We need 1⋅a1+1⋅a2+1⋅a3=0: each row sum must be zero. One example:
A=120−1030−2−3,A111=000
36. We need a1−2a2+a3=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:
(Many answers are possible — any nonzero matrix with this row property works.)
Exercise 7
(Adapted from Lay §1.5, Exercise 38)
Suppose A is a 3×3 matrix and y is a vector in R3 such that the equation Ax=y does not have a solution. Does there exist a vector z in R3 such that Ax=z has a unique solution? Discuss.
Show solution ↓Hide solution ↑
Solution
No.
If Ax=y has no solution, then A does not have a pivot in every row (otherwise Ax=b would be consistent for every b, Lay §1.4 Theorem 4).
A is 3×3, so it has at most two pivot positions.
Hence among its 3 columns at least one is not a pivot column: any equation Ax=z has at most two basic variables and at least one free variable.
So for any z, the solution set of Ax=z is either empty (inconsistent) or infinite (consistent with a free variable) — never a single vector.
This matches Theorem 6: if a p exists, the solution set is p + (solutions of Ax=0), and Ax=0 has infinitely many solutions here.