MATH2412 Dot Product
MATH2412 Dot Product
MATH2412 Dot Product
In this section, we will now concentrate on the vector operation called the dot product. The dot
product of two vectors will produce a scalar instead of a vector as in the other operations that we
examined in the previous section. The dot product is equal to the sum of the product of the
horizontal components and the product of the vertical components.
v · w = a1 a2 + b1 b2
u·v=v·u
u · (v + w) = u · v + u · w
0·v=0
v · v = || v || 2
(cu) · v = c(u · v) = u · (cv)
Solution:
v · w = a1 a2 + b1 b2
v · w = (5)(3) + (2)(-7)
v · w = 15 – 14
v·w=1
Solution:
Find 3u
3u = 3(–i + 3j)
3u = –3i + 9j
Find v + w
An alternate formula for the dot product is available by using the angle between the two vectors.
If v and w are two nonzero vectors and θ is the smallest nonnegative angle between them then
their dot product is given:
v · w = || v || || w || cos θ
This same equation could be solved for theta if the angle between the vectors needed to be
determined.
v⋅w
θ = cos −1
v w
Example 3: If u = 6i – 2j and v = 3i + 5j then find the angle θ between the vectors. Round the
answer to the nearest tenth of a degree, if necessary.
Solution:
u = a 2 + b2
u = (6) 2 + (−2) 2
u = 36 + 4
u = 40
u = 2 10
v = a 2 + b2
v = (3) 2 + (5) 2
v = 9 + 25
v = 34
Example 3 (Continued):
u · v = a1 a2 + b1 b2
u · v = (6)(3) + (-2)(5)
u · v = 18 – 10
u·v=8
u ⋅v
θ = cos −1
u v
8
θ = cos −1
( 2 10 )( 34 )
θ ≈ cos −1 ( 0.2169 )
θ ≈ 77.5°
When comparing two lines they were described as being parallel, perpendicular, or neither
depending on the values of their slopes. The same can be done with vectors but orthogonal is
used instead of the term perpendicular. However, we would be looking at the measure of the
angle between the two vectors.
Parallel vectors
Two vectors are parallel when the angle between them is either 0° (the vectors point
in the same direction) or 180° (the vectors point in opposite directions) as shown in
the figures below.
Orthogonal vectors
Two vectors are orthogonal when the angle between them is a right angle (90°). The
dot product of two orthogonal vectors is zero.
Example 4: Determine if u = – i – 3j and v = 9i – 3j are orthogonal.
Solution:
There are real world applications of vectors that will require for the vectors to be broken down
into its orthogonal components. By breaking a vector into its orthogonal components we can
express a vector as the sum of vectors. The components are formed by what is called “vector
projection.” Vector projection involves drawing a line from the terminal point of the vector we
want to project down to form a right angle with a line passing through the other vector. If for
example vector v is projected upon vector w, then the projected vector would be denoted as
projw v and is given by:
v⋅w
projw v = 2
w
w
The projected vector can then be subtracted from vector v to finish the decomposition process of
v into its orthogonal components.
If vectors v and w are two nonzero vectors, then vector v can be expressed as the sum
of its orthogonal component vectors v1 and v2, where v1 (the vector projected onto w)
is parallel to w and v2 is orthogonal to w.
v⋅w
v1 = projw v = 2
w and v2 = v − v1
w
Since the vector components are orthogonal there dot product must be equal to zero.
You can use this as a way of checking to make sure the vector components are correct.
v1 ⋅ v2 = 0
Example 5: Let v = – 5i + 2j and w = 2i – 4j. Decompose v into its vector components v1 and
v2, where v1 is parallel to w and v2 is orthogonal to w.
Solution:
w = a 2 + b2
w = (2) 2 + (−4) 2
w = 4 + 16
w = 20
v⋅w
v1 = 2
w
w
−18
v1 = ( 2i − 4 j )
( )
2
20
9
v1 = − ( 2i − 4 j )
10
9 18
v1 = − i + j
5 5
Example 5 (Continued):
v2 = v − v1
⎛ 9 18 ⎞
v2 = (−5i + 2 j ) − ⎜ − i + j⎟
⎝ 5 5 ⎠
⎛ 9 18 ⎞
v2 = (−5i + 2 j ) + ⎜ i − j ⎟
⎝5 5 ⎠
⎛ 9 ⎞ ⎛ 18 ⎞
v2 = ⎜ −5 + ⎟ i + ⎜ 2 − ⎟ j
⎝ 5⎠ ⎝ 5⎠
16 8
v2 = − i − j
5 5
⎛ 9 18 ⎞ ⎛ 16 8 ⎞
v1 ⋅ v2 = ⎜ − i + j ⎟⋅⎜ − i − j ⎟
⎝ 5 5 ⎠ ⎝ 5 5 ⎠
⎛ 9 ⎞⎛ 16 ⎞ ⎛ 18 ⎞⎛ 8 ⎞
v1 ⋅ v2 = ⎜ − ⎟⎜ − ⎟ + ⎜ ⎟⎜ − ⎟
⎝ 5 ⎠⎝ 5 ⎠ ⎝ 5 ⎠⎝ 5 ⎠
144 144
v1 ⋅ v2 = −
25 25
v1 ⋅ v2 = 0
Since the dot product is zero, the vector v1 would be parallel to w and v2 would be orthogonal
to w.
One example of how the magnitude of a projected vector is used would be in the field of physics
when calculating the work done by a force moving an object over a distance. The force applied
to the object will not always be applied along the line of motion.
The amount of work W done by a force F moving an object from point A to point B is given by:
JJJG
W = F ⋅ AB
JJJG JJJG
W = F AB cos θ , where AB is the distance from A to B.
Example 6: A force of 90 pounds is used to pull an object along a level surface. The force is
applied at an angle of 43° to the surface and moves the object a total of 250 feet.
How much work was done? Round the answer to the nearest foot-pound.
Solution:
JJJG
W = F AB cos θ
W = (90 pounds)(250 feet) cos 43°
W ≈ 16455.4583
Rounded off to the nearest foot-pound, the amount of work done is approximately
16,455 foot-pounds.