Lesson 7 of 8 · 17 min

Magnitude, direction and unit vectors from components

Calculate a vector's exact magnitude and its direction in the right quadrant from its components, find the unit vector in any direction, and build a vector of a given length.

What you will be able to do

  • Calculate ∣a∣=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2} exactly.
  • Find the direction angle from tan⁡(θ)=yx\tan(\theta) = \frac{y}{x}, using a sketch to choose the right quadrant.
  • Find n^=n∣n∣\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|}, and use it to write a vector with a given magnitude and direction.

Draw a=3i^+4j^\mathbf{a} = 3\hat{\mathbf{i}} + 4\hat{\mathbf{j}} from the origin and drop a line down from its head. Its components, 3 across and 4 up, are the two shorter sides of a right-angled triangle, and a\mathbf{a} itself is the hypotenuse.

So Pythagoras gives the magnitude, 32+42=5\sqrt{3^2 + 4^2} = 5, and trigonometry gives the direction.

Interactive

From components to magnitude and direction

Drag a\mathbf{a} into each quadrant. Compare the angle shown with what tan⁡−1(yx)\tan^{-1}\left(\frac{y}{x}\right) gives on a calculator. When do they agree?

Magnitude (on the formula sheet)
∣a∣=∣(a1a2)∣=a12+a22|\mathbf{a}| = \left|\begin{pmatrix} a_1 \\ a_2 \end{pmatrix}\right| = \sqrt{a_1^2 + a_2^2}

Find ∣5i^−2j^∣|5\hat{\mathbf{i}} - 2\hat{\mathbf{j}}| in exact form.

Reads asYour answer shows here as maths.

Key idea

Direction from components

The direction of a=xi^+yj^\mathbf{a} = x\hat{\mathbf{i}} + y\hat{\mathbf{j}} is the angle θ\theta it makes with the positive xx-axis, measured anticlockwise, where

tan⁡(θ)=yx,x≠0.\tan(\theta) = \frac{y}{x}, \quad x \neq 0.

A calculator's tan⁡−1\tan^{-1} only gives angles between −90∘-90^\circ and 90∘90^\circ, which point right. For a vector pointing left, sketch it and adjust.

Finding θ\theta in each quadrant, with α=tan⁡−1∣yx∣\alpha = \tan^{-1}\left|\frac{y}{x}\right|, the acute angle between the vector and the xx-axis.
QuadrantSignsθ\theta for 0∘≤θ<360∘0^\circ \le \theta < 360^\circθ\theta for −180∘<θ≤180∘-180^\circ < \theta \le 180^\circ
Firstx>0x > 0, y>0y > 0α\alphaα\alpha
Secondx<0x < 0, y>0y > 0180∘−α180^\circ - \alpha180∘−α180^\circ - \alpha
Thirdx<0x < 0, y<0y < 0180∘+α180^\circ + \alpha−(180∘−α)-(180^\circ - \alpha)
Fourthx>0x > 0, y<0y < 0360∘−α360^\circ - \alpha−α-\alpha
On the yy-axisx=0x = 090∘90^\circ or 270∘270^\circ90∘90^\circ or −90∘-90^\circ

Worked example

Magnitude and direction of −6i^+2j^-6\hat{\mathbf{i}} + 2\hat{\mathbf{j}}

  • Simple familiar
  • Technology active

Find the exact magnitude of v=−6i^+2j^\mathbf{v} = -6\hat{\mathbf{i}} + 2\hat{\mathbf{j}}, and its direction as an angle anticlockwise from the positive xx-axis, correct to one decimal place.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Sketch the vector to see its quadrant.

  2. Magnitude: x2+y2\sqrt{x^2 + y^2}, simplified.

  3. Reference angle: α=tan⁡−1∣yx∣\alpha = \tan^{-1}\left|\frac{y}{x}\right|.

  4. Use the quadrant to turn α\alpha into θ\theta.

Watch out for

  • Giving tan⁡−1(2−6)≈−18.4∘\tan^{-1}\left(\frac{2}{-6}\right) \approx -18.4^\circ, which points into the fourth quadrant.

  • Leaving the magnitude as 40\sqrt{40} when simplest form is asked for.

Which angle, measured anticlockwise from the positive xx-axis, is the direction of −3i^−3j^-3\hat{\mathbf{i}} - 3\hat{\mathbf{j}}?

Choose one answer

Common mistake

Trusting the calculator's angle

For −6i^+2j^-6\hat{\mathbf{i}} + 2\hat{\mathbf{j}}, a calculator gives tan⁡−1(2−6)≈−18.4∘\tan^{-1}\left(\frac{2}{-6}\right) \approx -18.4^\circ. That direction points right and down, the opposite of the vector. Always check the angle against a sketch.

A unit vector has magnitude 1. It carries a direction and nothing else. Divide any non-zero vector by its own magnitude and you get the unit vector in its direction.

Unit vector (on the formula sheet)
n^=n∣n∣\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|}

Note

Why it works

1∣n∣n\frac{1}{|\mathbf{n}|}\mathbf{n} is a positive scalar multiple of n\mathbf{n}, so it points the same way. Its magnitude is 1∣n∣×∣n∣=1\frac{1}{|\mathbf{n}|} \times |\mathbf{n}| = 1. And i^\hat{\mathbf{i}} and j^\hat{\mathbf{j}} are the unit vectors along the axes.

Worked example

A unit vector, and a vector of magnitude 15

  • Complex familiar
  • Technology free

Let n=2i^−4j^\mathbf{n} = 2\hat{\mathbf{i}} - 4\hat{\mathbf{j}}.

(a) Find the unit vector n^\hat{\mathbf{n}}, with exact components.

(b) Hence find the vector of magnitude 15 in the same direction as n\mathbf{n}.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find ∣n∣|\mathbf{n}| and simplify it.

  2. Divide each component by ∣n∣|\mathbf{n}|.

  3. Multiply by kk for magnitude kk, or by −k-k for the opposite direction.

Watch out for

  • Dividing by ∣n∣2=20|\mathbf{n}|^2 = 20 instead of ∣n∣=25|\mathbf{n}| = 2\sqrt{5}.

  • Multiplying n\mathbf{n} itself by 15, which gives magnitude 30530\sqrt{5}, not 15.

Find the unit vector in the direction of a=−8i^+6j^\mathbf{a} = -8\hat{\mathbf{i}} + 6\hat{\mathbf{j}}. Enter its i^\hat{\mathbf{i}} and j^\hat{\mathbf{j}} components.

Exam tip

Exact answers and quick checks

In a technology-free question, leave magnitudes as surds (2102\sqrt{10}, not 6.326.32) and unit vectors with exact components. 15\frac{1}{\sqrt{5}} and 55\frac{\sqrt{5}}{5} are both exact; rationalise if the question asks.

Check a unit vector by squaring its components and adding: you must get exactly 1.

Summary

  • ∣a∣=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2}: the components are the legs of a right-angled triangle.

  • Direction: tan⁡(θ)=yx\tan(\theta) = \frac{y}{x}, then use a sketch to put θ\theta in the right quadrant.

  • The unit vector in the direction of n\mathbf{n} is n^=n∣n∣\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|}.

  • A vector of magnitude kk in the direction of n\mathbf{n} is kn^k\hat{\mathbf{n}}; in the opposite direction, −kn^-k\hat{\mathbf{n}}.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 7 of 80% read

Save your progress with a free account