++++Unit 1 - Introduction to Linear Algebra
++++Unit 1 - Introduction to Linear Algebra
www.udst.edu.q
Outline
• Introduction to the course
• Recap on App Diff Equ principles
– Space
– Coordinates,
– Points,
– Scalars & Vectors
– Exercise
• Matrices
– Fundamentals
– Multiplications
– Inverse & Identity
– Exercises &tests
2
nD Space
nD Space:
n : number of dimensions
Examples:
• 1D space: time, along a line or curve
• 2D space: plane, sphere
• 3D space: the world we live in
• 4D space: 3D + time
3
Cartesian Coordinates
• The Cartesian coordinate system is a system of
orthogonal axes which is the basis for
describing body and force systems in
mechanics.
– The coordinate system is always right handed (obeys the
right hand rule.
– We will focus on 2D systems.
y
x 4
Coordinates
2D Cartesian coordinates:
x
y (x,y)
(x,y)
x
Standard Screen (output, input)
5
Polar coordinates
Coordinate transformation
y
(x,y) from (r , ) to ( x, y ) space :
x = r cos
r
y = r sin
x Angle : in radians
6
3D coordinates (1)
3D Cartesian coordinates:
z (x,y,z) (x,y,z)
z
y x
x y
Right-handed Left-handed
7
Points
• Notation: P, also P, p, p
10
Scalars and Vectors
• A scalar is a physical quantity having magnitude
but not direction
– Length, mass, time
11
SCALAR
Scalar
A SCALAR quantity Example Magnitude
is any quantity in
physics that has Speed 35 m/s
MAGNITUDE ONLY
Distance 25 meters
Number value
with units Age 16 years
12
VECTOR
Vector Magnitude and
Example Direction
13
Scalars and Vectors
• Vector:
– “arrow”
– multiple interpretations (displacement, velocity,
force, …)
– has a magnitude and direction
– has no position
• Notation: V, also V, v, v
• (Vx, Vy, Vz), also (x, y, z), (x1, x2, x3)
14
Scalars and Vectors
• Vectors have components along axes of the
Cartesian system
z
b
a
P = aiˆ + bˆj + ckˆ
k̂ P
c iˆ ĵ
y
x 15
Scalar times vector
16
Scalar times vector
17
Scalar multiplication of vector
y y
2V
V
x x
18
Scalar times vector
19
20
21
22
Short intro to Linear Algebra
u = 2x + 3y + 4z
v = x − 5 y + 3z
w = 5x + y − z
23
Very short intro to Linear Algebra
u = 2x + 3y + 4z
v = x − 5 y + 3z
w = 5x + y − z
Typical questions:
- Given u, v, w, what are x, y, z?
- Can we find a unique solution?
24
Outline
• Introduction to the course
• Recap on App Diff Equ principles
– Space
– Coordinates,
– Points,
– Scalars & Vectors
– Exercise
• Matrices
– Fundamentals
– Multiplications
– Inverse & Identity
– Exercises & tests 25
What is a matrix?
Matrix:
- Mathematical objects with operations
On a simple level, a matrix is simply a way to organise values into rows and columns,
and represent these multiple values as a single structure.
26
Matrix
Examples:
x
3.60 − 0.01 2.1 e x
x
− 5.46 0.00 1.6 , 2 x 2
, a1 a2 a3 , y
e x
z
27
Matrix Fundamentals
28
Matrix Fundamentals
30
Matrix Fundamentals
# Dimensions of Matrices
The dimension of a matrix is its size, in terms of its number of rows and columns.
Matrix Dimensions
23
31 ?
13 ?
31
Matrix Fundamentals
32
Matrix Fundamentals
1
𝑨= 6
−3
𝑪 = 𝑷𝟐 𝑻𝑷
33
Matrix Fundamentals
Addition
– Commutative: A+B=B+A
– Associative: (A+B)+C=A+(B+C)
2 4 1 0 2 + 1 4 + 0 3 4
A+B = + = =
2 5 3 1 2 + 3 5 + 1 5 6
Subtraction
- By adding a negative matrix
34
Matrix Fundamentals
# Adding/Subtracting Matrices
Simply add/subtract the corresponding elements of each matrix.
They must be of the same dimension.
35
Matrix Fundamentals
Scalar multiplication
36
Matrix Fundamentals
# Scalar Multiplication
A scalar is a number which can ‘scale’ the elements inside a matrix/vector.
1 ?
2 ?
37
Matrix Multiplication
n l
A1 A2 A3 B13 B14
m A4 A5 A6 x B15 B16 k = m x l matrix
A7 A8 A9 B17 B18
A10 A11 A12
38
Matrix Multiplication
• Matrix multiplication is NOT commutative i.e the
order matters!
– AB≠BA
48
Matrix multiplication
40
Matrix multiplication
41
Matrix multiplication
42
Matrix multiplication
43
Matrix multiplication
44
Matrix multiplication
45
Matrix multiplication
46
Matrix multiplication
47
Matrix multiplication
• Multiplication method:
Sum over product of respective rows and columns
48
Matrix Fundamentals
Matrix Multiplication
This is where things get slightly more complicated...
1 0 3 -2 5 1 -11 16
2 8 4 3 1 7 42 61
7 -1 0 2 0 3
8 -3 50 -6
We start with this row and column, and sum the products of each pair.
(1 x 5) + (0 x 1) + (3 x 0) + (-2 x 8) = -11
49
Further Example
4
A = 1 2 3 , B = 5
6
4
AB = 1 2 3 5 = 1 4 + 2 5 + 3 6 = 32
6
BA =
50
Answer:
4
A = 1 2 3 , B = 5 AB BA
6
4
AB = 1 2 3 5 = 1 4 + 2 5 + 3 6 = 32
6
4 4 1 4 2 4 3 4 8 12
BA = 5 1 2 3 = 5 1 5 2 5 3 = 5 10 15
6 6 1 6 2 6 3 6 12 18
51
Further Example
10
= ?
17
52
Test Your Understanding
Now you have a go...
1 0 0 1 𝟎 𝟏
a If 𝐴 = ,𝐵 = , 𝐴𝐵 = ?
1 1 3 2 𝟑 𝟑
1 1 3 𝟐 ?
b =
2 0 −1 𝟔
1
1 2 2
7 10 1 2 3 2 = 14 ?
c =
3 4
?
15 22 1
3
1 2 3
2 1 2 3 = 2 4 6
3
?
3 6 9
53
Identity Matrix
1 0 𝑎 𝑏
Let 𝑰 = and 𝐴 = .
0 1 𝑐 𝑑
Determine:
𝒂
𝐴𝐼 = ?𝒃
𝒄 𝒅
𝒂 𝒃
𝐼𝐴 = ?𝒅
𝒄
1 0
𝑰 = is known as the ‘identity matrix’.
0 1
Multiplying by it has no effect, i.e. 𝐴𝐼 = 𝐼𝐴 = 𝐴 for any matrix 𝐴.
➢ It may seem pointless to have such a matrix, but it’ll have more importance
when we consider matrices as ‘transformations’ later. Although admittedly
you won’t quite fully appreciate why we have it unless you do Further Maths
A Level…
54
Exercise 1
1
? ? ?
? ? ?
? ? ?
? ? ?
3
? ? ?
? ? ? 55
Exercise 1
4 ? ? ?
? ? ?
? ?
?
? ?
?
6
? ? ?
? ? ?
56
Exercise 1
7
? ?
?
? ?
?
57
Transposition
1 3
b = 1 d = 4
T
bT = 1 1 2 d = 3 4 9
2 9
column row row column
1 2 3 1 5 6
A = 5 4 1 AT = 2 4 7
6 7 4 3 1 4
58
Thank you
+974 4495 2222
Location
University of Doha for Science &
Technology
68 Al Tarfa, Duhail North
P.O. Box 24449 Doha, Qatar