Docsity

Matrices, transposes, and inverses, Study notes of Linear Algebra

Toggle sidebar
bg1
Matrices, transposes, and inverses
Math 40, Introduction to Linear Algebra
Wednesday, February 1, 2012
�1−23
2 1 5�
4
3
2
=
4
dot product of �2
1
5�and �4
3
2�
=�4
21�
Matrix-vector multiplication: two views
�1−23
215�
4
3
2
=4�1
2�+3�−2
1�+2�3
5�
A
•1st perspective: A is linear combination of columns of A
�x
�x
•2nd perspective: A is computed as dot product of rows of A with vector
�x
�x
Notice that # of columns of A = # of rows of .
This is a requirement in order for matrix multiplication to be defined.
�x
A
�x
�1−23
215
�
4
3
2
=4�1
2�+3�−2
1�+2�3
5�=�4
21�
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Matrices, transposes, and inverses and more Study notes Linear Algebra in PDF only on Docsity!

Matrices, transposes, and inverses

Math 40, Introduction to Linear Algebra

Wednesday, February 1, 2012

dot product of

2 1 5

and

4 3 2

Matrix-vector multiplication: two views

A

  • (^) 1st perspective: A ￿xis linear combination of columns of A

￿x

  • (^) 2nd perspective: A ￿x is computed as dot product of rows of A with vector￿x

Notice that # of columns of A = # of rows of.

This is a requirement in order for matrix multiplication to be defined.

￿x

A ￿x

“inner” parameters must match

m x n n x p

Matrix multiplication

For m x n matrix A and n x p matrix B ,

the matrix product AB

is an m x p matrix.

“outer” parameters become parameters of matrix AB

What sizes of matrices can be multiplied together?

If A is a square matrix and k is a positive integer, we define

Ak^ = A · A · · · A

k factors

Properties of matrix multiplication

Most of the properties that we expect to hold for matrix multiplication do....

A(B + C) = AB + AC

(AB)C = A(BC)

k(AB) = (kA)B = A(kB) for scalar k

.... except commutativity!!

In general, AB ￿= BA.

Matrix transpose

A

T

A =

Example

Transpose operation can be viewed as flipping entries about the diagonal.

i.e., (A

T )ij = Aji ∀ i, j.

Definition The^ transpose^ of an^ m^ x^ n^ matrix^ A^ is the^ n^ x^ m^ matrix

AT^ obtained by interchanging rows and columns of A ,

Definition A square matrix A is symmetric if AT^ = A.

Properties of transpose

(1) (^) (A

T )

T = A

(2) (^) (A + B)

T = A

T

  • B

T

(3) (^) For a scalar c, (cA)

T

= cA

T

(4) (AB)

T = B

T A

T

To prove this, we show that

[(AB)T^ ]ij = .. . = [(BT^ AT^ )]ij

apply twice -- get back

to where you started

Exercise

Prove that for any matrix A , ATA is symmetric.

Special matrices

Definition A square matrix is^ upper-triangular

if all entries below main diagonal are zero. (^) A =

Definition A matrix with all zero entries is called

a zero matrix and is denoted 0.

A =

0 0 0 0 0 0 0 0 0 0 0 0

analogous definition for a lower-triangular matrix

Definition A square matrix whose off-diagonal

entries are all zero is called a diagonal matrix.

A =

  

− 38 0 0 0 0 − 2 0 0 0 0 − 4 0 0 0 0 1

  

Definition The identity matrix , denoted In , is the

n x n diagonal matrix with all ones on the diagonal.

I 3 =

Identity matrix

Definition The identity matrix , denoted In , is the

n x n diagonal matrix with all ones on the diagonal.

I 3 =

Important property

of identity matrix If A is an m x n matrix, then

ImA = A and AIn = A.

If A is a square matrix, then

IA = A = AI.

Matrix inverses

Definition A square matrix A is invertible (or nonsingular) if ∃ matrix

B such that AB = I and BA = I. (We say B is an inverse of A.)

Example

A =

￿ 2 7

1 4

￿

is invertible because for B =

￿ 4 − 7

− 1 2

￿

,

we have AB =

￿ 2 7

1 4

￿ ￿ 4 − 7

− 1 2

￿

=

￿ 1 0

0 1

￿

= I

and likewise BA =

￿ 4 − 7

− 1 2

￿ ￿ 2 7

1 4

￿

=

￿ 1 0

0 1

￿

= I.

