Matrices: Describing Matrices (Rows and Columns)
Matrices: Describing Matrices (Rows and Columns)
Matrices
Describing Matrices (Rows and Columns)
In this lesson, we will learn
what is a matrix?
rows and columns of a matrix
dimensions (or order) of a matrix
elements of a matrix
The word matrix was first introduced by English Mathematician Jame Sylverter (1814-1897).
Another Mathematician Arther Caylay (1821-1895) also developed the theory of matrices
independently and used it for solving the linear equations. Now a days, matrices (plural of
matrix) are used in high speed computers and other branches of natural & social sciences to
solve their problems. We see around us that the students in schools are gathered in assembly in
rows (horizontal lines) and columns (vertical lines) , chairs in the class-rooms are arranged in
rows and columns etc. This type of arrangement is called matrix arrangement or simply matrix.
Hence, when objects are arranged into rows and columns, then such arrangement is called a
Matrix.
A matrix consists of a set of numbers arranged in rows and columns enclosed in brackets.
The dimensions or order of a matrix gives the number of rows followed by the number of
columns in a matrix. The order of a matrix with 3 rows and 2 columns is 3 2 or 3 by 2.
We usually denote a matrix by a capital letter.
Elements In An Array
Each number in the array is called an entry or an element of the matrix. When we need to read
out the elements of an array, we read it out row by row.
Equality Of Matrices
Two matrices are equal if they have the same dimension or order and the corresponding
elements are identical.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Solution:
Equate the corresponding elements and solve for the variables.
x+3=6
x=3
y = 1
z 3 = 4
z=7
Types Of Matrices
In this lesson, we will learn the different types of matrices: row matrix, column matrix, zero
matrix, square matrix, diagonal matrix and unit matrix etc. A matrix may be classified by types.
It is possible for a matrix to belong to more than one type.
A Row Matrix:
A row matrix is a matrix with only one row.
A column matrix:
A column matrix is a matrix with only one column.
A zero matrix:
A zero matrix or a null matrix is a matrix that has all its elements zero.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
A square matrix:
A square matrix is a matrix with an equal number of rows and columns.
A diagonal matrix:
A diagonal matrix is a square matrix that has all its elements zero except for those in the
diagonal from top left to bottom right; which is known as the leading diagonal of the matrix.
A unit matrix:
A unit matrix is a diagonal matrix whose elements in the diagonal are all ones.
Rectangular Matrix:
A matrix is said to be rectangular if number of rows is not equal to number of columns.
e.g.
Scalar Matrix:
A diagonal matrix is said to be scalar if all of its diagonal elements are same.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Triangular Matrix:
A square matrix is said to be triangular if all of its elements below principal diagonal are zero
(Lower Triangular Matrix) or all of its elements above principal diagonal are zero (Upper
Triangular Matrix).
Transpose of a Matrix:
Suppose
be a given matrix, then the matrix obtained by interchanging its rows into columns is
called Transpose of
, it is denoted by
Matrix Addition
We can only add matrices of the same order.
Example:
Matrix addition is very simple; we just add the corresponding elements.
It is not possible to add matrices that do not have the same order, as shown in the following
example:
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
How to add two matrices together. If they both have the same dimensions (same number of
rows and columns) then you just add up the numbers that are in the same spot.
Matrix Subtraction
Similarly, we can only subtract matrices of the same order.
Example:
We subtract the corresponding elements.
It is not possible to subtract matrices that do not have the same order as in the following
example:
Example:
Example:
Example :
Find the values of x and y.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Solution:
2x 6 = 5
2x = 11
x = 5.5
4y=3
y=1
Matrix Multiplication
In this lesson, we will learn how to perform matrix multiplication.
We will illustrate matrix multiplication or matrix product by the following example.
Example:
Find C = A B
Solution:
Step 1 : Multiply the elements in the first row of A with the corresponding elements in
the first column of B. Add the products to get the element C 11
Step 2 : Multiply the elements in the first row of A with the corresponding elements in
the second column of B. Add the products to get the element C 12
Step 3 : Multiply the elements in the second row of A with the corresponding elements
in the first column of B. Add the products to get the element C 21
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Step 4 : Multiply the elements in the second row of A with the corresponding elements
in the second column of B. Add the products to get the element C 22
We cannot multiply A and B because there are 3 elements in the row to be multiplied
with 2 elements in the column
This means that we can only multiply two matrices if the number of elements in the
column of the first matrix is equal to the number of elements in the row of the second
matrix.
An easy method to determine whether two matrices can be multiplied together would
be to check the order of the matrices.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Checking the orders of the matrices will also help you to make sure that you multiplied
the elements in the correct way.
Take note that matrix multiplication is not commutative that is
ABBA
Determinants: 22 Determinants
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
Method 2
The computations for 33 determinants are messier than for 22's. Various methods can be used, but the
simplest is probably the following:
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
10
Inverse of a Matrix
using Minors, Cofactors and Adjugate
You can calculate the Inverse of a Matrix by:
Step
Step
Step
Step
1:
2:
3:
4:
It needs 4 steps. It is all simple arithmetic but there is a lot of it, so try not to make a mistake!
11
The Calculations
Here are the first two, and last two, calculations of the "Matrix of Minors" (notice how I ignore the
values in the current row and columns, and calculate the determinant using the remaining values):
So: multiply the top row elements by their matching "minor" determinants:
Determinant = 32 - 02 + 22 = 10
And now multiply the Adjugate by 1/Determinant:
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
12
First, find the determinant of the coefficient matrix: (I'm just going to crunch the determinants without
showing the work -- you should check them!)
Replace that column with the "= guys" and start crunching!
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
13
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
14
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
15
Inverse Example No 2
Step 1 Find det(M), the determinant of the Matrix M. The determinant will usually
show up in the denominator of the inverse. If the determinant is zero, the matrix won't have
an inverse.
lMl = -24 + 40 15
lMl = 1
Step 2 Find MT, the transpose of the matrix. Transposing means reflecting the matrix
about the main diagonal, or equivalently, swapping the (i,j)th element and the (j,i)th.
Step 3 Find the determinant of each of the 2x2 minor matrices. Find the determinant
of each of the 2x2 minor matrices.
Step 4 Represent these as a matrix of cofactors as shown, and multiply each term by
the sign indicated. The result of these steps is the adjugate matrix (sometimes also called the
adjoint), notated Adj(M).
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
16
Step 5 Find the inverse by dividing the adjugate found in the previous step by the
determinate from the first step.
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
17
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
18
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt
19
Prepared & Selected By Iftikhar Ali Msc Economics (AIOU), Certification in Chinese History &
Political Economy Howard University, Behavioral Economics (Toronto University), Globalization
(Howard University), American Capitalism (Cornell University), Student of CMA (Certified
Management Accountant) Institute of Cost & Management Accountancy Pakistan. Teaching at
Punjab College of excellence in Commerce Kamra Cantt