MATRIX
In mathematics,
a matrix (plural
matrices) is a rectangular array of numbers, symbols, or expressions, arranged
in rows and columns. Matrices are commonly written in box brackets. The
horizontal and vertical lines of entries in a matrix are called rows and columns,
respectively. The size of a matrix is defined by the number of rows and columns
that it contains.
A matrix with m rows
and n columns
is called an m × n matrix
or mm-by-nn matrix,
while m and n are
called its dimensions.The dimensions of the following matrix
are 2×32×3 up(read
“two by three”), because there are two rows and three columns.
ORDER OF A MATRIX:
A matrix having m rows and n columns is
called matrix of order m x n or simply m x n matrix .
In general m x n has the following form
|
The order of a matrix or
the size of a matrix is known as the number of rows or the number of columns
which are present in that matrix.
|
The order of above matrix
is 2 x 4.
Because
in the above matrix there are two rows and four columns.
The
element which occurs in the first row and first column = 5
The
element which occurs in the first row and second column = -2
The
element which occurs in the first row and third column = 7
The
element which occurs in the first row and fourth column = 9
The
element which occurs in the second row and first column = 3
The
element which occurs in the second row and second column = 1
The
element which occurs in the second row and third column = 2
The
element which occurs in the second row and fourth column = -8matrix
introduction
Different types of
Matrices and their forms are used for solving numerous problems.
A row matrix has only
one row but any number of columns. A matrix is said to be a row matrix if it has only
one row.
For
example,
A=[−1/2√523]
Is A Row matrix of order 1 × 4.
In general, A =
[aij]1
× n is a row matrix of order 1 × n.
A column matrix has
only one column but any number of rows. A matrix is said to be a column matrix
if it has only one column.
For
example,
A square
matrix has the number of columns equal to the number of rows. A matrix in which
the number of rows is equal to the number of columns is said to be a square matrix.
A matrix is
said to be a rectangular matrix if the number of rows is not equal to the
number of columns. For example,
A square
matrix B = [bij] m × m is said to be a diagonal matrix if all its non-diagonal elements are zero, that is a matrix B =[bij]m×m is said to be a diagonal matrix if bij = 0, when i
≠ j.
A diagonal matrix is
said to be a scalar matrix if all the elements in its principal diagonal are
equal to some non-zero constant. A diagonal matrix is said to be a scalar
matrix if its diagonal elements are equal, that is, a square matrix B = [bij]n ×
n is said to be a scalar matrix if
·
bij = 0, when i ≠ j
·
bij = k, when i = j, for some constant k.
A matrix is said to be
zero matrix or null matrix if all its elements are zero.
For Example,
If a square matrix has all elements 0 and each diagonal elements are
non-zero, it is called identity matrix and denoted by I.
Equal Matrices:
Two matrices are said to be equal if they are of the same order and if
their corresponding elements are equal to the square matrix A = [aij]n ×
n is an identity matrix if
·
aij = 1 if i = j
·
aij = 0 if i ≠ j
We denote the identity
matrix of order n by In. When the order is
clear from the context, we simply write it as I. For example,
A square matrix in which all
the elements below the diagonal are zero is known as the upper triangular
matrix. For example,
A square matrix in
which all the elements above the diagonal are zero is known as the upper
triangular matrix. For example,
DEFINITION OF EQUALITY OF MATRICES:
Two matrices A and B are known as
equality of matrices if both matrices is having same order. If two
matrices are equal then its corresponding terms will be equal. Based on these
property let us look into the following examples to get more practice in this
topic.
Example 1:
If
the following two matrices are equal then find the values of x,y,w and z.
|
= |
|
|
Solution:
We
can say the above two matrices are equal because they are having same order (2
x 2).
Corresponding
term of x is 1
Corresponding
term of y is 5
Corresponding
term of w is 7
Corresponding
term of z is 9
Therefore
the values of x = 1, y = 5, w = 7 and z = 9
Example 2:
If
the following two matrices are equal then find the values of p,q,r and t.
|
= |
|
|
Solution:
We
can say the above two matrices are equal because they are having same order (2
x 2).
Corresponding
term of 2p is 10
Corresponding
term of 5p + q is 17
Corresponding
term of 3t is 9
Corresponding
term of 5t + r is 15
2 p = 10 p = 10/2 p = 5 |
5p + q = 17 5(5) + p = 17 25 + p = 17 p = 17 - 25 p = -8 |
3t = 9 t = 9/3 t = 3 |
5t + r = 15 5 (3) + r = 15 15 + r = 15
r = 15 - 15
r = 0 |
Therefore
values of p = 5, q = -8, t = 3 and r = 0 equality of matrices
OPERATIONS ON
MATRICES :
In
this page operations on matrices we are going to see how to add,subtract and multiply two matrices.
Addition of two matrices:
Two
and more matrices can be added if and only if they are having same order. If
the order those matrices are not same then we cannot add those matrices.
Example 1:
Find
the sum of the following matrices
A = |
|
|||||||||
|
B = |
|
Solution:
A+B= |
|
+ |
|
|
The
given two matrices are in the same order, so we may add these matrices. For
that we have to combine the corresponding terms.
= |
|
= |
|
Subtraction of two matrices:
Two
and more matrices can be subtracted if and only if they are having same order.
If the order those matrices are not same then we cannot subtract those
matrices.
Example 2:
Subtract
the following matrices
A = |
|
|||||||||
|
B = |
|
Solution:
A-B= |
|
- |
|
|
The
given two matrices are in the same order, so we shall subtract these matrices.
For that we have to combine the corresponding terms.
= |
|
= |
|
= |
|
Multiplication of two matrices:
The
product of matrix AB is determined by myltiplying
every row matrix of A multiplying by the column matrix of B.
Example 3:
Multiply
the following matrices
A = |
|
|||||||
|
B = |
|
Every
column of the second is to be multiplied by every row of the first matrix.
AB= |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AB= |
|
These
are the properties of the topic operations on matrices.opertion.
PROPERTIES
OF MATRICES.:
In
this page we are going to algebraic properties of matrices we are going to see
some properties in the concept matrix.
Matrix Addition is Commutative:
If
A and B are any two matrices of the same order then A+B = B+A. This property is
known as commutative property of matrix addition.
|
|
Now
let us find A + B
A+B= |
|
+ |
|
|
A+B= |
|
|||||||||
|
A+B= |
|
|||||||
|
Now
let us find B + A
B+A= |
|
+ |
|
|
B+A= |
|
|||||||||
|
B+A= |
|
|||||||
|
Matrix Addition is Associative:
If
A,B and C are any three matrices of same order then
A+(B+C) = (A+B)+C. This is the property of matrix addition.
|
|
|
Now
let us find B + C
B+C= |
|
+ |
|
|
B+C= |
|
|
B+C= |
|
|
Now
we have to find A + (B+C)
A+(B+C)= |
|
+ |
|
|
A+(B+C)= |
|
|
A+(B+C)= |
|
|
Now
let us find A + B
A+B= |
|
+ |
|
|
Now
we have to add corresponding terms
A+B= |
|
|
A+B= |
|
|
Now
we have to add A+B with C.
(A+B)+C= |
|
|
+ |
|
|
A+(B+C)= |
|
|
A+(B+C)= |
|
|
Additive Identity:
Let
A be any matrix then A + O = 0 + A = A. This property i
called additive property of matrix identity.
|
|
To
check this,first we have to
add A + O
A+O= |
|
|
+ |
|
|
A+O= |
|
|
A+O= |
|
|
Now
we have to add O+A
O+A= |
|
|
+ |
|
|
O+A= |
|
|
A+O= |
|
|
Additive Inverse:
Let
A be any matrix then A + (-A) = (-A) + A = o. This property is called as
additive inverse. The zero matrix is also known as identity element with
respect to matrix addition.
These
are the properties in addition in the topic algebraic properties of matrices.
The following are the
multiplication properties of matrices :
1. Matrix Multiplication is not Commutative :
For
any two matrices A and B,
AB ≠ BA
2. Associative Property :
For
any three matrices A, B and C,
A(BC)
= (AB)C
.
3.Distributive Property :
For
any three matrices A, B and C.
A(B +
C) = AB + AC
(A + B)C = AC + AB
3. Identity Property :
For
any matrix A and the identity matrix I,
AI = IA = A
Matrix
Multiplication is not Commutative - Example
|
|
Find the product of A and B :
AB = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AB = |
|
Find the product of B and A :
BA = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
BA = |
|
Therefore,
AB ≠
BA
Associative Property - Example
A = |
|
|||||||
|
||||||||
B = |
|
C = |
|
Find the product of B and C :
BC = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
BC = |
|
Find the product of A and (BC) :
A(BC) = |
|
x |
|
|
= |
|
A(BC) = |
|
Find the product of A and B :
AB = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AB = |
|
Find the product of (AB) and C :
(AB)C = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
(AB)C = |
|
Therefore,
A(BC) = (AB)C
Distributive Property - Example
A = |
|
|||||||
|
||||||||
B = |
|
C = |
|
Find the addition of B and C :
B+C = |
|
+ |
|
|
= |
|
Find the product of A and (B + C) :
A(B + C) = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
A(B + C) = |
|
Find the product of A and B :
AB = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AB = |
|
Find the product of A and C :
AC = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AC = |
|
Find the addition of AB and AC :
AB + AC = |
|
+ |
|
|
= |
|
AB + AC = |
|
Therefore,
A(B +
C) = AB + AC
Identity Property – Example :
A = |
|
|||||||
|
||||||||
I = |
|
|||||||
|
Find the product of A and I :
AI = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
|
|
x |
|
|
|
x |
|
= |
|
AI = |
|
Find the product of I and A :
AI = |
|
x |
|
|
= |
|
x |
|
|
|
x |
|
= |
|
x |
|
|
|
x |
|
= |
|
IA = |
|
Therefore,
AI
= IA
INVERSE OF A MATRIX :
If A is a
non-singular matrix,there
exists an in= (A⁻¹)^T
These are the properties in the topic inverse of a matrix.
In this page we are going to see how to find inverse of
a matrix.
1) Reversal law for inverse
If A and B are any two non singular matrices of the same order,then AB is also non singular
and (AB)⁻¹ = B⁻¹ A⁻¹ the inverse of a
product is the product of the inverses taken in the reverse order.
2) Reversal law of Transposes
If A and B are matrices comfortable to multiplication,then (AB)^T = B^T A^T
3) Inverse law
For any non singular
matrix A. (A^T)⁻¹
Definition:
verse which is given by
Example 1:
Find the inverse of
the following matrix
|
|A| = 3 [2-0] - 1
[-2-0] -1 [4-(-2)]
= 3 [2] - 1 [-2] -1 [4+2]
= 6 +2 -1 [6]
= 6 +2 -6
|A| = 2 ≠ 0
Since A is a non
singular matrix. A⁻¹ exists.
minor of 3 |
|
||||||||||
= [2-0] = 2 |
|||||||||||
minor of 1 |
|
||||||||||
= [-2-0] = -2 |
|||||||||||
minor of -1 |
|
||||||||||
= [4-(-2)] = [4+2] = 6 |
|||||||||||
minor of 2 |
|
||||||||||
= [-1-(-2)] = [-1+2] = 1 |
|||||||||||
minor of -2 |
|
||||||||||
= [-3-(-1)] = [-3+1] = -2 |
|||||||||||
minor of 0 |
|
||||||||||
= [6-1] = 5 |
|||||||||||
minor of 1 |
|
||||||||||
= [0-2] = -2 |
|||||||||||
minor of 2 |
|
||||||||||
= [0-(-2)] = 2 |
|||||||||||
minor of -1 |
|
|||||||||||||||||||||||||
= [-6-2] = -8 |
||||||||||||||||||||||||||
minor matrix = |
|
|||||||||||||||||||||||||
cofactor matrix = |
|
|||||||||||||||||||||||||
Adjoint
matrix = |
|
|||||||||||||||||||||||||
A⁻¹
=1/2 |
|
Example 2:
Find the inverse of the following matrix
|
|A| = 3 [-6-(-4)] - 4 [0-10] +1 [0-(-5)]
= 3 [-6+4] - 4 [-10] +1 [5]
= 3 [-2] + 40 + 5
= -6 + 40 + 5
= -6 + 45
= 39
|A| = 39 ≠ 0
Since A is a non singular matrix. A⁻¹ exists.
minor of 3 |
|
||||||||||
= [-6-(-4)] = (-6+4) = -2 |
|||||||||||
minor of 4 |
|
||||||||||
= [0-10] = (-10) = -10 |
|||||||||||
minor of 1 |
|
||||||||||
= [0-(-5)] =
[0+5] = 5 |
|||||||||||
minor of 0 |
|
||||||||||
= [24-(-2)] = [24+2] = 26 |
|||||||||||
minor of -1 |
|
||||||||||
= [18-5] = 13 |
|||||||||||
minor of 2 |
|
||||||||||
= [-6-20] = -26 |
|||||||||||
minor of 5 |
|
||||||||||
= [8-(-1)] = (8+1) = 9 |
|||||||||||
minor of -2 |
|
||||||||||
= [6-0] = 6 |
|||||||||||
minor of 6 |
|
|||||||||||||||||||||||||||
= [-3-0] = -3 |
||||||||||||||||||||||||||||
minor matrix |
|
|||||||||||||||||||||||||||
Co-factormatrix |
|
|||||||||||||||||||||||||||
Ad-joint of matrix (adj A) |
|
|||||||||||||||||||||||||||
A⁻¹=1/39 |
|
These are the examples in the page inverse of a matrix.
Elementary matrix operations play
an important role in many matrix algebra applications, such as finding
the inverse of a matrix and solving
simultaneous linear equations.
There are three kinds of
elementary matrix operations.
Ø Interchange two rows (or columns).
Ø Multiply each element in a row (or column) by a non-zero number.
Ø Multiply a row (or column) by a non-zero number and add the result
to another row (or column).
When these operations are
performed on rows, they are called elementary row operations; and when they are
performed on columns, they are called elementary column operations.
In many references, you will encounter
a compact notation to describe elementary operations. That notation is shown
below.
Operation description |
Notation |
Row operations |
|
1.
Interchange rows i and j |
Ri <--> Rj |
2. Multiply
row i by s,
where s ≠ 0 |
sRi --> Ri |
3.
Add s times row i to
row j |
sRi + Rj --> Rj |
Column operations |
|
1.
Interchange columns i and j |
Ci <--> Cj |
2. Multiply
column i by s,
where s ≠ 0 |
sCi --> Ci |
3.
Add s times column i to
column j |
sCi + Cj --> Cj |
Each type of elementary operation
may be performed by matrix multiplication, using square matrices called elementary
operators.
For example,
suppose you want to interchange rows 1
and 2 of Matrix A. To accomplish this, you could premultiply A by E to produce B,
as shown below.
R1 <-->
R2 = |
|
|
|
||||||||||||||
E |
A |
R1 <-->
R2 =
|
|
R1 <-->
R2 =
|
|
= B |
Here, E is
an elementary operator. It operates on A to produce the desired interchanged
rows in B.
What we would like to know, of course, is how to find E.
Read on.
To perform an elementary row
operation on a A, an r x c matrix,
take the following steps.
1.
To find E,
the elementary
row operator, apply the operation to an r x r identity
matrix.
2.
To carry out the elementary row
operation, premultiply A by E.
We illustrate this process below
for each of the three types of elementary row operations.
§ Interchange two rows. Suppose we want to interchange the
second and third rows of A, a 3 x 2 matrix. To create the elementary row
operator E,
we interchange the second and third rows of the identity matrix I3.
|
⇒ |
|
||||||||||||||||||||||
I3 |
E |
§ Then, to interchange the second and third rows of A,
we premultiply A by E,
as shown below.
R2 <-->
R3 = |
|
|
|
|||||||||||||||||||
E |
A |
R2 <-->
R3 = |
|
||||||||
R2 <-->
R3 = |
|
§ Multiply a row by a number. Suppose we want to multiply each
element in the second row of Matrix A by 7. Assume A is
a 2 x 3 matrix. To create the elementary row operator E,
we multiply each element in the second row of the identity matrix I2 by
7.
|
⇒ |
|
||||||||||||
I2 |
E |
§ Then, to multiply each element in the second row of A by
7, we premultiply A by E.
7R2 --> R2 = |
|
|
|
||||||||||||||
E |
A |
7R2 --> R2 = |
|
7R2 --> R2 = |
|
§ Multiply a row and add it to another row. Assume A is
a 2 x 2 matrix. Suppose we want to multiply each element in the first row
of A by
3; and we want to add that result to the second row of A.
For this operation, creating the elementary row operator is a two-step process.
First, we multiply each element in the first row of the identity matrix I2 by
3. Next, we add the result of that multiplication to the second row of I2 to
produce E.
|
⇒ |
|
⇒ |
|
||||||||||||||||||
I2 |
E |
§ Then, to multiply each element in the first row of A by
3 and add that result to the second row, we premultiply A by E.
3R1 + R2 --> R2 = |
|
|
|
||||||||||||
E |
A |
3R1 + R2 --> R2 = |
|
3R1 + R2 --> R2 = |
|
To perform an elementary column
operation on A, an r x c matrix,
take the following steps.
1.
To find E,
the elementary
column operator, apply the operation to an c x c identity
matrix.
2.
To carry out the elementary column
operation, postmultiply A by E.
Let's work through an elementary
column operation to illustrate the process. For example, suppose we want to
interchange the first and second columns of A,
a 3 x 2 matrix. To create the elementary column operator E,
we interchange the first and second columns of the identity matrix I2.
|
⇒ |
|
||||||||||||
I2 |
E |
Then, to interchange the first and
second columns of A, we postmultiply A by E,
as shown below.
C1 <-->
C2 = |
|
|
|
||||||||||||||
A |
E |
C1 <-->
C2 = |
|
C1 <-->
C2 = |
|
Note that the process for
performing an elementary column operation on an r x c matrix
is very similar to the process for performing an elementary row operation. The
main differences are:
MATRIX INVERSION :
Suppose A is
an n x n matrix. The inverse of A is
another n x n matrix, denoted A-1,
that satisfies the following conditions.
AA-1 = A-1A = In
where In is
the identity matrix. Below, with
an example, we illustrate the relationship between a matrix and its inverse.
|
|
= |
|
||||||||||||||||||
A |
A-1 |
I |
|
|
= |
|
||||||||||||||||||
A-1 |
A |
I |
Not
every square matrix has an inverse; but if a matrix does have an inverse, it is
unique.
Does the Inverse Exist?
There
are two ways to determine whether the inverse of a square matrix exists.
A
square matrix that has an inverse is said to be nonsingular or invertible;
a square matrix that does not have an inverse is said to be singular.
In this lesson, we show how to
find the inverse of a matrix for two special cases: a diagonal
matrix and a 2 x 2 matrix. In the next lesson,
we show how to
find the inverse for any matrix.
A diagonal
matrix matrix is a special kind of symmetric
matrix. It is a symmetric matrix with zeros in the off-diagonal
elements. Two diagonal matrices are shown below.
A = |
|
B = |
|
Note that the diagonal of a matrix
refers to the elements that run from the upper left corner to the lower right
corner.
The inverse of a diagonal matrix
is obtained by replacing each element in the diagonal with its reciprocal, as
illustrated below for matrix C.
C = |
|
C-1 = |
|
It is easy to confirm that C-1 is
the inverse of C, since
CC-1 = C-1C = I
where I is the identity
matrix.
This approach will work for any
diagonal matrix, as long as none of the diagonal elements is equal to zero. If
any of the diagonal elements are equal to zero, the matrix will be less
than full rank, and the matrix will not have an inverse.
Suppose A is
a nonsingular
matrix 2 x 2 matrix. Then, the inverse of A can
be computed from A, as shown below.
|
|
|
||||||||||||
A |
A-1 |
where the determinant of A is |A| = A11A22 - A12A21 .
To illustrate how this works,
let's find the inverse of matrix B, which appears below.
B = |
|
First, let's compute the
determinant of matrix B.
|B| = B11B22 - B12B21
= 2*4 - 1*4
= 8 - 4
= 4
Then, we can find the inverse, as
shown below.
B-1 = |
|
B-1 = |
|
= |
|
Warning: If the determinant of a matrix is equal to zero, then the
matrix does not have an inverse.
Problem 1
Find the inverse of matrix A,
shown below.
A = |
|
Solution
This was sort of a trick question.
Matrix A is
a diagonal matrix with a zero element in its diagonal.
Therefore,
matrix A is
singular, and does not have an inverse.
Problem 2
Find the inverse of matrix A,
shown below.
A = |
|
Solution
The inverse of a diagonal matrix
is obtained by replacing each element in the diagonal with its reciprocal, as
shown below.
A-1 = |
|
Find the inverse of matrix A,
shown below.
A = |
|
Solution
First, let's compute the
determinant of matrix A.
|A| = A11A22 - A12A21
= 3*4 - 1*9
= 12 – 9
= 3
Then, we can find the inverse, as
shown below.
A-1 = |
|
A-1 = |
|
=
|
|
|
|||||||||||||