Chapter 1 kept running into the same kind of
question. Is this vector in the span of those? Is this
list independent? Every time, the question turned into a
handful of equations in unknown coefficients, and we
solved them by hand. This chapter gives those equations
a name, looks at them from three sides, and turns
solving them into an algorithm with a proof behind it.
This first section sets up the language and answers a
structural question before any computing: what can the
set of all solutions look like?
One system,
three pictures
Here is a system of two equations in two unknowns,
over : Adding the equations gives , so , and then . We can
read this one small system in three different ways, and
each will be useful.
The row picture. Each equation
describes a line in the plane: and . A solution is
a point on both lines, so solving the
system means intersecting them. The lines meet at .
The column picture. Stack the
coefficients of
into one column and those of into another. The
system says Now the unknowns are weights.
We are asked how much of the vector and how
much of to combine to reach . The answer
, says: walk twice
along , then
three times along .
The matrix picture. Collect the
coefficients into a matrix and the unknowns into a
column. By the definition of matrix multiplication (Definition 0.9.9), the
system is the single equation
The three pictures say the same thing, and they are
tied together by one fact from Chapter 0: , a combination of the columns of weighted by the
entries of (Theorem 0.9.3). The
row picture is the one we draw. The column picture
connects to Chapter 1, since it asks whether lies in a span. The
matrix picture is the one we compute and prove things
with.
Linear
systems
The example had two equations and two unknowns over
. The general
notion allows any numbers of each, and any field.
Allowing any field is not generality for its own sake.
Systems over
describe parity checks and switching puzzles, and
systems over
are what a computer can solve exactly.
A linear system is a finite list of equations,
each saying that a fixed combination of the unknowns
equals a fixed scalar.
Definition
3.1.1 (Linear system)
Let be a field
and let .
A system of linear equations in
unknowns
over is a list of
equations where all and lie in .
- The coefficient matrix is , the right-hand side is
, and the system is written .
- The augmented matrix is the matrix
obtained by appending to as a last column.
- A solution is a vector such that every equation
holds when for all ; equivalently, . The
solution set is the set of all
solutions, a subset of .
- The system is consistent if it has
at least one solution, and
inconsistent if its solution set is
empty.
In words: the coefficient matrix records the
left-hand sides, row for equation and column for unknown . The augmented matrix
records the whole system, and it is the object we will
manipulate in the next section. A solution is a single
vector of , and
it must satisfy all equations at once, not
just some of them. “Equivalently, ” holds because
the -th entry of
is by Definition 0.9.9, and
two columns are equal exactly when all their entries
agree.
Two small words deserve attention. A solution lives
in , with
entries in the field : the equation
has the
solution
over , but over
it reads
and has none.
And “consistent” means at least one
solution, not exactly one.
Example
(None, one, or a whole line)
Find the solution set of each system over , and describe it in
the row picture.
- (a) , .
- (b) , .
- (c) , .
Solution.
- (a) Suppose is a solution.
Doubling the first equation gives , while the
second says . Then , which is false. So there is no solution, and
the system is inconsistent. In the row
picture, the lines and
have the same slope and different intercepts: they are
parallel and never meet.
- (b) As computed at
the start of the section, any solution has and ; conversely and
. The
solution set is , the single point where two non-parallel
lines cross.
- (c) The second
equation is twice the first, so a pair satisfies both
exactly when it satisfies , that is, when . Writing for , the solution set is
. Both equations describe the
same line, and every point on it is a
solution.
The three answers are the three things two lines can
do: miss, cross, or coincide. Over , and over any
infinite field, no other sizes are possible: once we
know the shape of the solution set (Theorem 3.1.3
below), this is a short argument, which you will give in
Exercise (C1: How many solutions?).
For instance, no system over has exactly two
solutions. Over a finite field the picture is
different.
Example
(Exactly two solutions over )
Find all solutions of the system , over . Then compare with
the same system over .
Solution. In we have , so the second
equation says . Substituting into the first gives , and in , so . Conversely, every
satisfies
both equations: and . Since can only be or , the solution set is
with exactly two elements.
Over the
second equation gives , and then the first gives . The solution set
is , a line in with infinitely
many points. The equations are the same, but the field
decides how many values the free unknown can take.
Now a non-example, by a minimal change. The equation
looks
like one of the equations above, and it still has a left
side built from the unknowns and a constant on the
right. But the unknown appears squared, so the
left side is not of the form with
fixed scalars . The clause that
fails is “a fixed combination of the unknowns”. Its
solution set in is a parabola, not
a line, and nothing in this chapter applies to it.
Warning. “Consistent” does
not mean “has exactly one solution”. The system
, of Example (None, one, or a whole line)
(c) is consistent, and it has infinitely many solutions.
Consistency only rules out the empty solution set.
Whether the solution is unique is a separate question,
answered by Corollary 3.1.4
below.
Why record the augmented matrix at all, when is shorter?
Because solving a system never touches the names of the
unknowns. Adding two equations adds their coefficients
and their right-hand sides, and nothing else. The
augmented matrix keeps exactly this data and throws away
the symbols and the plus signs. In the next section
every manipulation is performed on it.
One kind of system is always consistent, because it
has an obvious solution.
Definition
3.1.2 (Homogeneous system)
A linear system over
is homogeneous if . The vector is a solution
of every homogeneous system , called the
trivial solution. For any system , the system
, with the
same coefficient matrix, is its associated
homogeneous system.
The trivial solution exists by the zero rule of Theorem 0.9.4: . So for a
homogeneous system the interesting question is never “is
there a solution?” but “is there a
non-trivial one?”. For example, , has the
non-trivial solution , while , has only the trivial one: adding the
equations gives , so , and then .
Quick check. Over , write the system
, in the matrix picture and the column picture,
and give its augmented matrix. Is a solution? Is
?
Solution. With and
, the
system is . In the column picture it reads . The augmented matrix is For : and , so it is a solution. For : the first
equation gives , but the second gives . One
failing equation is enough, so it is not a solution.
Consistency
is a question about span
The column picture turns “does this system have a
solution?” into a question from Chapter 1.
Theorem
3.1.1 (Consistency and the span of the
columns)
Let have columns , and let . Then the system is consistent
if and only if . More precisely, is
a solution exactly when .
Proof. By Theorem 0.9.3, for every . Hence is a solution, that is
, exactly
when . This proves the second statement.
If
the system is consistent, it has a solution , and then is a linear combination of the columns.
By Definition 1.3.2,
.
If
, then for some ,
and is a solution by the first paragraph.
Hence the system is consistent.
Read backwards, the theorem is a recipe for Chapter 1
questions: to decide whether lies in the span of
some vectors of , put the vectors as
the columns of a matrix and ask whether the system is
consistent.
Example
(Span membership as a system)
In , let
and . Decide whether and lie in .
Solution. Let be the matrix with
columns .
By Theorem 3.1.1,
if and only if the system in the unknowns is consistent. The first equation gives , and then the
second gives .
The third equation must also hold, and it does: . Hence
lies in the span.
For ,
the first two equations are the same, so any solution
has and . The third equation
now demands , which is false. The system is inconsistent,
so .
Geometrically, is a
plane through in
. The first
right-hand side lies on that plane and the second does
not.
The shape
of the solution set
We now describe the solution set of an arbitrary
system, starting with the homogeneous case. Chapter 1
already did the work there: in Example (Solutions of a Homogeneous System)
we checked, with the three conditions of the subspace
test, that the solutions of form a
subspace.
Theorem
3.1.2 (Homogeneous solutions form a
subspace)
Let . The solution set of the homogeneous system is a subspace
of .
The solutions of with behave differently.
Warning. The solution set
of with
is never
a subspace. A subspace must contain , but , so
is not a
solution. For example, the solutions of in form a line that
misses the origin. The sum of the solutions and is , and : adding
two solutions does not give a solution.
What does survive is this: the
difference of two solutions of solves the
homogeneous system, since . So once one solution is known, every other
one differs from it by a homogeneous solution. That is
the whole structure.
Theorem
3.1.3 (Structure of the solution set)
Let and , let
be the solution set of , and suppose is
one solution of . Then the
solution set of is
Idea. The theorem is “particular
plus homogeneous”. To prove equality of two sets, prove
both inclusions. Going from a solution to uses the
difference ,
as observed above; going back uses the sum .
Proof. Let be the solution set of
. We use
Theorem 0.3.1.
Let
, and put
. By
distributivity (Theorem 0.9.4), , so . Hence .
Let
. Then
, again by distributivity, so .
Therefore , as claimed.
The theorem splits solving into two
independent jobs: find one solution,
and find all solutions of the
homogeneous system. The set is a translate of
the subspace by
the vector , the
kind of set that the picture in Example (A Line Missing the Origin)
showed. For in , the homogeneous
solutions form the line through , one solution is , and the
solution set is the parallel line through .
A system solved by substitution fits the same pattern
once we collect the free parameter.
Example
(Particular plus homogeneous)
Solve , over , and write the
solution set in the form .
Solution. The second equation gives
.
Substituting into the first, . The value of is not constrained,
so write .
Conversely, for every the vector satisfies both equations, since
and . Hence the solution set is with and . As Theorem 3.1.3
predicts, is a
solution (take ), and
solves the homogeneous system: and . In the row
picture, two planes in meet in a line, and
this line does not pass through .
When is the
solution unique?
A consistent system has a unique solution exactly
when there is nothing to add to the particular solution.
The theorem just proved turns this into a statement
about the homogeneous system, and the column picture
turns that into independence.
Corollary
3.1.4 (Uniqueness of solutions)
Let have columns , and
let be
such that
is consistent. The following are
equivalent:
- (a) has exactly one
solution;
- (b) has only the
trivial solution;
- (c) the list is
linearly independent.
Proof. Let be the solution set of
. Since
the system is consistent, it has a solution , and by Theorem 3.1.3 its
solution set is .
(a b) The
function , , is surjective by definition of , and injective
because implies by adding to both sides. So it
is a bijection, and has exactly one element if and only if does. Since always, has exactly one element
if and only if , which is (b).
(b c) By Theorem 0.9.3, for every . So (b) says:
for all , implies .
This is word for word Definition 1.4.1 for
the list .
Two remarks on the hypotheses. The equivalence of (b)
and (c) does not need consistency; only (a) does. And
consistency cannot be dropped from (a b): the
system , in one unknown has
only the trivial solution in its homogeneous version
(, ), but it has no
solution at all, so it certainly does not have exactly
one.
So the three pictures answer the two basic questions
about in
the language of Chapter 1: a solution
exists when is in the span of the
columns, and it is unique when the
columns are independent. What we still lack is a
reliable way to decide either question for a given
matrix. That is the job of Gaussian elimination, in the
next section.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define what it
means for a linear system over to be consistent, and
what its augmented matrix is. What is the size of the
augmented matrix of a system of equations in unknowns?
- (b) Determine
whether the following statement is true: “the solution
set of is
a subspace of .”
Justify your answer.
- (c) Determine
whether the following statement is true: “if has two
different solutions, then has a
non-trivial solution.” Justify your answer.
- (d) Let . In which spaces do the unknown vector
and the
right-hand side
of
live?
- (e) Name the theorem
that turns “is
in the span of ?” into a question about a linear system,
and state which system.
Solution.
- (a) It is consistent
if it has at least one solution , that is, some
with . The augmented
matrix is , the matrix with appended as an extra
last column. It has size .
- (b) False in
general. If , then , so is not a solution and
the solution set is not a subspace. (If , it is a
subspace, by Theorem 3.1.2.)
- (c) True. If are
solutions, then by distributivity, and
.
- (d) , one entry
per column of ,
and ,
one entry per row.
- (e) Theorem 3.1.1:
if and only if is consistent,
where is the
matrix with columns .
B. Practice
Exercise
(B1: Three views)
- (a) Write the system
, over
in the matrix picture and in the column picture, and
give its augmented matrix.
- (b) Write out, as a
list of equations, the system with augmented matrix
over . How many equations
and unknowns does it have? Hence decide whether it is
consistent.
Solution.
- (a) The matrix
picture is The column picture is . The augmented matrix is .
- (b) The system is
,
, : three
equations in two unknowns. The second equation gives
, and then
the first gives . The third equation would require , which is
false. Hence no vector satisfies all three equations,
and the system is inconsistent.
Exercise
(B2: In the span or not?)
Determine whether the vector lies in the span of
the given vectors. Justify your answer, and when it
does, write as a
linear combination of them.
- (a) and in
.
- (b) and in
.
- (c) and in
. Is the
answer the same in ?
Solution. By Theorem 3.1.1, in
each case we decide whether the system in the
unknowns is
consistent.
- (a) The system is
, , . The first two
equations force , ,
and then
holds. Hence is in the span.
- (b) The system is
, , . Doubling the first
equation gives , contradicting the second, since . Hence the
system is inconsistent and is not in the
span.
- (c) The system is
, , . The first two
force ,
and then in . Hence is in the span over . In the same first two
equations force , but , so the system is inconsistent and is
not in the span. The answer depends on
the field.
Exercise
(B3: Solve and describe)
Solve each system over by substitution, and
write its solution set in the form . Check
that your is a
solution and that your spanning vectors solve the
associated homogeneous system.
- (a) ,
.
- (b) , .
Solution.
- (a) The second
equation gives , and then the first gives . With free, every solution is , and
conversely each such vector satisfies both equations. So
the solution set is . Check: and ; and , .
- (b) The second
equation gives . The first then gives . The unknowns and are free, and
every solution is and conversely each such vector is a solution.
So the solution set is .
Check: and ; for : and ; for : and .
C. Going deeper
Exercise
(C1: How many solutions?)
Let and , and let be the solution set of
.
- (a) Suppose is
infinite. Prove that has either no
solution, exactly one solution, or infinitely many
solutions.
- (b) Suppose is
finite. Prove that has either no
solution or exactly solutions.
- (c) Give a system
over with
exactly three solutions.
Hint: for (a), if contains a non-zero
vector , look at
its multiples.
Solution.
- (a) Suppose the
system is consistent, with a solution . By Theorem 3.1.3 its
solution set is , and as in the proof of Corollary 3.1.4 the
map is a bijection . If , there is exactly one solution.
Otherwise, let with . Since is a subspace (Theorem 3.1.2),
for every
. If , then
, and since , Theorem 1.1.9 gives
. So
is
injective, and
contains infinitely many vectors because is infinite. Hence
is
infinite.
- (b) If the system is
consistent with solution , the bijection from (a)
shows that the solution set has exactly elements.
Otherwise it has none.
- (c) The single
equation
over (a
system with ,
). For each of
the three values of there is exactly one , so the
solutions are . Consistently with (b), the
homogeneous equation has the three solutions .
Exercise
(C2: The right-hand sides that work)
Let have columns .
- (a) Prove that the
set is a subspace of
.
- (b) Deduce that if
, then
there is some for which is inconsistent.
- (c) For over , find one such .
Solution.
- (a) By Theorem 3.1.1,
if and
only if . So , which is a subspace
of by Theorem 1.3.1.
- (b) By (a), is spanned by the vectors . Since
(Example (Dimensions of the Running Examples)),
Theorem 1.6.3 says
no list of fewer than vectors spans . As , , so some is not in
, and for that
the system is
inconsistent.
- (c) Take . A
solution would satisfy and . Doubling the first gives , a
contradiction. So is inconsistent.