1.1 Systems of Linear Equations

A linear equation in n unknowns is an equation of the form

a1x1+a2x2++anxn=b

where a1,a2,,an and b are real numbers and x1,x2,,xn are variables. A linear system of m equations in n unknowns is then a system of the form

a11x1+a12x2++a1nxn=b1a21x1+a22x2++a2nxn=b2   am1x1+am2x2++amnxn=bm
(1)

where the aij’s and the bi’s are all real numbers. We will refer to systems of the form (1) as m×n linear systems. The following are examples of linear systems:


  1. x1+2x2=52x1+3x2=8


  2. x1x2+x3=22x1+x2x3=4


  3. x1+x2=2x1x2=1x1x2=4

System (a) is a 2×2 system, (b) is a 2×3 system, and (c) is a 3×2 system.

By a solution of an m×n system, we mean an ordered n-tuple of numbers (x1,x2,,xn) that satisfies all the equations of the system. For example, the ordered pair (1, 2) is a solution of system (a), since

1(1)+2(2)=52(1)+3(2)=8

The ordered triple (2, 0, 0) is a solution of system (b), since

1(2)1(0)+1(0)=22(2)+1(0)1(0)=4

Actually, system (b) has many solutions. If α is any real number, it is easily seen that the ordered triple (2,α,α) is a solution. However, system (c) has no solution. It follows from the third equation that the first coordinate of any solution would have to be 4. Using x1=4 in the first two equations, we see that the second coordinate must satisfy

4+x2=24x2=1

Since there is no real number that satisfies both of these equations, the system has no solution. If a linear system has no solution, we say that the system is inconsistent. If the system has at least one solution, we say that it is consistent. Thus, system (c) is inconsistent, while systems (a) and (b) are both consistent.

The set of all solutions of a linear system is called the solution set of the system. If a system is inconsistent, its solution set is empty. A consistent system will have a nonempty solution set. To solve a consistent system, we must find its solution set.

2×2 Systems

Let us examine geometrically a system of the form

a11x1+a12x2=b1a21x1+a22x2=b2

Each equation can be represented graphically as a line in the plane. The ordered pair (x1,x2) will be a solution of the system if and only if it lies on both lines. For example, consider the three systems


  1. x1+x2=2x1x2=2


  2. x1+x2=2x1+x2=1


  3. x1+x2=2x1x2=2

The two lines in system (i) intersect at the point (2, 0). Thus, {(2, 0)} is the solution set of (i). In system (ii), the two lines are parallel. Therefore, system (ii) is inconsistent and hence its solution set is empty. The two equations in system (iii) both represent the same line. Any point on this line will be a solution of the system (see Figure 1.1.1).

Figure 1.1.1.

Three graphs, for x sub 2 versus x sub 1, illustrate unique solution, no solution, and infinite solutions.

In general, there are three possibilities: the lines intersect at a point, they are parallel, or both equations represent the same line. The solution set then contains either one, zero, or infinitely many points.

The situation is the same for m×n systems. An m×n system may or may not be consistent. If it is consistent, it must have either exactly one solution or infinitely many solutions. These are the only possibilities. We will see why this is so in Section 1.2 when we study the row echelon form. Of more immediate concern is the problem of finding all solutions of a given system. To tackle this problem, we introduce the notion of equivalent systems.

Equivalent Systems

Consider the two systems


  1. 3x1+2x2x3=2x2=32x3=4


  2. 3x1+2x2x3=23x12x2+x3=53x1+2x2+x3=2

System (a) is easy to solve because it is clear from the last two equations that x2=3 and x3=2. Using these values in the first equation, we get

3x1+232=2x1=2

Thus, the solution of the system is (2, 3, 2). System (b) seems to be more difficult to solve. Actually, system (b) has the same solution as system (a). To see this, add the first two equations of the system:

3x1+2x2x3=23x12x2+x3=5¯3x1+2x2x3=3

If (x1,x2,x3) is any solution of (b), it must satisfy all the equations of the system. Thus, it must satisfy any new equation formed by adding two of its equations. Therefore, x2 must equal 3. Similarly, (x1,x2,x3) must satisfy the new equation formed by subtracting the first equation from the third:

3x1+2x2+2x3=23x1+2x22x3=2¯3x1+2x22x3=2

