Matrices FPM
Matrices FPM
Tushar Tanwar
Matrices
Objectives
Why matrices? Real-life systems tend to have many equations in
many variables. A short-form is needed.
Matrices are the answer to this requirement.
number of columns of the first matrix must be equal to the number of rows in
the second matrix
The product C = (cij) of A with B can be defined using
the familiar dot product of vectors
Here cij = (Row i of A) . (Column j of B) T = ∑ aik bkj
Example: A.B
Contrast with numbers
Matrix
multiplication is not commutative ABBA
One side may not even exist, let alone be compared.
Suppose the order of A is 4 x 5 and B is 5 x 3, then
AB is a 4 x 3 matrix but BA does not exist.
Example:
AB = 0 does not imply A = 0, B = 0 or BA = 0
Cofactor
Determinant
for any i
f
Points to note:
The determinant det A is equal to zero if
(i) rows or columns of A are multiples of each other,
(ii) rows or columns are linear combinations of each other,
(iii) entire rows or columns are zero;
if det A = 0 the matrix A is called a singular matrix
det A = det(AT), det(AB) = det(A) det(B).
for the unit matrix I one has det I = 1.
Inverse
The inverse a−1 of a scalar (=a number) a is defined by
a a−1 = 1.
For square matrices we use a similar definition: the inverse
A−1 of a n × n matrix A fulfills the relation
AA−1 = I
The steps to invert any (square) matrix A
1. Calculate the determinant of A. If |A| = 0, then conclude
that there is no inverse for the matrix.
2. Transpose the matrix A to get AT
3. Construct the matrix of cofactors of AT
4. Divide this matrix by |A| to get A-1
Example
Solving system of equations
Suppose we have the linear system A x = b, x unknown
Then, if we know the inverse of A, x = A-1b
Find inverse of
A= b=
r3 -> r3 + r2