Lesson 2 of 8 · 16 min

Magnitude, unit vectors and the altitude angle

Find the exact length of a vector in space and the distance between two points, build unit vectors, and describe how steeply a vector climbs with the altitude angle.

What you will be able to do

  • Calculate ∣a∣=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2} and the distance between two points.
  • Find the unit vector n^=n∣n∣\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|} and a vector of any given magnitude in a given direction.
  • Find the altitude angle φ\varphi of a vector, and find components from a magnitude and angles.

How long is the diagonal of a shoebox that is 30 cm by 20 cm by 12 cm? Pythagoras on the base gives the diagonal of the floor, and Pythagoras again, with the height, gives the diagonal through the box. That double use of Pythagoras is the magnitude formula in three dimensions.

Key idea

Magnitude in three dimensions

∣a∣=∣(a1a2a3)∣=a12+a22+a32|\mathbf{a}| = \left|\begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}\right| = \sqrt{a_1^2 + a_2^2 + a_3^2}

The distance between points AA and BB is ∣AB→∣=∣b−a∣|\overrightarrow{AB}| = |\mathbf{b} - \mathbf{a}|.

Why the formula works

Let P=(a1,a2,a3)P = (a_1, a_2, a_3) and let F=(a1,a2,0)F = (a_1, a_2, 0) be the point directly below it on the xyxy-plane.

In the floor, OFOF is the hypotenuse of a right triangle with legs ∣a1∣|a_1| and ∣a2∣|a_2|, so OF2=a12+a22OF^2 = a_1^2 + a_2^2.

FPFP is vertical with length ∣a3∣|a_3|, and it is perpendicular to OFOF. So triangle OFPOFP has a right angle at FF, and

OP2=OF2+FP2=a12+a22+a32.OP^2 = OF^2 + FP^2 = a_1^2 + a_2^2 + a_3^2.

Find ∣2i^−j^−2k^∣|2\hat{\mathbf{i}} - \hat{\mathbf{j}} - 2\hat{\mathbf{k}}|.

Find the distance between A(1,−2,4)A(1, -2, 4) and B(3,1,−2)B(3, 1, -2).

Definition

Unit vectors

A unit vector has magnitude 1. Dividing any non-zero vector by its magnitude gives the unit vector in its direction:

n^=n∣n∣.\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|}.

i^\hat{\mathbf{i}}, j^\hat{\mathbf{j}} and k^\hat{\mathbf{k}} are the unit vectors along the axes. To get a vector of magnitude mm in the direction of n\mathbf{n}, use mn^m\hat{\mathbf{n}}.

Find the unit vector in the direction of n=4i^−3k^\mathbf{n} = 4\hat{\mathbf{i}} - 3\hat{\mathbf{k}}.

In the plane, one angle was enough to give a direction. In space you also need to know how steeply the vector climbs. That is the altitude angle.

The altitude angle φ\varphi is the angle between OP→\overrightarrow{OP} and the xyxy-plane: the angle between OP→\overrightarrow{OP} and its shadow OF→\overrightarrow{OF} on the floor.

Definition

The altitude angle

The altitude angle φ\varphi of a=a1i^+a2j^+a3k^\mathbf{a} = a_1\hat{\mathbf{i}} + a_2\hat{\mathbf{j}} + a_3\hat{\mathbf{k}} is the angle between a\mathbf{a} and the xyxy-plane, with −90∘≤φ≤90∘-90^\circ \le \varphi \le 90^\circ. In the right triangle OFPOFP the side opposite φ\varphi is a3a_3, so

sin⁡(φ)=a3∣a∣or equivalentlytan⁡(φ)=a3a12+a22.\sin(\varphi) = \frac{a_3}{|\mathbf{a}|} \qquad \text{or equivalently} \qquad \tan(\varphi) = \frac{a_3}{\sqrt{a_1^2 + a_2^2}}.

φ\varphi is positive when the vector points above the xyxy-plane and negative when it points below.

Interactive

How steeply does it climb?

Change the zz-component of a\mathbf{a} and watch φ\varphi. What is φ\varphi when z=0z = 0? What happens as zz becomes large and negative?

Worked example

Unit vector and altitude angle of 2i^−3j^+6k^2\hat{\mathbf{i}} - 3\hat{\mathbf{j}} + 6\hat{\mathbf{k}}

  • Simple familiar
  • Technology active

Let a=2i^−3j^+6k^\mathbf{a} = 2\hat{\mathbf{i}} - 3\hat{\mathbf{j}} + 6\hat{\mathbf{k}}.

(a) Find ∣a∣|\mathbf{a}| and the unit vector a^\hat{\mathbf{a}}.

(b) Find the altitude angle of a\mathbf{a}, to one decimal place.

(c) Find the vector of magnitude 21 in the direction opposite to a\mathbf{a}.

4 steps

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

Method

  1. ∣a∣=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}.

  2. a^=a÷∣a∣\hat{\mathbf{a}} = \mathbf{a} \div |\mathbf{a}|; a vector of magnitude mm is ±ma^\pm m\hat{\mathbf{a}}.

  3. sin⁡(φ)=a3÷∣a∣\sin(\varphi) = a_3 \div |\mathbf{a}|.

Watch out for

  • Using cos⁡(φ)=67\cos(\varphi) = \frac{6}{7}, which gives the angle with the zz-axis (31.0∘31.0^\circ).

  • Forgetting the minus sign for "opposite direction".

Find the altitude angle of a=i^+j^+2 k^\mathbf{a} = \hat{\mathbf{i}} + \hat{\mathbf{j}} + \sqrt{2}\,\hat{\mathbf{k}}, in degrees.

in circ

Key idea

From magnitude and angles to components

If the shadow of a\mathbf{a} on the xyxy-plane makes an angle θ\theta with the positive xx-axis (anticlockwise, seen from above), then the shadow has length ∣a∣cos⁡(φ)|\mathbf{a}|\cos(\varphi), and

a=∣a∣cos⁡(φ)cos⁡(θ) i^+∣a∣cos⁡(φ)sin⁡(θ) j^+∣a∣sin⁡(φ) k^.\mathbf{a} = |\mathbf{a}|\cos(\varphi)\cos(\theta)\,\hat{\mathbf{i}} + |\mathbf{a}|\cos(\varphi)\sin(\theta)\,\hat{\mathbf{j}} + |\mathbf{a}|\sin(\varphi)\,\hat{\mathbf{k}}.

Common mistake

The angle from the z-axis

The angle between a\mathbf{a} and the positive zz-axis is 90∘−φ90^\circ - \varphi, not φ\varphi. If you find cos⁡(angle)=a3∣a∣\cos(\text{angle}) = \frac{a_3}{|\mathbf{a}|} you have the angle with the zz-axis; the altitude angle uses sin⁡\sin.

Summary

  • ∣a∣=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}, and the distance ABAB is ∣b−a∣|\mathbf{b} - \mathbf{a}|.

  • n^=n∣n∣\hat{\mathbf{n}} = \frac{\mathbf{n}}{|\mathbf{n}|} has magnitude 1; mn^m\hat{\mathbf{n}} has magnitude mm in the same direction.

  • The altitude angle φ\varphi is the angle with the xyxy-plane: sin⁡(φ)=a3∣a∣\sin(\varphi) = \frac{a_3}{|\mathbf{a}|}.

  • From magnitude and angles: horizontal part ∣a∣cos⁡(φ)|\mathbf{a}|\cos(\varphi), vertical part ∣a∣sin⁡(φ)|\mathbf{a}|\sin(\varphi).

Finished the lesson?

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

Lesson 2 of 80% read

Save your progress with a free account