SlideShare una empresa de Scribd logo
1 de 96
Matrix Algebra
http://www.lahc.edu/math/precalculus/math_260a.html
Matrix Algebra
Matrices are used for other applications besides for
solving systems of equations.
Matrix Algebra
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Algebra
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrix Algebra
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrices are rectangular tables of numbers.
Matrix Algebra
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrices are rectangular tables of numbers.
A matrix with R rows and C columns is said to be
a size R x C matrix.
Matrix Algebra
* * * *
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrices are rectangular tables of numbers.
A matrix with R rows and C columns is said to be
a size R x C matrix.
* * * *
* * * *
is a 3 x 4 matrix.
Matrix Algebra
* * * *
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrices are rectangular tables of numbers.
A matrix with R rows and C columns is said to be
a size R x C matrix.
* * * *
* * * *
is a 3 x 4 matrix.
* * * is 1 x 3
Matrix Algebra
* * * *
Matrices are used for other applications besides for
solving systems of equations. For these general
applications, we have to develop matrix algebra.
Matrix Notation
Matrices are rectangular tables of numbers.
A matrix with R rows and C columns is said to be
a size R x C matrix.
* * * *
* * * *
is a 3 x 4 matrix.
* * * is 1 x 3 and
*
*
*
is 3 x 1.
Matrix Algebra
We denote the i'th row as Ri and the j'th column as Cj.
Matrix Algebra
* * * *
* * * *
* * * *
Hence R3 means the 3rd row
We denote the i'th row as Ri and the j'th column as Cj.
R3
Matrix Algebra
* * * *
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix.
R3
C2
We denote the i'th row as Ri and the j'th column as Cj.
Matrix Algebra
* * * *
We denote the i'th row as Ri and the j'th column as Cj.
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix. C2
The entry at the 3rd row, 2nd column is denoted as a32.
a32
R3
Matrix Algebra
* * * *
We denote the i'th row as Ri and the j'th column as Cj.
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix. C2
The entry at the 3rd row, 2nd column is denoted as a32.
a32
R3
* * * *
* * * *
* * * *
C2a32
R3
StageThe numbering system is
the same as the seating
chart in a theatre.
So a32 means
“3rd row 2nd seat”.
Matrix Algebra
* * * *
We denote the i'th row as Ri and the j'th column as Cj.
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix. C2
The entry at the 3rd row, 2nd column is denoted as a32.
a32
a11 a12 a13 . . . a1C
a21 a22 a23 . . . a2C
. . . . aij . .
. . . . . . .
aR1 aR2 aR3 . . . aRC R x C
So, the general form
of an R x C matrix is:
R3
Matrix Algebra
* * * *
We denote the i'th row as Ri and the j'th column as Cj.
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix. C2
The entry at the 3rd row, 2nd column is denoted as a32.
In general, the entry at the i'th row and j'th column is
denoted as aij.
a32
a11 a12 a13 . . . a1C
a21 a22 a23 . . . a2C
. . . . aij . .
. . . . . . .
aR1 aR2 aR3 . . . aRC R x C
So, the general form
of a R x C matrix is:
R3
Matrix Algebra
* * * *
We denote the i'th row as Ri and the j'th column as Cj.
* * * *
* * * *
Hence R3 means the 3rd row and C2 means the 2nd
column of the matrix. C2
The entry at the 3rd row, 2nd column is denoted as a32.
In general, the entry at the i'th row and j'th column is
denoted as aij.
a32
a11 a12 a13 . . . a1C
a21 a22 a23 . . . a2C
. . . . aij . .
. . . . . . .
aR1 aR2 aR3 . . . aRC R x C
i'th row
j'th column
So, the general form
of a R x C matrix is:
R3
Matrix Operations
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
Matrix Operations
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
0
4
2
4
3
5
–2
1
–1
–
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
0
4
2
4
3
5
–2
1
–1
– =
–1
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
0
4
2
4
3
5
–2
1
–1
– =
–1 2
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
0
4
2
4
3
5
–2
1
–1
– =
–1
–5
–6
2
3
3
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
3 –2 –1
–4 0 2
0
4
2
4
3
5
–2
1
–1
– =
–1
–5
–6
2
3
3
+
–1
–5
–6
2
3
3
is undefined.
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
3 –2 –1
–4 0 2
0
4
2
4
3
5
–2
1
–1
– =
–1
–5
–6
2
3
3
+
–1
–5
–6
2
3
3
is undefined.
There are two types of multiplications with matrices.
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
3 –2 –1
–4 0 2
0
4
2
4
3
5
–2
1
–1
– =
–1
–5
–6
2
3
3
+
–1
–5
–6
2
3
3
is undefined.
There are two types of multiplications with matrices.
The first one is to multiply a matrix A by a constant k,
i.e. multiplying each entry by k.
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
Matrix Operations
3
–2
–1
3 –2 –1
–4 0 2
0
4
2
4
3
5
–2
1
–1
– =
–1
–5
–6
2
3
3
+
–1
–5
–6
2
3
3
is undefined.
There are two types of multiplications with matrices.
The first one is to multiply a matrix A by a constant k,
i.e. multiplying each entry by k.
This is called scalar multiplication.
Two matrices are the same if all the corresponding
entries are the same (so they must be the same size).
We add/subtract same size matrices entry by entry.
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
3 =
–3
–15
–18
6
9
9
Matrix Operations
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
3 =
–3
–15
–18
6
9
9
The 2nd type is matrix multiplication.
Matrix Multiplication
Matrix Operations
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
When we multiply two matrices, we don't multiply
matrices entry by entry as in addition.
3 =
–3
–15
–18
6
9
9
The 2nd type is matrix multiplication.
Matrix Multiplication
Matrix Operations
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
When we multiply two matrices, we don't multiply
matrices entry by entry as in addition.
The simplest case of matrix multiplication is:
(row) * (column) = a number
3 =
–3
–15
–18
6
9
9
The 2nd type is matrix multiplication.
Matrix Multiplication
Matrix Operations
where the row and the column
have the same number of entries,
1x1
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
When we multiply two matrices, we don't multiply
matrices entry by entry as in addition.
The simplest case of matrix multiplication is:
(row) * (column) = a number
3 =
–3
–15
–18
6
9
9
The 2nd type is matrix multiplication.
Matrix Multiplication
Matrix Operations
where the row and the column
have the same number of entries,
i.e. the row has size 1xN and the column has size Nx1.
1xN Nx1 1x1
For example, we define
scalar multiplication:
–1
–5
–6
2
3
3
When we multiply two matrices, we don't multiply
matrices entry by entry as in addition.
The simplest case of matrix multiplication is:
(row) * (column) = a number
3 =
–3
–15
–18
6
9
9
The 2nd type is matrix multiplication.
Matrix Multiplication
Matrix Operations
where the row and the column
have the same number of entries,
i.e. the row has size 1xN and the column has size Nx1.
1xN Nx1
* * . . *
*
*
*
.
.
Looks like this:
= #
1x1
Example A:
Matrix Operations
3 –2 –1
2
3
3
Here is a 1×3 matrix times a 3×1 matrix.
Example A:
Matrix Operations
Here is a 1×3 matrix times a 3×1 matrix.
3 –2 –1
2
3
3
= (3)(2)
multiply the corresponding entries
Example A:
Matrix Operations
Here is a 1×3 matrix times a 3×1 matrix.
3 –2 –1
2
3
3
= (3)(2) (–2)(3)
multiply the corresponding entries
Example A:
Matrix Operations
Here is a 1×3 matrix times a 3×1 matrix.
3 –2 –1
2
3
3
= (3)(2) (–2)(3) (–1)(3)
multiply the corresponding entries
Example A:
Matrix Operations
Here is a 1×3 matrix times a 3×1 matrix.
3 –2 –1
2
3
3
= (3)(2) + (–2)(3) + (–1)(3) = –3
multiply the corresponding entries
then add the products
Example A:
Matrix Operations
3 –2 –1
2
3
3
= (3)(2) + (–2)(3) + (–1)(3) = –3
where as 3 –2 –12 3 is undefined.
multiply the corresponding entries
then add the products
Here is a 1×3 matrix times a 3×1 matrix.
Example A:
Matrix Operations
3 –2 –1
2
3
3
= (3)(2) + (–2)(3) + (–1)(3) = –3
where as 3 –2 –12 3 is undefined.
multiply the corresponding entries
then add the products
Here is a 1×3 matrix times a 3×1 matrix.
Let's emphasize it again, the multiplication should be
* * * *
****
Example A:
Matrix Operations
3 –2 –1
2
3
3
= (3)(2) + (–2)(3) + (–1)(3) = –3
where as 3 –2 –12 3 is undefined.
multiply the corresponding entries
then add the products
Here is a 1×3 matrix times a 3×1 matrix.
Let's emphasize it again, the multiplication should be
* * * *
****
* * *
****or as we´ll
see later.
Example A:
Matrix Operations
3 –2 –1
2
3
3
= (3)(2) + (–2)(3) + (–1)(3) = –3
where as 3 –2 –12 3 is undefined.
multiply the corresponding entries
then add the products
Here is a 1×3 matrix times a 3×1 matrix.
Let's emphasize it again, the multiplication should be
* * * *
****
****
* * * * * * *
* * *
****
****
or as we´ll
see later.
That is, the number of columns
on the left must equal the
number of rows on the right.
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
3 –2 –1
2
3
3
1
2
–1
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
3 –2 –1
2
3
3
1
2
–1
=
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
=
(3)(2)+(–2)(3)+(–1)(3)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
=
(3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
=
(3)(2)+(–2)(3)+(–1)(3)
(0)(2)+(3)(3)+(–2)(3)
(3)(1)+(–2)(2)+(–1)(–1)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
=
(3)(2)+(–2)(3)+(–1)(3)
(0)(2)+(3)(3)+(–2)(3)
(3)(1)+(–2)(2)+(–1)(–1)
(0)(1)+(3)(2)+(–2)(–1)
Example B:
Matrix Operations
Next, we multiply a row to multiple columns,
to get a row of numbers.
Two-row times two-column yields a 2x2 matrix.
3 –2 –1
2
3
3
1
2
–1
= (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
–3 0=
Example C:
3 –2 –1 2
3
3
0 3 –2
1
2
–1
=
(3)(2)+(–2)(3)+(–1)(3)
(0)(2)+(3)(3)+(–2)(3)
(3)(1)+(–2)(2)+(–1)(–1)
(0)(1)+(3)(2)+(–2)(–1)
=
–3 0
0 8
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
ai1 ai2 ai3 . . . aiK
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
A x B =
i'th row of A
R x K
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
and B be a K x N matrix with entries denoted as b's,
ai1 ai2 ai3 . . . aiK
b1j
b2j
b3j
.
bkj
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
......
x
......
......
......
A x B =
i'th row of A
j'th column of B
R x K
K x N
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
and B be a K x N matrix with entries denoted as b's,
then the product C = A x B has size R x N
ai1 ai2 ai3 . . . aiK
b1j
b2j
b3j
.
bkj
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
......
x
......
......
......
A x B =
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . cij . . . .=
i'th row of A
j'th column of B
R x K
K x N
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
and B be a K x N matrix with entries denoted as b's,
then the product C = A x B has size R x N where
cij = (i'th row of A) x (j'th column of B)
ai1 ai2 ai3 . . . aiK
b1j
b2j
b3j
.
bkj
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
......
x
......
......
......
A x B =
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . cij . . . .=
i'th row of A
j'th column of B
R x K
K x N
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
and B be a K x N matrix with entries denoted as b's,
then the product C = A x B has size R x N where
cij = (i'th row of A) x (j'th column of B)
cij = ai1b1j + ai2b2j + … + aikbkj.
ai1 ai2 ai3 . . . aiK
b1j
b2j
b3j
.
bkj
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
......
x
......
......
......
A x B =
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . cij . . . .= cij = ai1b1j + ai2b2j + … +aikbkj
i'th row of A
j'th column of B
R x K
K x N
General Matrix Multiplication
Let A be an R x K matrix with entries denoted as a's
and B be a K x N matrix with entries denoted as b's,
then the product C = A x B has size R x N where
cij = (i'th row of A) x (j'th column of B)
cij = ai1b1j + ai2b2j + … + aikbkj.
ai1 ai2 ai3 . . . aiK
b1j
b2j
b3j
.
bkj
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
......
x
......
......
......
A x B =
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . cij . . . .= cij = ai1b1j + ai2b2j + … +aikbkj
i'th row of A
j'th column of B
R x K
K x N
R x N
Note the product matrix has size
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
different lengths
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A
BA =
0 2
–1 4
3 –1 –2
2 4 0
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A
BA =
0 2
–1 4
3 –1 –2
2 4 0
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A to get the 1st row of the product.
BA =
0 2
–1 4
3 –1 –2
2 4 0
=
0+4
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A to get the 1st row of the product.
BA =
0 2
–1 4
3 –1 –2
2 4 0
=
0+4 0+8 0+0
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A to get the 1st row of the product.
Then use the 2nd row of B and repeat the process to
get the 2nd row of the product, then the process stops.
BA =
0 2
–1 4
3 –1 –2
2 4 0
=
0+4 0+8 0+0
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A to get the 1st row of the product.
Then use the 2nd row of B and repeat the process to
get the 2nd row of the product, then the process stops.
BA =
0 2
–1 4
3 –1 –2
2 4 0
=
0+4 0+8 0+0
–3+8 1+16 2+0
Example D: Let A = and B = ,
Matrix Operations
0 23 –1 –2
2 4 0 –1 4
find AB and BA if it's possible.
AB = 3 –1 –2
2 4 0
0 2
–1 4 is undefined due to their sizes.
To multiply BA =
0 2
–1 4
3 –1 –2
2 4 0
start with the 1st row of B, multiply it in order against
each column of A to get the 1st row of the product.
Then use the 2nd row of B and repeat the process to
get the 2nd row of the product, then the process stops.
BA =
0 2
–1 4
3 –1 –2
2 4 0
=
0+4 0+8 0+0
–3+8 1+16 2+0
=
5 17 2
4 8 0
Matrix Operations
Square matrices are size n x n matrices.
Matrix Operations
Square matrices are size n x n matrices.
is a 2 x 2 square matrix.
0 2
–1 4
Matrix Operations
Square matrices are size n x n matrices.
is a 2 x 2 square matrix.
The n x n square matrices
1 0 0 . . 0
0 1 0 . . .
0 0 1 . . .
. . . . . .
0 0 . . . 1
. . . . . .
with 1's in the diagonal and 0's elsewhere are called
the n x n identity matrices and are denoted as In.
0 2
–1 4
Matrix Operations
Square matrices are size n x n matrices.
is a 2 x 2 square matrix.
The n x n square matrices
1 0 0 . . 0
0 1 0 . . .
0 0 1 . . .
. . . . . .
0 0 . . . 1
. . . . . .
with 1's in the diagonal and 0's elsewhere are called
the n x n identity matrices and are denoted as In.
Hence
I2 = 1 0
0 1
0 2
–1 4
Matrix Operations
Square matrices are size n x n matrices.
0 2
–1 4 is a 2 x 2 square matrix.
The n x n square matrices
1 0 0 . . 0
0 1 0 . . .
0 0 1 . . .
. . . . . .
0 0 . . . 1
. . . . . .
with 1's in the diagonal and 0's elsewhere are called
the n x n identity matrices and are denoted as In.
Hence
I2 = 1 0
0 1
and I3 =
1 0 0
0 1 0
0 0 1
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A.
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
So In plays the role of 1 in multiplication of matrices.
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
The n x n square matrices of the form:
are called the scalar matrices.
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
So In plays the role of 1 in multiplication of matrices.
k 0 .. 0 0
0 k 0 .. 0
0 0 0 .. k
. . . . . . .
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
The n x n square matrices of the form:
are called the scalar matrices.
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
,
3 0
0 3
–1 0 0
0 –1 0
0 0 –1
are scalar matrices.
So In plays the role of 1 in multiplication of matrices.
k 0 .. 0 0
0 k 0 .. 0
0 0 0 .. k
. . . . . . .
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
The n x n square matrices of the form:
are called the scalar matrices.
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
,
3 0
0 3
–1 0 0
0 –1 0
0 0 –1
are scalar matrices.
One checks easily that multiplying a matrix A by a
scalar matrix is the same as multiplying by the scalar.
So In plays the role of 1 in multiplication of matrices.
k 0 .. 0 0
0 k 0 .. 0
0 0 0 .. k
. . . . . . .
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
The n x n square matrices of the form:
are called the scalar matrices.
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
,
3 0
0 3
–1 0 0
0 –1 0
0 0 –1
are scalar matrices.
One checks easily that multiplying a matrix A by a
scalar matrix is the same as multiplying by the scalar.
3 0
0 3
a b
c d =
a b
c d
3 0
0 3 =
3a 3b
3c 3d
a b
c d3 =
So In plays the role of 1 in multiplication of matrices.
k 0 .. 0 0
0 k 0 .. 0
0 0 0 .. k
. . . . . . .
Matrix Operations
Fact: Let A be a n x n matrix and I be the n x n
identity matrix then I A = A I = A. For example,
0 2
–1 4
The n x n square matrices of the form:
are called the scalar matrices.
1 0
0 1 =
1 0
0 1
0 2
–1 4 =
0 2
–1 4
,
3 0
0 3
–1 0 0
0 –1 0
0 0 –1
are scalar matrices.
One checks easily that multiplying a matrix A by a
scalar matrix is the same as multiplying by the scalar.
3 0
0 3
a b
c d =
a b
c d
3 0
0 3 =
3a 3b
3c 3d
a b
c d3 =
Scalar matrices act like constants for multiplication.
So In plays the role of 1 in multiplication of matrices.
k 0 .. 0 0
0 k 0 .. 0
0 0 0 .. k
. . . . . . .
Matrix Operations
Basic Laws of Matrix Algebra
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Reminder: AB ≠ BA (in general)
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Reminder: AB ≠ BA (in general)
Note that because for matrices that AB ≠ BA,
most of the algebra formulas fail
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Reminder: AB ≠ BA (in general)
Note that because for matrices that AB ≠ BA,
most of the algebra formulas fail so that
(A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2,
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Reminder: AB ≠ BA (in general)
Note that because for matrices that AB ≠ BA,
most of the algebra formulas fail so that
(A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2, specifically
(A + B)2 = A2 + AB + BA + B2, (A – B)2 = A2 – AB – BA + B2,
Matrix Operations
Basic Laws of Matrix Algebra
Let A, B, and C be nxn square matrices
and k be a number, then
Associative Law
(AB)C = A(BC)
Distributive Laws
k(A ±B) = kA ± kB
C(A ±B) = CA ± CB
(A ±B)C = AC ± BC
Reminder: AB ≠ BA (in general)
Note that because for matrices that AB ≠ BA,
most of the algebra formulas fail so that
(A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2, specifically
(A + B)2 = A2 + AB + BA + B2, (A – B)2 = A2 – AB – BA + B2,
(A + B)(A – B) = A2 + BA – AB + B2, (A – B) A + B)= A2 – BA + AB + B2
Matrix Operations
Here is a why the way matrix multiplication is defined.
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
2 3
A B
10
20
$A = apple,
B = banana
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
Their matrix product $80 represents the total cost.
2 3
A B
10
20
$A = apple,
B = banana = 80
costs $
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
Their matrix product $80 represents the total cost.
Suppose Tuesday the prices change,
the apple cost $15/lb and the banana is $12/lb,
we track this with a new column for the price–matrix.
2 3
A B
10
20
$A = apple,
B = banana = 80
costs $
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
Their matrix product $80 represents the total cost.
Suppose Tuesday the prices change,
the apple cost $15/lb and the banana is $12/lb,
we track this with a new column for the price–matrix.
2 3
A B
10
20
$A = apple,
B = banana = 80 2 3
10
20
12
15
$A Bcosts $
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
Their matrix product $80 represents the total cost.
Suppose Tuesday the prices change,
the apple cost $15/lb and the banana is $12/lb,
we track this with a new column for the price–matrix.
Then the matrix product reflects the costs for each day.
2 3
A B
10
20
$A = apple,
B = banana = 80 2 3
10
20
12
15
$
= 80 66
A Bcosts $ costs $
Matrix Operations
Here is a why the way matrix multiplication is defined.
Suppose on Monday John buys
2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
We put the fruit list in a row and
the costs in a column as shown below.
Their matrix product $80 represents the total cost.
Suppose Tuesday the prices change,
the apple cost $15/lb and the banana is $12/lb,
we track this with a new column for the price–matrix.
Then the matrix product reflects the costs for each day.
Hence defining matrix multiplication in this manner
is useful in manipulating tables of data.
2 3
A B
10
20
$A = apple,
B = banana = 80 2 3
10
20
12
15
$
= 80 66
A Bcosts $ costs $

Más contenido relacionado

La actualidad más candente

23 looking for real roots of real polynomials x
23 looking for real roots of real polynomials x23 looking for real roots of real polynomials x
23 looking for real roots of real polynomials xmath260
 
8 inequalities and sign charts x
8 inequalities and sign charts x8 inequalities and sign charts x
8 inequalities and sign charts xmath260
 
12 graphs of second degree functions x
12 graphs of second degree functions x12 graphs of second degree functions x
12 graphs of second degree functions xmath260
 
18 ellipses x
18 ellipses x18 ellipses x
18 ellipses xmath260
 
10 rectangular coordinate system x
10 rectangular coordinate system x10 rectangular coordinate system x
10 rectangular coordinate system xmath260
 
28 more on log and exponential equations x
28 more on log and exponential equations x28 more on log and exponential equations x
28 more on log and exponential equations xmath260
 
14 graphs of factorable rational functions x
14 graphs of factorable rational functions x14 graphs of factorable rational functions x
14 graphs of factorable rational functions xmath260
 
21 properties of division and roots x
21 properties of division and roots x21 properties of division and roots x
21 properties of division and roots xmath260
 
10.5 more on language of functions x
10.5 more on language of functions x10.5 more on language of functions x
10.5 more on language of functions xmath260
 
11 graphs of first degree functions x
11 graphs of first degree functions x11 graphs of first degree functions x
11 graphs of first degree functions xmath260
 
26 the logarithm functions x
26 the logarithm functions x26 the logarithm functions x
26 the logarithm functions xmath260
 
25 continuous compound interests perta x
25 continuous compound interests perta  x25 continuous compound interests perta  x
25 continuous compound interests perta xmath260
 
1.1 review on algebra 1
1.1 review on algebra 11.1 review on algebra 1
1.1 review on algebra 1math265
 
9 the basic language of functions x
9 the basic language of functions x9 the basic language of functions x
9 the basic language of functions xmath260
 
27 calculation with log and exp x
27 calculation with log and exp x27 calculation with log and exp x
27 calculation with log and exp xmath260
 
22 the fundamental theorem of algebra x
22 the fundamental theorem of algebra x22 the fundamental theorem of algebra x
22 the fundamental theorem of algebra xmath260
 
29 inverse functions x
29 inverse functions  x29 inverse functions  x
29 inverse functions xmath260
 
22 infinite series send-x
22 infinite series send-x22 infinite series send-x
22 infinite series send-xmath266
 
19 more parabolas a& hyperbolas (optional) x
19 more parabolas a& hyperbolas (optional) x19 more parabolas a& hyperbolas (optional) x
19 more parabolas a& hyperbolas (optional) xmath260
 
19 trig substitutions-x
19 trig substitutions-x19 trig substitutions-x
19 trig substitutions-xmath266
 

La actualidad más candente (20)

23 looking for real roots of real polynomials x
23 looking for real roots of real polynomials x23 looking for real roots of real polynomials x
23 looking for real roots of real polynomials x
 
8 inequalities and sign charts x
8 inequalities and sign charts x8 inequalities and sign charts x
8 inequalities and sign charts x
 
12 graphs of second degree functions x
12 graphs of second degree functions x12 graphs of second degree functions x
12 graphs of second degree functions x
 
18 ellipses x
18 ellipses x18 ellipses x
18 ellipses x
 
10 rectangular coordinate system x
10 rectangular coordinate system x10 rectangular coordinate system x
10 rectangular coordinate system x
 
28 more on log and exponential equations x
28 more on log and exponential equations x28 more on log and exponential equations x
28 more on log and exponential equations x
 
14 graphs of factorable rational functions x
14 graphs of factorable rational functions x14 graphs of factorable rational functions x
14 graphs of factorable rational functions x
 
21 properties of division and roots x
21 properties of division and roots x21 properties of division and roots x
21 properties of division and roots x
 
10.5 more on language of functions x
10.5 more on language of functions x10.5 more on language of functions x
10.5 more on language of functions x
 
11 graphs of first degree functions x
11 graphs of first degree functions x11 graphs of first degree functions x
11 graphs of first degree functions x
 
26 the logarithm functions x
26 the logarithm functions x26 the logarithm functions x
26 the logarithm functions x
 
25 continuous compound interests perta x
25 continuous compound interests perta  x25 continuous compound interests perta  x
25 continuous compound interests perta x
 
1.1 review on algebra 1
1.1 review on algebra 11.1 review on algebra 1
1.1 review on algebra 1
 
9 the basic language of functions x
9 the basic language of functions x9 the basic language of functions x
9 the basic language of functions x
 
27 calculation with log and exp x
27 calculation with log and exp x27 calculation with log and exp x
27 calculation with log and exp x
 
22 the fundamental theorem of algebra x
22 the fundamental theorem of algebra x22 the fundamental theorem of algebra x
22 the fundamental theorem of algebra x
 
29 inverse functions x
29 inverse functions  x29 inverse functions  x
29 inverse functions x
 
22 infinite series send-x
22 infinite series send-x22 infinite series send-x
22 infinite series send-x
 
19 more parabolas a& hyperbolas (optional) x
19 more parabolas a& hyperbolas (optional) x19 more parabolas a& hyperbolas (optional) x
19 more parabolas a& hyperbolas (optional) x
 
19 trig substitutions-x
19 trig substitutions-x19 trig substitutions-x
19 trig substitutions-x
 

Similar a 6.3 matrix algebra

36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptxmath260
 
Matrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIAMatrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIADheeraj Kataria
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantssom allul
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMohammad Imran
 
Matrices
MatricesMatrices
Matriceskja29
 
Matrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessMatrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessKhan Tanjeel Ahmed
 
83 matrix notation
83 matrix notation83 matrix notation
83 matrix notationmath126
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES, INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES, AMIR HASSAN
 
Brief review on matrix Algebra for mathematical economics
Brief review on matrix Algebra for mathematical economicsBrief review on matrix Algebra for mathematical economics
Brief review on matrix Algebra for mathematical economicsfelekephiliphos3
 
ALLIED MATHEMATICS -I UNIT III MATRICES.ppt
ALLIED MATHEMATICS -I UNIT III MATRICES.pptALLIED MATHEMATICS -I UNIT III MATRICES.ppt
ALLIED MATHEMATICS -I UNIT III MATRICES.pptssuser2e348b
 
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANK
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANKMatrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANK
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANKWaqas Afzal
 
1 linear algebra matrices
1 linear algebra matrices1 linear algebra matrices
1 linear algebra matricesAmanSaeed11
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 

Similar a 6.3 matrix algebra (20)

36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx
 
Matrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIAMatrix presentation By DHEERAJ KATARIA
Matrix presentation By DHEERAJ KATARIA
 
matricesMrtices
matricesMrticesmatricesMrtices
matricesMrtices
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Ses 2 matrix opt
Ses 2 matrix optSes 2 matrix opt
Ses 2 matrix opt
 
Matrix and its applications by mohammad imran
Matrix and its applications by mohammad imranMatrix and its applications by mohammad imran
Matrix and its applications by mohammad imran
 
Matrices
MatricesMatrices
Matrices
 
Matrices
MatricesMatrices
Matrices
 
Section-7.4-PC.ppt
Section-7.4-PC.pptSection-7.4-PC.ppt
Section-7.4-PC.ppt
 
Matrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for BusinessMatrix Algebra : Mathematics for Business
Matrix Algebra : Mathematics for Business
 
83 matrix notation
83 matrix notation83 matrix notation
83 matrix notation
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES, INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
 
Brief review on matrix Algebra for mathematical economics
Brief review on matrix Algebra for mathematical economicsBrief review on matrix Algebra for mathematical economics
Brief review on matrix Algebra for mathematical economics
 
ALLIED MATHEMATICS -I UNIT III MATRICES.ppt
ALLIED MATHEMATICS -I UNIT III MATRICES.pptALLIED MATHEMATICS -I UNIT III MATRICES.ppt
ALLIED MATHEMATICS -I UNIT III MATRICES.ppt
 
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANK
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANKMatrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANK
Matrices ,Basics, Determinant, Inverse, EigenValues, Linear Equations, RANK
 
1 linear algebra matrices
1 linear algebra matrices1 linear algebra matrices
1 linear algebra matrices
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 

Más de math260

35 Special Cases System of Linear Equations-x.pptx
35 Special Cases System of Linear Equations-x.pptx35 Special Cases System of Linear Equations-x.pptx
35 Special Cases System of Linear Equations-x.pptxmath260
 
18Ellipses-x.pptx
18Ellipses-x.pptx18Ellipses-x.pptx
18Ellipses-x.pptxmath260
 
1 exponents yz
1 exponents yz1 exponents yz
1 exponents yzmath260
 
7 sign charts of factorable formulas y
7 sign charts of factorable formulas y7 sign charts of factorable formulas y
7 sign charts of factorable formulas ymath260
 
17 conic sections circles-x
17 conic sections circles-x17 conic sections circles-x
17 conic sections circles-xmath260
 
11 graphs of first degree functions x
11 graphs of first degree functions x11 graphs of first degree functions x
11 graphs of first degree functions xmath260
 
9 the basic language of functions x
9 the basic language of functions x9 the basic language of functions x
9 the basic language of functions xmath260
 

Más de math260 (7)

35 Special Cases System of Linear Equations-x.pptx
35 Special Cases System of Linear Equations-x.pptx35 Special Cases System of Linear Equations-x.pptx
35 Special Cases System of Linear Equations-x.pptx
 
18Ellipses-x.pptx
18Ellipses-x.pptx18Ellipses-x.pptx
18Ellipses-x.pptx
 
1 exponents yz
1 exponents yz1 exponents yz
1 exponents yz
 
7 sign charts of factorable formulas y
7 sign charts of factorable formulas y7 sign charts of factorable formulas y
7 sign charts of factorable formulas y
 
17 conic sections circles-x
17 conic sections circles-x17 conic sections circles-x
17 conic sections circles-x
 
11 graphs of first degree functions x
11 graphs of first degree functions x11 graphs of first degree functions x
11 graphs of first degree functions x
 
9 the basic language of functions x
9 the basic language of functions x9 the basic language of functions x
9 the basic language of functions x
 

Último

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

6.3 matrix algebra

  • 2. Matrix Algebra Matrices are used for other applications besides for solving systems of equations.
  • 3. Matrix Algebra Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra.
  • 4. Matrix Algebra Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation
  • 5. Matrix Algebra Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation Matrices are rectangular tables of numbers.
  • 6. Matrix Algebra Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation Matrices are rectangular tables of numbers. A matrix with R rows and C columns is said to be a size R x C matrix.
  • 7. Matrix Algebra * * * * Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation Matrices are rectangular tables of numbers. A matrix with R rows and C columns is said to be a size R x C matrix. * * * * * * * * is a 3 x 4 matrix.
  • 8. Matrix Algebra * * * * Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation Matrices are rectangular tables of numbers. A matrix with R rows and C columns is said to be a size R x C matrix. * * * * * * * * is a 3 x 4 matrix. * * * is 1 x 3
  • 9. Matrix Algebra * * * * Matrices are used for other applications besides for solving systems of equations. For these general applications, we have to develop matrix algebra. Matrix Notation Matrices are rectangular tables of numbers. A matrix with R rows and C columns is said to be a size R x C matrix. * * * * * * * * is a 3 x 4 matrix. * * * is 1 x 3 and * * * is 3 x 1.
  • 10. Matrix Algebra We denote the i'th row as Ri and the j'th column as Cj.
  • 11. Matrix Algebra * * * * * * * * * * * * Hence R3 means the 3rd row We denote the i'th row as Ri and the j'th column as Cj. R3
  • 12. Matrix Algebra * * * * * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. R3 C2 We denote the i'th row as Ri and the j'th column as Cj.
  • 13. Matrix Algebra * * * * We denote the i'th row as Ri and the j'th column as Cj. * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. C2 The entry at the 3rd row, 2nd column is denoted as a32. a32 R3
  • 14. Matrix Algebra * * * * We denote the i'th row as Ri and the j'th column as Cj. * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. C2 The entry at the 3rd row, 2nd column is denoted as a32. a32 R3 * * * * * * * * * * * * C2a32 R3 StageThe numbering system is the same as the seating chart in a theatre. So a32 means “3rd row 2nd seat”.
  • 15. Matrix Algebra * * * * We denote the i'th row as Ri and the j'th column as Cj. * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. C2 The entry at the 3rd row, 2nd column is denoted as a32. a32 a11 a12 a13 . . . a1C a21 a22 a23 . . . a2C . . . . aij . . . . . . . . . aR1 aR2 aR3 . . . aRC R x C So, the general form of an R x C matrix is: R3
  • 16. Matrix Algebra * * * * We denote the i'th row as Ri and the j'th column as Cj. * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. C2 The entry at the 3rd row, 2nd column is denoted as a32. In general, the entry at the i'th row and j'th column is denoted as aij. a32 a11 a12 a13 . . . a1C a21 a22 a23 . . . a2C . . . . aij . . . . . . . . . aR1 aR2 aR3 . . . aRC R x C So, the general form of a R x C matrix is: R3
  • 17. Matrix Algebra * * * * We denote the i'th row as Ri and the j'th column as Cj. * * * * * * * * Hence R3 means the 3rd row and C2 means the 2nd column of the matrix. C2 The entry at the 3rd row, 2nd column is denoted as a32. In general, the entry at the i'th row and j'th column is denoted as aij. a32 a11 a12 a13 . . . a1C a21 a22 a23 . . . a2C . . . . aij . . . . . . . . . aR1 aR2 aR3 . . . aRC R x C i'th row j'th column So, the general form of a R x C matrix is: R3
  • 18. Matrix Operations Two matrices are the same if all the corresponding entries are the same (so they must be the same size).
  • 19. Matrix Operations Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 20. Matrix Operations 3 –2 –1 0 4 2 4 3 5 –2 1 –1 – Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 21. Matrix Operations 3 –2 –1 0 4 2 4 3 5 –2 1 –1 – = –1 Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 22. Matrix Operations 3 –2 –1 0 4 2 4 3 5 –2 1 –1 – = –1 2 Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 23. Matrix Operations 3 –2 –1 0 4 2 4 3 5 –2 1 –1 – = –1 –5 –6 2 3 3 Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 24. Matrix Operations 3 –2 –1 3 –2 –1 –4 0 2 0 4 2 4 3 5 –2 1 –1 – = –1 –5 –6 2 3 3 + –1 –5 –6 2 3 3 is undefined. Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 25. Matrix Operations 3 –2 –1 3 –2 –1 –4 0 2 0 4 2 4 3 5 –2 1 –1 – = –1 –5 –6 2 3 3 + –1 –5 –6 2 3 3 is undefined. There are two types of multiplications with matrices. Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 26. Matrix Operations 3 –2 –1 3 –2 –1 –4 0 2 0 4 2 4 3 5 –2 1 –1 – = –1 –5 –6 2 3 3 + –1 –5 –6 2 3 3 is undefined. There are two types of multiplications with matrices. The first one is to multiply a matrix A by a constant k, i.e. multiplying each entry by k. Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 27. Matrix Operations 3 –2 –1 3 –2 –1 –4 0 2 0 4 2 4 3 5 –2 1 –1 – = –1 –5 –6 2 3 3 + –1 –5 –6 2 3 3 is undefined. There are two types of multiplications with matrices. The first one is to multiply a matrix A by a constant k, i.e. multiplying each entry by k. This is called scalar multiplication. Two matrices are the same if all the corresponding entries are the same (so they must be the same size). We add/subtract same size matrices entry by entry.
  • 28. For example, we define scalar multiplication: –1 –5 –6 2 3 3 3 = –3 –15 –18 6 9 9 Matrix Operations
  • 29. For example, we define scalar multiplication: –1 –5 –6 2 3 3 3 = –3 –15 –18 6 9 9 The 2nd type is matrix multiplication. Matrix Multiplication Matrix Operations
  • 30. For example, we define scalar multiplication: –1 –5 –6 2 3 3 When we multiply two matrices, we don't multiply matrices entry by entry as in addition. 3 = –3 –15 –18 6 9 9 The 2nd type is matrix multiplication. Matrix Multiplication Matrix Operations
  • 31. For example, we define scalar multiplication: –1 –5 –6 2 3 3 When we multiply two matrices, we don't multiply matrices entry by entry as in addition. The simplest case of matrix multiplication is: (row) * (column) = a number 3 = –3 –15 –18 6 9 9 The 2nd type is matrix multiplication. Matrix Multiplication Matrix Operations where the row and the column have the same number of entries, 1x1
  • 32. For example, we define scalar multiplication: –1 –5 –6 2 3 3 When we multiply two matrices, we don't multiply matrices entry by entry as in addition. The simplest case of matrix multiplication is: (row) * (column) = a number 3 = –3 –15 –18 6 9 9 The 2nd type is matrix multiplication. Matrix Multiplication Matrix Operations where the row and the column have the same number of entries, i.e. the row has size 1xN and the column has size Nx1. 1xN Nx1 1x1
  • 33. For example, we define scalar multiplication: –1 –5 –6 2 3 3 When we multiply two matrices, we don't multiply matrices entry by entry as in addition. The simplest case of matrix multiplication is: (row) * (column) = a number 3 = –3 –15 –18 6 9 9 The 2nd type is matrix multiplication. Matrix Multiplication Matrix Operations where the row and the column have the same number of entries, i.e. the row has size 1xN and the column has size Nx1. 1xN Nx1 * * . . * * * * . . Looks like this: = # 1x1
  • 34. Example A: Matrix Operations 3 –2 –1 2 3 3 Here is a 1×3 matrix times a 3×1 matrix.
  • 35. Example A: Matrix Operations Here is a 1×3 matrix times a 3×1 matrix. 3 –2 –1 2 3 3 = (3)(2) multiply the corresponding entries
  • 36. Example A: Matrix Operations Here is a 1×3 matrix times a 3×1 matrix. 3 –2 –1 2 3 3 = (3)(2) (–2)(3) multiply the corresponding entries
  • 37. Example A: Matrix Operations Here is a 1×3 matrix times a 3×1 matrix. 3 –2 –1 2 3 3 = (3)(2) (–2)(3) (–1)(3) multiply the corresponding entries
  • 38. Example A: Matrix Operations Here is a 1×3 matrix times a 3×1 matrix. 3 –2 –1 2 3 3 = (3)(2) + (–2)(3) + (–1)(3) = –3 multiply the corresponding entries then add the products
  • 39. Example A: Matrix Operations 3 –2 –1 2 3 3 = (3)(2) + (–2)(3) + (–1)(3) = –3 where as 3 –2 –12 3 is undefined. multiply the corresponding entries then add the products Here is a 1×3 matrix times a 3×1 matrix.
  • 40. Example A: Matrix Operations 3 –2 –1 2 3 3 = (3)(2) + (–2)(3) + (–1)(3) = –3 where as 3 –2 –12 3 is undefined. multiply the corresponding entries then add the products Here is a 1×3 matrix times a 3×1 matrix. Let's emphasize it again, the multiplication should be * * * * ****
  • 41. Example A: Matrix Operations 3 –2 –1 2 3 3 = (3)(2) + (–2)(3) + (–1)(3) = –3 where as 3 –2 –12 3 is undefined. multiply the corresponding entries then add the products Here is a 1×3 matrix times a 3×1 matrix. Let's emphasize it again, the multiplication should be * * * * **** * * * ****or as we´ll see later.
  • 42. Example A: Matrix Operations 3 –2 –1 2 3 3 = (3)(2) + (–2)(3) + (–1)(3) = –3 where as 3 –2 –12 3 is undefined. multiply the corresponding entries then add the products Here is a 1×3 matrix times a 3×1 matrix. Let's emphasize it again, the multiplication should be * * * * **** **** * * * * * * * * * * **** **** or as we´ll see later. That is, the number of columns on the left must equal the number of rows on the right.
  • 43. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. 3 –2 –1 2 3 3 1 2 –1
  • 44. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. 3 –2 –1 2 3 3 1 2 –1 =
  • 45. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3)
  • 46. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
  • 47. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0=
  • 48. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1
  • 49. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3)
  • 50. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1)
  • 51. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (0)(2)+(3)(3)+(–2)(3) (3)(1)+(–2)(2)+(–1)(–1)
  • 52. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (0)(2)+(3)(3)+(–2)(3) (3)(1)+(–2)(2)+(–1)(–1) (0)(1)+(3)(2)+(–2)(–1)
  • 53. Example B: Matrix Operations Next, we multiply a row to multiple columns, to get a row of numbers. Two-row times two-column yields a 2x2 matrix. 3 –2 –1 2 3 3 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (3)(1)+(–2)(2)+(–1)(–1) –3 0= Example C: 3 –2 –1 2 3 3 0 3 –2 1 2 –1 = (3)(2)+(–2)(3)+(–1)(3) (0)(2)+(3)(3)+(–2)(3) (3)(1)+(–2)(2)+(–1)(–1) (0)(1)+(3)(2)+(–2)(–1) = –3 0 0 8
  • 54. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's ai1 ai2 ai3 . . . aiK . . . . . . . . . . . . . . . . . . . . . . . . . . . . A x B = i'th row of A R x K
  • 55. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's and B be a K x N matrix with entries denoted as b's, ai1 ai2 ai3 . . . aiK b1j b2j b3j . bkj . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... x ...... ...... ...... A x B = i'th row of A j'th column of B R x K K x N
  • 56. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's and B be a K x N matrix with entries denoted as b's, then the product C = A x B has size R x N ai1 ai2 ai3 . . . aiK b1j b2j b3j . bkj . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... x ...... ...... ...... A x B = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . cij . . . .= i'th row of A j'th column of B R x K K x N
  • 57. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's and B be a K x N matrix with entries denoted as b's, then the product C = A x B has size R x N where cij = (i'th row of A) x (j'th column of B) ai1 ai2 ai3 . . . aiK b1j b2j b3j . bkj . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... x ...... ...... ...... A x B = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . cij . . . .= i'th row of A j'th column of B R x K K x N
  • 58. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's and B be a K x N matrix with entries denoted as b's, then the product C = A x B has size R x N where cij = (i'th row of A) x (j'th column of B) cij = ai1b1j + ai2b2j + … + aikbkj. ai1 ai2 ai3 . . . aiK b1j b2j b3j . bkj . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... x ...... ...... ...... A x B = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . cij . . . .= cij = ai1b1j + ai2b2j + … +aikbkj i'th row of A j'th column of B R x K K x N
  • 59. General Matrix Multiplication Let A be an R x K matrix with entries denoted as a's and B be a K x N matrix with entries denoted as b's, then the product C = A x B has size R x N where cij = (i'th row of A) x (j'th column of B) cij = ai1b1j + ai2b2j + … + aikbkj. ai1 ai2 ai3 . . . aiK b1j b2j b3j . bkj . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... x ...... ...... ...... A x B = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . cij . . . .= cij = ai1b1j + ai2b2j + … +aikbkj i'th row of A j'th column of B R x K K x N R x N Note the product matrix has size
  • 60. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible.
  • 61. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. different lengths
  • 62. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A BA = 0 2 –1 4 3 –1 –2 2 4 0
  • 63. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A BA = 0 2 –1 4 3 –1 –2 2 4 0
  • 64. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A to get the 1st row of the product. BA = 0 2 –1 4 3 –1 –2 2 4 0 = 0+4
  • 65. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A to get the 1st row of the product. BA = 0 2 –1 4 3 –1 –2 2 4 0 = 0+4 0+8 0+0
  • 66. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A to get the 1st row of the product. Then use the 2nd row of B and repeat the process to get the 2nd row of the product, then the process stops. BA = 0 2 –1 4 3 –1 –2 2 4 0 = 0+4 0+8 0+0
  • 67. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A to get the 1st row of the product. Then use the 2nd row of B and repeat the process to get the 2nd row of the product, then the process stops. BA = 0 2 –1 4 3 –1 –2 2 4 0 = 0+4 0+8 0+0 –3+8 1+16 2+0
  • 68. Example D: Let A = and B = , Matrix Operations 0 23 –1 –2 2 4 0 –1 4 find AB and BA if it's possible. AB = 3 –1 –2 2 4 0 0 2 –1 4 is undefined due to their sizes. To multiply BA = 0 2 –1 4 3 –1 –2 2 4 0 start with the 1st row of B, multiply it in order against each column of A to get the 1st row of the product. Then use the 2nd row of B and repeat the process to get the 2nd row of the product, then the process stops. BA = 0 2 –1 4 3 –1 –2 2 4 0 = 0+4 0+8 0+0 –3+8 1+16 2+0 = 5 17 2 4 8 0
  • 69. Matrix Operations Square matrices are size n x n matrices.
  • 70. Matrix Operations Square matrices are size n x n matrices. is a 2 x 2 square matrix. 0 2 –1 4
  • 71. Matrix Operations Square matrices are size n x n matrices. is a 2 x 2 square matrix. The n x n square matrices 1 0 0 . . 0 0 1 0 . . . 0 0 1 . . . . . . . . . 0 0 . . . 1 . . . . . . with 1's in the diagonal and 0's elsewhere are called the n x n identity matrices and are denoted as In. 0 2 –1 4
  • 72. Matrix Operations Square matrices are size n x n matrices. is a 2 x 2 square matrix. The n x n square matrices 1 0 0 . . 0 0 1 0 . . . 0 0 1 . . . . . . . . . 0 0 . . . 1 . . . . . . with 1's in the diagonal and 0's elsewhere are called the n x n identity matrices and are denoted as In. Hence I2 = 1 0 0 1 0 2 –1 4
  • 73. Matrix Operations Square matrices are size n x n matrices. 0 2 –1 4 is a 2 x 2 square matrix. The n x n square matrices 1 0 0 . . 0 0 1 0 . . . 0 0 1 . . . . . . . . . 0 0 . . . 1 . . . . . . with 1's in the diagonal and 0's elsewhere are called the n x n identity matrices and are denoted as In. Hence I2 = 1 0 0 1 and I3 = 1 0 0 0 1 0 0 0 1
  • 74. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A.
  • 75. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4
  • 76. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 So In plays the role of 1 in multiplication of matrices.
  • 77. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 The n x n square matrices of the form: are called the scalar matrices. 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 So In plays the role of 1 in multiplication of matrices. k 0 .. 0 0 0 k 0 .. 0 0 0 0 .. k . . . . . . .
  • 78. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 The n x n square matrices of the form: are called the scalar matrices. 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 , 3 0 0 3 –1 0 0 0 –1 0 0 0 –1 are scalar matrices. So In plays the role of 1 in multiplication of matrices. k 0 .. 0 0 0 k 0 .. 0 0 0 0 .. k . . . . . . .
  • 79. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 The n x n square matrices of the form: are called the scalar matrices. 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 , 3 0 0 3 –1 0 0 0 –1 0 0 0 –1 are scalar matrices. One checks easily that multiplying a matrix A by a scalar matrix is the same as multiplying by the scalar. So In plays the role of 1 in multiplication of matrices. k 0 .. 0 0 0 k 0 .. 0 0 0 0 .. k . . . . . . .
  • 80. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 The n x n square matrices of the form: are called the scalar matrices. 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 , 3 0 0 3 –1 0 0 0 –1 0 0 0 –1 are scalar matrices. One checks easily that multiplying a matrix A by a scalar matrix is the same as multiplying by the scalar. 3 0 0 3 a b c d = a b c d 3 0 0 3 = 3a 3b 3c 3d a b c d3 = So In plays the role of 1 in multiplication of matrices. k 0 .. 0 0 0 k 0 .. 0 0 0 0 .. k . . . . . . .
  • 81. Matrix Operations Fact: Let A be a n x n matrix and I be the n x n identity matrix then I A = A I = A. For example, 0 2 –1 4 The n x n square matrices of the form: are called the scalar matrices. 1 0 0 1 = 1 0 0 1 0 2 –1 4 = 0 2 –1 4 , 3 0 0 3 –1 0 0 0 –1 0 0 0 –1 are scalar matrices. One checks easily that multiplying a matrix A by a scalar matrix is the same as multiplying by the scalar. 3 0 0 3 a b c d = a b c d 3 0 0 3 = 3a 3b 3c 3d a b c d3 = Scalar matrices act like constants for multiplication. So In plays the role of 1 in multiplication of matrices. k 0 .. 0 0 0 k 0 .. 0 0 0 0 .. k . . . . . . .
  • 82. Matrix Operations Basic Laws of Matrix Algebra
  • 83. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC
  • 84. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC Reminder: AB ≠ BA (in general)
  • 85. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC Reminder: AB ≠ BA (in general) Note that because for matrices that AB ≠ BA, most of the algebra formulas fail
  • 86. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC Reminder: AB ≠ BA (in general) Note that because for matrices that AB ≠ BA, most of the algebra formulas fail so that (A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2,
  • 87. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC Reminder: AB ≠ BA (in general) Note that because for matrices that AB ≠ BA, most of the algebra formulas fail so that (A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2, specifically (A + B)2 = A2 + AB + BA + B2, (A – B)2 = A2 – AB – BA + B2,
  • 88. Matrix Operations Basic Laws of Matrix Algebra Let A, B, and C be nxn square matrices and k be a number, then Associative Law (AB)C = A(BC) Distributive Laws k(A ±B) = kA ± kB C(A ±B) = CA ± CB (A ±B)C = AC ± BC Reminder: AB ≠ BA (in general) Note that because for matrices that AB ≠ BA, most of the algebra formulas fail so that (A ± B)2 ≠ A2 ± 2AB + B2, (A + B)(A – B) ≠ A2 – B2, specifically (A + B)2 = A2 + AB + BA + B2, (A – B)2 = A2 – AB – BA + B2, (A + B)(A – B) = A2 + BA – AB + B2, (A – B) A + B)= A2 – BA + AB + B2
  • 89. Matrix Operations Here is a why the way matrix multiplication is defined.
  • 90. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb.
  • 91. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. 2 3 A B 10 20 $A = apple, B = banana
  • 92. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. Their matrix product $80 represents the total cost. 2 3 A B 10 20 $A = apple, B = banana = 80 costs $
  • 93. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. Their matrix product $80 represents the total cost. Suppose Tuesday the prices change, the apple cost $15/lb and the banana is $12/lb, we track this with a new column for the price–matrix. 2 3 A B 10 20 $A = apple, B = banana = 80 costs $
  • 94. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. Their matrix product $80 represents the total cost. Suppose Tuesday the prices change, the apple cost $15/lb and the banana is $12/lb, we track this with a new column for the price–matrix. 2 3 A B 10 20 $A = apple, B = banana = 80 2 3 10 20 12 15 $A Bcosts $
  • 95. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. Their matrix product $80 represents the total cost. Suppose Tuesday the prices change, the apple cost $15/lb and the banana is $12/lb, we track this with a new column for the price–matrix. Then the matrix product reflects the costs for each day. 2 3 A B 10 20 $A = apple, B = banana = 80 2 3 10 20 12 15 $ = 80 66 A Bcosts $ costs $
  • 96. Matrix Operations Here is a why the way matrix multiplication is defined. Suppose on Monday John buys 2 lb of apples at $10/lb, and 3 lb of banana at $20/lb. We put the fruit list in a row and the costs in a column as shown below. Their matrix product $80 represents the total cost. Suppose Tuesday the prices change, the apple cost $15/lb and the banana is $12/lb, we track this with a new column for the price–matrix. Then the matrix product reflects the costs for each day. Hence defining matrix multiplication in this manner is useful in manipulating tables of data. 2 3 A B 10 20 $A = apple, B = banana = 80 2 3 10 20 12 15 $ = 80 66 A Bcosts $ costs $