Help with dot product for vectors

AI Thread Summary
The discussion focuses on calculating the angle between vectors A and B using the dot product formula. The initial calculation of the dot product yields -10, but the magnitude of the vectors was incorrectly computed. The correct magnitude of vector A is found to be √21, leading to the realization that the angle calculation must be redone with accurate magnitudes. The confusion arises from the expected angle in radians, with participants debating the correct interpretation of the results. Ultimately, the importance of accurately determining vector magnitudes for correct angle calculations is emphasized.
warfreak131
Messages
186
Reaction score
0
Question
Let vectors \vec{A} =(2,1,-4), \vec{B}=(-3,0,1), \vec{C}=(-1,-1,2).

What is the angle (in radians) \theta_{AB} between \vec{A} and \vec{B}?Important equations
\vec{A} \cdot \vec{B} = \vert \vec{A} \vert \,\vert \vec{B}\vert \cos(\theta), where \theta is the angle between \vec{A} and \vec{B}.

My attempt

\vec{A}\cdot\vec{B} = (2*-3) + (1*0) + (-4*1) = -6 - 4 = -10

|\vec{A}||\vec{B}| = (2*3) + (1*0) + (4*1) = 10

therefore, -10 = 10*cos(\theta)

-1 = cos(\theta)
arccos(-1) = \theta
180 = \theta
180 = \pi radians

but it says \pi isn't the right answer

But I don't think that sounds right, because \vec{A} is at \arctan{\frac{1}{2}} (26.7) degrees, and \vec{B} runs along the negative X axis at 180 degrees, So that's a difference of 153.3 degrees. And if you convert that to radians, you get approximately \frac{17\pi}{20} radians, which isn't right either.
 
Last edited:
Physics news on Phys.org
You did your dot product right but the magnitude of the vectors is wrong. Recall that the magnitude of a vector is square root of the sum of its individual components squared...the length of the vector.

For example, the magnitude of vector A would be |A| = sqrt(2^2 + 1^2 + -4^2) = sqrt(21)

Hope that helps.
 
warfreak131 said:
Question
Let vectors \vec{A} =(2,1,-4), \vec{B}=(-3,0,1), \vec{C}=(-1,-1,2).

What is the angle (in radians) \theta_{AB} between \vec{A} and \vec{B}?


Important equations
\vec{A} \cdot \vec{B} = \vert \vec{A} \vert \,\vert \vec{B}\vert \cos(\theta), where \theta is the angle between \vec{A} and \vec{B}.

My attempt

\vec{A}\cdot\vec{B} = (2*-3) + (1*0) + (-4*1) = -6 - 4 = -10

|\vec{A}||\vec{B}| = (2*3) + (1*0) + (4*1) = 10
This is wrong. Find |A| and |B| separately and then multiply!

|A|= \sqrt{2^2+ 1^2+ (-4)^2}

therefore, -10 = 10*cos(\theta)

-1 = cos(\theta)
arccos(-1) = \theta
180 = \theta
180 = \pi radians

but it says \pi isn't the right answer

But I don't think that sounds right, because \vec{A} is at \arctan{\frac{1}{2}} (26.7) degrees, and \vec{B} runs along the negative X axis at 180 degrees, So that's a difference of 153.3 degrees. And if you convert that to radians, you get approximately \frac{17\pi}{20} radians, which isn't right either.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top