Find the angle between 2 vectors

Click For Summary
SUMMARY

The discussion focuses on calculating the angle between two vectors, specifically vector a with magnitude 2 and vector b with magnitude √3. The participants analyze the expression |a - 2b|^2 using the Law of Cosines, ultimately determining that the angle θ between vectors a and b can be derived from the dot product. The correct formulation is |a - 2b|^2 = |a|^2 + |2b|^2 - 2|a||2b|cos(θ), emphasizing the need to correctly apply the Law of Cosines to find θ.

PREREQUISITES
  • Understanding of vector magnitudes and directions
  • Familiarity with the Law of Cosines in vector form
  • Knowledge of dot product and its geometric interpretation
  • Ability to manipulate algebraic expressions involving trigonometric functions
NEXT STEPS
  • Study the Law of Cosines in both triangle and vector contexts
  • Learn about vector dot products and their applications in finding angles
  • Explore vector addition and subtraction to understand resultant vectors
  • Practice solving problems involving angles between vectors using given magnitudes
USEFUL FOR

Students studying linear algebra, mathematicians, and anyone interested in vector analysis and geometry.

Helly123
Messages
581
Reaction score
20

Homework Statement


|a| = 2
|b| = ## \sqrt3##
|a - 2b| = 2

Angle between a and b

Homework Equations

The Attempt at a Solution


##\theta## is angle between a and b
So angle between a and -2b is 180-##\theta## [/B]
##|a-2b|^2## = |a|^2 + |2b|^2 -2|a||2b|cos(180-##\theta##)
##2^2## = 2^2 + (2##\sqrt3##)^2 -2(2)(2##\sqrt3##)( - 1)cos(##\theta##)
Then find the angle

What is wrong? Can you help me?
 
Physics news on Phys.org
Helly123 said:

Homework Statement


|a| = 2
|b| = ## \sqrt3##
|a - 2b| = 2

Angle between a and b

Homework Equations

The Attempt at a Solution


##\theta## is angle between a and b
So angle between a and -2b is 180-##\theta## [/B]
##|a-2b|^2## = |a|^2 + |2b|^2 -2|a||2b|cos(180-##\theta##)
##2^2## = 2^2 + (2##\sqrt3##)^2 -2(2)(2##\sqrt3##)( - 1)cos(##\theta##)
Then find the angle

What is wrong? Can you help me?

Why bother finding the angle between ##\vec{a}## and ##-2 \vec{b}##? However, since you have found that angle, you must then use it correctly, not the way you have done it.
 
  • Like
Likes   Reactions: Helly123
Helly123 said:

Homework Statement


|a| = 2
|b| = ## \sqrt3##
|a - 2b| = 2

Angle between a and b

Homework Equations

The Attempt at a Solution


##\theta## is angle between a and b
So angle between a and -2b is 180-##\theta## [/B]
##|a-2b|^2## = |a|^2 + |2b|^2 -2|a||2b|cos(180-##\theta##)
##2^2## = 2^2 + (2##\sqrt3##)^2 -2(2)(2##\sqrt3##)( - 1)cos(##\theta##)
Then find the angle

What is wrong? Can you help me?
What's wrong is that you have used the Law of Cosines on the wrong triangle. Instead of doing this, use the idea that ##|a - 2b|^2 = (a - 2b) \cdot (a - 2b)##, and expand this out. You will also need one of the definitions of the dot product -- the one that involves the angle and the magnitudes of the vectors.
 
  • Like
Likes   Reactions: Helly123
Mark44 said:
What's wrong is that you have used the Law of Cosines on the wrong triangle. Instead of doing this, use the idea that ##|a - 2b|^2 = (a - 2b) \cdot (a - 2b)##, and expand this out. You will also need one of the definitions of the dot product -- the one that involves the angle and the magnitudes of the vectors.
But it still makes more sense to me. Because the |a| |b| and |a-2b| can be seen as triangle right? |a| is a length of vector a with magnitude 2 right?
Although, i find that expanding (a-2b)^2 also can be the way. Maybe if being elaborated, you mean that :
(a-2b)•(a-2b) = |a-2b|.|a-2b|cos0
Thus, |a-2b|^2 = (a-2b)•(a-2b)
 
Last edited:
Ray Vickson said:
Why bother finding the angle between ##\vec{a}## and ##-2 \vec{b}##? However, since you have found that angle, you must then use it correctly, not the way you have done it.
Because i thought finding angle between ##\vec a## and ##\vec { -2b}## i can find angle between a and b. Since 180 - angle(a-2b) = angle(a+b) under the condition, if it's true that ##\vec b## has same degree with regards to x-axis as ##\vec {-2b}## just different direction going left or right and different lenght
 