The notion of an inverse matrix only applies to square matrices.

  • For rectangular matrices of full rank, there are one-sided inverses.
  • For matrices in general, there are pseudoinverses, which are a generalization to matrix inverses.

Example Find the inverse of A =

￿ 1 1

1 1

￿

. We have

￿ 1 1

1 1

￿ ￿ a b

c d

￿

=

￿ 1 0

0 1

￿

=⇒

￿ a + c b + d

a + c b + d

￿

=

￿ 1 0

0 1

￿

=⇒ a + c = 1 and a + c = 0 Impossible!

Therefore, A =

￿ 1 1

1 1

￿

is not invertible (or singular).

Take-home message: Not all square matrices are invertible.

Lecture 7 Math 40, Spring ’12, Prof. Kindred Page 1

Important questions:

  • When does a square matrix have an inverse?
  • If it does have an inverse, how do we compute it?
  • Can a matrix have more than one inverse?

Theorem. If A is invertible, then its inverse is unique.

Proof. Assume A is invertible. Suppose, by way of contradiction, that the

inverse of A is not unique, i.e., let B and C be two distinct inverses of A.

Then, by def’n of inverse, we have

BA = I = AB (1)

and CA = I = AC. (2)

It follows that

B = BI by def’n of identity matrix

= B(AC) by (2) above

= (BA)C by associativity of matrix mult.

= IC by (1) above

= C. by def’n of identity matrix

Thus, B = C, which contradicts the previous assumption that B ￿= C.

⇒⇐ So it must be that case that the inverse of A is unique. ￿

Take-home message:

The inverse of a matrix A is unique,

and we denote it A

− 1 .

Theorem (Properties of matrix inverse).

(a) If A is invertible, then A

− 1 is itself invertible and (A

− 1 )

− 1 = A.

Lecture 7 Math 40, Spring ’12, Prof. Kindred Page 2

Inverse of a 2 × 2 matrix: Consider the special case where A is a 2 × 2

matrix with A = [ a bc d ]. If ad − bc ￿= 0, then A is invertible and its inverse is

A

− 1

1

ad − bc

￿ d −b

−c a

￿

.

￿ Exercise: Check that AA

− 1 = [

1 0 0 1 ] =^ A^

− 1 A.

Example For A =

￿ − 2 1

3 − 3

￿

, we have

A

− 1

1

3

￿ − 3 − 1

− 3 − 2

￿

=

￿ − 1 −

1 3 − 1 −

2 3

￿

.

We can easily check that

AA

− 1

￿ − 2 1

3 − 3

￿ ￿ − 1 −

1 3 − 1 −

2 3

￿

=

￿ 1 0

0 1

￿

and

A

− 1 A =

￿ − 1 −

1 3 − 1 −

2 3

￿ ￿ − 2 1

3 − 3

￿

=

￿ 1 0

0 1

￿

.

How do we find inverses of matrices that are larger than 2 × 2 matrices?

Theorem. If some EROs reduce a square matrix A to the identity matrix

I, then the same EROs transform I to A

− 1 .

A I

I A

EROs -

If we can transform A into I, then we will obtain A

− 1

. If we cannot do so,

then A is not invertible.

Lecture 7 Math 40, Spring ’12, Prof. Kindred Page 4

Example: Find the inverse of the matrix A =

￿ − 1 −3 1 3 6 0 1 0 1

￿

.

− 1 −3 1 1 0 0

3 6 0 0 1 0

1 0 1 0 0 1

R 2 +3R (^1) −−−−→ R 3 +R (^1)

− 1 −3 1 1 0 0

0 −3 3 3 1 0

0 −3 2 1 0 1

−R (^1) −−−−→ R 3 −R (^2)

1 3 − 1 − 1 0 0

0 − 3 3 3 1 0

0 0 − 1 − 2 −1 1

R 1 +R (^2) −−−−→ −R (^3)

1 0 2 2 1 0

0 −3 3 3 1 0

0 0 1 2 1 − 1

− 13 R (^2) −−−→

1 0 2 2 1 0

0 1 − 1 − 1 −

1 3

0

0 0 1 2 1 − 1

R 1 − 2 R (^3) −−−−→ R 2 +R (^3)

1 0 0 − 2 − 1 2

0 1 0 1

2 3

− 1

0 0 1 2 1 − 1

Thus, A is invertible and its inverse is

A

− 1

− 2 − 1 2

1

2 3

− 1

2 1 − 1

 (^).

Why does this work? =⇒ discussion next class

Lecture 7 Math 40, Spring ’12, Prof. Kindred Page 5