how to find the angle between two vectors
In mathematics, a vector is any object that has a definable length, known as magnitude, and direction. Since vectors are not the same as standard lines or shapes, you'll need to use some special formulas to find angles between them.
-
1
Write down the cosine formula. To find the angle θ between two vectors, start with the formula for finding that angle's cosine. You can learn about this formula below, or just write it down:[1]
-
2
Identify the vectors. Write down all the information you have concerning the two vectors. We'll assume you only have the vector's definition in terms of its dimensional coordinates (also called components). If you already know a vector's length (its magnitude), you'll be able to skip some of the steps below.
Advertisement
-
3
Calculate the length of each vector. Picture a right triangle drawn from the vector's x-component, its y-component, and the vector itself. The vector forms the hypotenuse of the triangle, so to find its length we use the Pythagorean theorem. As it turns out, this formula is easily extended to vectors with any number of components.
-
4
Calculate the dot product of the two vectors. You have probably already learned this method of multiplying vectors, also called the scalar product.[2]
To calculate the dot product in terms of the vectors' components, multiply the components in each direction together, then add all the results.
For computer graphics programs, see Tips before you continue.
Finding Dot Product Example
In mathematical terms, • = u1v1 + u2v2 , where u = (u1, u2). If your vector has more than two components, simply continue to add + u3v3 + u4v4...
In our example, • = u1v1 + u2v2 = (2)(0) + (2)(3) = 0 + 6 = 6 . This is the dot product of vector and . -
5
Plug your results into the formula. Remember,
cosθ = ( • ) / (|| || || ||).
Now you know both the dot product and the lengths of each vector. Enter these into this formula to calculate the cosine of the angle.
Finding Cosine with Dot Product and Vector Lengths
In our example, cosθ = 6 / (2√23) = 1 / √2 = √2 / 2.
-
6
Find the angle based on the cosine. You can use the arccos or cos-1 function on your calculator to
find the angle θ from a known cos θ value.
For some results, you may be able to work out the angle based on the unit circle.
Finding an Angle with Cosine
In our example, cosθ = √2 / 2. Enter "arccos(√2 / 2)" in your calculator to get the angle. Alternatively, find the angle θ on the unit circle where cosθ = √2 / 2. This is true for θ = π/4 or 45º.
Putting it all together, the final formula is:
angle θ = arccosine(( • ) / (|| || || ||))Advertisement
-
1
Understand the purpose of this formula. This formula was not derived from existing rules. Instead, it was created as a definition of two vectors' dot product and the angle between them.[3] However, this decision was not arbitrary. With a look back to basic geometry, we can see why this formula results in intuitive and useful definitions.
- The examples below use two-dimensional vectors because these are the most intuitive to use. Vectors with three or more components have properties defined with the very similar, general case formula.
-
2
Review the Law of Cosines. Take an ordinary triangle, with angle θ between sides a and b, and opposite side c. The Law of Cosines states that c2 = a2 + b2 -2abcos(θ). This is derived fairly easily from basic geometry.
-
3
Connect two vectors to form a triangle. Sketch a pair of 2D vectors on paper, vectors and , with angle θ between them. Draw a third vector between them to make a triangle. In other words, draw vector such that + = . This vector = - .[4]
-
4
Write the Law of Cosines for this triangle. Insert the length of our "vector triangle" sides into the Law of Cosines:
- ||(a - b)|| 2 = ||a|| 2 + ||b|| 2 - 2||a|| ||b|| cos(θ)
-
5
Write this using dot products. Remember, a dot product is the magnification of one vector projected onto another. A vector's dot product with itself doesn't require any projection, since there is no difference in direction.[5] This means that • = ||a|| 2. Use this fact to rewrite the equation:
-
6
Rewrite it into the familiar formula. Expand the left side of the formula, then simplify to reach the formula used to find angles.
Advertisement
Add New Question
-
Question
If |A + B| = |A| + |B|, then what is the angle between A and B?
Think of the geometric representation of a vector sum. When two vectors are summed they create a new vector by placing the start point of one vector at the end point of the other (write the two vectors on paper). Now, imagine if vectors A and B both where horizontal and added. They would create a vector with the length of their two lengths added! Hence the solution is zero degrees.
-
Question
How do I find the angle between two vectors if they have the same magnitude?
It depends on their direction. You can't call them vectors without defining their direction.
-
Question
Can you help me solve this problem? "Position vector of the point P and Q relative to the origin O are 2i and 3i+4j respectively. Find the angles between vector OP and OQ."
An easier way to find the angle between two vectors is the dot product formula(A.B=|A|x|B|xcos(X)) let vector A be 2i and vector be 3i+4j. As per your question, X is the angle between vectors so: A.B = |A|x|B|x cos(X) = 2i.(3i+4j) = 3x2 =6 |A|x|B|=|2i|x|3i+4j| = 2 x 5 = 10 X = cos-1(A.B/|A|x|B|) X = cos-1(6/10) = 53.13 deg The angle can be 53.13 or 360-53.13 = 306.87.
-
Question
Why can I not use cross products to find the angles?
You can use cross products to find the angles, but then you would get the answers in terms of sine.
-
Question
Is there any way to find the angle between vectors other than dot product?
You can use cross product or the cosine formula to determine the angles between the two vectors.
-
Question
How do I find the angle between perpendicular vectors?
"Perpendicular" means the angle between the two vectors is 90 degrees. To determine whether the two vectors are perpendicular or not, take the cross product of them; if the cross product is equal to zero, the vectors are perpendicular.
-
Question
If two or more angles are given with respect to the x-axis or y-axis, how can I find the magnitude?
To find the magnitude of more than two vectors, instead of using the triangle you can use the polygon law to get the answer.
-
Question
How can I calculate a unit vector of a given vector?
Presumably, you are asking how to normalize the vector so its magnitude is 1.0. To do that, work out the square root of the sum of the squares of the elements. Then, divide each element by this amount. What you are doing is scaling the vector so that the sum of the squares equals 1.
-
Question
How can I find the angle between vectors who make a dot product of zero?
Siphilisiwe Munzvengi
Community Answer
If the dot product is zero, that simply means they are perpendicular; therefore, the angle is 90.
-
Question
How do you find angle between two planes defined by say ; 4x-3y+2z and 5x+2y-6z?
To find the angle between two non-parallel planes, you have to compute the angle between their corresponding normal vectors. By the way, the examples of plane equations you gave are not complete.
Show more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
-
For a quick plug and solve, use this formula for any pair of two-dimensional vectors: cosθ = (u1 • v1 + u2 • v2) / (√(u1 2 • u2 2) • √(v1 2 • v2 2)).
-
If you are working on a computer graphics program, you most likely only care about the direction of the vectors, not their length. Take these steps to simplify the equations and speed up your program:[6] [7]
Thanks for submitting a tip for review!
Advertisement
About This Article
Article SummaryX
1. Calculate the length of each vector.
2. Calculate the dot product of the 2 vectors.
3. Calculate the angle between the 2 vectors with the cosine formula.
4. Use your calculator's arccos or cos^-1 to find the angle. For specific formulas and example problems, keep reading below!
Did this summary help you?
Thanks to all authors for creating a page that has been read 2,555,624 times.
Did this article help you?
how to find the angle between two vectors
Source: https://www.wikihow.com/Find-the-Angle-Between-Two-Vectors
Posted by: dillinghaminci1989.blogspot.com
0 Response to "how to find the angle between two vectors"
Post a Comment