You are on page 1of 29

What is the matrix?

Data sheets
Arrange information
Rows (i)
Columns (j)




Rectangular (also squared)
Row vector / column vector
B = b1, b2, b3,,bn


C= c1
c2

cn

Zero Matrix
Diagonal Matrix
All zeros except the diagonal
A11,a22,a33,,ann

10 0 0
0 20 0
0 0 -30

Principal or main matrix





Matrix multiplication
Whenever we want to multiply two matrix ,
the number of columns in the first matrix
should be the same as the number of rows in
the second matrix.

A B = AB
m x n n x p m x p

5 0 3
2 1 2
| |
|

\ .
2 4
1 1
3 2

| |
|

|
|

\ .
1 14
11 13

| |
|

\ .
=

4 5
1 7

| |
|
\ .
4 5
1 7

| |
|
\ .
1 0
0 1
| |
|
\ .
=
Identity Matrix






Matrix A times = A
1 0
0 1
| |
|
\ .
1 0
0 1
| |
|
\ .
How do we multiply scalar by
a matrix?
Example:
Matrix A = ( 7 3 -10 )
a= 5 b= -2

A*a = a*A = ?
A = ( 2 -1 3) B = 2
5
4

AB= ?
BA=?
Commutative?
A= B=


AB = ?
BA= ?
3 6
5 2
| |
|
\ .
2 3
1 5

| |
|
\ .
A= B=



AB= ?
BA= ?
2 6
5 1
| |
|
\ .
3 6
5 2
| |
|
\ .
Cameras Sale
Monterrey Guadalajara Tijuana Mexico City
Nikon 153 98 74 56
Canon 211 120 57 29
Olympus 82 31 12 5
Other 308 242 183 107
Nikon $1200 Canon $1100
Olympus $900 Other $700
Monterrey Guadalajara Tijuana Mexico City
Sales 674,300 422,700 272,100 167,800
Matrix inverse
A square matrix B is the inverse of a square
matrix A if AB = BA = I , where I is the identity
matrix.


B = A
-1
How to obtain the inverse
for a 2x2 squared Matrix
If and



and we know that AA
-1
= I, it means that
a b
A
c d
| |
=
|
\ .
1
e f
A
g h

| |
=
|
\ .
1 0
0 1
a b e f
c d g h
| || | | |
=
| | |
\ .\ . \ .

1 0
0 1
ae bg af bh
ce dg cf dh
+ +
| | | |
=
| |
+ +
\ . \ .
ae + bg =1
ce + dg = 0

af + bh = 0
cf + dh = 1
d
e
ad bc
=

c
g
ad bc

b
f
ad bc

a
h
ad bc
=


1
d b
ad bc ad bc
A
c a
ad bc ad bc

| |
|

=
|

|
|
\ .
1
1
d b
A
c a ad bc


| |
=
|

\ .
Determinant
Determinant = ab dc

If the Determinant = 0, the Matrix has no
inverse.
Examples

2
2 1
a
M
| |
=
|

\ .
2
) ? a M =
2
5 4
)
4 5
b M

| |
=
|

\ .
? a =
Examples

5 2
2 0
11 2
44 8
?
A
BA
B
| |
=
|
\ .
| |
=
|
\ .
=
1 3
4 12
B
| |
=
|
\ .
Systems of linear equations
2x+3y=3
x-y=4
2 3
1 1
| |
|

\ .
x
y
| |
|
\ .
3
4
| |
=
|
\ .
A X = C
X = A
-1
C
Exercise
6x 2y= 14
3x+4y=2
Example
It doesnt matter the size of the Matrix (but
must be squared).
Determinant for a 3x3 Matrix
det A = a( e i - f h ) b ( d i f g ) + c ( d h e g )
where
a b c
A d e f
g h i
| |
|
=
|
|
\ .
e.g.
5x+y-4z=5
2x-3y-5z=2
7x+2y-6z=5
5 1 4
2 3 5
7 2 6
A

| |
|
=
|
|

\ .
x
y
z
| |
|
|
|
\ .
5
2
5
| |
|
=
|
|
\ .
X = A
-1
C
Quiz #1
Remember there will be a short
quiz the next Thursday 16
th
.
HOMEWORK >:)
Research how to obtain the determinant
for a 3x3 Matrix, in other words, how do we
obtain
det A = a( e i - f h ) b ( d i f g ) + c ( d h e g ).
Just write it down, you dont have to hand it in.

You might also like