Professional Documents
Culture Documents
Danziger
Vectors
1
1 Vectors in Rn P. Danziger
i.e. R2 = {(x, y) | x, y ∈ R}
i.e. R3 = {(x, y, z) | x, y, z ∈ R}
2
1 Vectors in Rn P. Danziger
Example 1
(1, 2) ∈ R2,
(1, 2, 3) ∈ R3,
(1, 2, 3, 4) ∈ R4,
(0, 2, 3, 1, 0, 2, 6) ∈ R7.
324 ∈ R is a scalar.
3
1 Vectors in Rn P. Danziger
4
1 Vectors in Rn P. Danziger
6
1 Vectors in Rn P. Danziger
P~Q = (d − a, e − b, f − c) = OQ
~ − OP
~ .
Example 2
Find the vector joining P to Q where P = (1, 3, 2)
and Q = (1, 1, 4).
7
1 Vectors in Rn P. Danziger
Scalar Multiplication
Geometrically, given a scalar k and a vector u ∈ Rn,
ku is the vector in the same (or opposite) direction
as u but with magnitude k times as large.
Example 3
5(1, 2, 3) = (5, 10, 15)
Example 5
Find a such that (1, 2, a) is parallel to (2, 4, 6)
Vector Addition
u − v = u + (−1)v
9
1 Vectors in Rn P. Danziger
Example 6
(1, 3) + (1, 4) = (2, 7).
10
1 Vectors in Rn P. Danziger
Special Vectors
u = u1 e 1 + u2 e 2 + . . . + un e n
11
1 Vectors in Rn P. Danziger
i, j, k Notation
In R2 we set use i to denote the unit vector along
the x−axis and j to denote the unit vector along
the y−axis.
i = e1 = (1, 0), j = e2 = (0, 1).
Algebraic Properties
Theorem 7 (Properties of Vectors in Rn) Given
vectors u, v, w ∈ Rn and a scalars k, ` ∈ R then:
1. u + v = v + u (Commutativity)
2. (u + v) + w = u + (v + w) (Associativity)
3. u + 0 = 0 + u = u (Existence of Identity)
4. u + −u = −u + u = 0 (Existence of Additive
Inverse)
8. 1u = u (Scalar Identity)
9. 0u = 0
10. k0 = 0
13
1 Vectors in Rn P. Danziger
Dot Product
Example 8
(1, 2, 3) · (4, 5, 6) = 1 × 4 + 2 × 5 + 3 × 6
= 4 + 10 + 18
= 32
(1, 2, 3, 4) · (4, 5, 6, 7) = 1 × 4 + 2 × 5 + 3 × 6 + 4 × 7
= 4 + 10 + 18 + 28
= 60
14
1 Vectors in Rn P. Danziger
1. u · v = v · u (Commutativity)
2. (u + v) · w = v · w + u · w (Distributivity)
15
1 Vectors in Rn P. Danziger
Magnitude of a Vector
Note In R2 and R3
q
√ a2 + b2 In R2
||u|| = u·u = q
a2 + b2 + c2 In R3
Example 11
Find the magnitude of the vector u = (1, 2, 3)
u · u = (1, 2, 3) · (1, 2, 3) = 1 + 4 + 9 = 14
√
Thus ||u|| = 14.
Example 13
17
1 Vectors in Rn P. Danziger
Example 15
Find the distance between u = (1, 3, 2) and v =
(1, 1, 4).
q √
||v − u|| = ||(0, −2, 2)|| = (−2)2 + 22 = 8
1. d(u, v) ≥ 0
3. d(u, v) = d(v, u)
Unit Vectors
Example 19
Find a unit vector parallel to v = (1, 1, 1).
√ √
||v|| = 1+1+1= 3,
!
v 1 1 1 1
So = √ (1, 1, 1) = √ ,√ ,√ .
||v|| 3 3 3 3
19
1 Vectors in Rn P. Danziger
Unit Vectors in R2
(cos θ, sin θ)
where θ is the angle with the x−axis.
||u||(cos θ, sin θ)
Example 20
Find a vector in R2 which makes an angle of π3
with the x axis, and has magnitude 2.
√
√
!
π π 3 1
u = 2 cos , sin =2 , = 3, 1
3 3 2 2
20
1 Vectors in Rn P. Danziger
Direction Cosines
Example 21
Find the direction cosines of v = j − k.
√
||v|| = 2,
Thus the cosine of the angle u makes with the
x−axis is π2 . So u is perpendicular to the x−axis.
The cosine of the angle u makes with the y−axis
is √1 . So u makes an angle of π4 with the y−axis.
2
The cosine of the angle u makes with the z−axis
is − √1 . So u makes an angle of 3π
4 with the z−axis
2
21
1 Vectors in Rn P. Danziger
22
1 Vectors in Rn P. Danziger
Example 24
u = i + j + k and v = 2i + j − k.
√ √
u · v = 2 + 1 − 1 = 2, ||u|| = 3, ||v|| = 6.
2 2
So cos θ = √ √ = √
3 6 18
!
2
θ = cos−1 √ .
18
23
1 Vectors in Rn P. Danziger
Orthogonality
Example 26
24
1 Vectors in Rn P. Danziger
25
1 Vectors in Rn P. Danziger
Proof:
||u + v|| = (u + v ) · ( u + v )
= u·u+u·v+v·u+v·v
= u·u+v·v
= ||u||2 + ||v||2
26