Helly123 said:
Because i thought finding angle between ##\vec a## and ##\vec { -2b}## i can find angle between a and b. Since 180 - angle(a-2b) = angle(a+b) under the condition, if it's true that ##\vec b## has same degree with regards to x-axis as ##\vec {-2b}## just different direction going left or right and different lenght
I don't see how this works at all. Knowing the angle between ##\vec a - \vec {2b}## and either ##\vec a## or ##\vec b## doesn't help you find the angle between ##\vec a## and ##\vec b##.

You're given |a| and |b|, so if you can get ##a \cdot b##, you can find ##\theta##. If you do what I said, of expanding ##(a - 2b) \cdot (a - 2b)##, you will be able to solve for ##a \cdot b## in terms of everything else, and from that you'll be able to get ##\cos(\theta)## and hence ##\theta##.
 
Last edited:
Mark44 said:
I don't see how this works at all. Knowing the angle between ##\vec a - \vec {2b}## and either ##\vec a## or ##\vec b## doesn't help you find the angle between ##\vec a## and ##\vec b##.

You're given |a| and |b|, so if you can get ##a \cdot b##, you can find ##\theta##. If you do what I said, of expanding ##(a - 2b) \cdot (a - 2b)##, you will be able to solve for ##a \cdot b## in terms of everything else, and from that you'll be able to get ##\cos(\theta)## and hence ##\theta##.
I meant something like this
2m7gpxd.jpg

Can i say that |a+b|^2 = |a|^2 + |b|^2 - 2|a||b|cos##\theta##

|a-2b|^2 = |a|^2 + |2b|^2 - 2|a||2b|(-1)cos##\theta##
 

Attachments

  • 2m7gpxd.jpg
    2m7gpxd.jpg
    11.2 KB · Views: 864
Helly123 said:
I meant something like this View attachment 224578
Can i say that |a+b|^2 = |a|^2 + |b|^2 - 2|a||b|cos##\theta##
Sure, because here you're using the Law of Cosines.
Helly123 said:
|a-2b|^2 = |a|^2 + |2b|^2 - 2|a||2b|(-1)cos##\theta##
This should work, now that I see your drawing, but for some reason, this equation gives a negative value for ##\cos(\theta)## while the way I did it gives a number that is equal in absolute value. I don't see why that's happening, though. In other words, if r and s are positive numbers, your way gives the cosine as -r/s and my way gives the cosine as r/s.
 
Mark44 said:
Sure, because here you're using the Law of Cosines.

This should work, now that I see your drawing, but for some reason, this equation gives a negative value for ##\cos(\theta)## while the way I did it gives a number that is equal in absolute value. I don't see why that's happening, though. In other words, if r and s are positive numbers, your way gives the cosine as -r/s and my way gives the cosine as r/s.
Yes. But not only negative. My way give wrong value for ##\theta##. It gives cos##\theta## = ##\frac{-12}{8\sqrt 3}##...
 
  • #10
Helly123 said:
Yes. But not only negative. My way give wrong value for ##\theta##. It gives cos##\theta## = ##\frac{-12}{8\sqrt 3}##...
This simplifies to ##\cos(\theta) = \frac{-3}{2\sqrt 3} = \frac{-\sqrt 3} 2##. I get ##\cos(\theta) = \frac {\sqrt 3} 2##.
 
  • Like
Likes   Reactions: Helly123
  • #11
Helly123 said:
I meant something like this View attachment 224578
Can i say that |a+b|^2 = |a|^2 + |b|^2 - 2|a||b|cos##\theta##

|a-2b|^2 = |a|^2 + |2b|^2 - 2|a||2b|(-1)cos##\theta##

No, you cannot say that. The correct evaluation is ##|a+b|^2 = |a|^2+|b|^2 + 2 |a| |b| \cos \theta,## where ##\theta## is the angle between ##a## and ##b##. Note the + sign in front of the ##2 |a| |b| \cos \theta.## Similarly, ##|a-b|^2 = |a|^2+|b|^2 - 2 |a| |b| \cos \theta.##

Therefore, ##|a-2b|^2 = |a|^2 + |2b|^2 - 2 |a| |2b| \cos \theta##.
 
  • Like
Likes   Reactions: Helly123
  • #12
Ray Vickson said:
No, you cannot say that. The correct evaluation is ##|a+b|^2 = |a|^2+|b|^2 + 2 |a| |b| \cos \theta,## where ##\theta## is the angle between ##a## and ##b##. Note the + sign in front of the ##2 |a| |b| \cos \theta.## Similarly, ##|a-b|^2 = |a|^2+|b|^2 - 2 |a| |b| \cos \theta.##

