Docsity

Wayne Winston, Operati...hms 4th. Edition, 2003 - 2 basic linear algebra, Manuais, Projetos, Pesquisas de Engenharia de Produção

Toggle sidebar
bg1
Basic Linear Algebra
In this chapter, we study the topics in linear algebra that will be needed in the rest of the book.
We begin by discussing the building blocks of linear algebra: matrices and vectors. Then we
use our knowledge of matrices and vectors to develop a systematic procedure (the Gauss–
Jordan method) for solving linear equations, which we then use to invert matrices. We close
the chapter with an introduction to determinants.
The material covered in this chapter will be used in our study of linear and nonlinear
programming.
2.1 Matrices and Vectors
Matrices
DEFINITION ■A matrix is any rectangular array of numbers. ■
For example,

,
,
,[21]
are all matrices.
If a matrix Ahas mrows and ncolumns, we call Aan mnmatrix. We refer to
mnas the order of the matrix. A typical mnmatrix Amay be written as
A

DEFINITION ■The number in the ith row and jth column of Ais called the ijth element of A
and is written a
ij
.■
For example, if
A

then a
11
1, a
23
6, and a
31
7.
3
6
9
2
5
8
1
4
7
a
1n
a
2n
a
mn



a
12
a
22
a
m2
a
11
a
21
a
m1
1
2
3
6
2
5
1
4
2
4
1
3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26

Pré-visualização parcial do texto

Baixe Wayne Winston, Operati...hms 4th. Edition, 2003 - 2 basic linear algebra e outras Manuais, Projetos, Pesquisas em PDF para Engenharia de Produção, somente na Docsity!

Basic Linear Algebra

In this chapter, we study the topics in linear algebra that will be needed in the rest of the book. We begin by discussing the building blocks of linear algebra: matrices and vectors. Then we use our knowledge of matrices and vectors to develop a systematic procedure (the Gauss– Jordan method) for solving linear equations, which we then use to invert matrices. We close the chapter with an introduction to determinants. The material covered in this chapter will be used in our study of linear and nonlinear programming.

2.1 Matrices and Vectors

Matrices

D E F I N I T I O N  A matrix is any rectangular array of numbers. 

For example,

 ,^  ,^  ,^ [2^ 1] are all matrices. If a matrix A has m rows and n columns, we call A an m  n matrix. We refer to m  n as the order of the matrix. A typical m  n matrix A may be written as

A 

D E F I N I T I O N  The number in the i th row and j th column of A is called the ij th element of A and is written a (^) ij. 

For example, if

A 

then a 11  1, a 23  6, and a 31  7.

a 1 n a 2 n   amn

a 12 a 22   am 2

a 11 a 21   am 1

Sometimes we will use the notation A  [ aij ] to indicate that A is the matrix whose ij th element is aij.

D E F I N I T I O N  Two matrices A  [ aij ] and B  [ bij ] are equal if and only if A and B are of the same order and for all i and j , a (^) ij  bij. 

For example, if

A  (^)   and B  (^)  

then A  B if and only if x  1, y  2, w  3, and z  4.

Vectors

