Finding the angel between two vectors

  • Thread starter Thread starter ssb
  • Start date Start date
  • Tags Tags
    Vectors
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 15K views
ssb
Messages
119
Reaction score
0
I have two vectors

Vector A and B
Axi = -3
Ayj = 5.4

Bxi = 1.3
Byj = -3.9

I want the angle between them so I do the dot product

(-3)(1.3)+(5.4)(-3.9) = -24.96

Therefore the angle between them is

-24.96 = |-24.96|cos(theta)

Arccos(-24.96/24.96) = theta

Arccos(-1) = theta

Theta = pi = 180 degrees.

Is this correct? :confused:
 
Physics news on Phys.org
Your calculation for the dot product is correct, however you have used the wrong formula: the formula you need is [tex]\vec{a}\cdot\vec{b}=|\vec{a}||\vec{b}|\cos\theta[/tex]. How do you find the magnitude of a vector? (i.e. [itex]|\vec{a}|[/itex])
 
Last edited:
cristo said:
How do you find the magnitude of a vector? (i.e. [itex]|\vec{a}|[/itex])


Ok so the magnitude of vector a would be
= sqrt(5.4^2 + 3^2)
= (3*sqrt(106))/5
= 6.18

Magnitude of B would be
= sqrt(-3.9^2 + 1.3^2)
= (13*sqrt(10))/10
= 4.11

therefore

-24.96 = abs(4.11) * abs(6.18) cos(theta)

Theta = arccos [(-24.96)/(abs(4.11) * abs(6.18))]

theta = 90 degrees = pi/2 radians

Does this look accurate?
 
It can't be 90. That would imply the dot product is zero (see the formula mentioned)
 
[tex]\vec{a}\cdot\vec{b}=|\vec{a}||\vec{b}|\cos\theta[/tex]

I guess I am still confused on the [tex]|\vec{a}||\vec{b}|[/tex] part

this would be finding the magnitudes then multiplying their absolute values together right? The magnitudes are found with pathegoran's theorem correct?
 
ssb said:
Ok so the magnitude of vector a would be
= sqrt(5.4^2 + 3^2)
= (3*sqrt(106))/5
= 6.18

Magnitude of B would be
= sqrt(-3.9^2 + 1.3^2)
= (13*sqrt(10))/10
= 4.11

therefore

-24.96 = abs(4.11) * abs(6.18) cos(theta)

Theta = arccos [(-24.96)/(abs(4.11) * abs(6.18))]

What is the value of [(-24.96)/(abs(4.11) * abs(6.18))]?
 
cristo said:
What is the value of [(-24.96)/(abs(4.11) * abs(6.18))]?
its just about -1.

Find the angle between
A = -3i + 5.4j
B = 1.3i - 3.9j

(-3 * 1.3)+(5.4 * -3.9) = -24.96

-24.96 = ab cos(theta)

therefore

theta = arccos (-24.96/sqrt[(2^2+1.3^2)(5.4^2+(-3.9)^2)]

theta = domain error when I try to calculate it.
 
ssb said:
its just about -1.

Find the angle between
A = -3i + 5.4j
B = 1.3i - 3.9j

(-3 * 1.3)+(5.4 * -3.9) = -24.96

-24.96 = ab cos(theta)

therefore

theta = arccos (-24.96/sqrt[(2^2+1.3^2)(5.4^2+(-3.9)^2)]

theta = domain error when I try to calculate it.
Where did you get that "2" in the square root? You should have
sqrt[((-3.9)^2+ 1.3^3)(5.4^2+ (-3.9)^2)].
 
HallsofIvy said:
Where did you get that "2" in the square root? You should have
sqrt[((-3.9)^2+ 1.3^3)(5.4^2+ (-3.9)^2)].

When you replaced my 2 with a -3.9, did you mean to replace it with a -3?

If this is the case then my questions have been answered!

thanks everybody for helping me with this most basic topic