Therefore, ##|a-2b|^2 = |a|^2 + |2b|^2 - 2 |a| |2b| \cos \theta##.
Why the law of cosinus is ##c^2 = a^2 + b^2 - 2 ab \cos \theta##
How can we get conclusion like that?
 
Last edited:
  • #13
Helly123 said:
Why the law of cosinus is ##c^2 = a^2 + b^2 - 2 ab \cos \theta##
How can we get conclusion like that?
In the vector addition for the law of cosines, ## \vec{b}=\vec{a}+\vec{c} ## or ## \vec{a}=\vec{b}+\vec{c} ## is what the triangles look like if you make the triangle into a vector sum. The vectors get added by connecting tail to head. Either ## \vec{b} ## or ## \vec{a} ## winds up being the resultant. Thereby ## |\vec{c}|=|\vec{a}-\vec{b}| ##. ## \\ ## ( Note: If you want to find ## \vec{a}+\vec{b} ## , you need to pull ## \vec{a} ## and ## \vec{b} ## apart, so that their tails are not connected.).
 
Last edited:
  • Like
Likes   Reactions: Helly123
  • #14
Helly123 said:
Why the law of cosinus is ##c^2 = a^2 + b^2 - 2 ab \cos \theta##
How can we get conclusion like that?
$$
|\mathbf{a} - 2 \mathbf{b}|^2 = (\mathbf{a} - 2 \mathbf{b}) \cdot (\mathbf{a} - 2 \mathbf{b})\\
= \mathbf{a} \cdot \mathbf{a} - 2 \mathbf{a} \cdot ( 2\mathbf{b} ) + (2 \mathbf{b}) \cdot (2 \mathbf{b})

$$
By definition, for two vectors ##\mathbf{u}## and ##\mathbf{v}## their inner product is ##\mathbf{u} \cdot \mathbf{v} = |u| |v| \cos \theta##, where ##\theta## is the angle between the two vectors.
 
  • Like
Likes   Reactions: Helly123
  • #15
Charles Link said:
In the vector addition for the law of cosines, ## \vec{b}=\vec{a}+\vec{c} ## or ## \vec{a}=\vec{b}+\vec{c} ## is what the triangles look like if you make the triangle into a vector sum. The vectors get added by connecting tail to head. Either ## \vec{b} ## or ## \vec{a} ## winds up being the resultant. Thereby ## |\vec{c}|=|\vec{a}-\vec{b}| ##. ## \\ ## ( Note: If you want to find ## \vec{a}+\vec{b} ## , you need to pull ## \vec{a} ## and ## \vec{b} ## apart, so that their tails are not connected.).
In vector addition for the law of cosines, we define c with a and b. So, it supposed to be ##\vec c = \vec a + \vec b## right?
a+ b is head of vec a meets tail of vec b right? Or, when
you said that ##\vec c = \vec a - \vec b##. Do you mean that is when head of vec a meets the tail of vec b?
 
  • #16
Ray Vickson said:
$$
|\mathbf{a} - 2 \mathbf{b}|^2 = (\mathbf{a} - 2 \mathbf{b}) \cdot (\mathbf{a} - 2 \mathbf{b})\\
= \mathbf{a} \cdot \mathbf{a} - 2 \mathbf{a} \cdot ( 2\mathbf{b} ) + (2 \mathbf{b}) \cdot (2 \mathbf{b})

$$
By definition, for two vectors ##\mathbf{u}## and ##\mathbf{v}## their inner product is ##\mathbf{u} \cdot \mathbf{v} = |u| |v| \cos \theta##, where ##\theta## is the angle between the two vectors.
When i examined it carefully. When i realized you substituted the ##\vec a ##. ##\vec {2b}## of #15 into |##\vec a##| |##\vec 2b##|cos##\theta## and resulted the formula in #11. It makes senses...
 
  • #17
Ray Vickson said:
No, you cannot say that. The correct evaluation is ##|a+b|^2 = |a|^2+|b|^2 + 2 |a| |b| \cos \theta,## where ##\theta## is the angle between ##a## and ##b##. Note the + sign in front of the ##2 |a| |b| \cos \theta.## Similarly, ##|a-b|^2 = |a|^2+|b|^2 - 2 |a| |b| \cos \theta.##

Therefore, ##|a-2b|^2 = |a|^2 + |2b|^2 - 2 |a| |2b| \cos \theta##.
I think yes. Thanks
 

Similar threads

Replies
21
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K