Академический Документы
Профессиональный Документы
Культура Документы
• Some Words:
One: Matrix
More than one: Matrices
• Definition: In Mathematics, matrices are used
to store information.
• This information is written in a rectangular
arrangement of rows and columns.
• Each entry, or element, of a matrix has a
precise position and meaning.
1
Definition
The Determinant of a 2 X 2 matrix A where
a c
A=
b d
is the number ad – bc.
a c
b d
Some Notation: det(A) = ad – bc
2
Example
3 4
A=
7 1
Find the determinant of A
Det(A) = - 25
3
Definition
The inverse of a matrix A, written A-1, is the
matrix such that:
A A-1 = = A-1A
a c a and d change position
If A =
b d
then A =
-1 1 d c
ad bc b a
5
Example
1 3
P= Find P-1
1 2
2 3 Exchange the elements in the
Step 1: leading diagonal
1 1
2 3 Change the sign of the other two
Step 2:
1 1 elements.
Encoding 4 3 193 5 27 15 5
matrix first 1 1 518 20 3 4 27
91 66 80 117 72 101
=
24 21 25 30 19 32
91 24 66 21 80 25 117 30 72 19 101 32
10
Decoding
To decode a message, simply put it back in
matrix form and multiply on the left with the
inverse matrix A-1
11
Example
1 2
Encoding matrix A =
1 3
(i) Use this matrix and the code for the English
alphabet above, to encode the message
DISCRETE MATHS.
(ii) Also, decode
55 70 75 102 22 31 58 85 49 69
12
D S R T A H
(i) DISCRETE MATHS
I C E E M T S
4 19 18 20 27 1 8
9 3 5 5 13 20 19
1 2 4 19 18 20 27 1 8
ENCODE 1 3 9 3 5 5 13 20 19
22 25 28 30 53 41 46
=
31 28 33 35 56 60 65
Encoded message:22 31 25 28 28 33 30 35 53 56 41 46 65
13
1 3 2
(ii) A-1 =
1 3 1 2 1 1
3 2
1 1
Decode: 3 2 55 75 22 58 49
1 1 70 102 31 85 69
25 21 4 4 9
=
15 27 9 27 20
25 15 21 27 4 9 4 27 9 20
Y o u did i t 14