Therefore, any solution of system (b) must also be a solution of system (a). By a similar argument, it can be shown that any solution of (a) is also a solution of (b). This can be done by subtracting the first equation from the second:

3x1+2x2x3=33x1+2x2x3=2¯3x12x2+x3=5

Then add the first and third equations:

3x1+2x2x3=22x3=4¯3x1+2x2+x3=2

Thus, (x1,x2,x3) is a solution of system (b) if and only if it is a solution of system (a). Therefore, both systems have the same solution set, {(2,3,2)}.

If we interchange the order in which two equations of a system are written, this will have no effect on the solution set. The reordered system will be equivalent to the original system. For example, the systems

3x1+2x2=44x1+2x2=63x12x2=2    and    3x12x2=24x1+2x2=63x1+2x2=4

both involve the same three equations and, consequently, they must have the same solution set.

If one equation of a system is multiplied through by a nonzero real number, this will have no effect on the solution set, and the new system will be equivalent to the original system. For example, the systems

x1+x2+x3=32x1+2x2+2x3=62x1x2+4x3=1    and    2x1x2+4x3=1

are equivalent.

If a multiple of one equation is added to another equation, the new system will be equivalent to the original system. This follows since the n-tuple (x1,,xn) will satisfy the two equations

ai1x1++ainxn=biaj1x1++ajnxn=bj

if and only if it satisfies the equations

ai1x1++ainxn=bi(aj1+αai1)x1++(ajn+αain)xn=bj+αbi

To summarize, there are three operations that can be used on a system to obtain an equivalent system:

  1. The order in which any two equations are written may be interchanged.

  2. Both sides of an equation may be multiplied by the same nonzero real number.

  3. A multiple of one equation may be added to (or subtracted from) another.

Given a system of equations, we may use these operations to obtain an equivalent system that is easier to solve.

n×n Systems

Let us restrict ourselves to n×n systems for the remainder of this section. We will show that if an n×n system has exactly one solution, then operations I and III can be used to obtain an equivalent “strictly triangular system.”

Example 1

The system

3x1+2x2+x3=1x2x3=22x3=4

is in strict triangular form, since in the second equation the coefficients are 0, 1, −1, respectively, and in the third equation the coefficients are 0, 0, 2, respectively. Because of the strict triangular form, the system is easy to solve. It follows from the third equation that x3=2. Using this value in the second equation, we obtain

x22=2    or    x2=4

Using x2=4, x3=2 in the first equation, we end up with

3x1+24+2=1x1=3

Thus, the solution of the system is (3,4,2).

Any n×n strictly triangular system can be solved in the same manner as the last example. First, the nth equation is solved for the value of xn. This value is used in the (n1)st equation to solve for xn1. The values xn and xn1 are used in the (n2)nd equation to solve for xn2, and so on. We will refer to this method of solving a strictly triangular system as back substitution.

Example 2

Solve the system

2x1x2+3x32x4=1x22x3+3x4=24x3+3x4=34x4=4

SOLUTION

Using back substitution, we obtain

4x4=4x4=14x3+31=3x3=0x220+31=2x2=12x1(1)+3021=1x1=1

Thus, the solution is (1,1,0,1).

In general, given a system of n linear equations in n unknowns, we will use operations I and III to try to obtain an equivalent system that is strictly triangular. (We will see in the next section of the book that it is not possible to reduce the system to strictly triangular form in the cases where the system does not have a unique solution.)

Example 3

Solve the system

x1+2x2+x3=33x1x23x3=12x1+3x2+x3=4

Solution

Subtracting 3 times the first row from the second row yields

7x26x3=10

Subtracting 2 times the first row from the third row yields

x2x3=2

If the second and third equations of our system, respectively, are replaced by these new equations, we obtain the equivalent system

x1+2x2+x3=37x26x3=10x2x3=2

If the third equation of this system is replaced by the sum of the third equation and 17 times the second equation, we end up with the following strictly triangular system:

x1+2x2+x3=37x26x3=1017x3= 47

Using back substitution, we get

x3=4,x2=2,x1=3

Let us look back at the system of equations in the last example. We can associate with that system a 3×3 array of numbers whose entries are the coefficients of the xi’s:

[121313231]

We will refer to this array as the coefficient matrix of the system. The term matrix means a rectangular array of numbers. A matrix having m rows and n columns is said to be m×n. A matrix is said to be square if it has the same number of rows and columns, that is, if m=n.

