Docsity

Lecture Notes on Matrices - Linear Algebra | MATH 307, Study notes of Linear Algebra

Toggle sidebar
bg1
Dr. Neal, Fall 2008
MATH 307 Matrices
An
m×n
matrix
A
= (ai j) is an array of
mn
numbers arranged into
m
rows and
n
columns, where ai j is the entry in the
i
th row, jth column. The values
m×n
are called
the dimensions (or size) of the matrix. If the dimensions are
n×n
, then
A
is called a
square matrix.
A=2−1 4
0 3 6
B=
1 4 2 0
2 0 1 −3
−2 3 5 2
G=
4 2 −3
5 1 6
−8 5 2
A
is a
2×3
matrix,
a12 = −1 and a23 =6
B
is a
3×4
matrix,
b32 =3 and b24 = −3
G
is a square matrix
with dimensions
3×3
Scalar Multiplication
Let
A
= (ai j) be an
m×n
matrix and let
c
be a real number. (Henceforth, an individual
real number will be called a scalar.) We define scalar multiplication to be the product of
the scalar
c
with the matrix
A
given by
c A =(c a i j).
That is, we simply multiply every entry in
A
by the value
c
. For
A
as given above,
then
3A=3×2−1 4
0 3 6
=6−3 12
0 9 18
.
Matrix Addition
Let
A
= (ai j) and
B
= (bi j) both be
m×n
matrices. Then we define the sum
A+B
by
A+B=(ci j), where ci j =ai j +bi j or A+B=(ai j +bi j).
That is, if
A
and
B
have the same dimensions, then we can add
A
and
B
and we do
so by adding their entries term by term:
Example 1. 2−1 4
0 3 6
+3 5 −6
2−4 10
=5 4 −2
2−1 16
The operations of scalar multiplication and matrix addition make the set of all
m×n
matrices a vector space over the set of real numbers. In this context, an
m×n
matrix is
called a vector and the real numbers are the scalars. A special case is the set of
1×n
matrices, which are more often called the set of vectors in
n
-dimensional space, or
Rn
:
(x
1x2... xn)
pf3
pf4
pf5

Partial preview of the text

Download Lecture Notes on Matrices - Linear Algebra | MATH 307 and more Study notes Linear Algebra in PDF only on Docsity!

MATH 307 Matrices

An m × n matrix A = (a (^) i j) is an array of mn numbers arranged into m rows and n

columns, where ai j is the entry in the i th row, j th column. The values m × n are called

the dimensions (or size ) of the matrix. If the dimensions are n × n , then A is called a square matrix.

A =

B =

 G^ =

A is a 2 × 3 matrix, a 12 = − 1 and a 23 = 6

B is a 3 × 4 matrix, b 32 = 3 and b 24 = − 3

G is a square matrix with dimensions 3 × 3

Scalar Multiplication

Let A = (a (^) i j) be an m × n matrix and let c be a real number. (Henceforth, an individual

real number will be called a scalar .) We define scalar multiplication to be the product of the scalar c with the matrix A given by

c A = (c a (^) i j).

That is, we simply multiply every entry in A by the value c. For A as given above, then

3 A = 3 ×

 =^

Matrix Addition

Let A = (a (^) i j) and B = (b (^) i j) both be m × n matrices. Then we define the sum A + B by

A + B = (c (^) i j), where c (^) i j = a (^) i j + b (^) i j or A + B = (a (^) i j + b (^) i j).

That is, if A and B have the same dimensions, then we can add A and B and we do so by adding their entries term by term:

Example 1.

 +^

 =^

The operations of scalar multiplication and matrix addition make the set of all m × n matrices a vector space over the set of real numbers. In this context, an m × n matrix is called a vector and the real numbers are the scalars. A special case is the set of 1 × n

matrices, which are more often called the set of vectors in n -dimensional space, or Rn^ :

(x 1 x 2... xn )

Properties of Scalar Multiplication

1. Closure : If A is m × n , then c A is also m × n for every scalar c. 2. Scalar Multiplicative Identity : 1 A = A for all m × n matrices A. 3. Associative : c(d A) = (c d )A for all scalars c and d and all m × n matrices A. 4. Scalar Distribution : c(A + B) = c A + c B for all scalars c and all m × n matrices A , B. 5. Matrix Distribution : (c + d) A = c A + d A for all scalars c , d and all m × n matrices A.

Properties of Matrix Addition

1. Closure : If A and B are m × n , then A + B is also m × n. 2. Commutative : A + B = B + A for all m × n matrices A and B. 3. Associative : A + (B + C) = (A + B) + C for all m × n matrices A , B, and C. 4. Additive Identity : A + 0 = A for all m × n matrices A , where 0 is the m × n Zero matrix that has a 0 for each entry. 5. Additive Inverse : −A is the scalar product (−1)A and A + (−A) = 0 for all m × n matrices A.

We define matrix subtraction by A − B = A + (−B) = (^) (a (^) i j − bi j) , which is done by

