An Introduction To Matrix Algebra
An Introduction To Matrix Algebra
Matrix Algebra
Algebra
MATRIX
A matrix is an ordered rectangular array of
numbers, arranged in rows and columns.
rows
columns
ORDER OF A MATRIX
The size or order of a matrix is
described by its number of rows
and the number of columns.
A a1 a 2 , an aj(1 x n)
Column Matrix
A matrix with just one column is
called a column matrix.
a1
a 2
A ai (m x 1)
am
Matrices of the same order
b11 b12
and B
b 21 b 22
Thus A
The
Identity
Identity Matrix
Square matrix with ones on the
diagonal and zeros elsewhere.
1 0 0 0
0 1 0 0
I
0 0 1 0
0
0 0 1
Equal Matrices
5 4 7
B 3 6 1
2 1 3
Matrix Subtraction
C = A - B
Is defined by
[r x c] and [s x d]
Matrix Multiplication
Matrices A and B can be multiplied if:
[m x n] and [n x p]
n=n
Matrix Multiplication
[m x n] and [n x p]
mxp
Computation: A x B = C
a11 a12
A
a 21 a 22
[2 x 2]
b11 b12 b13
B
b 21 b 22 b 23
[2 x 3]
a11b11 a12b 21 a11b12 a12b 22 a11b13 a12b 23
C
a 21b11 a 22b 21 a 21b12 a 22b 22 a 21b13 a 22b 23
[2 x 3]
Computation: A x B = C
2 3
1 1 1
A 1 1 and B
1 0 2
1 0
[3 x 2] [2 x 3]
A and B can be multiplied
2 *1 3 *1 5 2 *1 3 * 0 2 2 *1 3 * 2 8 5 2 8
C 1*1 1*1 2 1*1 1* 0 1 1*1 1* 2 3 2 1 3
1*1 0 *1 1 1*1 0 * 0 1 1*1 0 * 2 1 111
[3 x 3]
Computation: A x B = C
2 3
1 1 1
A 1 1 and B
1 0 2
1 0
[3 x 2] [2 x 3]
Result is 3 x 3
2 *1 3 *1 5 2 *1 3 * 0 2 2 *1 3 * 2 8 5 2 8
C 1*1 1*1 2 1*1 1* 0 1 1*1 1* 2 3 2 1 3
1*1 0 *1 1 1*1 0 * 0 1 1*1 0 * 2 1 111
[3 x 3]
Note:
If A is an m×n and B is n×p matrix, then AB is
an m×p matrix. Hence we see that BA is
defined only when p=m.
Inversion
The Inverse of a Matrix
Definition:
Let A be a square matrix. A matrix B
such that AB=I=BA is called the inverse
matrix of A and is denoted by A-1.
1 1
A A AA I
1st Pr ecinct : x1 x 2 6
2nd Pr ecinct : 2x1 x 2 9
1 1 11
Solution Note: Inverse of 2 1
is 2 1
1 1 x1 6
2 1 * x 9
2
11 11 x1 11 6 Premultiply both sides by
2 1 * 2 1 * x 2 1 * 9 inverse matrix
2
Ax y x
The object is to find x given A and y . This is
done by solving for x :
y Ix Ax
y (I A)x
1
(I A) y x
Matrix Operations in Excel
Select the
cells in
which the
answer
will
appear
Matrix Multiplication in Excel
1) Enter
“=mmult(“
2) Select the
cells of the
first matrix
3) Enter comma
“,”
4) Select the
cells of the
second matrix
5) Enter “)”
Matrix Multiplication in Excel
Enter these
three
key
strokes
at the
same
time:
control
shift
enter
Matrix Inversion in Excel
Follow the same procedure
Select cells in which answer is to be
displayed
Enter the formula: =minverse(
Select the cells containing the matrix to be
inverted
Close parenthesis – type “)”
Press three keys: Control, shift, enter