Download Article
Download Article
Quickly get the angle and magnitude of a vector
Finding the direction of a vector in a 2-dimensional plane is easy! You’ll just need a little trigonometry. The x and y components of a vector form a right triangle. You can use the tangent function to find the angle between the x-axis and the vector. This wikiHow guide will show you how to find the direction of a vector and walk through four examples. Additionally, we’ll review how to find the magnitude of a vector.
Things You Should Know
- For this method, the vector’s tail will be located at the origin of an xy coordinate plane, and the tip will be at an (X, Y) coordinate.
- Use tan(𝛉) = Y/X to find the direction angle 𝛉 of the vector. Apply arctan to both sides to solve for 𝛉.
- If your vector is in the second, third, or fourth quadrant, you’ll need to apply an adjustment. Add 180 degrees to your answer for quadrants II and III. Add 360 for quadrant IV.
- Use||a|| = sqrt(X^2 + Y^2) to calculate the magnitude of vector a.
Steps
Section 3 of 9:
Vector Notation
-
There are a few coordinate plane terms you’ll need to know. A Cartesian 2-dimensional coordinate plane specifies points in a plane by assigning distances from the origin.
- A 2-dimensional plane is a flat surface consisting of two directions, x and y. It extends infinitely in the x and y direction.
- The x-axis is a horizontal line that measures distance in space in the x direction. Positive values point right from the origin (positive x-axis), negative point left (negative x-axis).
- The y-axis is a vertical line that measures distance in space in the x direction. It is perpendicular to the x-axis. Positive values point up from the origin (positive y-axis), negative point down (negative y-axis).
- The origin is where the x and y axes intersect. It has coordinates of (0, 0).
- Coordinates are where a point is located. They are written as (x, y) where x is the distance you need to move in the horizontal direction and y is the distance you need to move in the vertical direction to get to the point from the origin.
-
You’ll also need to know the four quadrants. The quadrants are four spaces in the coordinate plane defined by the x and y axes.
- The space above the x-axis and to the right of the y-axis is the first quadrant . Everything in this quadrant is a positive value. It’s the upper right space of the plane.
- The quadrants are then ordered counterclockwise starting at the first quadrant.
- So, the second quadrant is above the x-axis and to the left of the y-axis.
- The third quadrant is below the x-axis and to the left of the y-axis.
- The fourth quadrant is below the x-axis and to the right of the y-axis.
-
Vectors are defined by two parameters, magnitude and direction. The magnitude is represented by the length of the vector. Direction is which way the vector is pointed in a given coordinate plane. [2] X Research source
- Vectors are often illustrated as an arrow on a coordinate plane. The tail of the vector is at the origin of the plane.
- For example, a 2-dimensional vector may have a length of 3 and point 45 degrees counterclockwise from the positive X axis.
- Note: this wikiHow guide will discuss vectors in a 2-dimensional space, but these principles apply to 3-dimensional spaces as well.
-
There are two common ways to represent vector components. You can use coordinates or unit vector notation.
- Coordinate notation tells you where the tip of the vector arrow is located. It’s often written as two vertically-stacked numbers within square brackets. The x coordinate is on top while the y is on the bottom.
- If you don’t know them, you can resolve a vector into components.
-
Unit vector notation represents the vector as an equation. This is also sometimes called engineering notation. The equation is
- u = Xî + Yĵ
- where u is the vector (this can be any letter, and usually has an arrow pointing right over the letter), X is the x coordinate, and Y is the y coordinate.
- For example, u = 3î + 4ĵ would be a vector with the tip pointed at the coordinate (3, 4).
Advertisement
Section 4 of 9:
Use Trigonometry to Find the Angle
-
Locate the angle 𝛉 you’re trying to find. The direction of a vector can be defined as the angle between the positive x-axis and the vector. [3] X Research source
- Find the angle by starting at the positive x-axis (0 degrees), and then moving counterclockwise until you get to the vector.
- The vector can point in any direction in the plane, 0 to 360 degrees.
- This angle will be referred to as 𝛉 (the greek symbol theta).
-
Identify the triangle created by the vector. The vector is defined by its X and Y components. You can use these two numbers to make a right triangle.
- One side of the triangle will be in line with the x-axis. This side’s length X is the X component of the vector. We’ll refer to this as the adjacent side.
- The second side is perpendicular to the x-axis. This side’s length Y is the Y component of the vector. We’ll refer to this as the opposite side.
- The third side of the triangle is the hypotenuse and also the vector itself.
-
Use the definition of the trigonometric function, tangent. Tangent (tan) is defined as [4] X Research source
- tan(𝛉) = opposite/adjacent
- where
- “opposite” is the length of the side farthest from the angle 𝛉
- and “adjacent” is the length of the side closest to the angle 𝛉 (that isn’t the hypotenuse)
-
Insert the vector components into the tangent equation. The tangent equation will use the triangle created by the x and y components of the vector. The equation will be formatted as
- tan(𝛉) = Y/X
-
Solve for 𝛉. To find 𝛉, you’ll need to apply the inverse tangent (written as tan^-1 or arctan) to both sides of the equation. We’ll use arctan in this guide, but it’s common to see tan^-1 on calculators. This will result in
- 𝛉 = arctan(Y/X)
- To use your calculator for solving this, first divide Y by X, then press the arctan button. You may need to press the shift or 2nd key on your calculator to access the arctan function.
- Note: Make sure your calculator is in degrees mode (usually labeled “Deg”). If you’re in radians mode (“Rad”), the answer will be in radians instead of degrees.
-
Apply an angle adjustment to get the correct measurement. Calculators only output angles in the first and fourth quadrants (negative 90 degrees to positive 90 degrees). This is because the calculator doesn’t evaluate where the negatives are when solving for 𝛉. To get the correct 𝛉 for each quadrant, you’ll need to identify which quadrant your vector is in, and then apply an adjustment:
- The first quadrant doesn’t need an adjustment.
- For vectors in the second quadrant , the arctan function will result in a negative angle pointing down and to the right (in the fourth quadrant). This angle points directly opposite to the vector, so you’ll need to add 180 degrees to the angle to get 𝛉.
- For vectors in the third quadrant , the arctan function will result in a positive angle pointing up and to the right (in the first quadrant). This angle points directly opposite to the vector, so you’ll need to add 180 degrees to the angle to get 𝛉. [5] X Research source
- For vectors in the fourth quadrant , the arctan function will result in a negative angle pointing down and to the right (in the fourth quadrant). This angle points in the correct direction, but the angle is negative (measured clockwise from the positive x-axis) instead of positive (measured counterclockwise from the positive x-axis). You’ll need to add 360 degrees to the angle to get 𝛉.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
-
Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
References
- ↑ https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:vectors/x9e81a4f98389efdf:vec-mag/v/finding-vector-magnitude-from-components?modal=1
- ↑ https://www.youtube.com/watch?v=fNk_zzaMoSs
- ↑ https://www.youtube.com/watch?v=A3OuFLHum6w
- ↑ https://mathworld.wolfram.com/SOHCAHTOA.html#:~:text=%22SOHCAHTOA%22%20is%20a%20helpful%20mnemonic,(1)
- ↑ https://www.youtube.com/watch?v=EX0Ha42WQ24
About This Article
Thanks to all authors for creating a page that has been read 40,747 times.
Advertisement