Download Article

Quickly get the angle and magnitude of a vector

Download Article

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 How.com.vn 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.
Section 1 of 9:

Direction Formula

Download Article
  1. How.com.vn English: Use 𝛉 = arctan(Y/X).
    This formula calculates 𝛉 (the greek symbol, theta), which is the angle measuring the degrees between the positive x-axis and the vector.
    • Where Y is the Y component of the vector and X is the X component of the vector.
    • “arctan” is the inverse tangent function.
    • This assumes the vector’s tail is located at the origin (0, 0).
    • If the vector is in the second or third quadrant, add 180 degrees to your result.
    • If the vector is in the fourth quadrant, add 360 degrees to your result.
    • Make sure your calculator is set to degrees mode, usually called “deg.”
  2. Advertisement
Section 2 of 9:

Magnitude Formula

Download Article
  1. How.com.vn English: Use ||a|| = sqrt(X^2 + Y^2).
    This formula calculates ||a||, the magnitude of vector a.[1]
    • Where Y is the Y component of the vector and X is the X component of the vector.
    • “sqrt” is the square root of what’s in the parentheses.
    • This assumes the vector’s tail is located at the origin (0, 0).
    • Check out the full How.com.vn guide on finding the magnitude of a vector for more details and examples.
Section 3 of 9:

Vector Notation

Download Article
  1. How.com.vn English: Step 1 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.
  2. How.com.vn English: Step 2 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.
  3. How.com.vn English: Step 3 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]
    • 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 How.com.vn guide will discuss vectors in a 2-dimensional space, but these principles apply to 3-dimensional spaces as well.
  4. How.com.vn English: Step 4 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.
  5. How.com.vn English: Step 5 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).
  6. Advertisement
Section 4 of 9:

Use Trigonometry to Find the Angle

Download Article
  1. How.com.vn English: Step 1 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]
    • 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).
  2. How.com.vn English: Step 2 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.
  3. How.com.vn English: Step 3 Use the definition of the trigonometric function, tangent.
    Tangent (tan) is defined as[4]
    • 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)
  4. How.com.vn English: Step 4 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
  5. How.com.vn English: Step 5 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.
  6. How.com.vn English: Step 6 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]
    • 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 𝛉.
  7. Advertisement
Section 5 of 9:

Special Cases

Download Article
  1. How.com.vn English: There are a few cases where you don’t need to use trigonometry to find the angle of the vector.
    These are cases in which the angle of the vector is apparent by looking at it on the graph.
    • If one of the vector’s x or y components is 0, then the vector is pointing directly in line with an axis.
    • For example, if you have the vector u = 0î + 5ĵ, the vector is pointing straight up along the positive y-axis. This means it has an angle of 90 degrees since the y-axis is perpendicular to the x-axis.
    • If the vector’s x and y components are the same number, the vector is pointing at an increment of 45 degrees.
    • For example, if you have the vector u = -3î + 3ĵ, the vector is pointing up and to the left, 45 degrees counterclockwise from the positive y-axis. Since the axes are perpendicular, we can add 90 degrees (positive x-axis to positive y-axis) plus 45 degrees to get 135 degrees.
Section 6 of 9:

Quadrant I Example

Download Article
  1. How.com.vn English: Here’s a step-by-step example of a vector in the first quadrant.
    • You’re given the vector u = 2î + 5ĵ
    • Insert the components into the tangent equation tan(𝛉) = Y/X
    • tan(𝛉) = 5/2
    • 𝛉 = arctan(5/2)
    • 𝛉 = arctan(2.5)
    • 𝛉 = 68.20 degrees
  2. Advertisement
Section 7 of 9:

Quadrant II Example

Download Article
  1. How.com.vn English: Here’s a step-by-step example of a vector in the second quadrant.
    • You’re given the vector u = -3î + 6ĵ
    • Insert the components into the tangent equation tan(𝛉) = Y/X
    • tan(𝛉) = 6/-3
    • 𝛉 = arctan(6/-3)
    • 𝛉 = arctan(-2)
    • 𝛉 = -63.43 degrees
    • This angle points in the fourth quadrant. Apply an adjustment to get the vector angle.
    • 𝛉 = -63.43 + 180
    • 𝛉 = 116.57
Section 8 of 9:

Quadrant III Example

Download Article
  1. How.com.vn English: Here’s a step-by-step example of a vector in the third quadrant.
    • You’re given the vector u = -1î + -7ĵ
    • Insert the components into the tangent equation tan(𝛉) = Y/X
    • tan(𝛉) = -7/-1
    • 𝛉 = arctan(-7/-1)
    • 𝛉 = arctan(7)
    • 𝛉 = 81.87 degrees
    • This angle points in the first quadrant. Apply an adjustment to get the vector angle.
    • 𝛉 = 81.87 + 180
    • 𝛉 = 261.87
  2. Advertisement
Section 9 of 9:

Quadrant IV Example

Download Article
  1. How.com.vn English: Here’s a step-by-step example of a vector in the fourth quadrant.
    • You’re given the vector u = 12î + -4ĵ
    • Insert the components into the tangent equation tan(𝛉) = Y/X
    • tan(𝛉) = -4/12
    • 𝛉 = arctan(-4/12)
    • 𝛉 = arctan(-0.33)
    • 𝛉 = -18.43 degrees
    • This angle points in the fourth quadrant, but is negative. Apply an adjustment to get the positive vector angle.
    • 𝛉 = -18.43 + 360
    • 𝛉 = 341.57

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

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Grace Imson, MA
      Written by:
      Math Teacher
      This article was written by Grace Imson, MA and by How.com.vn staff writer, Kyle Smith. Grace Imson is a math teacher with over 40 years of teaching experience. Grace is currently a math instructor at the City College of San Francisco and was previously in the Math Department at Saint Louis University. She has taught math at the elementary, middle, high school, and college levels. She has an MA in Education, specializing in Administration and Supervision from Saint Louis University. This article has been viewed 29,617 times.
      12 votes - 77%
      Co-authors: 3
      Updated: September 27, 2023
      Views: 29,617
      Categories: Geometry
      Thanks to all authors for creating a page that has been read 29,617 times.

      Did this article help you?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement