Introduction To Vectors and Matrices and Their Operations

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 29

Click to edit Master title style

Introduction to Vectors
and Matrices and Their
Operations
FEIGI LOUIE D. PEDRERA

1
Click to edit Master title style
Objectives:

• 1. show understanding of the concepts of


matrices and vectors in linear algebra.
• 2. perform basic operations on matrices
and vectors, such as addition, scalar
multiplication, matrix multiplication, and
dot product.
• 3. use matrix and vector operations to
solve real-world problems.

2 2
Click to edit Master title style

Of Matrices and
Vectors
Why do we need to learn them?

3 3
Some Applications…
Click to edit Master title style

COMPUTER SCIENCE: matrices are used in image


processing, machine learning, and computer graphics.
Ve c t o r s a r e u s e d i n m o d e l i n g m o t i o n , r e p r e s e n t i n g d a t a
points, and calculating distances.

PHYSICS: matrices and vectors are essential for


describing quantities, such as forces, velocities,
and electric fields.
ECONOMICS: matrices are used to model
economic systems, analyze input-output
relationships, and solve optimization problems.

4 4
Click to edit Master title style

What do they look like?


M a t r i x V S Ve c t o r

5 5
Examples and Notations
Click to edit Master title style
An example of a matrix Vector examples

A matrix containing only one column is called a


MATRIX is an array or table consisting of rows column vector and a matrix containing only
and columns of numbers. one row is called a row vector.
The matrix above have m = 3 rows and n = 4 u is a row vector and v is a column vector.
columns – The matrix A is an 3 x 4 matrix (m x U is a 1 x 3 matrix. V is a 2 x 1 matrix.
n matrix)
The entry of A in the i th row and j th column Notice that we use the uppercase letter to
denote a Matrix and a lowercase letter for a
will be denoted by aij. vector.
6

The entry at a24.= 8 6


Matrices
Click provides
to edit Masterustitle
a powerful
style tool in dealing with
systems of linear equations.

• We can let A be coefficient


matrix,
• the output vector b,
• and the augmented matrix [A b]
are:
7 7
Vectors
Click canMaster
to edit be usedtitle
to describe
style physical quantities such
as speed/length with direction (in 2D, 3D, 4D….nD)

8 8
Click to edit Master title style

Lets Operate!

9 9
Matrix and Vector Addition
Click to edit Master title style

Or more concisely (assuming that A + B = C), cij = aij + bij


1010
Matrix and Vector Addition
Click to edit Master title style

Or more concisely (assuming that A + B = C), cij = aij + bij


1111
Matrix and Vector Addition
Click to edit Master title style

Example 1: Vector Addition


1212
Matrix and Vector Addition
Click to edit Master title style

Example 1: Vector Addition


1313
Matrix and Vector Addition
Click to edit Master title style

Example 2: Matrix Addition


1414
Matrix and Vector Addition
Click to edit Master title style

Example 3: Matrix Addition (Subtraction)


1515
Click to edit Master title style
Scalar Multiplication on Vectors and Matrices

1616
Click to edit Master title style
Scalar Multiplication on Vectors and Matrices

Example 4: Matrix Scalar Multiplication


1717
Click to edit Master title style
Scalar Multiplication on Vectors and Matrices

Example 5: Vector Scalar Multiplication


1818
Click to edit Master title style
Dot (Inner) Product for Vectors

To give simpler generalization, we take a look a 1x2 vector:

a = [ax ay] and b = [bx by]

a · b = a x bx + ay by
Note that the product is a scalar (neither a vector nor a matrix) 1919
Click to edit Master title style
Dot (Inner) Product for Vectors
Let a = [5 3] and b = [2 7]

a · b = a x bx + a y by
= 5(2) + 3(7)
= 10 + 21
a · b = 31
Example 6: Dot product of vectors
2020
Matrix Multiplication
Click to edit Master title style

The product AB is defined only when the number of columns


of A equals the number of rows of B.

(m × n) · (n × p) → m × p
2121
Click to edit Master title style
Matrix Multiplication
Let

Example 7: Matrix Multiplication


2222
Click to edit Master title style
Matrix Multiplication
Let

2323
Click to edit Master title style

Exercises

2424
Click to edit Master title style

2525
Click to edit Master title style
Summary
A matrix is an array of numbers arranged in rows and columns. This is
usually used to easily deal with systems of linear equations.
A vector is a type o matrix that either have one row or column.
They can both be used to mathematically describe physical quantities
real-life and therefore have a wide range of application from physics to
economics to computer science.
We can perform operations on vectors and matrices.
For vectors we can:
a. add them
b. Perform scalar multiplication
c. Obtain dot products
For Matrices we can:
a. Add and subtract them
b. Perform scalar multiplication
c. Perform matrix multiplication (column of the first matrix should
be equal to the row of the second matrix)
2626
Click to edit Master title style
Assessment
Answer all the odd numbered
items on the answer sheet
provided by the instructor.

2727
Click to edit Master title style
Assignment
On the next session, submit a
worked-out example of a real-world
problem that uses vector/matrix
operati on. Outputs must include a
complete and detailed soluti on and
some illustrati on or pictures where
applicable. This must be put on an
A4 sheet of paper.

2828
Click to edit Master title style

Thank You!

29

You might also like