Matrix & its Elementary Operations

Introduction

Many problems in engineering and statistics, as well as social science and natural science use matrix to express relations with factors affecting one and other and to build-up models to describe possible phenomena. Undoubtedly matrix notations give clear presentation and help solving of problems.

An m by n (m x n) matrix A is a rectangular array arranged in m rows (horizontal) and n columns (vertical) :

A =

aij denotes the element in the ith row, jth column of A, or the i,j entry of A

Example 1 :     A =    A is a 2 x 3 matrix with a12 = 2,  a21 = 4, etc.

Example 2 :    B =    B is a 3 x 1 matrix

Example 3 :    C =    C is a 2 x 2 matrix

Example 4 :   The following 4 x 4 matrix gives the distance in km between the indicated cities.

                      



I. Scalar Multiplication
If A is a m x n matrix and k is any scalar,  then k A = [ k • aij ] = [ aij • k ] = A k
Example 5 :   A =     2 A =

 

II. Addition and Subtraction
If A and B are m x n matrices (i.e., A and B must be with same dimension)
then   A + B = [ aij + bij ]
A = a10.gif (203 bytes) a11b.gif (336 bytes) a12b.gif (331 bytes) adotdot1.gif (82 bytes) a1nb.gif (330 bytes) a01.gif (162 bytes)         B = b10.gif (205 bytes) b11b.gif (211 bytes) b12b.gif (228 bytes) bdotdot1.gif (131 bytes) b1nb.gif (217 bytes) b01.gif (162 bytes)
a21b.gif (207 bytes) a22b.gif (330 bytes) adotdot2.gif (96 bytes) a2nb.gif (219 bytes) b21b.gif (329 bytes) b22b.gif (342 bytes) bdotdot2.gif (103 bytes) b2nb.gif (217 bytes)
adotdot4.gif (268 bytes) bdotdot4.gif (200 bytes)
am1b.gif (205 bytes) am2b.gif (334 bytes) adotdot3.gif (80 bytes) amnb.gif (218 bytes) bm1b.gif (336 bytes) bm2b.gif (347 bytes) bdotdot3.gif (133 bytes) bmnb.gif (230 bytes)
A + B
=
AplusB1.gif a11 + b11 a12 + b12 Abdotdo0.gif (140 bytes) a1n + b1n AplusB2.gif
a21 + b21 a22 + b22 Abdotdo1.gif (147 bytes) a2n + b2n
Abdotdo2.gif
am1 + bm1 am2 + bm2 Abdotdot.gif amn + bmn
Subtraction is similar with addition in the way that  A - B = A + ( -B )
= A + (-1)B

Example 6 :   A =    B =     A - B =

   
    
III. Matrix Multiplication
If A is a  m x n  matrix and B is a  n x k  matrix,
then C = AB is a  m x k  matrix such that :
cij  = ais bsj   for any 1 i m  and 1 j n
     
Example 7 :
 A =      B =
 AB =      
     

 Practical Example

A furniture factory receives an order to make enough chairs, book shelves, desks and tables to furnish a new office building, which contains 26 offices and 7 conference rooms. Each office is to be furnished with 3 chairs, 2 book shelves, 1 desk and 1 table, whereas each conference room is to be furnished with 10 chairs, 3 books shelves, 2 desks and 4 tables. It is also known that it takes 4 working hours to make a chair and costs $900, it takes 2 hours and costs $550 for a book shelf, 3 hours and $800 for a desk, 1 hour and $600 for a table. How many hours and what is the total cost to make all the furniture ?
To summarise, we can tabulate the given data as follow :
  
Table A
 Office  Conference Room
  Building   26 7
  Table C
 Time(hours)  Cost($)
 Chairs 4 900
 Book Shelves 2 550
 Desks 3 800
 Tables 1 600

Table B
 Chairs Book Shelves  Desks  Tables
 Office 3 2 1 1
 Conference Room 10 3 2 4

To apply matrix notation, we define :    A = [ 26  7 ] ,   B = ,   C =

That is A encodes the number of offices and conference room in the building,
B decodes the number of chairs, bookshelves, desks and tables in each room and
C decodes the number of hours and cost for each item.
    
The matrix product : AB = [ 26   7 ] = [ 148    73   40   54 ]
gives the number of chairs, book shelves, desks and table in the building.
  
The product :  (AB)C = [ 148   73   40   54 ] = [ 912   237750 ]
gives totally 912 hours and $237750 to make all the furniture.

 

Question !
How much will it cost and how long

will it take to make the furniture

for 1 office & 1 conference room ?

 

 

 

Exercise 1

If A = and C = A + k A = , the value of k is :