Any matrix with only one column (that is, any m  1 matrix) may be thought of as a column vector. The number of rows in a column vector is the dimension of the column vector. Thus,

  may be thought of as a 2  1 matrix or a two-dimensional column vector. Rm^ will denote the set of all m -dimensional column vectors. In analogous fashion, we can think of any vector with only one row (a 1  n matrix as a row vector. The dimension of a row vector is the number of columns in the vector. Thus, [9 2 3] may be viewed as a 1  3 matrix or a three-dimensional row vector. In this book, vectors appear in boldface type: for instance, vector v. An m -dimensional vector (either row or column) in which all elements equal zero is called a zero vector (written 0 ). Thus,

[0 0] and (^)  

are two-dimensional zero vectors. Any m -dimensional vector corresponds to a directed line segment in the m -dimensional plane. For example, in the two-dimensional plane, the vector

u  (^)  

corresponds to the line segment joining the point

  to the point

  The directed line segments corresponding to

u  (^)  , v  (^)  , w  (^)  

are drawn in Figure 1.

y z

x w

12 C H A P T E R 2 Basic Linear Algebra

Matrix Operations

We now describe the arithmetic operations on matrices that are used later in this book.

The Scalar Multiple of a Matrix Given any matrix A and any number c (a number is sometimes referred to as a scalar ), the matrix cA is obtained from the matrix A by multiplying each element of A by c. For example,

if A  (^)  , then 3 A  (^)  

For c  1, scalar multiplication of the matrix A is sometimes written as  A.

Addition of Two Matrices Let A  [ aij ] and B  [ bij ] be two matrices with the same order (say, m  n ). Then the matrix C  A  B is defined to be the m  n matrix whose ij th element is aij  b (^) ij. Thus, to obtain the sum of two matrices A and B , we add the corresponding elements of A and B. For example, if

A  (^)   and B  (^)  

then

A  B  (^)    (^)  .

This rule for matrix addition may be used to add vectors of the same dimension. For ex- ample, if u  [1 2] and v  [2 1], then u  v  [1  2 2  1]  [3 3]. Vectors may be added geometrically by the parallelogram law (see Figure 2). We can use scalar multiplication and the addition of matrices to define the concept of a line segment. A glance at Figure 1 should convince you that any point u in the m -dimensional plane corresponds to the m -dimensional vector u formed by joining the origin to the point u. For any two points u and v in the m -dimensional plane, the line segment joining u and v (called the line segment uv ) is the set of all points in the m -dimensional plane that correspond to the vectors c u  (1  c ) v , where 0  c  1 (Figure 3). For example, if u  (1, 2) and v  (2, 1), then the line segment uv consists

14 C H A P T E R 2 Basic Linear Algebra

3

2

x 2

x 1

1

u u^ +^ v

v

(1, 2)

(2, 1)

(3, 3)

(0, 0)

v = (^2 )

1 2 3

u = 1 2 u + v = 3 3

F I G U R E 2 Addition of Vectors

of the points corresponding to the vectors c [1 2]  (1  c )[2 1]  [2  c 1  c ], where 0  c  1. For c  0 and c  1, we obtain the endpoints of the line segment uv ; for c  ^12 , we obtain the midpoint (0.5 u  0.5 v ) of the line segment uv. Using the parallelogram law, the line segment uv may also be viewed as the points cor- responding to the vectors u  c ( v  u ), where 0  c  1 (Figure 4). Observe that for c  0, we obtain the vector u (corresponding to point u ), and for c  1, we obtain the vector v (corresponding to point v ).

The Transpose of a Matrix Given any m  n matrix

A 

the transpose of A (written AT ) is the n  m matrix

AT^ 

am 1 am 2   amn

a 21 a 22   a 2 n

a 11 a 12   a 1 n

a 1 n a 2 n   amn

a 12 a 22   am 2

a 11 a 21   am 1

  1. 1 Matrices and Vectors 15

2

x 2

u (^) c = 1

c = 0

c =

v

x 1

1

1 2

(^12)

F I G U R E 3 Line Segment Joining u  (1, 2) and v  (2, 1)

x 2

u

u

  • u v^ –^ u

v

c = 0

c = 1

c =

v

x 1

(^12)

F I G U R E 4 Representation of Line Segment uv

c 22  [2 1 3]  

C  AB  (^)  

Find AB for

A  (^)   and B  [1 2]

Solution Because A has one column and B has one row, C  AB will exist. From Equation (2), we know that C is a 2  2 matrix with c 11  3(1)  3 c 21  4(1)  4 c 12  3(2)  6 c 22  4(2)  8 Thus,

C  (^)  

Compute D  BA for the A and B of Example 2. Solution In this case, D will be a 1  1 matrix (or a scalar). From Equation (2),

d 11  [1 2]   1(3)  2(4)  11

Thus, D  [11]. In this example, matrix multiplication is equivalent to scalar multiplica- tion of a row and column vector.

Recall that if you multiply two real numbers a and b , then ab  ba. This is called the commutative property of multiplication. Examples 2 and 3 show that for matrix multipli- cation, it may be that AB BA. Matrix multiplication is not necessarily commutative. (In some cases, however, AB  BA will hold.)

Show that AB is undefined if

A  (^)   and B   

Solution This follows because A has two columns and B has three rows. Thus, Equation (1) is not satisfied.

  1. 1 Matrices and Vectors 17

E X A M P L E 3 Row Vector Times Column Vector

E X A M P L E 4 Undefined Matrix Product

E X A M P L E 2 Column Vector Times Row Vector

Many computations that commonly occur in operations research (and other branches of mathematics) can be concisely expressed by using matrix multiplication.To illustrate this, suppose an oil company manufactures three types of gasoline: premium unleaded, regular unleaded, and regular leaded. These gasolines are produced by mixing two types of crude oil: crude oil 1 and crude oil 2. The number of gallons of crude oil required to manufacture 1 gallon of gasoline is given in Table 1. From this information, we can find the amount of each type of crude oil needed to manufacture a given amount of gasoline. For example, if the company wants to produce 10 gallons of premium unleaded, 6 gallons of regular unleaded, and 5 gallons of regular leaded, then the company’s crude oil requirements would be Crude 1 required  (^34 ) (10)  (^23 ) (6)  (^14 ) 5  12.75 gallons Crude 2 required  (^14 ) (10)  (^13 ) (6)  (^34 ) 5  8.25 gallons More generally, we define pU  gallons of premium unleaded produced rU  gallons of regular unleaded produced rL  gallons of regular leaded produced c 1  gallons of crude 1 required c 2  gallons of crude 2 required Then the relationship between these variables may be expressed by c 1  (^34 ) pU  (^23 ) rU  (^14 ) rL c 2  (^14 ) pU  (^13 ) rU  (^34 ) rL Using matrix multiplication, these relationships may be expressed by

  ^   (^)  

Properties of Matrix Multiplication

To close this section, we discuss some important properties of matrix multiplication. In what follows, we assume that all matrix products are defined. 1 Row i of AB  (row i of A ) B. To illustrate this property, let

A  (^)   and B  (^)  

Then row 2 of the 2  2 matrix AB is equal to

pU rU rL

^14  ^34 

^23  ^13 

^34  ^14 

c 1 c 2

18 C H A P T E R 2 Basic Linear Algebra

T A B L E 1 Gallons of Crude Oil Required to Produce 1 Gallon of Gasoline Crude Premium Regular Regular Oil Unleaded Unleaded Leaded 1 ^34 ^ ^23 ^ ^14  2 ^14 ^ ^13 ^ ^34 

2.2 Matrices and Systems of Linear Equations

Consider a system of linear equations given by a 11 x 1  a 12 x 2    a 1 nxn  b 1 a 21 x 1  a 22 x 2    a 2 nxn  b 2    (3)    am 1 x 1  am 2 x 2    a (^) mn xn  bm In Equation (3), x 1 , x 2 ,... , xn are referred to as variables, or unknowns, and the aij ’s and b (^) i ’s are constants. A set of equations such as (3) is called a linear system of m equa- tions in n variables.

D E F I N I T I O N  A solution to a linear system of m equations in n unknowns is a set of values for the unknowns that satisfies each of the system’s m equations. 

To understand linear programming, we need to know a great deal about the properties of solutions to linear equation systems. With this in mind, we will devote much effort to studying such systems. We denote a possible solution to Equation (3) by an n -dimensional column vector x, in which the i th element of x is the value of x (^) i. The following example illustrates the con- cept of a solution to a linear system.

20 C H A P T E R 2 Basic Linear Algebra

1 For A  (^)   and B  (^)  , find:

a  A b 3 A c A  2 B d AT^ e BT^ f AB g BA 2 Only three brands of beer (beer 1, beer 2, and beer 3) are available for sale in Metropolis. From time to time, people try one or another of these brands. Suppose that at the beginning of each month, people change the beer they are drinking according to the following rules: 30% of the people who prefer beer 1 switch to beer 2. 20% of the people who prefer beer 1 switch to beer 3. 30% of the people who prefer beer 2 switch to beer 3. 30% of the people who prefer beer 3 switch to beer 2. 10% of the people who prefer beer 3 switch to beer 1. For i  1, 2, 3, let xi be the number who prefer beer i at the beginning of this month and yi be the number who pre- fer beer i at the beginning of next month. Use matrix mul- tiplication to relate the following:

   

x 1 x 2 x 3

y 1 y 2 y 3

2  1 2

1 0 1

3 6 9

2 5 8

1 4 7

P R O B L E M S

Group A (^) Group B 3 Prove that matrix multiplication is associative. 4 Show that for any two matrices A and B , ( AB ) T^  BT^ AT. 5 An n  n matrix A is symmetric if A  AT. a Show that for any n  n matrix, AAT^ is a symmet- ric matrix. b Show that for any n  n matrix A , ( A  A T ) is a symmetric matrix. 6 Suppose that A and B are both n  n matrices. Show that computing the matrix product AB requires n^3 multiplications and n^3  n^2 additions. 7 The trace of a matrix is the sum of its diagonal elements. a For any two matrices A and B , show that trace ( A  B )  trace A  trace B. b For any two matrices A and B for which the products AB and BA are defined, show that trace AB  trace BA.

Show that

x  (^)  

is a solution to the linear system x 1  2 x 2  5 2 x (4) 1 ^ x 2 ^0 and that x  (^)  

is not a solution to linear system (4). Solution To show that

x  (^)  

is a solution to Equation (4), we substitute x 1  1 and x 2  2 in both equations and check that they are satisfied: 1  2(2)  5 and 2(1)  2  0. The vector

x  (^)  

is not a solution to (4), because x 1  3 and x 2  1 fail to satisfy 2 x 1  x 2  0.

Using matrices can greatly simplify the statement and solution of a system of linear equations. To show how matrices can be used to compactly represent Equation (3), let

A 

, x 

, b 

Then (3) may be written as A x  b (5) Observe that both sides of Equation (5) will be m  1 matrices (or m  1 column vec- tors). For the matrix A x to equal the matrix b (or for the vector A x to equal the vector b ), their corresponding elements must be equal. The first element of A x is the scalar product of row 1 of A with x. This may be written as

[ a 11 a 12  a 1 n ]

 a 11 x 1  a 12 x 2    a 1 nxn

This must equal the first element of b (which is b 1 ). Thus, (5) implies that a 11 x 1  a 12 x 2    a 1 nxn  b 1. This is the first equation of (3). Similarly, (5) implies that the scalar

x 1 x 2   xn

b 1 b 2   bm

x 1 x 2   xn

a 1 n a 2 n   amn

a 12 a 22   am 2

a 11 a 21   am 1

  1. 2 Matrices and Systems of Linear Equations 21

E X A M P L E 5 Solution to Linear System

Type 1 ERO

A is obtained by multiplying any row of A by a nonzero scalar. For example, if

A 

 

then a Type 1 ERO that multiplies row 2 of A by 3 would yield

A 

 

Type 2 ERO

Begin by multiplying any row of A (say, row i ) by a nonzero scalar c. For some j i , let row j of A  c (row i of A )  row j of A , and let the other rows of A be the same as the rows of A. For example, we might multiply row 2 of A by 4 and replace row 3 of A by 4(row 2 of A )  row 3 of A. Then row 3 of A becomes

4 [1 3 5 6]  [0 1 2 3]  [4 13 22 27]

and

A 

 

Type 3 ERO

Interchange any two rows of A. For instance, if we interchange rows 1 and 3 of A , we obtain

A 

 

Type 1 and Type 2 EROs formalize the operations used to solve a linear equation sys- tem. To solve the system of equations

x 1  x 2  2 2 x (7) 1 ^4 x 2 ^7 we might proceed as follows. First replace the second equation in (7) by 2(first equa- tion in (7))  second equation in (7). This yields the following linear system:

x 1  x 2  2 2 x (7.1) 2 ^3 Then multiply the second equation in (7.1) by ^12 , yielding the system

x 1  x 2  2 x (7.2) 2 ^ ^32  Finally, replace the first equation in (7.2) by 1[second equation in (7.2)]  first equa- tion in (7.2). This yields the system

  1. 3 The Gauss–Jordan Method for Solving Systems of Linear Equations 23

x 1  ^12  (7.3) x 2  ^32  System (7.3) has the unique solution x 1  ^12 ^ and x 2  ^32 . The systems (7), (7.1), (7.2), and (7.3) are equivalent in that they have the same set of solutions. This means that x 1  ^12  (^) and x 2  ^32  (^) is also the unique solution to the original system, (7). If we view (7) in the augmented matrix form ( A  b ), we see that the steps used to solve (7) may be seen as Type 1 and Type 2 EROs applied to A  b. Begin with the augmented matrix version of (7):

   (7^ ) Now perform a Type 2 ERO by replacing row 2 of (7 ) by 2(row 1 of (7 ))  row 2 of (7 ). The result is

   (7.1^ ) which corresponds to (7.1). Next, we multiply row 2 of (7.1 ) by ^12 ^ (a Type 1 ERO), re- sulting in

   (7.2^ )

which corresponds to (7.2). Finally, perform a Type 2 ERO by replacing row 1 of (7.2 ) by 1(row 2 of (7.2 ))  row 1 of (7.2 ). The result is

   (7.3^ )

which corresponds to (7.3). Translating (7.3 ) back into a linear system, we obtain the sys- tem x 1  ^12 ^ and x 2  ^32 , which is identical to (7.3).

Finding a Solution by the Gauss–Jordan Method

The discussion in the previous section indicates that if the matrix A  b is obtained from A  b via an ERO, the systems A x  b and A x  b are equivalent. Thus, any sequence of EROs performed on the augmented matrix A  b corresponding to the system A x  b will yield an equivalent linear system. The Gauss–Jordan method solves a linear equation system by utilizing EROs in a system- atic fashion. We illustrate the method by finding the solution to the following linear system: 2 x 1  2 x 2  2 x 3  9 2 x 1  2 x 2  2 x 3  6 (8) x 1  2 x 2  2 x 3  5 The augmented matrix representation is

A  b   (^)  

(8 )

Suppose that by performing a sequence of EROs on (8 ) we could transform (8 ) into

^12  ^32 

^32 

24 C H A P T E R 2 Basic Linear Algebra

Step 3 Replace row 3 of A 2  b 2 by 1(row 1 of A 2  b 2  row 3 of A 2  b 2. The result of this Type 2 ERO is

A 3  b 3   (^)  

The first column of (8 ) has now been transformed into

 

By our procedure, we have made sure that the variable x 1 occurs in only a single equation and in that equation has a coefficient of 1. We now transform the second column of A 3  b 3 into

 

We begin by using a Type 1 ERO to create a 1 in row 2 and column 2 of A 3  b 3. Then we use the resulting row 2 to perform the Type 2 EROs that are needed to put zeros in the rest of column 2. Steps 4–6 accomplish these goals. Step 4 Multiply row 2 of A 3  b 3 by ^13 .The result of this Type 1 ERO is

A 4  b 4   (^)  

Step 5 Replace row 1 of A 4  b 4 by 1(row 2 of A 4  b 4 )  row 1 of A 4  b 4. The result of this Type 2 ERO is

A 5  b 5    

Step 6 Replace row 3 of A 5  b 5 by 2(row 2 of A 5  b 5 )  row 3 of A 5  b 5. The result of this Type 2 ERO is

A 6  b 6   (^)  

Column 2 has now been transformed into

 

Observe that our transformation of column 2 did not change column 1. To complete the Gauss–Jordan procedure, we must transform the third column of A 6  b 6 into

 

^72  1 ^52 

^56  ^13  ^56 

^72  1 ^12 

^56  ^13  ^32 

^92  1 ^12 

^12  ^13  ^32 

^92   3 ^12 

^12  1 ^32 

26 C H A P T E R 2 Basic Linear Algebra

We first use a Type 1 ERO to create a 1 in the third row and third column of A 6  b 6. Then we use Type 2 EROs to put zeros in the rest of column 3. Steps 7–9 accomplish these goals.

Step 7 Multiply row 3 of A 6  b 6 by ^65 . The result of this Type 1 ERO is

A 7  b 7   (^)  

Step 8 Replace row 1 of A 7  b 7 by ^56 (row 3 of A 7  b 7 )  row 1 of A 7  b 7. The result of this Type 2 ERO is

A 8  b 8    

Step 9 Replace row 2 of A 8  b 8 by ^13 (row 3 of A 8  b 8 )  row 2 of A 8  b 8. The result of this Type 2 ERO is

A 9  b 9   (^)  

A 9  b 9 represents the system of equations

x 1 x 2 x 3  1 x 1 x 2 x 3  2 (9) x 1 x 2 x 3  3

Thus, (9) has the unique solution x 1  1, x 2  2, x 3  3. Because (9) was obtained from (8) via EROs, the unique solution to (8) must also be x 1  1, x 2  2, x 3  3.

The reader might be wondering why we defined Type 3 EROs (interchanging of rows). To see why a Type 3 ERO might be useful, suppose you want to solve

2 x 2  x 3  6 x 1  x 2  x 3  2 (10) 2 x 1  x 2  x 3  4

To solve (10) by the Gauss–Jordan method, first form the augmented matrix

A  b   (^)  

The 0 in row 1 and column 1 means that a Type 1 ERO cannot be used to create a 1 in row 1 and column 1. If, however, we interchange rows 1 and 2 (a Type 3 ERO), we obtain

 (^)  

(10 )

Now we may proceed as usual with the Gauss–Jordan method.

^13 

^72  1 3

^56  ^13  3

  1. 3 The Gauss–Jordan Method for Solving Systems of Linear Equations 27

We begin by replacing row 3 (because the row 2, column 1 value is already 0) of A  b by 1(row 1 of A  b )  row 3 of A  b. The result of this Type 2 ERO is

A 1  b 1 

(14)

Next we replace row 1 of A 1  b 1 by 1(row 2 of A 1  b 1 )  row 1 of A 1  b 1. The result of this Type 2 ERO is

A 2  b 2 

Now we replace row 3 of A 2  b 2 by 1(row 2 of A 2  b 2 )  row 3 of A 2  b 2. The result of this Type 2 ERO is

A 3  b 3 

We would now like to transform the third column of A 3  b 3 into

but this is not possible. The linear system corresponding to A 3  b 3 is

0 x 1  0 x 2  0 x 3   2 (14.1) 0 x 1  0 x 2  0 x 3  3 (14.2) 0 x 1  0 x 2  0 x 3  0 (14.3)

Suppose we assign an arbitrary value k to x 3. Then (14.1) will be satisfied if x 1  k  2, or x 1  k  2. Similarly, (14.2) will be satisfied if x 2  k  3, or x 2  3  k. Of course, (14.3) will be satisfied for any values of x 1 , x 2 , and x 3. Thus, for any number k , x 1  k  2, x 2  3  k , x 3  k is a solution to (14). Thus, (14) has an infinite number of solutions (one for each number k ). Because (14) was obtained from (13) via EROs, (13) also has an infinite number of solutions. A more formal characterization of linear systems that have an infinite number of solutions will be given after the following summary of the Gauss–Jordan method.

Summary of the Gauss–Jordan Method

Step 1 To solve A x  b , write down the augmented matrix A  b.

Step 2 At any stage, define a current row, current column, and current entry (the entry in the current row and column). Begin with row 1 as the current row, column 1 as the cur- rent column, and a 11 as the current entry. ( a ) If a 11 (the current entry) is nonzero, then use EROs to transform column 1 (the current column) to

  1. 3 The Gauss–Jordan Method for Solving Systems of Linear Equations 29

Then obtain the new current row, column, and entry by moving down one row and one column to the right, and go to step 3. ( b ) If a 11 (the current entry) equals 0, then do a Type 3 ERO involving the current row and any row that contains a nonzero number in the current column. Use EROs to transform column 1 to

Then obtain the new current row, column, and entry by moving down one row and one column to the right. Go to step 3. ( c ) If there are no nonzero numbers in the first column, then obtain a new current column and entry by moving one column to the right. Then go to step 3. Step 3 ( a ) If the new current entry is nonzero, then use EROs to transform it to 1 and the rest of the current column’s entries to 0. When finished, obtain the new current row, column, and entry. If this is impossible, then stop. Otherwise, repeat step 3. ( b ) If the current entry is 0, then do a Type 3 ERO with the current row and any row that con- tains a nonzero number in the current column. Then use EROs to transform that cur- rent entry to 1 and the rest of the current column’s entries to 0. When finished, obtain the new current row, column, and entry. If this is impossible, then stop. Otherwise, re- peat step 3. ( c ) If the current column has no nonzero numbers below the current row, then obtain the new current column and entry, and repeat step 3. If it is impossible, then stop. This procedure may require “passing over” one or more columns without transform- ing them (see Problem 8). Step 4 Write down the system of equations A x  b that corresponds to the matrix A  b obtained when step 3 is completed. Then A x  b will have the same set of solutions as A x  b.

Basic Variables and Solutions to Linear Equation Systems

To describe the set of solutions to A x  b (and A x  b ), we need to define the concepts of basic and nonbasic variables.

D E F I N I T I O N  After the Gauss–Jordan method has been applied to any linear system, a variable that appears with a coefficient of 1 in a single equation and a coefficient of 0 in all other equations is called a basic variable (BV).  Any variable that is not a basic variable is called a nonbasic variable (NBV). 

Let BV be the set of basic variables for A x  b and NBV be the set of nonbasic vari- ables for A x  b. The character of the solutions to A x  b depends on which of the following cases occurs. Case 1 A x  b has at least one row of form [0 0  0  c ] ( c 0). Then A x  b has no solution (recall Example 6). As an example of Case 1, suppose that when the Gauss–Jordan method is applied to the system A x  b , the following matrix is obtained:

30 C H A P T E R 2 Basic Linear Algebra