Help with dot product for vectors

In summary: For example, the magnitude of vector A would be |A| = sqrt(2^2 + 1^2 + -4^2) = sqrt(21) If you did the dot product like the article says, then the magnitude would be wrong.
  • #1
warfreak131
188
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
  • #2
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.
 
  • #3
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.
 

1. What is a dot product for vectors?

A dot product, also known as a scalar product, is a mathematical operation that takes two vectors and produces a scalar (a single number) as a result. It is calculated by multiplying the corresponding components of the two vectors and adding them together.

2. Why is the dot product important in vector calculations?

The dot product is important in vector calculations because it allows us to determine the angle between two vectors, and also the projection of one vector onto another. It is also used in many applications in physics, engineering, and computer graphics.

3. How do I calculate the dot product of two vectors?

To calculate the dot product, you multiply the corresponding components of the two vectors and then add them together. For example, if the two vectors are a = (2, 4, 6) and b = (1, -3, 5), the dot product would be 2*1 + 4*(-3) + 6*5 = 20.

4. What is the relationship between the dot product and the angle between two vectors?

The dot product is used to calculate the cosine of the angle between two vectors. Specifically, the formula is a · b = ||a|| * ||b|| * cosθ, where ||a|| and ||b|| are the magnitudes (lengths) of the two vectors and θ is the angle between them.

5. Can the dot product be negative?

Yes, the dot product can be negative. This happens when the angle between the two vectors is greater than 90 degrees, meaning they are pointing in opposite directions. If the angle is less than 90 degrees, the dot product will be positive. If the angle is exactly 90 degrees, the dot product will be 0.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
20
Views
829
  • Linear and Abstract Algebra
Replies
14
Views
632
  • Precalculus Mathematics Homework Help
2
Replies
56
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
956
  • Precalculus Mathematics Homework Help
Replies
5
Views
562
  • Precalculus Mathematics Homework Help
Replies
6
Views
3K
  • Precalculus Mathematics Homework Help
Replies
3
Views
765
  • Electromagnetism
Replies
2
Views
709
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
762
Back
Top