• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Find the Angle Between Two Vectors

January 20, 2024 by admin Category: How To

You are viewing the article How to Find the Angle Between Two Vectors  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

There are 9 references cited in this article that you can view at the bottom of the page.

This article has been viewed 231,294 times.

If you are a mathematician or a graphics programmer, you will probably have to find the angle between two given vectors. In this article, the wikiHow will show you how to do just that.

Table of Contents

  • Steps
    • Find the angle between two vectors
    • Determine the angle formula
  • Advice

Steps

Find the angle between two vectors

Image titled Find the Angle Between Two Vectors Step 01

Image titled Find the Angle Between Two Vectors Step 01

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/ba/Find-the-Angle-Between-Two-Vectors-Step-01.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-01.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/ba/Find-the-Angle-Between-Two-Vectors- Step-01.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-01.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Define vector. Write down all the information related to the two vectors you have. Assume you only have certain parameters about their dimensional coordinates (also called components). [1] X Research Source If you already know the length (magnitude) of a vector, you can skip some of the steps below.

  • Example: Two-dimensional vector u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} = (2,2) and two-dimensional vector v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} = (0,3). They can also be written as u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} = 2 i + 2 j and v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} = 0 i + 3 j = 3 j .
  • Although two-dimensional vectors are used in this article’s example, the following instructions can be applied to vectors of any number of dimensions.
Image titled Find the Angle Between Two Vectors Step 02

Image titled Find the Angle Between Two Vectors Step 02

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/49/Find-the-Angle-Between-Two-Vectors-Step-02.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-02.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/49/Find-the-Angle-Between-Two-Vectors- Step-02.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-02.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Write the cosine formula. To find the angle θ between two vectors, we start with the formula for finding the cosine for that angle. You can learn about this formula below, or just write it down like this: [2] X Research Source

  • cosθ = ( u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} ) / ( || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || || v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} || )
  • || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || means “the length of the vector u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} “.
  • u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} is the dot product of two vectors – this will be explained below.
Image titled Find the Angle Between Two Vectors Step 03

Image titled Find the Angle Between Two Vectors Step 03

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/e/e7/Find-the-Angle-Between-Two-Vectors-Step-03.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-03.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/e/e7/Find-the-Angle-Between-Two-Vectors- Step-03.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-03.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Calculate the length of each vector. Imagine a right triangle made up of the x component, the y component of the vector, and the vector itself. The vector forms the hypotenuse of the triangle, so to find its length we use the Pythagorean theorem. In fact, this formula can be easily extended to vectors of any dimension. [3] X Research Sources

  • || u || 2 = u 12 + u 22 . If the vector has more than two components, we just keep adding +u 32 + u 42 + …
  • Therefore, for a two-dimensional vector, || u || = √(u 12 + u 22 ) .
  • In this example, || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || = √(2 2 + 2 2 ) = √(8) = 2√2 . || v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} || = √(0 2 + 3 2 ) = √(9) = 3 .
READ More:   How to Escape from a Killer
Image titled Find the Angle Between Two Vectors Step 04

Image titled Find the Angle Between Two Vectors Step 04

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a0/Find-the-Angle-Between-Two-Vectors-Step-04.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-04.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a0/Find-the-Angle-Between-Two-Vectors- Step-04.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-04.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Calculate the dot product of two vectors. You’ve probably learned this method of vector multiplication, also known as dot product . [4] X Research Source To calculate dot products relative to their components, multiply the components in each direction, then add up the entire result. [5] X Research Sources

  • With a graphics program, refer to Tips before reading on.
  • In math u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} = u 1 v 1 + u 2 v 2 , where, u = (u 1 , u 2 ). If the vector has more than two components, you just add + u 3 v 3 + u 4 v 4 …
  • In this example, u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} = u 1 v 1 + u 2 v 2 = (2)(0) + (2)(3) = 0 + 6 = 6 . This is the dot product of the vector u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} and vector v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} .
Image titled Find the Angle Between Two Vectors Step 05

