Professional Documents
Culture Documents
1st perspective: A
x is linear combination of columns of A
44
11
22 33 11 22
33 4
33 == 44 + 33
+ + 22
+ =
22 11 55 22 11 55 21
22
A
x
2nd perspective: A
x is computed as dot product of rows of A with vector x
4 4
1 2 3 4
3 = 2 4 =
2 1 5 dot product of 1 and 3 21
2 5 2
A
x
Notice that # of columns of A = # of rows of x.
This is a requirement in order for matrix multiplication to be defined.
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
In general, AB = BA.
Matrix multiplication not commutative
Problems with hoping AB and BA are equal:
In general,
BA may not be well-defined. AB = BA.
(e.g., A is 2 x 3 matrix, B is 3 x 5 matrix)
Even if AB and BA are both defined and of the same size, they
still may not be equal.
1 1 1 2 2 4 3 3 1 2 1 1
= = =
1 1 1 2 2 4 3 3 1 2 1 1
Truth or fiction?
No!! (A B)(A + B) = A2 + AB BA B 2
=0
Example
1 5
1 3 5 2 3 3
A= AT =
5 3 2 1 5 2
Transpose operation can be viewed as 2 1
flipping entries about the diagonal.
Properties of transpose
apply twice -- get back
(1) (AT )T = A to where you started
(2) (A + B)T = AT + B T
(4) (AB)T = B T AT
To prove this, we show that
[(AB)T ]ij =
Exercise ..
.
Prove that for any matrix A, ATA is symmetric.
= [(B T AT )]ij
Special matrices
Definition A matrix with all zero entries is called 0 0 0 0
A = 0 0 0 0
a zero matrix and is denoted 0.
0 0 0 0
Definition The identity matrix, denoted In, is the
1 0 0
I3 = 0 1 0
n x n diagonal matrix with all ones on the diagonal.
0 0 1
Identity matrix
Definition The identity matrix, denoted In, is the
1 0 0
I3 = 0 1 0
n x n diagonal matrix with all ones on the diagonal.
0 0 1
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.
TheThe notion
inverse
The of aofof
inverse inverse
matrix
a matrix
Exploration Lets think
Lets about inverses first in theincontext of real num-num-
Exploration
Exploration Consider theabout
think set ofinverses
real numbers,
first andcontext
the say that we have
of real
bers. Say we have equation
the
bers.equation
Say we have equation
3x = 3x23x =
=2
2
and weand
wantwetowant to solve
solve for
x. for x. so, multiply both sides by What1
todo we do?
and we want to for
solve To x.
do To do so, multiply both sides3 by 1obtain
3 to obtain
We multiply both 1 sides 1 of1 the 1equation by 12 to obtain
(3x) =(3x)(2)= (2) = = x = 3x. = 2 .
3 13 3 31 3 3 2
For R, For
1 (3x) = (2) of =
1 =
x1 (3)
1. = .1.
3 isR,
the13 multiplicative 3 inverseinverse
is the multiplicative 3of 3 since 3 (3) =
3 since 3
multiplicative inverse 3
1
of 3 since (3) = 1
Now consider 3 following
the
Now consider systemsystem
the following of of NoticeNotice that that
we can we rewrite
can rewrite thesethese
The Now,
equationsinverse
equations
The consider
inverse ofthea linear
matrix
of a system
matrix Notice
equations as weascan rewrite equations as
equations
that
Exploration 3x 3x
5x
Lets 2 Lets think about inverses first5
= 5x
6
think =
about6 inverses first 3
in the 3 5 x xof1 real 6 num-6
1
Exploration 1 2
incontext
the 1context
= =of real num-
bers. Say we
2x have+2x3xequation
+= 3x
1 = 1 2 2
3 3x2 x2 1 1
bers. Say 1 we have 1
2 2
equation
3x = 3x 2 =2 A A x x b b
which we which
wantwetowant solve tofor
solvex for
and x x and
. x .
Howfordox.we 1 isolate 2 the vector x bysides
itselfby on1 LHS?
1 2
and weand want wetowant solveto solve for To x. doTo so,do multiply both
so, multiply both sides 3 byto 1obtain
x 1
x1 3 to obtain
How
How do we isolate do we isolate
1 the 1vector the vector
1 x1= x by x = by
itself
2 on itselfthe LHS?LHS?
on the
(3x) =(3x)(2)= (2) = 2 = x 2
x = x. = . 2
3 3 3 3 3 3 3
1 2 5
For R, Multiply
Multiply 1
For
3 is the
R,
both both
1sides
is theofsides
multiplicative
matrixof matrix
multiplicativeinverse
equation equation
of
inverse 3
by since
of by
3
3
2 3
5
3 (3)
since = (3): = 1.
1 1.
: 3
3
3
Example
2 7 4 7
A= is invertible because for B = ,
1 4 1 2
2 7 4 7 1 0
we have AB = = =I
1 4 1 2 0 1
4 7 2 7 1 0
and likewise BA = = = I.
1 2 1 4 0 1
- For matrices in general, there are pseudoinverses, which are a generalization to matrix inverses.
1 1
Example Find the inverse of A = . We have
1 1
1 1 a b 1 0 a+c b+d 1 0
= = =
1 1 c d 0 1 a+c b+d 0 1
= a + c = 1 and a + c = 0 Impossible!
1 1
Therefore, A = is not invertible (or singular).
1 1
To prove (d), we need to show that there is some matrix such that
AT = I and AT = I.
1 3 1 1 0 0 1 3 1 1 0 0
R2 +3R1
3 6 0 0 1 0 0 3 3 3 1 0
R3 +R1
1 0 1 0 0 1 0 3 2 1 0 1
1 3 1 1 0 0
R1
0 3 3 3 1 0
R3 R2
0 0 1 2 1 1
1 0 2 2 1 0
R +R2
1 0 3 3 3 1 0
R3
0 0 1 2 1 1
1 0 2 2 1 0
13 R2
0 1 1 1 13 0
0 0 1 2 1 1
1 0 0 2 1 2
R1 2R3
0 1 0 1 23 1
R2 +R3
0 0 1 2 1 1
Thus, A is invertible and its inverse is
2 1 2
A1 = 1 23 1 .
2 1 1