Académique Documents
Professionnel Documents
Culture Documents
Introduction to multivariable
functions and vectors
~v + w~ = hv1 + w1 , . . . , vn + wn i (1.3.1)
α · ~v = hαv1 , . . . , αvn i . (1.3.2)
1
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 2
| |~v −
|w~ w
~|
θ
|~v |
~ 2 = |w|
|~v − w| ~ 2 + |~v |2 − 2|~v ||w|
~ cos(θ) (1.3.6)
In particular if you can calculate all those magnitudes you can solve for
cos(θ) and then arccos it. Informally it’s the angle between the vectors when
you put their backsides together. Doing this in 2D is straightforward.
Example 1.3.1. What is the angle between the vectors w ~ = h−5, 4i and
~v = h2, 2i?
h−5, 4i y
w~
h2, 2i
θ ~u
x
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 3
~v · w
~ = v1 w1 + . . . + v1 wn . (1.3.7)
|~v |2 = ~v · ~v (1.3.8)
~v · w
~ = 1 · 3 + 2 · 4 = 3 + 8 = 11
|~v |2 = ~v · ~v = 1 · 1 + 2 · 2 = 5
√
⇒ |~v | = 5
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 4
~u · ~v = ~v · ~u (1.3.9)
(~u + ~v ) · w~ = ~u · w ~ + ~v · w
~ (1.3.10)
(α~v ) · w~ = α(~v · w)~ (1.3.11)
• if ~v and w
~ are orthogonal (or perpendicular) then ~v · w
~ = 0, and
• if ~v and w
~ are parallel then ~v · w
~ = ±|~v ||w|
~
Solution.
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 5
(a) We have
~u · ~v = (−1) · 1 + 2 · (−1) + (−3) · (−1) = 0
π
which implies that ~u ⊥ ~v , that is, θ = .
2
(b) We have ~u · ~v = 0 · 3 + 2 · 2 + (−1) · 1 = 3. Next,
p √ √ √
|~u| = 02 + 22 + (−1)2 = 5, |~v | = 32 + 22 + 12 = 14
hence, √ √
3= 5 · 14 · cos θ
from which we obtain
3 3
cos θ = √ , and θ = arccos √ ≈ 69◦
70 70
~ 2 = (~v − w)
|~v − w| ~ · (~v − w)
~
to prove the equality (1.3.12), i.e. the geometric definition of the dot product.
Solution.
~2=
|~v − w|
(~v − w)
~ · (~v − w)
~ = ~v · (~v − w)
~ −w
~ · (~v − w)
~
= ~v · ~v − ~v · w
~ −w
~ · ~v + w ~ = |~v |2 − 2(~v · w)
~ ·w ~2
~ + |w|
~ 2 = |~v |2 + |w|
⇒ |~v − w| ~ 2 − 2(~v · w)
~
~n
Y
P~Y
P~X X
P
~n · P~X = 0 (1.3.13)
⇔ a · (x − x0 ) + b · (y − y0 ) + c · (z − z0 ) = 0 (1.3.14)
⇔ ax + by + cz = ax0 + by0 + cz0 (1.3.15)
⇔ ~n · X ~ = ~n · P~ (1.3.16)
~n · hx, y, zi = ~n · P~
⇔ h7, 8, 9i · hx, y, zi = h7, 8, 9i · h4, 5, 6i
⇔ 7x + 8y + 9z = 7 · 4 + 8 · 5 + 9 · 6 = 122
now if Q is a point on that plane then its entries, substituted into x, y, z must
satisfy this equation. We verify
~ = 7 · 1 + 8 · 2 + 9 · 3 = 50 6= 122.
~n · Q
So Q is not on Π.
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 7
and
m~ ·X~ =m~ · P~
4x − 6y + 2z = 12
4x − 6y + 2z = 12
−1 −1
⇒ (4x − 6y + 2z) = · 12
2 2
−2x + 3y − z = −6
So that the two equations, although they look different, are in fact equivalent,
i.e. they have the same solutions.
It turns out that the point normal equations work in every Rn , and they
give rise to a codimension 1 hyperplane (i.e. an n − 1 dimensional linear
affine subspace). Let’s do the easy to draw case:
Example 1.3.9. Let P = (2, 1) and let ~n h−3, 1i be in R2 . What is the line
line ` passing through P with normal vector ~n?
Solution. Let’s draw a picture
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 8
`
~n
P
x
~n · hx, yi = ~n · P~
−3x + y = −3 · 2 + 1 · 1 = −5.
α · h1, 2, 3i = h5, 6, 7i
equating first entries forces α = 5 but 5 · h1, 2, 3i = h5, 10, 15i so the normal
vectors; thus also the planes; are not parallel. To find a common point we
need to find a common solution to
x + 2y + 3z = 4
5x + 6y + 7z = 8
one trick, which may work, is to set z = 0 this gives:
x + 2y = 4
5x + 6y = 8
In this case we are lucky and we find the solution x = −2, y = 3 so that
P = (−2, 3, 0). Check the answer by plugging into the equations!
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 9
1.3.2 Exercises
1. Compute the following dot products:
3. Let ~v = h1, 1, 0i. Find two unit vectors ~u1 , ~u2 that are orthogonal to ~v .
4. (a) Find the equation of the plane passing trough P = (1, 1, 1) and
normal to ~n = (2, −1, −2). Express it in the form
z = ax + by + d.
x + y + z = 1.
3x − 2y + z = 13.
y
C
D
B P
~n
A
x
7. Suppose you have goods such that the price per kilogram is given by a
vector P~ = hp1 , p2 , p3 i and let Q
~ = hq1 , q2 , q3 i be a vector of masses in
kilograms. What does P~ · Q ~ represent?
CHAPTER 1. MULTIVARIABLE FUNCTIONS; VECTORS 11
Answers:
1. (a) 11
(b) 0
−103
(c) 5
√ √
3
2. (a) arccos − 793 61 13 radians or approximately 96.11550356628541◦
√ √
16
(b) arccos 539 77 14 radians or approximately 12.933154491899106◦
√ √
17
(c) arccos − 924 22 14 radians or approximately 108.83768726421319◦
3. There are infinitely many good answers to this question, but h0, 0, 1i
works, or any unit vector ~u such that ~u · h1, 1, 0i = 0. Another choice
is √12 h−1, 1, 0i.
4. (a)
2x − y − 2z = −1
1 y
⇒z = + x −
2 2
−x+y =2
⇒y = x + 2
6. (a) If ~v · w
~ = 0 then
~v · (α · w)
~ = α (~v · w)
~ = α · 0 = 0.
If ~v · ~a = 0 as well, then
~v · (~a + w)
~ = ~v · ~a + ~v · w
~ = 0 + 0 = 0.
~v · h0, 1, 0i .
7. The cost of ordering q1 kilos of the first good, q2 kilos of the second
good and q3 kilos of the third good.