Linear algebra is one of the most important key ingredients to
linear programming. This handout aims to highlight some topics in
linear algebra which will be of great use to us throughout this course.
However, the handout is not comprehensive, and you are encouraged
to review the material on your own. Here is a bunch of reference books:
- Applied Mathematical Programming, Bradley, Hax,
Magnanti, 1977, Addison-Wesley. Appendix 1 (recommended)
- Introduction to Mathematical Programming, Hillier,
Lieberman, 1995, McGraw-Hill, 2nd ed. Appendix 4 (not as comprehensive)
- Linear Algebra and Its Applications, Strang, 1988,
Harcourt Brace Jovanovich, 3rd ed. (the first two chapters)
You can also find this material in any textbook about linear algebra.
If you have any questions, ask me or the TAs.
Vectors and Matrices
Def: A matrix is a rectangular array of numbers. We will
denote matrices by capital letters. If a matrix A has m rows
and n columns, it is called an
m ×n matrix, or a matrix of dimension m by n.
Generally, aij is used to denote the entry in the ith row
and the jth column of the matrix A.
Def: An m × 1 matrix is called an m-dimensional
column vector. A 1 × m matrix is called an m-dimensional
row vector. We will use lower-case letters to denote vectors.
By convention, we will use the term vector for column
vectors and row vectors will explicitly be stated.
Def: The transpose of a matrix A, denoted AT, is
formed by interchanging the rows and columns of A, that is,
the i,j entry of AT is aji.
If A is an m ×n matrix, then AT
is an n ×m matrix. Moreover, (AT)T = A. If u is a column
vector, then uT is a row vector.
Def: The product of an m × p matrix A
and a p × n matrix B
is defined to be a new m × n matrix C, written C = AB,
whose elements cij are given by
|
Def: The identity matrix of order m is a square m × m matrix, denoted Im or I if clear from the context, with ones along the diagonal and zeroes elsewhere.
Def: Given a square m ×m matrix A, if there exists an m × m matrix D such that AD = DA = I, then D is called the inverse of A, and denoted by A-1.
Linear Dependence and Basis
Def: A set of vectors {v1,..,vm } Í Rn is
said to be linearly dependent if the zero vector can be
written as a non-trivial combination of {v1,..,vm } .
Otherwise, the vectors are linearly independent.
Def: Let S be a subspace of Rn .
(This means that, whenever vectors v and w are in S and
a is a scalar, av and v+w are also in S.)
If B = {v1,..,vm }
is a set of linearly independent vectors such that every vector in S
can be written as a linear combination of the vectors in B, then B
is a basis of S. The number of vectors in B is called
the dimension of S. Note that a basis need not be unique,
but all bases will have the same number of vectors.
Def: Given a matrix A of dimension m × n, the
subspace generated by its
row (column) vectors is called the row (column) space of A.
The row space of A and the column space of A have the same dimension,
which is called the rank of A.
Def: A square matrix A is said to be nonsingular if its
column (row) vectors are linearly independent.
Otherwise, it is singular. If A is an m × m matrix,
the following are equivalent:
Let P be a nonsingular m × m matrix.
Then, { x Î Rn : Ax = b } = {x Î Rn: PAx = Pb } . If A is a square invertible matrix,
then let P = A-1. Then, we have
A-1 (Ax) = A-1 b Û x = A-1 b. Therefore, if
A is invertible, then Ax = b always
has a solution for any b. In fact, the converse is also
true if A is a square matrix.
By the equivalence given above, A is nonsingular, or A has
full rank.
To identify A-1, and solve the system, we can
use Gauss-Jordan Elimination. This procedure
solves the system by performing a series of transformations
known as elementary row operations, each of which
corresponds to multiplication on the left by a square,
nonsingular matrix. The following constitute the elementary
row operations on a matrix A:
To calculate the inverse of a nonsingular n × n matrix A, we
may proceed as follows:
Below is a general version of Gauss-Jordan elimination:
Step 1: To solve Ax = b, form the augmented matrix [A|b].
Step 2: Begin with row 1 as the current row, column 1 as the
current column, and a11 as the current entry.
Step 3: Write down the system of equations A¢x = b¢ that
corresponds to the matrix A¢|b¢ obtained when Step 2 is completed.
Then, A¢x = b¢ will have the same set of solutions as Ax = b.
To describe the set of solutions to A¢x = b¢, we define the concepts of
basic and nonbasic variables. For any linear system, a variable that
appears with a coefficient
1 in a single equation and a coefficient of 0 in all other equations is
a candidate to be a basic variable for that equation (row).
Choose any such candidate to be the basic variable for
that row. Any variable that is not basic is
called a nonbasic variable. Let B be the set of
basic variables for A¢x = b¢, and NB be the set of nonbasic
variables for A¢x = b¢.
Case 1: A¢x = b¢ contains at least one row of the
form [0 0 ... 0 | c] where c ¹ 0.
In this case, Ax = b has no solution.
Case 2: If case 1 does not apply and NB is empty,
then Ax = b has a unique solution, which can be read
off from the transformed equations.
Case 3: If case 1 does not hold and NB is nonempty,
then Ax = b will have infinitely many solutions.
In fact, we can choose any values we like for the nonbasic
variables, and then choose suitable values for the basic variables
so that each equation is satisfied.
Def: Let {v1,..,vm } Í Rn be a set of vectors
and a1,..,am be scalars.
Then, a1 v1+...+am vm is
called a linear combination of the vectors {v1,..,vm } .
If all of a1,..,am are zeroes, then a1 v1+...+am vm is called a trivial linear combination.
Otherwise, it is non-trivial.
- A is invertible.
- A is nonsingular.
- Rank(A) = m.
Systems of Linear Equations
Suppose that we want to solve the system of equations Ax = b,
where A Î Rm ×n , x Î Rn ,
and b Î Rm . When does this system have a solution?
Let A1,..,An be the columns of A, and x1,..,xn be the
n components of
x. Note that Ax = x1 A1+..+ xn An. That is, Ax = b
has a solution if and only if b is in the column space of A.
- Interchange two rows of A.
- Multiplying a row of A by a nonzero scalar.
- Adding a scalar multiple of one row of A to another.
- Step 1: Form the n × 2n matrix [ A | I ].
- Step 2: Use elementary row operations to transform [A|I] to
the form [I|B].
In the final form, B = A-1.
(a) If the current entry is nonzero, use elementary row operations
to transform it to 1, and the rest of the current column's entries
to 0. Then obtain the new current row, column and entry by moving
down one row and to the right one column and go to step 2a.
If this is impossible, stop.
(b) If the current entry is 0, do a row interchange operation
with any row below it with a nonzero value in the same column.
Transform the column using elementary row operations and
move to the next current entry (down one row, across one
column). If this is impossible (no more rows or columns),
stop.
Otherwise, go to
step 2a.
(c) If the current column has no nonzero numbers below the current
row, obtain the new current column (one column to
the right) and entry, and repeat step 2a.
If it is impossible (no more columns), stop.