subtracting entries term by term.

Matrix Multiplication

Let A = (a (^) i j) be an m × n matrix, and let B = (b (^) i j) be an n × p matrix. Because the

number of columns in A equals the number of rows in B , we can define the matrix product AB (in that order) to be an m × p matrix given by

AB = C = (ci j ), where ci j = ai k k = 1

n

∑ bk j.

Example 2.

A =

2 × 3

B =

3 × 4

D =

4 × 2

AB BD DA

2 × 3 3 × 4

3 cols in A pair with 3 rows in B, so AB is defined and is 2 × 4

3 × 4 4 × 2

4 cols in B pair with 4 rows in D , so BD is defined and is 3 × 2

4 × 2 2 × 3

2 cols in D pair with 2 rows in A , so DA is defined and is 4 × 3

Note: With these matrices, BA , DB, and AD are not defined.

Identity Matrix

The n × n identity matrix, denoted In , is the n × n matrix with all 1’s down the main

diagonal and 0’s everywhere else: In = (ei j ), where ei i = 1 and ei j = 0 for i ≠ j.

I 2 =

 I^3 =

I 4 =

Theorem 1. Let A = (a (^) i j) be an m × n matrix. Then Im A = A and AI (^) n = A.

Proof. Because Im has m columns which equals the number of rows in A , the product

Im A is defined. Moreover, Im A is m × n (the number of rows in Im by the number of

columns in A ). So Im A has the same dimensions as A.

Now let ImA = C = (ci j ), where ci j = ei k k = 1

m

∑ ak j.

If k ≠ i , then e (^) i k = 0, and e (^) ii = 1; hence, c (^) i j simplifies to c (^) i j = e (^) ii a (^) i j = a (^) i j.

Because their entries are equal for all i , j , we have C = A.

Now consider AI (^) n , which is defined because A has n columns which equals the

number of rows in In. Moreover, AI (^) n is m × n which is the same size as A.

Now let A In = D = (di j ) , where di j = ai k k = 1

n

∑ ek j.

If k ≠ j , then e (^) k j = 0, and e (^) j j = 1; hence, d (^) i j simplifies to d (^) i j = a (^) i j e (^) j j = a (^) i j.

Because their entries are equal for all i , j , we have D = A.

Example 3. Let A =

 , which is^2 ×^3. Then^ I 2 A^ =^ A^ =^ AI^3. That is,

 ×^

 =^

 =^

 ×

2 × 2 2 × 3 2 × 3 2 × 3 3 × 3

Other Properties of Matrix Multiplication

1. Associative : A(BC) = (AB)C , whenever A is m × n , B is n × p, and C is p × q. 2. Distributive : A(B + C) = AB + AC whenever A is m × n and B, C are n × p. 3. Distributive : (A + B)C = AC + BC whenever A , B are m × n and C is n × p. 4. Scalar Associative : c(AB) = (cA)B = A(cB) for all scalars c whenever A is m × n , B is n × p.

Proof of 2. Let A = (a (^) i j) , B = (b (^) i j), and C = (^) (c (^) i j). Then B + C = (^) (b (^) i j + ci j) and

A(B + C) = D = (^) ( di j) , where

di j = ai k k = 1

n

∑ (bk j +^ ck j )^ =^ ai k

k = 1

n

∑ bk j +^ ai k ck j =^ ai k

k = 1

n

∑ bk j +^ ai k

k = 1

n

∑ ck j =^ fi j ,

where ( fi j ) = AB + AC.

Definition. A square matrix A = (a (^) i j) is called diagonal if ai j = 0 whenever i ≠ j.

Theorem 2. Let A = (a (^) i j) and B = (b (^) i j) both be diagonal n × n square matrices. Then

AB = BA = (c (^) i j) , where c (^) ii = a (^) ii × b (^) ii and c (^) i j = 0 for i ≠ j. That is, AB = BA and this

product is a diagonal matrix with its diagonal entries being the product of the diagonal entries in A and B.

Proof. Because A and B are both n × n , the products AB and BA are both defined and are n × n. Because A and B are diagonal, then a (^) i j = 0 and b (^) i j = 0 whenever i ≠ j.

Now let

AB = C = (ci j ), where ci j = ai k k = 1

n

∑ bk j.

Whenever k ≠ i , then a (^) i k = 0 ; hence, c (^) i j simplifies to c (^) i j = a (^) ii b (^) i j. Now if j ≠ i,

then b (^) i j = 0 and so c (^) i j = 0. If j = i, then c (^) ii = a (^) ii b (^) ii. An analogous argument shows

the result as well for the product BA.

Example 4. Let A =

 and^ B^ =

.^ Then^ AB^ =

 =^ BA^.

Note : Whenver A and B are both n × n , then the products AB and BA are both defined. However, it is generally the case that AB ≠ BA. (Create your own example with some 2 × 2 matrices!) So matrix multiplication is non-commutative.