Solving linear systems of equations is
a central problem of Linear Algebra that we discuss in an
introductory way in this chapter. Such systems arise in numerous
applications from engineering to the natural and social sciences.
Major sources of linear systems of equations are the discretization
of differential equations and the linearization of nonlinear
equations. In this chapter we analyze the solution sets of linear
systems of equations and we characterize the number of solutions
using the echelon form from Chap. 5. We also develop an algorithm for
the computation of the solutions.
Definition
6.1
A linear system (of equations) over a
field K with n equations in m unknowns has the form
or
where the coefficient
matrix and the right hand side are given. If , then the
linear system is called homogeneous, otherwise non-homogeneous. Every with
is called a solution of the
linear system. All these form the solution set of the linear system,
which we denote by .
The next result characterizes the
solution set of the linear system using the
solution set of the associated homogeneous
linear system .
Lemma
6.2
Let and with be given. If , then
Proof
If , and thus
,
then
Hence , which
shows that .
Let now and let
. Then
i.e., . Hence
,
which shows that .
We will have a closer look at the set
: Clearly, . If , then for all
we have ,
and hence .
Furthermore, for we
have
and hence .
Thus, is a nonempty subset of
that
is closed under scalar multiplication and addition.
Lemma
6.3
If , and , then .
Moreover, if S is
invertible, then .
Proof
If , then also
, and thus , which shows
that .
If S is invertible and
, then
. Multiplying from the left with
yields
. Since , we have
.
Consider the linear system of
equations . By
Theorem 5.2 we can find a matrix
such that SA is in echelon
form. Let , then
by Lemma 6.3, and the linear system takes the form
Suppose that , and let be the pivot columns. Using a
right-multiplication with a permutation matrix we can move the
r pivot columns of
SA to the first
r columns. This is achieved
by
which yields
where . If , then we
have . This permutation leads to a
simplification of the following presentation, but it is usually
omitted in practical computations.
Since , we can write as , or , which has the form
The left-multiplication of x with P just means a different ordering of
the unknowns . Thus, the solutions of can be
easily recovered from the solutions of , and vice versa: We have
if and only if .
(6.1)
The solutions of (6.1) can now be determined
using the extended coefficient
matrix
which is obtained by attaching as an extra column to .
Note that ,
with equality if and only if .
If ,
then at least one of is
nonzero. Then (6.1) cannot have a solution, since all entries
of
in the rows
are zero.
If, on the other hand, ,
then and
(6.1) can be
written as
This representation implies, in particular, that
From Lemma 6.2 we know that .
In order to determine we set in
(6.2), which
yields
If , then
, and thus
,
i.e., the solution of is uniquely
determined.
(6.2)
(6.3)
Example
6.4
For the extended coefficient matrix
we have
if and only if . If , then .
If , then can be written as
Hence,
and
Summarizing our considerations we have
the following algorithm for solving a linear system of
equations.
Algorithm
6.5
Let and be given.
Since
and ,
the discussion above also yields the following result about the
different cases of the solvability of a linear system of
equations.
Corollary
6.6
For and the following assertions hold:
- (1)
If , then .
- (2)
If , then (i.e., there exists a unique solution).
- (3)
If , then there exist many solutions. If the field K has infinitely many elements (e.g., when , or ), then there exist infinitely many pairwise distinct solutions.
Example
6.7
Let and consider the linear system of
equations with
We form [A, b] and apply the Gaussian elimination
algorithm in order to transform A into echelon form:
Here ,
and hence there exist solutions. The pivot columns are for
, so
that and
. Now can be written as
Consequently,
and ,
where
Exercises
- 6.1
Find a field K and matrices , and with .
- 6.2
Determine for the following A and b:
- 6.3
Let ,
- 6.4
Let and . For denote by the ith column of B. Show that the linear system of equations has at least one solution if and only if
- 6.5
Let