Image titled Find the Angle Between Two Vectors Step 05

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/8f/Find-the-Angle-Between-Two-Vectors-Step-05.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-05.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/8f/Find-the-Angle-Between-Two-Vectors- Step-05.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-05.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Enter the result obtained into the formula. Remember that cosθ = ( u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} ) / ( || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || || v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} || ). At this point, we know both the dot product and the length of each vector. Enter these values into the formula to calculate the cosine of the angle.

  • In our example, cosθ = 6 / ( 2√2 * 3 ) = 1 / √2 = √2 / 2.
Image titled Find the Angle Between Two Vectors Step 06

Image titled Find the Angle Between Two Vectors Step 06

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/e/ee/Find-the-Angle-Between-Two-Vectors-Step-06.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-06.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/e/ee/Find-the-Angle-Between-Two-Vectors- Step-06.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-06.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Find the angle based on its cosine value. You can use the arccos or cos -1 function in your calculator to find θ from a known cos θ value. With some results, you can probably find the angle based on the unit circle.

  • In the example, cosθ = √2 / 2. Type “arccos(√2 / 2)” into the calculator to find the angle. Or, you can find the angle θ on the unit circle, where cosθ = √2 / 2. It is true for θ = π / 4 or 45º .
  • Combining everything, the final formula is: angle θ = arccosine(( u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} ) / ( || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || || v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} || ))

Determine the angle formula

Image titled Become a Cplege Professor Step 17

Image titled Become a Cplege Professor Step 17

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f5/Become-a-Cplege-Professor-Step-17.jpg/v4-728px-Become-a-Cplege-Professor- Step-17.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f5/Become-a-Cplege-Professor-Step-17.jpg/v4-728px-Become- a-Cplege-Professor-Step-17.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser -output”></div>”}
Understand the purpose of the formula. This formula is not derived from existing rules. Instead, it is formulated as the definition of the dot product and the angle between two vectors. [6] X Source of Research However, it is not an arbitrary decision. Going back to basic geometry, we can see why this formula provides useful and intuitive definitions.

  • The examples below use two-dimensional vectors because they are easiest to understand and simple. Vectors of three dimensions or more have properties defined by an almost similar general formula.
READ More:   How to Invite a Girl to Dance in the Club
Image titled Find the Angle Between Two Vectors Step 08

Image titled Find the Angle Between Two Vectors Step 08

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b5/Find-the-Angle-Between-Two-Vectors-Step-08.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-08.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b5/Find-the-Angle-Between-Two-Vectors- Step-08.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-08.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Review the Cosine theorem. Consider an ordinary triangle with angle θ between sides a and b, opposite side c. The Cosine theorem states that c 2 = a 2 + b 2 -2ab cos (θ). This result is derived quite simply from basic geometry.
Image titled Find the Angle Between Two Vectors Step 09

Image titled Find the Angle Between Two Vectors Step 09

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/23/Find-the-Angle-Between-Two-Vectors-Step-09.jpg/v4-728px-Find-the- Angle-Between-Two-Vectors-Step-09.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/23/Find-the-Angle-Between-Two-Vectors- Step-09.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-09.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Connect two vectors, forming a triangle. Draw a pair of two-dimensional vectors on paper, vector a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} and vector b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} , where θ is the angle between them. Draw a third vector between these two vectors to create a triangle. In other words, draw the vector c→{displaystyle {overrightarrow {c}}}{overrightarrow {c}} so that b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} + c→{displaystyle {overrightarrow {c}}}{overrightarrow {c}} = a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} . Vector c→{displaystyle {overrightarrow {c}}}{overrightarrow {c}} = a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} – b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} . [7] X Research Sources
Image titled Find the Angle Between Two Vectors Step 10

Image titled Find the Angle Between Two Vectors Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a5/Find-the-Angle-Between-Two-Vectors-Step-10-Version-2.jpg/v4-728px- Find-the-Angle-Between-Two-Vectors-Step-10-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a5/Find-the- Angle-Between-Two-Vectors-Step-10-Version-2.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-10-Version-2.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Write the Cosine theorem for this triangle. Substitute the length of our “vector triangle” into the Cosine theorem:

  • || (a – b) || 2 = || a || 2 + || b || 2 – 2 || a || || b || cos (θ)