If we attach to the coefficient matrix an additional column whose entries are the numbers on the right-hand side of the system, we obtain the new matrix

[121313231|314]

We will refer to this new matrix as the augmented matrix. In general, when an m×r matrix B is attached to an m×n matrix A in this way, the augmented matrix is denoted by (A|B). Thus, if

A=[a11a12a1na21a22a2nam1am2amn],    B=[b11b12b1rb21b22b2rbm1bm2bmr]

then

(A|B)=[a11a1nam1amn|b11b1rbm1bmr]

With each system of equations, we may associate an augmented matrix of the form

[a11a1nam1amn|b1bm]

The system can be solved by performing operations on the augmented matrix. The xi’s are placeholders that can be omitted until the end of the computation. Corresponding to the three operations used to obtain equivalent systems, the following row operations may be applied to the augmented matrix:

Elementary Row Operations

  1. Interchange two rows.

  2. Multiply a row by a nonzero real number.

  3. Replace a row by the sum of that row and a multiple of another row.

Returning to the example, we find that the first row is used to eliminate the elements in the first column of the remaining rows. We refer to the first row as the pivotal row. For emphasis, the entries in the pivotal row are all in bold type and the entire row is color shaded. The first nonzero entry in the pivotal row is called the pivot.

A 3 by 4 augmented matrix.

By using row operation III, 3 times the first row is subtracted from the second row and 2 times the first row is subtracted from the third. When this is done, we end up with the matrix

designer icon

At this step, we choose the second row as our new pivotal row and apply row operation III to eliminate the last element in the second column. This time the pivot is 7 and the quotient 17=17 is the multiple of the pivotal row that is subtracted from the third row. We end up with the matrix

[1210760017|31047]

This is the augmented matrix for the strictly triangular system, which is equivalent to the original system. The solution of the system is easily obtained by back substitution.

Example 4

Solve the system

x2x3+x4=0x1+x2+x3+x4=62x1+4x2+x32x4=13x1+x22x3+2x4=3

SOLUTION

The augmented matrix for this system is

[0111111124123122|0613]

Since it is not possible to eliminate any entries by using 0 as a pivot element, we will use row operation I to interchange the first two rows of the augmented matrix. The new first row will be the pivotal row and the pivot element will be 1:

A 4 by 5 augmented matrix, with pivot a sub 11 = 1.

Row operation III is then used twice to eliminate the two nonzero entries in the first column:

A 4 by 5 augmented matrix.

Next, the second row is used as the pivotal row to eliminate the entries in the second column below the pivot element 1:

A 4 by 5 augmented matrix.

Finally, the third row is used as the pivotal row to eliminate the last element in the third column:

[1111011100320001|60132]

This augmented matrix represents a strictly triangular system. Solving by back substitution, we obtain the solution (2, −1, 3, 2).

In general, if an n×n linear system can be reduced to strictly triangular form, then it will have a unique solution that can be obtained by performing back substitution on the triangular system. We can think of the reduction process as an algorithm involving n1 steps. At the first step, a pivot element is chosen from among the nonzero entries in the first column of the matrix. The row containing the pivot element is called the pivotal row. We interchange rows (if necessary) so that the pivotal row is the new first row. Multiples of the pivotal row are then subtracted from each of the remaining n1 rows so as to obtain 0’s in the first entries of rows 2 through n. At the second step, a pivot element is chosen from the nonzero entries in column 2, rows 2 through n, of the matrix. The row containing the pivot is then interchanged with the second row of the matrix and is used as the new pivotal row. Multiples of the pivotal row are then subtracted from the remaining n2 rows so as to eliminate all entries below the pivot in the second column. The same procedure is repeated for columns 3 through n1. Note that at the second step row 1 and column 1 remain unchanged, at the third step the first two rows and first two columns remain unchanged, and so on. At each step, the overall dimensions of the system are effectively reduced by 1 (see Figure 1.1.2).

Figure 1.1.2.

The matrix elimination process is explained in three steps.

If the elimination process can be carried out as described, we will arrive at an equivalent strictly triangular system after n1 steps. However, the procedure will break down if, at any step, all possible choices for a pivot element are equal to 0. When this happens, the alternative is to reduce the system to certain special echelon, or staircase-shaped, forms. These echelon forms will be studied in the next section. They will also be used for m×n systems, where mn.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.94.171