0% found this document useful (0 votes)
7 views5 pages

Basic Mathematics Notes_2

The document provides an overview of matrix notation, operations such as addition, subtraction, scalar multiplication, and matrix multiplication, along with examples. It explains how to label elements in matrices and introduces special matrices like the identity matrix. Additionally, it discusses practical applications of matrix operations through examples involving customers and car parts.

Uploaded by

realscreen105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Basic Mathematics Notes_2

The document provides an overview of matrix notation, operations such as addition, subtraction, scalar multiplication, and matrix multiplication, along with examples. It explains how to label elements in matrices and introduces special matrices like the identity matrix. Additionally, it discusses practical applications of matrix operations through examples involving customers and car parts.

Uploaded by

realscreen105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

ample: the top left element in matrix A, equal to 1, is in row 1 and column 1 and can be

labelled as element a11 ; the element in the 2nd column of row 1, equal to 3, is labelled as a12 .
A general element aij is located in row i and column j (see equation 4 for a further example).

2.1.2 Notation

There are different types of notation for matrices and vectors that you may encounter in text
books. Below are some examples:

Matrix

A italics
A bold, italics
A double underline, italics

Vector

x italics
~x top arrow, italics
x single underline, italics
x bold

2.1.3 Addition

⇒ Wolfram link (http://mathworld.wolfram.com/MatrixAddition.html)


⇒ Video link (http://www.youtube.com/watch?v=FX4C-JpTFgY)

Two matrices (or vectors) of the same size (n × m) may be added together, element by
element. For instance, if we have two matrices A and B:
   
 a11 a12   b11 b12 
A=  B=  (4)
a21 a22 b21 b22

4
then,  
 a11 + b11 a12 + b12 
A+B =  (5)
a21 + b21 a22 + b22

2.1.4 Subtraction

Similar to addition, corresponding elements in A and B are subtracted from each other:
 
 a11 − b11 a12 − b12 
A−B =  (6)
a21 − b21 a22 − b22

2.1.5 Multiplication by a scalar

If λ is a number (i.e. a scalar) and A is a matrix, then λA is also a matrix with entries
 
 λa11 λa12 
  (7)
λa21 λa22

2.1.6 Multiplication of two matrices

⇒ Wolfram link (http://mathworld.wolfram.com/MatrixMultiplication.html)

This is non-trivial and is governed by a special rule. Two matrices A , where A is of size
n × m, and B of size p × q, can only be multiplied if m = p, i.e. the number of columns in
A must match the number of rows in B. The matrix produced has size n × q, with each entry
being the dot (or scalar) product (see section 2.1.10) of a whole row in A by a whole column in
B.

5
e.g. if
 
 1 2 3
 
 1 3 6 

 
A=  and B=
 5 6 7

 (8)
0 −1 4  
9 10 11

then

 
 (1 × 1) (1 × 2) (1 × 3) 
 
 + (3 × 5) + (3 × 6) + (3 × 7) 
 
 
 + (6 × 9) + (6 × 10) + (6 × 11) 
 
 
AB = 



 
 (0 × 1) (0 × 2) (0 × 3) 
 
 
 + (−1 × 5) + (−1 × 6) + (−1 × 7) 
 
 
+ (4 × 9) + (4 × 10) + (4 × 11)

 
 70 80 90 
= 
31 34 37

Formally, if

AB = C then
m
X
cij = aik bkj (9)
k=1

Aside
When using Matlab (or octave), two matrices can be multiplied in an element-wise sense. This
is NOT the same as described above.

6
2.1.7 Motivation for matrix-matrix multiplication

To understand why we may need to perform matrix-matrix multiplication, consider two cus-
tomers of a repair garage, Peter and Alex, who require a number of car parts for each of their
vehicles. Peter requires 1 × 3 litre engine and 2 doors, whereas Alex requires 1 × 5 litre engine
and 4 doors. All the parts require a certain number of screws and bolts. But how many total
screws and bolts do Peter and Alex need?

We can present the quantity of each car part that Peter and Alex need in a table:

3 litre engine 5 litre engine Doors

Peter 1 0 2
Alex 0 1 4

or as the matrix, A:
 
 1 0 2 
A=  . (10)
0 1 4

The number of screws and bolts for each car part are expressed in the table:

bolts screws

3 litre 3 4
5 litre 1 8
doors 2 1

or can be expressed as matrix, B:


 
 3 4 
 
A=
 1 8  .
 (11)
 
2 1

Using simple addition we can find out how many screws and bolts are needed.

1. How many bolts are needed for Peter’s car parts?


(1 × 3) + (0 × 1) + (2 × 2) = 7.

7
2. How many bolts are needed for Alex’s car parts?
(0 × 3) + (1 × 1) + (4 × 2) = 9.

3. How many screws are needed for Peter’s car parts?


(1 × 4) + (0 × 8) + (2 × 4) = 6.

Or we can use matrix multiplication to get all four scenarios:


 
 3 4 
 
 
 1 0 2     7 6 
AB =   
 1 8 =
 
0 1 4   9 12
2 1

2.1.8 Matrix-vector multiplication

Since a vector is a special case of a matrix, this is simply a special case of the matrix-matrix
multiplication we have already discussed. Consider multiplying a column vector of length m
by a matrix of size n × m,
e.g.
 
 2 
   
1 3 6     23 
=

 1 
 
   
0 −1 4   11
3

which results in a column vector of length n and in this case n = 2.

2.1.9 Special Matrices

Identity Matrix, I: The identity matrix, I, of size n × n, is defined in equation 12.




1 if i = j

aij = (12)

0 if i 6= j

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy