Calculating Angle Between 3D Vectors: A & B

  • Context: High School 
  • Thread starter Thread starter Karla
  • Start date Start date
  • Tags Tags
    3d Angle Vectors
Click For Summary

Discussion Overview

The discussion revolves around calculating the angle between two 3D vectors using the dot product. Participants explore various methods and formulas, comparing them to 2D calculations and addressing misunderstandings about the mathematical expressions involved.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Karla asks how to calculate the angle between two 3D vectors, providing specific examples.
  • Some participants suggest that the method for 3D is analogous to that in R².
  • There is mention of using the dot product to find the angle, with a formula provided by some participants.
  • One participant expresses confusion about the term R² and seeks clarification on the formula for the cosine of the angle between vectors.
  • Another participant attempts to adapt a 2D formula for use with 3D vectors but encounters difficulties.
  • Several participants provide the formula for cosine in terms of the dot product and magnitudes of the vectors, with some variations in notation and expression.
  • Corrections are made regarding the proper formulation of the cosine equation, with one participant acknowledging an error in their earlier post.
  • There is a light-hearted acknowledgment of mistakes made in the discussion, indicating a collaborative atmosphere.

Areas of Agreement / Disagreement

Participants generally agree on the use of the dot product to calculate the angle between vectors, but there are variations in the expression of the formula and some misunderstandings that remain unresolved.

Contextual Notes

Some participants express uncertainty about the definitions and applications of terms like R² and R³, and there are unresolved issues regarding the correct formulation of the cosine equation for 3D vectors.

Karla
Messages
5
Reaction score
0
Hi,

If you have 2 3d vectors a and b, i.e (1,2,3) and (3,4,5) how would you calculate the angle between them?

Thanks for any advice,
Karla
 
Mathematics news on Phys.org
Draw a right triangle.

Edit-Nevermind, I misread the question.
 
As far as I'm concerned, it is the same thing as doing it in R^2.
 
Dot's the answer.
 
Any none cryptic ways for working this out? How can the dot product be used? I know a formula for 2d angle calculating but i can't find any info for 3d? And what is R^2 exactly?
 
Karla said:
Any none cryptic ways for working this out? How can the dot product be used? I know a formula for 2d angle calculating but i can't find any info for 3d? And what is R^2 exactly?
\Re^2 is (real) 2-space, or 2D. \Re^3 would be 3-space (3D) etc. None of the above post's were cryptic in the slightest (except the first one in which the author acknowledged was erroneous). What is the formula for calculating the cosine of the angle between any two vetors?
 
Last edited:
Sorry, cryptic probably means i don't understand them, For the angle between 2 vectors in the past i have used,

Cos Theta = (AxBx + AyBy) / |a|*|b| then I simply did Cos-1(Theta)

I attempted to alter this formula to work with 3d vectors, but it went very wrong.

Thanks for any help, i do appreciate it.
 
Use the inner product:
\cos(\theta) = \frac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|}
 
And if we rewrite this in co-ordinate form (as yours is above) we have;

\cos\theta = \frac{x_{a}x_{b} + y_{a}y_{b} + z_{a}z_{b}}{\sqrt{x_{a}^{2}+y_{a}^{2}}\cdot\sqrt{x_{b}^{2}+y_{b}^{2}}}
 
Last edited:
  • #10
Thanks very much guys :)
 
  • #11
Hootenanny said:
And if we rewrite this in co-ordinate form (as yours is above) we have;

\cos\theta = \frac{x_{a}x_{b}x_{c} + y_{a}y_{b}y_{c} + z_{a}z_{b}z_{c}}{\sqrt{x_{a}^{2}+y_{a}^{2}+z_{a}^2}\cdot\sqrt{x_{b}^{2}+y_{b}^{2}+z_{b}^2}}

I think you have one too many vectors in there...
 
  • #12
Office_Shredder said:
I think you have one too many vectors in there...
Good catch, duly corrected. I think my fingers got carried away there :rolleyes:
 
  • #13
Hootenanny said:
And if we rewrite this in co-ordinate form (as yours is above) we have;

\cos\theta = \frac{x_{a}x_{b} + y_{a}y_{b} + z_{a}z_{b}}{\sqrt{x_{a}^{2}+y_{a}^{2}}\cdot\sqrt{x_{b}^{2}+y_{b}^{2}}}

This should read

\cos\theta = \frac{x_{a}x_{b} + y_{a}y_{b} + z_{a}z_{b}}{\sqrt{x_{a}^{2}+y_{a}^{2}+z_{a}^{2}}\cdot\sqrt{x_{b}^{2}+y_{b}^{2}+z_{b}^{2}}}
 
  • #14
hootenanny can't catch a break :D
 
  • #15
D H said:
Use the inner product:
\cos(\theta) = \frac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|}

While this is the best, most succinct answer, I just want to make it clear that it really is the dot-product that answers the question:
\cos(\theta) = \frac{\vec a \cdot \vec b}{\sqrt{\vec a \cdot \vec a} \sqrt{\vec b \cdot \vec b}}

That's why: Dot[/color]'s the answer.
 
  • #16
robphy said:
While this is the best, most succinct answer, I just want to make it clear that it really is the dot-product that answers the question:
\cos(\theta) = \frac{\vec a \cdot \vec b}{\sqrt{\vec a \cdot \vec a} \sqrt{\vec b \cdot \vec b}}

That's why: Dot[/color]'s the answer.

Damn it! Sorry guys; I'm gona have to stop working at the same time as posting! It lucky that not too many of these errors crop up in my work :blushing:
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K