Professional Documents
Culture Documents
Linear Algebra Tutorial I
Linear Algebra Tutorial I
Tutorial I
EECS 442
Fall 2020, University of Michigan
2 𝒙𝒙1 = 2
𝒙𝒙 =
3 𝒙𝒙2 = 3
y = [3,1]
2x+y = [7,7]
y = [3,1]
𝒆𝒆𝟏𝟏
Slide Adapted from David Fouhey 9
Dot Products
𝑛𝑛
𝒚𝒚′ 𝒚𝒚
Slide Adapted from David Fouhey 11
Special Angles
𝑥𝑥1 𝑦𝑦1
𝑥𝑥2 ⋅ 𝑦𝑦2 = 𝑥𝑥1 𝑦𝑦1 + 𝑥𝑥2 𝑦𝑦2 = 0
𝒙𝒙
Perpendicular /
orthogonal vectors
have dot product 0
𝒙𝒙′ irrespective of their
𝜃𝜃 magnitude
𝒚𝒚′ 𝒚𝒚
Slide Adapted from David Fouhey 12
Orthogonal Vectors
𝒙𝒙 = [2,3]
• Geometrically,
what’s the set of
vectors that are
orthogonal to x?
• A line [3,-2]
𝑦𝑦1 𝑻𝑻
𝒖𝒖𝟏𝟏
𝑦𝑦2 = 𝒙𝒙 3
𝑻𝑻
𝒖𝒖𝟐𝟐
𝑻𝑻 𝑻𝑻
𝑦𝑦1 = 𝒖𝒖𝟏𝟏 𝒙𝒙 𝑦𝑦2 = 𝒖𝒖𝟐𝟐 𝒙𝒙
Dot product between rows of A and x
− 𝑻𝑻
𝒂𝒂𝟏𝟏 − | |
𝑨𝑨𝑨𝑨 = ⋮ 𝒃𝒃𝟏𝟏 ⋯ 𝒃𝒃𝒑𝒑
− 𝒂𝒂𝑻𝑻𝒎𝒎 − | |
Yes – in A, I’m referring to the rows, and in B,
I’m referring to the columns
| |
𝒃𝒃𝟏𝟏 ⋯ 𝒃𝒃𝒑𝒑
| |
− 𝒂𝒂𝑻𝑻𝟏𝟏 − 𝒂𝒂𝑻𝑻𝟏𝟏 𝒃𝒃𝟏𝟏 ⋯ 𝒂𝒂𝑻𝑻𝟏𝟏 𝒃𝒃𝒑𝒑
𝑨𝑨𝑨𝑨 = ⋮ ⋮ ⋱ ⋮
− 𝒂𝒂𝑻𝑻𝒎𝒎 − 𝒂𝒂𝑻𝑻𝒎𝒎 𝒃𝒃𝟏𝟏 ⋯ 𝒂𝒂𝑻𝑻𝒎𝒎 𝒃𝒃𝒑𝒑
𝑨𝑨𝑩𝑩𝑖𝑖𝑖𝑖 = 𝒂𝒂𝑻𝑻𝒊𝒊 𝒃𝒃𝒋𝒋
Slide Adapted from David Fouhey 22
Matrix Multiplication
3 2 1 7
3 2 1 13
3 2 1 12
.
Slide Adapted from David Fouhey 25
.
Operations They Don’t Teach
You Probably Saw Matrix Addition
𝑎𝑎 𝑏𝑏 𝑒𝑒 𝑓𝑓 𝑎𝑎 + 𝑒𝑒 𝑏𝑏 + 𝑓𝑓
+ =
𝑐𝑐 𝑑𝑑 𝑔𝑔 ℎ 𝑐𝑐 + 𝑔𝑔 𝑑𝑑 + ℎ
What is this? FYI: e is a scalar
𝑎𝑎 𝑏𝑏 𝑎𝑎 + 𝑒𝑒 𝑏𝑏 + 𝑒𝑒
+ 𝑒𝑒 =
𝑐𝑐 𝑑𝑑 𝑐𝑐 + 𝑒𝑒 𝑑𝑑 + 𝑒𝑒