Help with dot product for vectors

Click For Summary
SUMMARY

The discussion focuses on calculating the angle between two vectors, \(\vec{A} = (2,1,-4)\) and \(\vec{B} = (-3,0,1)\), using the dot product formula. The correct approach involves computing the dot product, \(\vec{A} \cdot \vec{B} = -10\), and the magnitudes of the vectors, \(|\vec{A}| = \sqrt{21}\) and \(|\vec{B}| = \sqrt{10}\). The angle \(\theta_{AB}\) is derived from the equation \(-10 = |\vec{A}| \, |\vec{B}| \cos(\theta)\), leading to \(\theta_{AB} = \arccos\left(\frac{-10}{\sqrt{21} \cdot \sqrt{10}}\right)\), which simplifies to approximately \(\frac{17\pi}{20}\) radians.

PREREQUISITES
  • Understanding of vector operations, specifically dot product
  • Knowledge of trigonometric functions, particularly arccosine
  • Familiarity with calculating vector magnitudes
  • Basic knowledge of radians and degree conversion
NEXT STEPS
  • Learn how to compute vector magnitudes in three-dimensional space
  • Study the properties and applications of the dot product in physics
  • Explore trigonometric identities and their use in vector angle calculations
  • Investigate the geometric interpretation of vectors and angles in 3D
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who require a solid understanding of vector analysis and angle calculations between vectors.

warfreak131
Messages
186
Reaction score
0
Question
Let vectors [tex]\vec{A} =(2,1,-4), \vec{B}=(-3,0,1), \vec{C}=(-1,-1,2).[/tex]

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

My attempt

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

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

therefore, [tex]-10 = 10*cos(\theta)[/tex]

[tex]-1 = cos(\theta)[/tex]
[tex]arccos(-1) = \theta[/tex]
[tex]180 = \theta[/tex]
[tex]180 = \pi[/tex] [tex]radians[/tex]

but it says [tex]\pi[/tex] isn't the right answer

But I don't think that sounds right, because [tex]\vec{A}[/tex] is at [tex]\arctan{\frac{1}{2}}[/tex] (26.7) degrees, and [tex]\vec{B}[/tex] 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 [tex]\frac{17\pi}{20}[/tex] 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 [tex]\vec{A} =(2,1,-4), \vec{B}=(-3,0,1), \vec{C}=(-1,-1,2).[/tex]

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


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

My attempt

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

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

[itex]|A|= \sqrt{2^2+ 1^2+ (-4)^2}[/itex]

therefore, [tex]-10 = 10*cos(\theta)[/tex]

[tex]-1 = cos(\theta)[/tex]
[tex]arccos(-1) = \theta[/tex]
[tex]180 = \theta[/tex]
[tex]180 = \pi[/tex] [tex]radians[/tex]

but it says [tex]\pi[/tex] isn't the right answer

But I don't think that sounds right, because [tex]\vec{A}[/tex] is at [tex]\arctan{\frac{1}{2}}[/tex] (26.7) degrees, and [tex]\vec{B}[/tex] 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 [tex]\frac{17\pi}{20}[/tex] radians, which isn't right either.
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
4K
Replies
56
Views
6K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
4K