The angle between two vectors
P1
8
● As you work through the proof in this section, make a list of all the results that
you are assuming.
The angle between two vectors
To find the angle θ between the y
B
two vectors (b1, b2)
→ A
OA = a = a1i + a2j
(a1, a2)
and
a b
→
OB = b = b1i + b2j
start by applying the cosine rule to θ
triangle OAB in figure 8.21. O x
OA 2 +OB2 – AB2 Figure 8.21
cos θ =
2OA × OB
→
→
→
In this, OA, OB and AB are the lengths of the vectors OA, OB and AB, and so
OA = | a | = a 12 + a22 and OB = | b | = b 12 + b22 .
→
The vector AB = b − a = (b1i + b2j) − (a1i + a2j)
= (b1 − a1)i + (b2 − a2)j
and so its length is given by
AB = | b − a | = (b1 – a1)2 + (b2 – a2)2.
Substituting for OA, OB and AB in the cosine rule gives
(a12 + a 22) + (b 12 + b 22) – [(b1 – a1)2 + (b2 – a2)2]
cos θ =
2 a 12 + a 22 × b 12 + b 22
a 2 + a 2 + b 12 + b 22 – (b 12 – 2a1b1 + a12 + b 22 – 2a2b2 + a 22 )
= 1 2
2a b
This simplifies to
2a1b1 + 2a2b2 a1b1 + a2b2
cos θ = =
2 a b a b
The expression on the top line, a1b1 + a2b2, is called the scalar product (or dot
product) of the vectors a and b and is written a . b. Thus
cos θ = a . b .
a b
This result is usually written in the form
271
a . b = | a | | b | cos θ.
, The next example shows you how to use it to find the angle between two vectors
P1 given numerically.
8
Find the angle between the vectors and
3 5
.
–12
EXAMPLE 8.11
4
Vectors
SOLUTION
3
Let a= ⇒ | a | = 32 + 42 = 5
4
5
b= ⇒ | b | = 52 + (–12)2 = 13.
–12
and
The scalar product
3 5 = 3 × 5 + 4 × (−12)
4 . –12
= 15 − 48
= −33.
Substituting in a . b = | a | | b | cos θ gives
−33 = 5 × 13 × cos θ
cos θ = –33
65
⇒ θ = 120.5°.
Perpendicular vectors
Since cos 90° = 0, it follows that if vectors a and b are perpendicular then
a . b = 0.
Conversely, if the scalar product of two non-zero vectors is zero, they are
perpendicular.
2 6
EXAMPLE 8.12 Show that the vectors a = and b = are perpendicular.
4 –3
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller azanata1. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R402,02. You're not tied to anything after your purchase.