Every reader of this book has solved a system of
equations by eliminating unknowns: subtract a multiple
of one equation from another, and a variable disappears.
Done by hand on small systems, this feels like common
sense. Done on a system of 50 equations, or over , or in a proof
about all systems at once, it needs to be an algorithm,
and we need to know that it never changes the answer.
This section makes elimination precise, proves that it
always reaches a standard shape, and shows how to read
every solution from that shape.
3.2.1. Three moves
that do not change the answer
Here is a system over , solved the way one
would solve it on paper: Subtract twice the first equation from the
second: .
Subtract the first from the third: . Then the first
equation gives .
Only three kinds of move were used, or could
reasonably be used: reorder the
equations, multiply an equation by a
nonzero number, and add a multiple of
one equation to another. None of them looks at the names
. Each acts
on the coefficients and the right-hand side of whole
equations, that is, on the rows of the augmented matrix.
The first step above, for instance, replaces row 2,
,
by row 2 minus twice row 1, .
Not every move that looks harmless is safe.
Multiplying an equation by turns it into , and a constraint
silently disappears. So we list the allowed moves
carefully.
An elementary row operation is a reversible move
on the rows of a matrix: swap two rows, rescale one row
by a nonzero scalar, or add a multiple of one row to a
different row.
Definition
3.2.1 (Elementary row operations)
Let be a field
and let have rows . An elementary row
operation on is one of the
following.
(1)Swap two rows: for , exchange and . Notation:
.
(2)Scale a row: for an index and a scalar with , replace by . Notation:
.
(3)Replace a row by adding a multiple of
another row: for indices and any , replace by .
Notation: .
In each case the rows not mentioned are left
unchanged.
In words: (1) reorders, (2) rescales one row by a
nonzero scalar, and (3) changes
one row, row , using a
different row , which itself stays as
it was. We write for . The notation refers to the current
row at the moment
the operation is performed.
Take over . Then
gives , gives , and gives
.
The degenerate case is worth a glance: a one-row matrix admits no
swap and no replacement, since both need two different
rows, so its only elementary row operations are the
scalings.
The minimal change that breaks the definition is to
drop “”.
The move still replaces one row by a multiple of
itself, but it sends to , and no move
of any kind can recover the lost row from that
matrix. The failing clause is , and the damage
is exactly irreversibility.
Warning.Perform operations
one at a time. It is tempting to write “ and
”
as one step, using the old rows in both. That is not a
sequence of elementary row operations, and it can
destroy information. On the system , it produces , , whose solution set
is all of , not
. Done in
order, the second operation uses the
new row 1, , and leaves
row 2 unchanged, so no information is lost.
Why these three and no others? They are exactly the
moves of hand elimination, and each can be undone by a
move of the same kind, which is what the theorem below
needs. The condition in (3) is not fussiness: “add times row to row ” would be scaling by
, which is
illegal when
(Exercise C1).
An elementary row operation acts on the rows, but it
treats each column separately: the new entry in position
is computed
only from entries of column . We record this,
because it will be used again and again.
Lemma
3.2.1 (Row operations act column by
column)
Let be split into
its first
columns and
its remaining columns . If an elementary
row operation turns into (split in the same place), then
the same operation turns into and into . In particular,
an elementary row operation turns a zero column into a
zero column.
Proof. Let be the entries of
and those of
. For a swap
: , , and for
. For a
scaling : , and other rows are unchanged. For a
replacement : , and other rows are
unchanged. In each case, every entry of column of is computed from
column of alone, by the same
rule for every .
Hence applying the operation to or to separately gives
and . If column
of is zero, each formula
gives , since
and
(Theorem 0.7.1).
For an augmented matrix, the lemma says: operating on
is the same as operating on and on with the same
moves. Now we name what sequences of moves produce.
Definition
3.2.2 (Row equivalence)
Let . We say is row
equivalent to if can be obtained from
by a
finite sequence of elementary row
operations. The empty sequence is allowed, so every
matrix is row equivalent to itself.
In Example (Row equivalence)
of Chapter 0 we met a definition that looks different:
for an
invertible matrix . In section 4 of this
chapter we prove that the two definitions agree (Theorem 3.4.8), by
writing each elementary row operation as multiplication
by an invertible matrix. Until then, “row equivalent”
means the definition above.
3.2.2. Row
operations preserve solutions
Here is the promise from the start of the section,
now as a theorem.
Theorem
3.2.2 (Row operations preserve
solutions)
Let be a
field.
(a)(Reversibility) If an elementary row
operation turns
into , then
an elementary row operation of the same
type turns back into .
(b) Row equivalence
is an equivalence relation on .
(c) If
and in
are row equivalent, then the systems and
have the same
solution set.
Idea. Reversibility is checked type
by type, and the check for scaling is the only place
where is
used. For (c), every equation of the new system is a
combination of equations of the old one, so an old
solution satisfies the new system. That gives one
inclusion. Instead of repeating the argument backwards,
reversibility gives the other inclusion for free.
Proof.
(a) A swap
is undone by the same swap. A scaling is undone by
,
which is a legal scaling because has an inverse
in
(Definition 0.7.1): the
row becomes . A replacement is
undone by . Here we use : row was not changed by the
first operation, so the second one gives .
(b) Reflexivity
holds via the empty sequence. For symmetry, suppose
operations , in this order, turn into . By (a), each has an undoing
operation .
Then , in this order, turn back into . For transitivity, if
a sequence turns
into and another
turns into , performing the first
and then the second turns into , and this is still a
finite sequence.
(c) First suppose
a single operation turns
into . Let and be the two
solution sets. Write for row of , so that equation
says ,
where is a
product.
Let ,
so for every . Each equation of the
new system holds at :
after , the new equations are the
old ones in another order;
after , the new equation is , and ;
after , the new equation is , and , by Theorem 0.9.4.
The other equations are unchanged. Hence , and
.
By (a), a single operation turns back into , so the same argument
gives . Therefore .
For a sequence of operations, the
intermediate augmented matrices all have the same
solution set, by the single-operation case applied times (formally, by
induction on ).
This proves (c).
This theorem is the license for everything that
follows: we may transform a system as much as we like by
row operations, and the solutions of the final system
are the solutions of the original one. What it does
not license is just as important.
Warning.Scaling by is not a row operation,
and it changes the solution set. Over , the system , has exactly one
solution, .
Applying the illegal move gives , , whose solutions
form a
whole line. The inclusion in the proof above still
holds; what fails is reversibility, and with it .
Warning.Column operations
are not allowed. Operations on the columns of
mix up the unknowns. The system , has the unique
solution .
Adding column 1 to column 2 of its augmented matrix
gives , the system , , whose only
solution is .
Even swapping two columns of swaps the
corresponding entries of every solution.
3.2.3. Echelon
forms
Row operations can change a system a great deal. We
now choose a target: a shape of matrix from which the
solutions can be read off with no further work. Look at
the finished computation from the start of the section.
After eliminating, the augmented matrix could be brought
to which says , ,
outright. Not
every system can be brought to this shape, since not
every system has exactly one solution. The general
target is a staircase.
For a nonzero row of a matrix, its leading
entry is its first nonzero entry, reading from
the left.
A matrix is in row echelon form when its nonzero
rows come first and their leading entries step strictly
to the right as we go down.
Definition
3.2.3 (Row echelon form)
A matrix is in row echelon
form if:
(E1) there is an
integer with
such
that rows are nonzero and rows are zero;
and
(E2) if the leading
entry of row lies
in column , for
,
then , strictly.
The leading entries of rows are the
pivots of , and the columns are its
pivot columns.
In words: (E1) says zero rows sit at the bottom, and
(E2) says each pivot lies strictly to the right of the
pivot above it. Two consequences are used constantly.
Each row contains at most one pivot, so there are at
most pivots. And
every entry below a pivot is zero: if
, then row
is zero or has
its leading entry in column , so its
entry in column
is .
Definition
3.2.4 (Reduced row echelon form)
A matrix is in reduced row echelon
form (RREF) if it is in row
echelon form, with pivot columns ,
and moreover:
(E3) every pivot
equals : for ; and
(E4) every pivot is
the only nonzero entry in its column:
for
all .
In words: (E3) normalizes the pivots, and (E4) clears
the entries above each pivot as well as
below. Together they say that the pivot column is the standard basis
vector .
Example
(Echelon or not?)
Decide which of the following real matrices are in
row echelon form, and which are in reduced row echelon
form. Give the pivot columns where they exist.
Solution. is in row echelon
form: rows 1 and 2 are nonzero, row 3 is zero, and the
leading entries lie in columns . The pivot
columns are 1 and 3. It is not reduced:
the pivot is not
, failing (E3),
and column 3 has the nonzero entry above the pivot , failing (E4).
is in reduced
row echelon form, with pivot columns 1 and 3. Both
pivots are , and
columns 1 and 3 are and . The entries
in the
nonpivot columns 2 and 4 are allowed to be anything.
is
not in row echelon form. Its leading
entries lie in columns , and fails, so (E2) fails. Swapping rows 2 and 3
would repair it.
is in reduced
row echelon form, with : there are no pivots, and (E2)–(E4) hold
vacuously. This degenerate case matters, because the
zero matrix must have an RREF too, and it is itself.
For , a
minimal change gives a nonexample: replacing the in position by keeps (E1)–(E3), but
column 3 now has the nonzero entry above its pivot, so
(E4) fails.
Why insist on the reduced form, when row echelon form
already allows back substitution? Because a system in
reduced form needs no substitution:
each pivot variable appears in exactly one equation.
More importantly, the reduced form turns out to be
unique: a matrix is row equivalent to
exactly one matrix in RREF, however the operations are
chosen. That is proved in the next section, and it is
what makes later definitions, such as the rank,
independent of choices. Row echelon form is not unique,
as the warning after the worked example shows.
Quick check. Is in reduced row echelon
form? If it is the coefficient matrix of a homogeneous
system in , which unknowns correspond to pivot
columns?
Solution. Yes. Row 3 is the only
zero row and it is last; the leading entries lie in
columns ;
both are ; and
columns 1 and 3 are and . The pivot
columns are 1 and 3, so the unknowns and correspond to pivots,
and do
not.
3.2.4.
Gauss–Jordan elimination
We now show that every matrix can be brought to
reduced row echelon form. The procedure works through
the columns from left to right, keeping a count of the pivots found so
far.
Algorithm.Gauss–Jordan
elimination. Input: .
Set . For
in turn:
Look for a row with whose entry in
column is
nonzero. If there is none, column gets no pivot; go on to
the next .
Otherwise choose such an . If , perform
.
Let be
the entry now in position . Perform , so that this entry becomes .
For every row whose entry in column is nonzero, perform
.
Increase by
.
Output: the final matrix, which is in reduced row
echelon form, with pivots.
Step 2 involves a choice: any nonzero entry will do.
By hand, we choose one that avoids fractions. If we skip
the scaling in step 3 and clear only the entries
below the pivot , by for the rows , the output
is a row echelon form instead; this cheaper variant is
Gaussian elimination, and it is
followed by back substitution.
Theorem
3.2.3 (Existence of the reduced row echelon
form)
Let be a
field. Every matrix is row equivalent to a matrix
in reduced row echelon form.
Idea. We prove that the algorithm
works, by induction on the number of columns processed.
The invariant is: the first columns of the current
matrix form a matrix in RREF. When a new column is
processed, all the operations involve only rows below
the pivots found so far, or add multiples of the new
pivot row, which is zero in the first columns. So the part
already built is never disturbed. After all columns, the whole
matrix is in RREF.
Proof. For , let be the statement:
there is a matrix row equivalent to
and an integer
such that
the
matrix formed by
the first columns
of is in
reduced row echelon form with exactly nonzero rows. We prove
for all by induction (Theorem 0.2.7). For
take and ; there are no
columns, so there is nothing to check.
Suppose
holds for some , with , , and as described, and let
be the pivot columns of . By (E1) for , rows of are zero in columns
. Let
denote the
first columns
of the matrix we are about to construct.
Case 1: every entry of column of in rows is zero
(this includes the case ). Put . Rows of are zero, and
rows
are nonzero with the same leading entries as in , which lie in columns
. So (E1)–(E3)
hold for
with the same and
pivot columns, and so does (E4), since the pivot columns
of are
those of and are
unchanged. Hence is in RREF and
holds.
Case 2: some row has a nonzero entry in column . Then .
Perform steps 2, 3, and 4 of the algorithm with this
and with column
; call the
result . It
is row equivalent to , hence to , by Theorem 3.2.2
(b).
These operations do not change columns . Indeed, the
swap in step 2 and the scaling in step 3 only move or
rescale rows and
, which are
both zero in those columns. Each replacement in
step 4 adds a multiple of row , which is still
zero in columns . So the first columns of form the matrix
. In column , step 3 makes the
entry in row
equal to , and
each replacement in step 4 makes the entry of row equal to without
changing any other row. So column of is .
We check that is in RREF with
nonzero rows.
Rows of
have the
same leading entries as in , in columns . Row is zero in columns and has a
in column , so its leading
entry is in column . Rows are zero
in columns and in column , so they are zero. This gives (E1) and (E2).
The pivots are ,
by (E3) for and
the construction, so (E3) holds. For (E4), the columns
are
unchanged from ,
and column is
.
Hence
holds.
By induction holds: is row equivalent to
, and its first
columns, which
are all of ,
form a matrix in reduced row echelon form. This proves
the theorem.
The proof is also the correctness proof of the
algorithm: the matrix is the state of the
computation after column . Note where the field
axioms were used. Step 3 divides by , which needs
(F8), and nothing else in the argument depends on which
field we work over.
Example
(Gauss–Jordan on a system)
Solve the following system over by Gauss–Jordan
elimination, naming each operation:
Solution. We work on the augmented
matrix. Column 1. Row 1 has a there, so we bring up
row 2, whose entry is already . Then we clear the rest
of column 1. Column 2. The candidates
below row 1 are
and . Choosing
avoids
fractions, so we swap it up and scale. Now clear column 2 above and below the pivot.
Column 3. The only entry
below row 2 is ,
so column 3 gets no pivot. Column 4.
The entry in row
3 becomes the pivot. Column 5. No rows remain
below row 3, so we stop. The final matrix is in RREF,
with pivot columns 1, 2, and 4. It is the system which by Theorem 3.2.2 has
the same solutions as the original. The unknown is unconstrained;
writing ,
the solutions are Check: gives , , and ; and gives , , and . This is the “particular plus
homogeneous” form of Theorem 3.1.3.
The same computation can be carried out in exact
arithmetic. In the online version the cell below can be
edited and run, which is a good way to check a hand
computation.
from sympy import MatrixM = Matrix([ [0, 2, -2, 1, 3], [1, 1, 1, 0, 3], [2, 1, 3, 1, 3],])R, pivots = M.rref() # the RREF and the (0-based) pivot columnsprint(R)print("pivot columns:", [j +1for j in pivots])
Warning.Echelon forms are
not unique; only the reduced form is. Different
choices in step 2 give different intermediate matrices.
For over , the operation gives
the row echelon form . Starting instead with
and then gives the row echelon
form . Both
continue to the same RREF, . That this always
happens is the theorem of the next section; until it is
proved, “the” RREF of a matrix is not yet justified.
3.2.5. Reading off
the solutions
Once is in reduced row echelon form, the example
shows what to do: a pivot in the last column signals a
contradiction, and otherwise the unknowns without pivots
can be chosen freely. We name the two kinds of
unknowns.
Suppose , with ,
is row equivalent to a matrix
in reduced row echelon form, where is . For , the unknown
is a
pivot variable if is a pivot column of
, and a free variable
otherwise. (By the uniqueness theorem of the next
section, this does not depend on which sequence of
operations was used.)
Theorem
3.2.4 (Reading solutions from the RREF)
Let and , and suppose
is row equivalent to a matrix
in reduced row echelon form. Let be the entries of
and .
(a) is
inconsistent if and only if the last
column, column , is a pivot column of ,
that is, some row of is .
(b) Suppose there is
no pivot in the last column. Let
be the pivot columns. Then for every
choice of scalars , one for each free variable , there is
exactly one solution with for all free
, namely the one
with In particular, setting every free variable to
gives the
solution
with
and all other entries .
(c) A consistent
system has exactly one solution if
and only if it has no free variables, that is,
each of the columns is a pivot column.
Proof. By Theorem 3.2.2 (c),
has the same solution set as , so
we work with the latter.
(a, )
If row of
has its pivot in column , then its first entries are and by (E3). Equation
reads , which is false in
any field (Definition 0.7.1). So
there is no solution.
(b) Suppose no pivot
lies in column . Then all pivots of
lie in columns . By (E1), rows of
are zero, so the corresponding equations read and hold for every
. For , row of has by (E3) and
for
by (E4).
So equation reads
Hence is a solution if
and only if for . Each
unknown is either a pivot variable or a free variable,
not both. So once the free variables are given the
values , these
equations determine every pivot variable uniquely, and
the resulting vector is a solution. This proves (b).
(a, )
This is the contrapositive of what (b) just showed: if
there is no pivot in the last column, then choosing all
produces a
solution, so the system is consistent.
(c) By (a), a
consistent system has no pivot in the last column, so
(b) applies. If there are no free variables, (b) gives
exactly one solution. If is free, the choices
and , with all other
free variables ,
give two solutions whose -th entries differ,
since .
This proves (c).
In Example (Gauss–Jordan on a system)
the pivot columns were 1, 2, 4, the free variable was
, and (b) gave
, , , with .
The same recipe works over any field, and over a finite
field the free variables can take only finitely many
values.
Example
(Elimination over )
Solve the following system over : How many solutions are there? What changes if
the same equations are read over ?
Solution. In , , so is the
same operation as , and every nonzero pivot is already
. Column
1 has its pivot in row 1; clear row 3.
Column 2 has its pivot in row 2; clear
rows 3 and 1. In the row , the entries became , and in the entry in
column 3 is . Column 3 has only a below row 2, so no
pivot. Column 4 has its pivot in row 3;
row 1 already has a there, so only row 2
needs clearing. This is in RREF, with pivot columns 1, 2, 4
and no pivot in the last column, so the system is
consistent by Theorem 3.2.4 (a).
The free variable is , and part (b) gives ,
, . Since ,
there are exactly two solutions: Check the second: , , in .
Over the
first step is , giving row 3 , and adding row 2 then
gives . The entry is nonzero in , so column 3 now gets
a pivot. Completing the reduction gives pivot columns 1,
2, 3, free variable , and infinitely many
real solutions. The same equations lead to different
pivot patterns over different fields, because in one and not
in the other.
When a coefficient depends on a parameter, whether a
column gets a pivot can depend on the parameter too.
Then the reduction splits into cases, one for each
answer to “is this entry zero?”.
Example
(A system with a parameter)
For which does the system , have no
solution, exactly one solution, or infinitely many? Find
the solutions when they exist.
Solution. The entry in position
is for every , so it is a pivot with
no case distinction: (For this operation changes nothing, which is
allowed.) Column 2 gets a pivot in row 2 exactly when
is nonzero, and only then may we scale by
its inverse. So we split into cases.
Case . Then , and turns row 2 into , since . Then
turns row 1 into . The RREF is with , and by Theorem 3.2.4 (c)
this is the only solution. Check: for both equations.
Case . Row 2 is , and is in RREF with pivot column 1. The
free variable is , and Theorem 3.2.4 (b)
gives the solutions , : infinitely many.
Case . Row 2 is , and
makes it . The last column is a pivot column, so the
system is inconsistent by Theorem 3.2.4 (a).
Directly:
and add
up to .
Hence there is no solution for , there are
infinitely many for , and there is exactly one otherwise. The trap
is to scale by before asking whether is zero: that
step silently assumes , and loses exactly the two interesting
cases.
3.2.6. More
unknowns than equations
Counting pivots gives a first general theorem. A
matrix with rows
has at most
pivots, one per nonzero row. If there are more unknowns
than that, some unknown must be free.
Corollary
3.2.5 (More unknowns than equations)
Let with .
(a) The homogeneous
system has a nontrivial
solution.
(b) Consequently,
every list of
vectors in with
is
linearly dependent.
Proof.
(a) By Theorem 3.2.3,
is row equivalent to a matrix
in RREF. By Lemma 3.2.1, each
operation keeps the last column zero, so , and
the last column is not a pivot column. Each pivot is the
leading entry of a different row, so there are at most
pivots, hence at
most pivot
columns among the first columns. So some is a free variable.
By Theorem 3.2.4 (b),
with and
every other free variable , there is a solution
whose -th entry is
. This
solution is nontrivial.
(b) Let and let have these columns. By (a)
there is with ,
and by Theorem 0.9.3 this
says with not all
zero. So the list is linearly dependent.
Part (b) is not new: since , it is also
a case of Theorem 1.6.3, which
rests on the Steinitz Exchange Theorem (Theorem 1.6.1). The
proof here is independent of that one. It uses nothing
from Chapter 1 beyond the definition of independence,
only elimination and a count of pivots. Two proofs by
different routes give some confidence that the dimension
theory of Chapter 1 and the computations of this chapter
will fit together, and the rest of the chapter makes
that fit exact.
3.2.7.
Exercises
A. Check your
understanding
Exercise
(A1)
(a) List the three
types of elementary row operation, including the
conditions on the scalar and on the indices.
(b) Determine
whether the following statement is true: “every matrix
in row echelon form is in reduced row echelon form.”
Justify your answer.
(c) Determine
whether the following statement is true: “if the RREF of
has a zero row, then is
inconsistent.” Justify your answer.
(d) Determine
whether the following statement is true: “a homogeneous
system of 3 equations in 5 unknowns over has infinitely many
solutions.” Justify your answer.
(e) Explain why
swapping two columns of in
is not a safe step when solving .
Solution.
(a)
with ;
with
; with
and any
.
(b) False. is in row echelon form,
but its first pivot is , so (E3) fails; its second column also
has a nonzero entry above the pivot, so (E4) fails.
(c) False. A zero
row is the equation , which every vector satisfies. Inconsistency
means a row (Theorem 3.2.4 (a)).
For example is the consistent system , .
(e) It swaps the
roles of two unknowns: solves the new
system exactly when the vector obtained from by swapping
those two entries solves the old one. So the solution
set changes, unless the swap happens to fix it. For
instance ,
becomes , .
B. Practice
Exercise
(B1: Reduce and solve)
Reduce the augmented matrix of each system over to reduced row
echelon form, naming each operation. Hence decide
whether the system is consistent, and if so, describe
all solutions.
(a),
, .
(b),
, .
(c), , .
Solution.
(a) Column 3 gets no pivot. Column 4 has its pivot
in row 3: The last column is a pivot column, so by Theorem 3.2.4 (a)
the system is inconsistent. (Row 3 already said before the last two
operations.)
(b) Columns 1, 2, 3 are pivot columns and the last
column is not, so by Theorem 3.2.4 (c)
there is exactly one solution, . Check: , , .
(c) Column 2 has only zeros below row 1, so no
pivot. Column 3 has its pivot in row 2: Columns 4 and 5 have only a in row 3, so this is
the RREF. The pivot columns are 1 and 3; the free
variables are and . By Theorem 3.2.4 (b),
and
. Hence
the solution set is
Exercise
(B2: A parameter)
For which is the system inconsistent, which give exactly one solution,
and which give infinitely many? Justify your answer, and
find the solutions when they exist.
Solution. Whether column 3 gets a pivot depends on
whether is zero.
Case . Then , and turns row 3 into , since . Then
and give the RREF with using and
. By Theorem 3.2.4 (c)
there is exactly one solution, .
Case . Row 3 is zero, and the matrix is in
RREF with pivot columns 1, 2 and free variable . The solutions are
, : infinitely many.
Case . Row 3 is , and
makes it . The last column is a pivot column,
so the system is inconsistent.
Hence: inconsistent for , infinitely many solutions for , and exactly one
solution otherwise.
Exercise
(B3: Over )
Solve each system over by reducing to
RREF, naming each operation, and list all solutions.
(a), , .
(b), .
Solution. In the inverses are
and
, since
,
and , .
(a) Here , , , and , . Column 2 has entries below row 1, so we
swap: There are no free variables, so the unique
solution is . Check: , , .
(b) using , , . The free variable is , and , . As runs through , the solutions
are ,
, : exactly
three.
C. Going deeper
Exercise
(C1: Why ?)
Consider the move “”, which the definition does
not allow.
(a) Show that for
this move is
not reversible: give a matrix on which its effect cannot
be undone by any sequence of elementary row operations
and moves of this kind, and a system whose solution set
it changes.
(b) Show that for
the move
is an elementary row operation of another type. Explain
why the condition in type (3) therefore loses nothing.
Solution.
(a) The move
replaces
by . Apply it to the
augmented matrix of the equation over any field
: the result is
,
the equation .
The solution set changes from to all of . No sequence of moves
can return to : every elementary row operation, and every
move “”, sends a zero matrix to a zero matrix, by
the formulas in the proof of Lemma 3.2.1 and
.
(b) The move
replaces
by . If , then , and this is the scaling , an
operation of type (2). So allowing in type (3) would
add only moves that are already available (when ) and one move
that destroys information (). Requiring excludes exactly the bad case.
Exercise
(C2: The cost of elimination)
Let and , and suppose that Gauss–Jordan
elimination on finds, for each , a
nonzero entry in position and so never
swaps. Count as one operation each
multiplication or division of two scalars, under these
conventions: scaling row costs one division for
each entry in columns (the pivot is simply set to ), and each replacement
costs one multiplication for each entry in columns (the
entry in column
is simply set to ).
(a) Show that
processing column
costs at most operations.
(b) Hence show that
the whole elimination costs at most
operations.
(c) Roughly how many
times more work is a system of equations than one of
equations, for
large ?
Solution.
(a) Scaling row
costs divisions. At
most other
rows need a replacement, each costing
multiplications. The total is at most .
(b) Summing (a) over
,
and substituting , which runs through , using the formula for (Proposition 0.2.8).
(c) The bound is
dominated by for large , since is small
compared with it. Replacing by multiplies by , so doubling the size
of the system costs roughly eight times as much.
Exercise
(C3: Solvable for every right-hand side)
Let , and suppose that is
consistent for every. Prove
that .
Hint: suppose , reduce to its RREF , and run the
operations backwards on .
Solution. Suppose, for a
contradiction, that . By Theorem 3.2.3, some
sequence of operations turns into a matrix in RREF. By (E2),
has at most
pivots, one in
each pivot column, so at most nonzero rows,
and by (E1) its last row is zero. Therefore the last row
of is , so the system
has no solution.
By Theorem 3.2.2 (a),
each is undone
by an operation , and
turn back into
. Apply them to
. By Lemma 3.2.1 they
act on the two blocks separately, so the result is
for some . By Theorem 3.2.2 (c),
has the same solutions as ,
namely none. This contradicts the hypothesis, so .