UNIT 4 Matrices
UNIT 4 Matrices
INTRODUCTION:
When some numbers are arranged in rows
and columns and are surrounded on both
sides by square brackets, we call it as a
matrix. Matrix or matrices have very
important applications in mathematics.
Matrix refers to an ordered rectangular
arrangement of numbers which are either real
or complex or functions. We enclose Matrix
by [ ] or ( ).
Many scientific fields use Matrices in some
form or the other. You will find it in physics
like electromagnetism, optics, quantum
mechanics and more. Further, it is present in
computer graphics, like probability, page rank
algorithm and more. Finally, matrix calculus is
also beneficial. It helps in generalizing
classical analytical notions like derivatives
and exponentials to high dimensions.
Moreover, graphics software make use of it
while processing linear transformations in
order to render images.
Definition of a Matrix
Matrix is an ordered rectangular arrangement
of numbers (real or complex) or functions
which may be represented as
Matrix is enclosed by [ ] or ( )
What is a Matrix?
Suppose we wish to express the information
that Ram has 20 pens. We may express it as
[20] with the understanding that the number
inside [ ] is the number of pens that Ram has.
Now, if we have to express that Ram has 20
pens and 7 pencils. We may express it as
[20 7] with the understanding that first number
inside [ ] is the number of pens while the other
one is the number of pencils.
Let us now suppose that we wish to express
the information of possession of pens and
pencils by Ram and his two friends Rohan and
Yash which is as follows:
Ram has 20 pens and 7 pencils,
Rohan has 15 pens and 5 pencils,
Yash has 12 pens and 3 pencils.
Pens Pencils
Ram 20 7
Rohan 15 5
Yash 12 3
20 7
[15 5]
12 3
In the above arrangement, the entries in the
first column represent the number of pens
possessed by Ram, Rohan, and Yash,
respectively and the entries in the second
column represents the number of pencils
possessed by Ram, Rohan, and Yash,
respectively.
Order of a Matrix: If a matrix has m rows and
n columns, then its order is written as m × n. If
a matrix has order m × n, then it has mn
elements.
Types of Matrices
1) Row Matrix 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 √5 23]
Addition of Matrix
If A = [aij]m×n and B = [yij]m×n, then A + B
= [aij +bij]m×n, 1 ≤ i ≤ m, 1 ≤ j ≤ n
Properties of Addition of Matrices
(a) Commutative: If A = [aij] and B = [bij] are
matrices of the same order say m x n
Then , A + B = B + A
(b) Associative for any three matrices:
A = [aij], B = [bij], C = [cij] of the same order
say m x n,
A + (B + C) = (A + B) + C.
(c) Existence of additive identity:
Let A = [aij] be a mxn matrix and O be a mxn
zero matrix,
Then , A + O = O + A = A.
In other words, O is the additive identity for
matrix addition.
(d) Existence of additive inverse:
Let A = [aij]m×n be any matrix, then we have
another matrix as -A = [-aij]m×n such that
A + (-A) = (-A + A) = O.
So, matrix (-A) is called additive inverse of A
or negative of A.
Note
(i) If A and B are not of the same order, then A
+ B is not defined.
(ii) Addition of matrices is an example of a
binary operation on the set of matrices of the
same order.
Subtraction of Matrix
If A and B are two matrices of the same order,
then we define A−B=A+(−B).
Consider the two matrices A & B of order 2 x 2.
Then the difference is given by:
For example,
a) Multiplying a 4 × 3 matrix by a 3 × 4 matrix
is valid and it gives a matrix of order 4 × 4
b) 7 × 1 matrix and 1 × 2 matrices are
compatible; the product gives a 7 × 2 matrix.
c) Multiplication of a 4 × 3 matrix and 2 × 3
matrix is NOT possible.
Matrix Multiplication Formula
We can understand the general process of
matrix multiplication by the technique, "First
rows are multiplied by columns (element by
element) and then the rows are filled up."
Consider two matrices of order 3×3 as given
below,
𝑎 𝑏 𝑐 𝑗 𝑘 𝑙
[𝑑 𝑒 𝑓] & [𝑚 𝑛 𝑜]
𝑔 ℎ 𝑖 𝑝 𝑞 𝑟
Here, the matrices have the same dimensions,
so the resultant matrix will also have the same
dimension 3×3
10
Answer: Product matrix is [ 22]
14
Important Notes on Multiplication of
Matrices:
• To multiply matrices, the given matrices
should be compatible.
• The order of a product matrix can be
obtained by the following rule:
If A is a matrix of order m×n and B is a
matrix of order n×p, then the order of the
product matrix is m×p.
• Matrix multiplication indicates rows by
columns multiplication.
Example : Using the matrix multiplication
formula, find the product of the matrices:
1 0 6 8
[ ] and [ ]
2 4 4 3
Solution:
The given matrices are of order 2×2. ∵They
are compatible, we can find the multiplication
of the matrices and their product matrix will
also be 2×2.
1 0 6 8
Product of matrices [ ] and [ ]is:
2 4 4 3
(1 × 6) + (0 × 4) (1 × 8) + (0 × 3)
=[ ]
(2 × 6) + (4 × 4) (2 × 8) + (4 × 3)
6+0 8+0
= [ ]
12 + 16 16 + 12
6 8
=[ ]
28 28
6 8
Answer: Product matrix is [ ]
28 28
Transpose of a Matrix
The transpose of a matrix is one of the most
common methods used for matrix
transformation in matrix concepts across linear
algebra. The transpose of a matrix is obtained
by changing the rows into columns and
columns into rows for a given matrix.
Transpose of a matrix is especially useful in
applications where inverse and ad-joint of
matrices are to be obtained.
What Is the Transpose of a Matrix?
The transpose of a matrix is obtained by
changing its rows into columns and its
columns into rows. A rectangular array of
numbers or functions that are arranged in the
form of rows and columns is called a matrix.
This array of numbers are called either entries
or elements of a matrix.
Here for matrix A the elements of the first row
have been written in the first column of a new
matrix, and the elements of the second row
have been written in the second column of a
new matrix. And this new matrix is denoted as
AT, which is the transpose of the given matrix
A.
Minor of a Determinant
A minor is defined as a value computed
from the determinant of a square matrix which
is obtained after crossing out a row and a
column corresponding to the element that is
under consideration. Minor of an element aij of
a determinant is the determinant obtained by
deleting its ith row and jth column in which
element aij lies. Minor of an element aij is
denoted by Mij.
Co-factor of a Determinant
The co-factor is defined as the signed minor.
Co-factor of an element aij, denoted by Aij is
defined by A = (–1)i+j M, where M is minor of aij.
Note
• We note that if the sum i+j is even, then
Aij = Mij, and that if the sum is odd, then
Aij = −Mij.
• Hence, the only difference between the
related minor entries and co-factors may
be a sign change or nothing at all.
• Whether or Aij = Mij or Aij = −Mij has a
pattern for square matrices as illustrated:
−𝟏 −𝟓 𝟏𝟐
𝟏
A-1 = × [𝟎 𝟏 −𝟐 ]
−𝟏
𝟎 𝟎 −𝟏
𝟏 𝟓 −𝟏𝟐
= [𝟎 −𝟏 𝟐 ]
𝟎 𝟎 𝟏
Determinants and Matrices as Equation
Solver
Here, we will discuss the way to solve a
system of linear equations in two or three
variables. With the help of the determinant, we
can also check for the consistency of linear
equations.
• Consistent System: If one or more
solution(s) exists for a system of
equations then it is a consistent system
• Inconsistent System: A system of
equations with no solution is an
inconsistent system.
The Solution of System of Linear Equations
A solution for a system of linear Equations can
be found by using the inverse of a matrix.
Suppose we have the following system of
equations
• a11 x + a12 y + a13 z = b1
• a21 x + a22 y + a23 z = b2
• a31 x + a32 y + a33 z = b3
where, x, y, and z are the variables and a11,
a12, … , a33 are the respective coefficients of
the variables and b1, b2, and b3 are the
constants. We need to find the solution for the
values of the variables in this system of
equations.
Determinant as an Equation Solver
The above system of equations can be
represented in the form of a square matrix as
i.e., AX = B or,
2x – y – z = 1
3x – 5y = 5
Since X = A– 1 B
Thus, x = 15⁄22,
y = 21⁄22,
z = –13⁄22.
System of Linear equations:
(i) Matrix Inversion Method:
This method can be applied only when the
coefficient matrix is a square matrix and non-
singular.
AX = B , … (1)
( A−1 A) X = A−1B.
Hence, we get
X = A−1B.
Example 1:
Solve the following system of linear equations,
using matrix inversion method:
5x + 2 y = 3,
3x + 2 y = 5 .
Solution
The matrix form of the system is AX = B ,
where
5 2
We find |A| = | |= 10 - 6= 4 ≠ 0.
3 2
So, A−1 exists and
1 2 −2
A−1 = [ ]
4 −3 5
Then, applying the formula X = A−1B , we get
,
find the products AB and BA and hence solve
the system of equations x − y + z = 4, x – 2y –
2z = 9, 2x + y +3z =1.
Solution
Example 1:
Example 2:
In a T20 match, Chennai Super Kings needed
just 6 runs to win with 1 ball left to go in the
last over. The last ball was bowled and the
batsman at the crease hit it high up. The ball
traversed along a path in a vertical plane and
the equation of the path
is y = ax2 + bx + c with respect to a xy -
coordinate system in
the vertical plane and the ball traversed
through the points (10,8), (20,16), (30,18) ,
can you conclude that Chennai Super Kings
won the match?
Justify your answer. (All distances are
measured in metres and the meeting point of
the plane of the path with the farthest
boundary line is (70, 0).)
Solution
The path y = ax2 + bx + c passes through the
points (10,8), (20,16), (40, 22) . So, we
get the system of equations
100a + 10b + c = 8,
400a + 20b + c= 16,
1600a + 40b + c = 22.
To apply Cramer’s rule, we find
Solution
Transforming the augmented matrix to echelon
form, we get
x + 5y + 7z = 13 , … (1)
17y + 22z = 27 , … (2)
199z = 398 . … (3)
Substituting z = 2, y = -1 in (1), we get x = 13 -
5 × (−1 ) − 7 × 2 = 4 .
So, the solution is ( x =4, y = - 1, z = 2 ).
Note. The above method of going from the last
equation to the first equation is called
the method of back substitution.
Example 2:
The upward speed v(t) of a rocket at time t
is approximated by v(t) = at2 + bt + c, 0 ≤ t ≤
100 where a, b, and c are constants. It has
been found that the speed at times t = 3, t = 6 ,
and t = 9 seconds are respectively, 64, 133,
and 208 miles per second respectively. Find
the speed at time t = 15 seconds. (Use
Gaussian elimination method.)
Solution
Since v(3) =64, v(6) = 133 and v(9) = 208 , we
get the following system of linear equations
9a +3b + c = 64 ,
36a + 6b + c = 133,
81a + 9b + c = 208 .
We solve the above system of linear equations
by Gaussian elimination method.
Reducing the augmented matrix to an
equivalent row-echelon form by using
elementary row operations, we get
Note
Step 1
Example 1.20
Solution
Example 1.21
Find the inverse of A = by Gauss-Jordan method.
Solution