Mat9004 Lecture08 Empty
Mat9004 Lecture08 Empty
Mat9004 Lecture08 Empty
Retap F CH
:÷:÷÷÷÷÷÷÷:: .i ÷
•
Fundamental Theorem of calculus (
FTC)
of far ) )
=
antideriv .
• Rules of integration
etc )
"
( linear
"
,
catch up session
Friday 28 August 11am :
10 -
Introduction to matrices
What is a matrix?
Matrix addition and scalar multiplication
(Source: datascience.ibm.com)
Example.
0 1 0 1 0 1 0 1 0 1
1 2 3 1 2
@ 1A + @1A = @0A , 2 @ 1A = @ 2A .
0 3 3 0 0
✓ ◆
a
A 2-dimensional vector can
b
be represented by an arrow from
(0, 0) to (a, b).
However, in general a vector has
no defined starting point, it
rather describes a displacement.
✓ ◆
1
v=
4
✓ ◆ ✓ ◆
3 1 ✓ ◆
Vectors u = and v = 2
1 4 u+v =w =
3
✓ ◆ ✓ ◆
4 2
Vector u = Vectors 12 u = v =
2 1
✓ ◆
8
and 2u = w =
4
1 1 1 2
=v+ u v = u + v.
3 3 3 3
The dashed line is the line
interval joining points u and v. It
contains the set of points of the
form v + ↵(u v) where
0 6 ↵ 6 1. This simplifies to:
2
The points 3 of the way along any two medians are equal!
w = a1 v1 + · · · + an vn
Example.
0 1 0 1 0 1
1 0 1
@0A , @1A , @ 1A are linearly dependent since
0 0 0
0 1 0 1 0 1
1 1 0
@ 1A = 1 @0A + ( 1) @1A .
0 0 0
Think of linear dependence as redundancy in your data: you
can reconstruct one of the vectors by a linear combination of
the others.
Independence = no redundancy.
MAT9004 Lecture 8 Slide 16/28
Exercise
Decide whether the following vectors are linearly independent:
✓ ◆ ✓ ◆
1 3
(a) v1 = , v2 =
5 15
0 1 0 1
1 2
(b) v1 = @ 1A , v2 = @ 1 A
0 0
0 1 0 1 0 1
1 3 0
(c) v1 = @1A , v2 = @0A , v3 = @ 3A
1 2 1
Answers:
(a) No, since v2 = 3v1 There is a general method to
(b) Yes determine linear independence:
It uses next week’s topic.
(c) No, since v3 = v2 + ( 3)v1
v · w = v1 w 1 + v2 w 2 + · · · + vd w d .
0 1
v1
B C
The (Euclidean) norm of v = @ ... A is defined as
vd
q
|vk = v12 + v22 + · · · + vd2 .
v · w = 1 ⇥ 2 + ( 1) ⇥ 2 + 0 ⇥ 1 = 0
q p
2 2
kvk = 1 + ( 1) + 0 = 2 2
p
kwk = 22 + 22 + 12 = 3.
v · w = 1 ⇥ 2 + ( 1) ⇥ 2 + 0 ⇥ 1 = 0
q p
2 2
kvk = 1 + ( 1) + 0 = 2 2
p
kwk = 22 + 22 + 12 = 3.
Exercise
Compute v · w, kvk, kwk for
0 1 0 1
1 2 ✓ ◆ ✓ ◆
4 2
(a) v = @1A , w = @ 3 A , (b) v= ,w =
2 1
1 1
(a) (b)
v·w =2 v·w = 10
p p
kvk = 3 kvk = 20
p p
kwk = 14 kwk = 5
Examples.
✓ ◆ ✓ ◆
1 1
and are orthogonal.
1 1
0 1 0 1 0 1
1 0 0
@0A, @1A, @0A are pairwise orthogonal
0 0 1
and
nonzero
If v1 , . . . , vn
v
are pairwise orthogonal, then they are linearly
independent.
Examples
✓ ◆
1 1
is a 2 ⇥ 2 matrix
0 2
0 1
1.5 0 2 1
@0 0.7 1.8 15A is a 3 ⇥ 4 matrix
0 0 0 0
Example.
✓ ◆ ✓ ◆ ✓ ◆
1 1 3 2 4 1
+ =
2 0 1 0 3 0
Example.
✓ ◆ ✓ ◆
0 1 0 3
3 =
2 3 6 9