Beruflich Dokumente
Kultur Dokumente
Matrix Operation
2.0 ALGEBRA * Matrix Notation
* Addition and Subtraction
2.4 MATRIX AND DETERMINANT * Multiplication by a Constant
* Multiplication of Matrices
Determinants
* Determinant of 2 x 2 & 3 x 3 matrices
Solving Simultaneous Equations
* Cramers rule 2 x 2 & 3 x 3 matrices
1
Matrix Notation Addition of Matrices
The element inside a matrix is usually denoted using Corresponding elements in two matrices may be added
double subscript notation aij where i is the row and j to form a single matrix.
is the column containing the element aij as illustrated
below:
a b w x (a + w) (b + x )
a11 = 1, a12 = 5, a13 = 3 c d + y z = (c + y ) (d + z )
1 5 3
A=
6 0 4 a21 = 6, a22 = 0, a23 = 4
read as a
sub one two
2
Addition of Matrices Addition of Matrices
Example 2: Add the matrices 3 1 4 2 7 5
4 3 1 + 2 1 0
3 1 4 2 7 5
4 3 1 and 2 1 0 1 4 3 6 3 4
3+ 2 1 + 7 4 + (5)
1 4 3 6 3 4
= 4 + (2) 3 + 1 1+ 0
1 + 6 4+3 3 + 4
5 8 9
= 2 4 1
7 7 1
3
Subtraction of Matrices Subtraction of Matrices
Example 2: Subtract 3 1 4 2 7 5
4 3 1 2 1 0
2 7 5 3 1 4 1 4 3 6 3 4
2 1 0 from 4 3 1
3 2 1 7 4 ( 5)
6 3 4 1 4 3
= 4 ( 2 ) 3 1 1 0
1 6 43 3 4
1 6 1
= 6 2 1
5 1 7
4
Addition and Subtraction of
Matrices Transpose of a matrix
The rows and columns are interchanged:
1 1 1 0 - the first row becomes the first column
A+ B C =
0 0 2 4 - the second row becomes the second column
11 1 0 - the third becomes the third column and so on.
=
0 ( 2) 0 ( 4 )
1 2 3 1 4 7
2 1 If A = 4 then AT = 2 8
= 5 6 5
2 4
3 9
7 9
8 6
5
Multiplication of a Matrix by a
constant Multiplication of Matrices
Hence, 2 A 3B + 4C When a matrix A is multiplied by another matrix B, a
single matrix results in which elements are obtained from
6 0 6 3 4 0 the sum of the products of the corresponding rows of A
= +
14 8 21 12 8 16 and the corresponding columns of B.
66+4 0 ( 3) + 0 b1
=
14 ( 21) + ( 8) 8 12 + ( 16 ) b
... an ] = [a1b1 + a2b2 + ... + anbn ]
2
[a1 a2
8 3
= b
27 36 n
1xn nx1 1x1
6
Multiplication of Matrices Multiplication of Matrices
Example 1
must be the same (3 = 3)
2 3 5 7
if A = and B = find A B
1 4 3 4
23 3 1
A is 2 x 2, B is 2 x 2, and so A x B is 2 x 2
Order of product (2 x 1)
(2 ( 5)) + (3 ( 3)) = 19
7
Multiplication of Matrices Multiplication of Matrices
Example 2: Simplify
3 4 0 2 (3 2 ) + (4 5) + (0 ( 1))
2 6 3 5 = ( 2 2) + (6 5) + ( 3 ( 1))
3 4 0 2
2 6 3 5 7 4 1 1 (7 2) + ( 4 5) + (1 ( 1))
7 4 1 1 26
= 29
(3 by 3) x (3 by 1) = (3 by 1) 7
8
Multiplication of Matrices Multiplication of Matrices
Example 4: Determine
26 39
= 29 5
1 0 3 2 2 0
2 1 2 1 3 2
7 18
1 3 1 3 2 0
(3 by 3) x (3 by 3) = (3 by 3)
9
Multiplication of Matrices Multiplication of Matrices
Further Problems
1
The matrices A to K are: 3 6
2 3.1 2.4 6.4
E = 5 23 7 F = 1.6 3.8 1.9
1 2
3 1
A= B = 21 33 1 0 5 5.3 3.4 4.8
4 7 3 5 3
4 7 6 4 1 0
1.3 7.4 34 2
0 G = 2 H = J = 11 K = 0 1
C= D = 2 4 5
2 .5 3 . 9 1 5 7 1 0
5 7 4
The Determinant of a 2 by 2
Multiplication of Matrices Matrix
a b
Perform the matrix operation stated. The determinant of a 2 by 2 matrix is defined as
c d
1. A + B 2. D + E (ad bc ) .
3. A B 4. A + B C
The elements of the determinant of a matrix are written
5. 5 A + 6 B 6. 2 D + 3E 4 F
3 4
between vertical lines. Thus, the determinant of
6
7. A H 8. A B
1
9. A C 10. D J
3 4
11. E K 12. D F is written as and is equal to (3 6 ) ( 4 1) ,
1 6
13. Show that A C C A i.e. 18 ( 4 ) or 22
10
The Determinant of a 2 by 2 The Determinant of a 2 by 2
Matrix Matrix
3 2
Hence the determinant of a matrix can be expressed as a Example 1: Determine the value of
single numerical value, i.e. 7 4
3 4 3 2
= 22 = (3 4 ) ( 2 7 )
1 6 7 4
= 12 ( 14)
= 26
11
The Determinant of a 3 by 3 The Determinant of a 3 by 3
Matrix Matrix
1 2 3
Thus for the matrix 4 5 6 the minor of (ii) The sign of a minor depends on its position within
+ +
7 8 9 the matrix, the sign pattern being
+
.
element 4 is obtained by covering the row [4 5 6]
1 + +
and the column , leaving the 2 by 2 determinant ,
4
Thus the signed-minor of element 4 in the matrix
7 1 2 3
2 3 4 5 6 2 3
8 9
, i.e. the minor of element 4 is (2 9 ) (3 8) = 6
is 8 9 = ( 6 ) = 6.
7 8 9
12
The Determinant of a 3 by 3 The Determinant of a 3 by 3
Matrix Matrix
There are thus six different ways of evaluating a 3 by 3 Supposing a second row expansion is selected.
determinant and all should give the same value. 3 4 1 + +
Example: Find the value of 3 4 1 2 0 7 +
2 0 7 1 3 2 + +
1 3 2
4 1
The minor of element 2 is i.e.
3 2
13
The Determinant of a 3 by 3 The Determinant of a 3 by 3
Matrix Matrix
Thus, The same result will be obtained whichever row or
column is selected. For example, the third column
expansion is
3 4 1
2 0 7 = 2(11) + 0( 7 ) + 7(13) = 113 3 4 1
2 0 3 4 3 4
1 3 2 2 0 7 ( 1) 7 + ( 2 )
1 3 1 3 2 0
1 3 2
= ( 1)( 6 ) (7 )( 13) + ( 2 )( 8)
+ + = 6 ( 91) + 16
+
= 113
+ +
2 6 5 6 5 2
=1 4 + ( 3)
4 2 1 2 1 4
= 4 ( 24 ) 4( 10 ( 6 )) 3(20 ( 2 ))
= 28 ( 16 ) 66
= 22
14
Solving Simultaneous Cramers Rule for 2 by 2
Equations Matrices
1. Cramers Rule for 2 by 2 matrices Cramers rule states that if
2. Cramers Rule for 3 by 3 matrices
a11x + a12 y = k1 a11 a12
with D= 0
a21x + a22 y = k2 a21 a22
Dx Dy
then x= and y=
D D
15
Cramers Rule for 2 by 2 Cramers Rule for 3 by 3
Matrices Matrices
Example 2: Solve using Cramers rule: 3x + 2 y = 4 Cramers rule states that if
4 x + 3 y = 10 a11x + a12 y + a13 z = k1
3 2 a21x + a22 y + a23 z = k2
D= = 17 a31x + a32 y + a33 z = k3
4 3 Dx 8
x= =
4 2 D 17 Dx Dy Dz
Dx = =8 then x = , y= and z =
10 3 Dy 46 D D D
y= =
D 17
3 4
Dy = = 46
4 10
16
Cramers Rule for 3 by 3 Cramers Rule for 3 by 3
Matrices Matrices
1 1 1 4 1 1
D = 2 3 4 D x = 33 3 4
3 2 2 2 2 2
= 1(6 ( 8)) + 1( 4 12) + 1( 4 ( 9)) = 4(6 ( 8)) + 1( 66 8) + 1( 66 ( 6 ))
= 14 ( 16) + 5 = 56 ( 74) + ( 60)
= 35 = 70
17
Cramers Rule for 3 by 3
Matrices
Thus,
Dx 70
x= = =2
D 35
Dy 105
y= = = 3
D 35
Dz 175
z= = =5
D 35
18