Image titled Find the Angle Between Two Vectors Step 11

Image titled Find the Angle Between Two Vectors Step 11

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/c/c3/Find-the-Angle-Between-Two-Vectors-Step-11-Version-2.jpg/v4-728px- Find-the-Angle-Between-Two-Vectors-Step-11-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/c/c3/Find-the- Angle-Between-Two-Vectors-Step-11-Version-2.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-11-Version-2.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Rewrite with dot product. Remember, the dot product is the image of one vector on the other. The dot product of a vector with itself does not need any projection, because here, there is no dimensional difference. [8] X Research Source Means a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} = || a || 2 . Using this, we rewrite the equation:

  • ( a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} – b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} ) • ( a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} – b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} ) = a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} + b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} – 2 || a || || b || cos (θ)
  • Image titled Find the Angle Between Two Vectors Step 12

    Image titled Find the Angle Between Two Vectors Step 12

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/de/Find-the-Angle-Between-Two-Vectors-Step-12-Version-2.jpg/v4-728px- Find-the-Angle-Between-Two-Vectors-Step-12-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/d/de/Find-the- Angle-Between-Two-Vectors-Step-12-Version-2.jpg/v4-728px-Find-the-Angle-Between-Two-Vectors-Step-12-Version-2.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
    Rewrite the same formula. Expand the left side of the formula, then reduce it to get the formula used to find the measures of angles.

    • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} – a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} – b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} + b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} = a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} + b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} – 2 || a || || b || cos (θ)
    • – a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} – b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} = -2 || a || || b || cos (θ)
    • -2( a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} ) = -2 || a || || b || cos (θ)
    • a→{displaystyle {overrightarrow {a}}}{overrightarrow {a}} • b→{displaystyle {overrightarrow {b}}}{overrightarrow {b}} = || a || || b || cos (θ)
    READ More:   How to keep fish tank water clean
  • Advice

    • To swap values and solve problems quickly, use this formula for any pair of two-dimensional vectors: cosθ = (u 1 • v 1 + u 2 • v 2 ) / (√(u 12 •) u 22 ) • √(v 12 • v 22 )).
    • If you’re working with computer graphics software, you’ll most likely only have to care about the dimensions of the vectors and not their length. Use these steps to shorten the equation and speed up your program: [9] X Research Source[10] X Research Source
      • Normalize each vector so that they have a length of 1. To do so, divide each component of the vector by its length.
      • Take the dot product of the normalized vector instead of the original vector.
      • Since the vector has a length of 1, we can remove the length element from the equation. Finally, the angle equation we get is arccos( u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} ).
    • Based on the cosine formula, we can quickly determine whether an angle is an acute or obtuse angle. Start with cosθ = ( u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} • v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} ) / ( || u→{displaystyle {overrightarrow {u}}}{overrightarrow {u}} || || v→{displaystyle {overrightarrow {v}}}{overrightarrow {v}} || ):
      • The left and right sides of the equation must have the same sign (positive or negative).
      • Since the length is always positive, cosθ must have the same sign as the dot product.
      • Therefore, if the dot product is positive, cosθ is also positive. We’re in the first quadrant of the unit circle, with θ < π / 2 or 90º. The required angle is an acute angle.
      • If the dot product is negative, cosθ is negative. We’re in the second quadrant of the unit circle, with π / 2 < θ ≤ π or 90º < θ ≤ 180º. It’s an obtuse angle.
    X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    There are 9 references cited in this article that you can view at the bottom of the page.

    This article has been viewed 231,294 times.

    If you are a mathematician or a graphics programmer, you will probably have to find the angle between two given vectors. In this article, the wikiHow will show you how to do just that.

    Thank you for reading this post How to Find the Angle Between Two Vectors at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « How to make delicious and greasy steamed yam cake with coconut milk
    Next Post: How to make super beautiful chrysanthemum coconut jam for Tet »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge