Matrix Explained With Animation
Matrix Explained With Animation
8/5/2009 [email protected] 1
Matrices
• A Matrix (Matrices- • Example
Plural ) is a rectangular • A company manufactures
arrangement of sofas and chairs in three
numbers enclosed in models A,B,C. The
company manufactures 10
brackets. model A sofas, 12 model B
sofas , 5 model C sofas,
15 model A chairs, 20
model B chairs, 8 model C
chairs in August.
• Each number inside the
• How to organise ?
matrix is called an
element
• Sofas 10mod-A 12 mod-B 5
• A matrix is referred to mod C
by a capital letter • Chairs 15 mod-A 20 mod-B
8 mod C
A=
8/5/2009 • M=
[email protected] 2
Matrices - Quiz
• What is the order of the
following matrices?
• Row matrix
• 1. 2 by • Matrix having one row
2
• Column matrix
• Matrix having one
• 2. 3 by 3
Column
• 3. 1 by 3
• 4. 4 by 1 • Equal matrices
• Matrices should have same
order
• And
• Corresponding pairs of
8/5/2009 elements should be equal
[email protected] 3
Addition of Matrices
Rule
• Only matrices with
same order can be
added or
subtracted
• Example
• A= B=
• Find the sum of A
&B
• A+B =
8/5/2009 [email protected] 4
Subtraction of Matrices
Rule
• Only matrices with
same order can be
added or
subtracted
• Example
• A= B=
• Subtract A from B
• A-B =
8/5/2009 [email protected] 5
Addition & Subtraction of
Matrices- Quiz
• Example
• A= B=
• Subtract A from B
8/5/2009 [email protected] 6
Multiplication of Matrices
The result
matrix will
Rule :Number of
Columns of A
• Example have as many should be equal
rows as A and to number of
• A= B= as many rows of B
8/5/2009 [email protected] 8
The result Rule :Number of
matrix will Columns of A
Matrix Multiplication- Quiz have as many
rows as A and
should be equal
to number of
as many rows of B
columns as B
• Which of the • What is the order of the
following matrices resultant matrix of the
following multiplication
can be multiplied
• A is 4x2 B is 2x4
• A is 2x2 B is 2x2 • AxB = 4x2 matrix
• A is 3x2 B is 2x3 • A is 5x5 B is 2x5
• A is 4x5 B is 5x2 • AxB = not possible
• A is 3x7 B is 7x4
• A is 7x3 B is 2x7
• AxB = 3x7 matrix
• A is 4x2 B is 3x4 • A is 9x8 B is 8x4
• A is 432x231 B is • AxB = 9x8 matrix
231x4 • A is 800x 999 B is 999x4
• AxB = 800x999 matrix
8/5/2009 [email protected] 9
Inverse of a Matrix
1.Determinant of a
Matrix • Determinant of 3x3
matrix
Determinant of a matrix A is A
written as |A| =
• Determinant of 2x2 |A | =
A
= matrix
|A | =
|A | = a11*a22 – a12*a21
|A | =a1
1
-a1
2
+a1
3
Determinant of the Matrix
Minor of the Matrix
Cofactor of the Matrix
Adjoint of the Matrix
8/5/2009 [email protected] 10
Determinant of a Matrix -
8/5/2009 [email protected] 11
1. Determinant of the
Inverse of a Matrix 2.
3.
Matrix
Minor of the Matrix
Cofactor of the Matrix
4. Adjoint of the Matrix
• 2.Minor of a • 3.Cofactor of a
Matrix Matrix
• A minor of an element aij • Cofactor is a minor with
sign
is denoted by Mij is a sub- • It is written as Cij = (-1)
determinant of |A| i+jM
obtained by eleminating ij
Inverse of a Matrix 2.
3.
Matrix
Minor of the Matrix
Cofactor of the Matrix
4. Adjoint of the Matrix
M11
=
M12
=
8/5/2009 [email protected] 13
1. Determinant of the
Inverse of a Matrix 2.
3.
Matrix
Minor of the Matrix
Cofactor of the Matrix
4. Adjoint of the Matrix
• C11 = (-1)1+1M11
• (-1) 2M
= 11
• =
• C12 = (-1)1+2M12
• (-1) 3M
= 12
8/5/2009 [email protected] 14
Inverse of a Matrix
1. Determinant of the
Matrix
2. Minor of the Matrix
3. Cofactor of the Matrix
4. Adjoint of the Matrix
4.Transpose of the
Matrix
Transpose of a matrix A is
denoted by AT
A=
AT =
8/5/2009 [email protected] 15
1. Determinant of the
Inverse of a 2.
3.
Matrix
Minor of the Matrix
Cofactor of the Matrix
4. Adjoint of the Matrix
• 4.Adjoint of a
Matrix • Step-2: Substitute
• A matrix obtained by Cofactors in A
replacing its elements with
their corresponding
cofactors
A is called Adjoint Adj.(A) =
=
matrix. Noted as Adj.(A)
Step-1: Find the
Cofactors of A
Cofactor of (-1)1+1 * Minor
8= of 81+1 4
Cofactor of (-1)
8=
Cofactor of 4*
8 =
Cofactor of (-1)1+2 * Minor
2 =
Cofactor of -of 2
2=
Cofactor of 6(-1)2+1 * Minor
6 =
Cofactor of of
- 6
6=
Cofactor of 4
(-1)2+2 * Minor
48/5/2009
= of 4
Cofactor of 8 [email protected] 16
1. Determinant of the
Inverse of a 2.
3.
Matrix
Minor of the Matrix
Cofactor of the Matrix