Linear Algebra Chapter 1 Matrices
Linear Algebra Chapter 1 Matrices
College of Education
Definition 1: A matrix is a rectangular array of numbers. The numbers in the array are called the entries
in the matrix.
The size of a matrix is described in terms of the number of rows (horizontal lines) and columns
(vertical lines) it contains. For example, the first matrix in Example 1 has three rows and two columns,
so its size is 3 by 2 (written 3 ×2). In a size description, the first number always denotes the number of
rows, and the second denotes the number of columns.
A matrix with only one row, such as the second in Example 1, is called a row vector (or a row
matrix), and a matrix with only one column, such as the fourth in that example, is called a column
vector (or a column matrix). The fifth matrix in that example is both a row vector and a column vector.
We will use capital letters to denote matrices and lowercase letters to denote numerical quantities.
The entry that occurs in row i and column j of a matrix A will be denoted by a ij. Thus a general
3 × 4 matrix might be written as
Definition 2: Two matrices are defined to be equal if they have the same size and their corresponding
entries are equal.
If x=5 , then A=B , but for all other values of x the matrices A and B are not equal, since not all
of their corresponding entries are equal. There is no value of x for which A=C since A and C have
different sizes.
Definition 3: If A and B are matrices of the same size, then the sum A+ B is the matrix obtained
by adding the entries of B to the corresponding entries of A , and the difference A−B is the matrix
obtained by subtracting the entries of B from the corresponding entries of A . Matrices of different sizes
cannot be added or subtracted.
In matrix notation, if A=[aij ] and B=[bij ] have the same size, then
Then
The expressions A+C , B+C , A−C , and B−C are undefined.
Definition 4: If A is any matrix and c is any scalar, then the product cA is the matrix obtained
by multiplying each entry of the matrix A by c . The matrix cA is said to be a scalar multiple of A .
we have
The definition of matrix multiplication requires that the number of columns of the first factor A be the
same as the number of rows of the second factor B in order to form the product AB. If this condition is not
satisfied, the product is undefined. A convenient way to determine whether a product of two matrices is defined is
to write down the size of the first factor and, to the right of it, write down the size of the second factor. If, as in
(3), the inside numbers are the same, then the product is defined. The outside numbers then give the size of the
product.
Example 6: Suppose that A , B , and C are matrices with the following sizes:
Then, AB is defined and is a 3 ×7 matrix; BC is defined and is a 4 ×3 matrix; and CA is defined and is a 7 × 4
matrix. The products AC , CB, and BA are all undefined.
A matrix can be subdivided or partitioned into smaller matrices by inserting horizontal and vertical rules
between selected rows and columns. For example, the following are three possible partitions of a general 3 × 4
matrix A —the first is a partition of A into four submatrices A11, A12 , A 21 and A22; the second is a partition of A
into its row vectors r 1, r 2, and r 3; and the third is a partition of A into its column vectors c 1 , c2 , c 3 and c 4 :
Partitioning has many uses, one of which is for finding particular rows or columns of a matrix product
AB without computing the entire product. Specifically, the following formulas, whose proofs are left as exercises,
show how individual column vectors of AB can be obtained by partitioning B into column vectors and how
individual row vectors of AB can be obtained by partitioning A into row vectors.
Example 7: If A and B are the matrices in Example 5, then the second column vector of AB can be obtained by
the computation
Definition 6: If A1 , A 2 ,… , Ar are matrices of the same size, and if c 1 , c 2 , … , cr are scalars, then an expression of
the form
c 1 A 1+ c 2 A2 +…+ c r A r
Theorem 1.3.1. If A is an m ×n matrix, and if x is an n ×1 column vector, then the product Ax can be expressed
as a linear combination of the column vectors of A in which the coefficients are the entries of x .
Example 8.
It follows from Formula (6) and Theorem 1.3.1 that the j th column vector of AB can be expressed as a
linear combination of the column vectors of A in which the coefficients in the linear combination are the entries
Partitioning provides yet another way to view matrix multiplication. Specifically, suppose that an m ×r
matrix A is partitioned into its r column vectors c 1 , c2 , … , c r (each of size m ×1) and an r ×n matrix B is
partitioned into its r row vectors r 1 , r 2 , … , r r (each of size 1 ×n ). Each term in the sum
has size m ×n so the sum itself is an m ×n matrix. We leave it as an exercise for you to verify that the entry in
row i and column j of the sum is given by the expression on the right side of Formula (5), from which it follows
that
Solution: The column vectors of A and the row vectors of B are, respectively,
Example 11:
Definition 8: If A is a square matrix, then the trace of A , denoted by tr( A ), is defined to be the sum of the
entries on the main diagonal of A . The trace of A is undefined if A is not a square matrix.
Example 12:
Example 1:
Example 2:
Theorem 1.4.3. If R is the reduced row echelon form of an n × n matrix A , then either R has a row of zeros or R
is the identity matrix I n.
Definition 1. If A is a square matrix, and if a matrix B of the same size can be found such that AB=BA=I , then
A is said to be invertible (or nonsingular) and B is called an inverse of A . If no such matrix B can be found, then
A is said to be singular.
Example 5. An Invertible Matrix
Theorem 1.4.4. If B and C are both inverses of the matrix A , then B=C .
Theorem 1.4.5. The matrix A= [ ac bd ] is invertible if and only if ad −bc ≠ 0, in which case the inverse is given
by the formula A =
−1 1
[ d −b
ad−bc −c a ] (2)
Theorem 1.4.6. If A and B are invertible matrices with the same size, then AB is invertible and
−1 −1 −1
( AB) =B A
Example 9. The Inverse of a Product
Theorem 1.4.8. If the sizes of the matrices are such that the stated operations can be performed, then:
¿
Example 13. Inverse of a Transpose