Vector Operations
Vector Operations
6 Vector Operations
Now that you have the basic idea of what a vector is, we'll look at operations
that can be done with vectors. As you learn these operations, one thing to
pay careful attention to is what types of objects (vector or scalar) each
operation applies to and what type of object each operation produces.
If k > 0, then kv→ is the vector pointing in the same direction as v→ that's
k times as long as v →.
If k = 0, then kv→ is →
0.
If k < 0, then kv→ is the vector pointing in the opposite direction from v→
that's |k| times as long as v→.
For example, if v→ is the vector shown at left below, here's how you'd picture
→ and −0.6v→:
2v
From the pictures above, it shouldn't surprise you that we say that two
vectors are parallel if one of them is a scalar multiple of the other. So, the
three vectors above are all parallel to each other.
(with its tail anywhere), and then draw w→ with its tail at the head of v→. Then,
→+w
v → is defined to be the vector that goes from the tail of v→ to the head of
→.
w
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 1/6
24/01/2024, 16:03 Vector Operations
if the sunlight hits the solar panel at a 90 angle; the solar panel can capture
∘
the most energy this way. On the other hand, if the sunlight happens to be
parallel to the panel, the panel can't get any energy from the sunlight. In this
example (and many others), the angle between two objects is important.
The dot product is an operation on vectors that enables us to easily find
the angle between two vectors.
First, it's important to understand that, when we talk about the angle
between two vectors, we're picturing the vectors with their tails at the same
→ and →b in the left picture below, the angle is the
point. So, for the vectors a
one shown in the right picture:
Here's the algebraic definition of the dot product; it's rather surprising that
this simple definition has anything to do with angles!
3 → ⋅ →b is the scalar a
the dot product a 1
b 1 + ⋯ + an b n .
Notice that the dot product is an operation between two vectors in R that n
produces a scalar. The key property of the dot product is this one:
(If you're interested in why this is true, see the worksheet on the dot
product.)
Example 6.4. Using this key fact, we can find the angle between
→
v = ⟨1, 2, 3⟩ → = ⟨4, 5, 6⟩. We already calculated in Example 6.2 that
and w
→ → . By the Pythagorean Theorem, ∥v
v ⋅ w = 32 →∥ = √1 + 2 + 3 = √14 and 2 2 2
There's an important special case of Fact 6.3 that we use frequently: if the
angle between two vectors a→ and →b is 90 , then a
→ ⋅ →b = ∥a
→∥∥→b∥ cos 90 = 0. So,
∘ ∘
a simple way to test whether two vectors are perpendicular (also called
“orthogonal”) is to see whether their dot product is 0. 4
numbers 1, −4, and 5 are the x-, y-, and z-components of →b . These scalars
tell us how far (and in which direction) along each coordinate axis the vector
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 2/6
24/01/2024, 16:03 Vector Operations
goes. This idea can be generalized to directions other than the coordinate
axes.
Why might this be useful? Think about the solar panel example from earlier;
if you've installed a solar panel, there's an ideal direction for the light to be
going: perpendicularly toward the solar panel. So, you might wonder how
much the sunlight is really going in that particular direction.
From the picture, we can see that the component of →b in the direction of the
axis above is 4. We call this the scalar component of →
b in the direction of
▼ Solution
→ (shown in
First, we draw in the axis indicated by the direction of a
blue below). Then, by dropping a perpendicular from the vector to the
axis, we can see that the scalar component of →b in the direction of a
→ is
about −0.5.
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 3/6
24/01/2024, 16:03 Vector Operations
The same formula ∥→b∥ cos θ also works when the angle between a
→ and →b is
greater than 90 . (Do you see why?)
∘
Let's see if we can simplify this formula. As we've seen, the way to find the
angle θ is to use the dot product. We can rewrite the formula
→ →
→ → → . Therefore, the scalar component of →
a ⋅ b
→
a ⋅ b = ∥a∥∥ b∥ cos θ as cos θ = b
→∥∥→b∥
∥a
→ is
in the direction of a
→ → → →
a ⋅ b → →
a ⋅ b
∥ b∥ cos θ = ∥ b∥ = .
→∥∥→b∥
∥a
→∥
∥a
→
Since a
→
is a unit vector that points in the same direction as a
→, we often
∥ a∥
→ is irrelevant when
Notice that this formula says that the length of a
calculating the scalar component, which agrees with our geometric
understanding.
If you haven't already, first watch this video on calculating cross products.
Now, let's describe what the cross product tells us. Since the cross product
is a vector, we can describe it by saying what its magnitude and direction
are.
▼ Solution
To find the angle between two vectors, we use the dot product
formula. So, to find the angle between
→ → and a→, we first calculate
a × b = ⟨a2 b3 − a3 b2 , a3 b1 − a1 b3 , a1 b2 − a2 b1 ⟩
→ × →b) ⋅ a
their dot product. If you do this, you find that (a → × →b
→ = 0, so a
is perpendicular to a→.
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 4/6
24/01/2024, 16:03 Vector Operations
→ × →b) ⋅ →b = 0, so a
Similarly, we can calculate that (a → × →b is
perpendicular to →b .
as the right-hand rule. Orient your right hand so that your index finger is
pointing in the direction of a → and your middle finger is pointing in the
direction of →b . (This may require some contortions!) If you then move your
thumb to be perpendicular to your index and middle fingers, it will be
→ × →b , as in the picture below:
pointing in the direction of a
Source:
https://commons.wikimedia.org/wiki/File:Right_hand_rule_cross_product.svg
There's another way to visualize the right-hand rule, which you can take a
look at in \S 2.4 of OpenStax Calculus Volume 3; it's Figure 2.54.
You might wonder why the cross product is a useful operation. Imagine
you're planning to install a parallelogram-shaped solar panel. There are two
key factors that will affect how much sunlight the panel will collect: the area
of the panel and the direction that the panel is facing. For example, if the
panel is facing the ground, it won't collect any sunlight, even if its area is
→ and →b , the cross product
large! If the parallelogram is described by vectors a
→
→ × b gives information both about the direction the parallelogram is facing
a
(using the right-hand rule) and the area of the parallelogram (the length of
→
a × b
→). So, the cross product is a useful tool for calculating how much
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 5/6
24/01/2024, 16:03 Vector Operations
sunlight the panel can gather. We'll follow up on this idea much later this
semester when we study an idea called flux.
https://people.math.harvard.edu/~jjchen/math21a/handouts/vector-ops.html 6/6