Академический Документы
Профессиональный Документы
Культура Документы
xy=0
x + 2y = 4
The following geometrical interpretation of linear systems is well-known. Every pair
of real numbers (x, y) verifying xy = 0, e.g., (0,0), (3, 3) or ( 2, 2), are solutions
of the first equation. If we represent such points in the plane XY, we obtain a straight
line, as shown in figure 2.1. In general, if we represent one equation (row) at a time by
a straight line in the XY plane, we find out that the intersection, if any, is the solution
4 4
,
is the solution of the system above.
to the system. In particular, the pair
3 3
Note that we can use this graphical procedure to solve systems with two unknowns.
2
3
2
x+2y=4
(4/3,4/3)
xy=0
1 0
1
x + y
.
=
1
2
4
This expression tells us that the solution of the linear system is given by the (scalar)
coefficients x and y of the linear combination of vectors 11 and 1
that equals vec2
tor 04 . We can see in figure 2.2 that the right choices for the scalars are, obviously, the
4
coordinates of the intersection point in figure 2.1, x = y = .
3
Note that this should NOT be used as a procedure for solving the system (as it
would be a trial and error method), but a way of understanding the meaning of a
solution in terms of linear combinations of certain vectors, which will be quite useful
3
in future chapters.
4/3 * (1,1)
(1,1)
4/3 * (2,1)
(4,0)
(2,1)
x y = b1
x + 2y = b2
have a solution for any pair of values b1 and b2 ? Or in terms of linear combinations, is
it possible to obtain every point of the XY plane using linear combinations of the two
4
1
1
1
2
? As we will see later, the answer to this question only involves
vectors 11 and 1
.
2
vectors
and
Finally, recall that we can also represent the system as a matrix problem Ax = b :
z
}|
z }| { z }| {
{
1 x 0
=
2
y
4
2.2
Solving a system consists of finding the set of all solutions. There are different techniques for finding the solution set of a system. In this chapter we will focus on Gauss
method, a systematic technique to solve linear systems (you should be familiar with),
whose goal is to obtain a series of systems, one by one, each equivalent to the previous
one, to produce an upper triangular system by forward elimination, and then obtain the
solution by back substitution. The operations that can be used to obtain this collection
of equivalent systems are described in the following theorem.
Theorem (Gauss method): If a linear system is changed to another by one of these
operations:
1) swapping: an equation is swapped with another;
2) rescaling: an equation has both sides multiplied by a nonzero constant;
3) row combination: an equation is replaced by the sum of itself and a multiple of
another;
then the two systems have the same set of solutions.
5
xy=0
x + 2y = 4
whose solution is plotted in figure 2.1. If we replace the second equation, R2 , by the
row combination R2 R1 we obtain the system:
xy=0
3y = 4
Figure 2.3 shows that both systems are equivalent: they have the same solution.
3y=4
1
(4/3,4/3)
xy=0
Figure 2.3: Performing Gauss elementary operations does not change the solution set
of a linear system.
6
In each row of a system, the first variable with a nonzero coefficient is the rows
leading variable. A system is in echelon form if each leading variable is to the right
of the leading variable in the row above (except for the leading variable in the first
row). In addition, we say that a system in echelon form is in reduced echelon form
if it also satisfies that the coefficient of each leading variable is a 1, and it is the only
non-zero coefficient of the corresponding equation.
Example: If we solve the following system by Gauss method, we have to carry out
the following operations:
x+y=0
x+y=0
x+y=0
R2 2R1
2x y + 3z = 3
R3 R1
x 2y z = 3
3y + 3z = 3
R3 R2
3y z = 3
3y + 3z = 3
4z = 0
Notice that this third system is in echelon form . After the elimination steps, we
have, from the third row, that z = 0; substituting this back into the second row we get
y = 1, and then substituting back into the first row we get x = 1. Thus, the solution
set has only one element, given by {(1, 1, 0)}.
Also, we can obtain a reduced echelon form system with the following operations:
x+y=0
x+y=0
x+y=0
1
R
3 2
3y + 3z = 3
R2+R3
1
R
4 3
y z = 1
4z = 0
x=1
R1R2
y = 1
z=0
7
y = 1
z=0
z=0
which directly provides the solution to the system (obviously, the same we found
before).
x + 3y = 1
2x + y = 3
R3 2R1
2x + 2y = 2
x + 3y = 1
R2 2R1
5y = 5
4
R2
R3 5
4y = 4
5y = 5
0=0
This shows that one of the equations is redundant. From the second row we get y = 1,
and then substituting back into the first equation we get x = 2, so the solution set is
{(2, 1)}.
Example: Now consider the following system, where we carry out the operations:
x + 3y = 1
x + 3y = 1
R2 2R1
2x + y = 3
R3 2R1
2x + 2y = 0
5y = 5
4y = 2
The third row shows that y = 1/2 and the second one shows that y = 1, that is,
the system is inconsistent, or in other words, the solution set is empty.
As a summary,
a linear system with a unique solution has a solution set with one element.
a linear system with no solution has a solution set that is empty.
In these cases the solution set is easy to describe. Solution sets are a challenge to
describe only when they contain many elements. When this happens, the number
of possible solutions is infinite, as we can identify such situation using the following
8
result. When a system has infinitely many solutions, then, when written in echelon form, not
all of the variables are leading variables.
Example: Consider the following system:
x+y=4
R 2R
1
2
2x + 2y = 8
x+y=4
0=0
This shows that any pair of real numbers (s1 , s2 ) satisfying the first equation also
satisfies the second. There are infinitely many solutions of the system.
The solution set can be described as follows:
{(s1 , s2 ) : s1 + s2 = 4} = {(s1 , s2 ) : s2 = 4 s1 } = {(s1 , s2 ) = (s1 , 4 s1 ), s1 R} =
{(0, 4) + s1 (1, 1)}
Particular solutions are obtained by assigning values to s1 ; for instance, (0,4), (1,3),
(2,6) and ( 3, 4 3) are particular solutions of the system.
A variable that we use to describe a family of solutions is a parameter.
In summary, for any system of linear equations, written in echelon form, exactly
three possibilities exist:
1. no solution; this occurs when some inconsistency between the equations is found;
2. a unique solution; this occurs when every variable is a leading variable;
3. infinitely many solutions; this occurs when there is at least one non-leading variable, so at least one parameter is involved.
As we already know, linear systems can be abbreviated by means of the so-called
augmented matrix, where we can perform the same operations as with the equations.
9
1 1
2 1
1 2
0
3
1
R2 2R1
R3 R1
1 1
0 3
0 3
0
3
1
R3 R2
1 1
0 3
0 0
0
3
4
and again the same solution set {(1, 1, 0)} is obtained (by back substitution).
2.2.1
x = A1 b.
Gauss method can be used to determine easily the inverse of a non-singular matrix
A as follows.
Suppose the system we want to solve is Ax = b, with b = (1, 0, 0, . . . , 0) 0 . If we
multiply A1 b trivially we see that the result of this operation is the first column
of matrix A1 . If we do the same considering vector b = (0, 1, 0, . . . , 0) 0 , the product
A1 b will yield the second column of the inverse. If we repeat this procedure until
we multiply A1 b, with b = (0, 0, . . . , 0, 1) to obtain the last column of A1 , we will
10
obtain the full inverse matrix. All these computations can be efficiently carried out if
we apply Gaussian elimination to calculate the reduced echelon form of the matrix
a11
.
.
(A|In ) =
.
an1
...
...
a1n
..
.
1
..
.
...
ann
...
0
..
.
that is a matrix with n rows and 2n columns, with A on the left and the identity matrix
of dimension n on the right.
1
0
1 1
1
1
1 0 1
0 1 0
0 0 1
1
0
1 0
1 1
R2 R1
R3 R1
1 1
1 1
1 0
R3 +R2
R R
1
3
1
0
1 0
1 1
11
1 0 1
0 1 0
0 0 1
R R
1
2
1
we write:
1 0
1 1
0 0
=
1 1
0 1
0
.
2.3
2.3.1
Now we turn our attention to the question of how many solutions a given consistent
system of equations has. From previous courses, you know as well that a consistent
system has a unique solution if and only if the rank of A equals the number of unknowns. Additionally, we will see that the solutions of a consistent linear system
Ax = b is intimately related to the solutions of the system Ax = 0.
12
2 1
1
1
0
R3 2R1
0
R2 R1
1 1 1
0 1 2
0 0 0
R3 +R1
This shows that the rank of A and that of the augmented matrix equal 2, less than
the number of unknowns; therefore, the system is consistent and has infinitely many
solutions.
On the other hand, the associated homogeneous system is given by
x+y+z=0
x + 2y z = 0
2x + y + 4z = 0
and its solution set is described as
{(3s3 , 2s3 , s3 ), s3 R},
i.e., it has infinitely many solutions.
Finally, if we compute the determinant of matrix A, we get det(A) = 0.
14