Leaving Certificate Mathematics18.5 Vectors in three dimensions

All books

18.5 Vectors in three dimensions — Learn

Prerequisites: Sections 18.1 to 18.4 — columns, length, the dot product and angles.

Objectives: write a three-dimensional vector; find its length; add vectors and find dot products in three dimensions; test for perpendicularity and find an angle.

By the end of this section you can do everything from the earlier sections with a third component, and you can see that nothing new has to be learned.

A third component

Real quantities move in space, not on a flat page. A drone can rise as well as travel across and up a map. A third component, measured along the k\mathbf{k} direction, records the height.

a=(xyz)=xi+yj+zk\mathbf{a} = \begin{pmatrix} x \\ y \\ z \end{pmatrix} = x\mathbf{i} + y\mathbf{j} + z\mathbf{k}

The numbers xx, yy and zz are the three components. The vectors i\mathbf{i}, j\mathbf{j} and k\mathbf{k} are the unit vectors along the three perpendicular axes. Every rule from the plane carries over, with one more component to carry.

Length in three dimensions

The length formula squares every component and adds. With three components, add three squares.

Length of a three-dimensional vector.

∣(xyz)∣=x2+y2+z2\left|\begin{pmatrix} x \\ y \\ z \end{pmatrix}\right| = \sqrt{x^2 + y^2 + z^2}

This is Pythagoras' theorem used twice: once across the base, and again with the height. The two horizontal components give x2+y2\sqrt{x^2 + y^2}, and that length and the height zz form a second right triangle.

Example 1. Find the length of (3412)\begin{pmatrix} 3 \\ 4 \\ 12 \end{pmatrix}.

32+42+122=9+16+144=169=13\sqrt{3^2 + 4^2 + 12^2} = \sqrt{9 + 16 + 144} = \sqrt{169} = 13

Example 2. Find the distance from P(1,0,2)P(1, 0, 2) to Q(4,3,−2)Q(4, 3, -2).

First find the displacement:

PQ⃗=(4−13−0−2−2)=(33−4)\vec{PQ} = \begin{pmatrix} 4 - 1 \\ 3 - 0 \\ -2 - 2 \end{pmatrix} = \begin{pmatrix} 3 \\ 3 \\ -4 \end{pmatrix}

Then its length:

PQ=32+32+(−4)2=9+9+16=34PQ = \sqrt{3^2 + 3^2 + (-4)^2} = \sqrt{9 + 9 + 16} = \sqrt{34}

The answer is not a whole number, so keep it as 34\sqrt{34}.

Adding and scaling in three dimensions

Addition, subtraction and scalar multiplication work component by component, exactly as in the plane. There is one more component to handle.

(a1a2a3)+(b1b2b3)=(a1+b1a2+b2a3+b3)\begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} + \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \\ a_3 + b_3 \end{pmatrix}

Example 3. Add (1−23)\begin{pmatrix} 1 \\ -2 \\ 3 \end{pmatrix} and (22−5)\begin{pmatrix} 2 \\ 2 \\ -5 \end{pmatrix}.

(1+2−2+23−5)=(30−2)\begin{pmatrix} 1 + 2 \\ -2 + 2 \\ 3 - 5 \end{pmatrix} = \begin{pmatrix} 3 \\ 0 \\ -2 \end{pmatrix}

The middle component cancels, so the answer has no j\mathbf{j} term.

The dot product in three dimensions

The dot product multiplies matching components and adds. With three components there are three products.

The dot product in three dimensions. For a=(a1a2a3)\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} and b=(b1b2b3)\mathbf{b} = \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix},

a⋅b=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3

All the properties from Section 18.3 still hold, including a⋅a=∣a∣2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2 and the angle formula a⋅b=∣a∣∣b∣cos⁡θ\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta.

Example 4. Work out (123)⋅(4−12)\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ -1 \\ 2 \end{pmatrix}.

1×4+2×(−1)+3×2=4−2+6=81 \times 4 + 2 \times (-1) + 3 \times 2 = 4 - 2 + 6 = 8

Perpendicularity and angles in three dimensions

The tests are unchanged. Two vectors are perpendicular when their dot product is zero, and the angle between them is found from

cos⁡θ=a⋅b∣a∣ ∣b∣\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}

Example 5. Show that (123)\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} and (11−1)\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix} are perpendicular.

1×1+2×1+3×(−1)=1+2−3=01 \times 1 + 2 \times 1 + 3 \times (-1) = 1 + 2 - 3 = 0

The dot product is zero, so the vectors meet at a right angle.

Example 6. Find the angle between (100)\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} and (111)\begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix}.

The dot product is 11. The lengths are 11 and 1+1+1=3\sqrt{1 + 1 + 1} = \sqrt{3}. So

cos⁡θ=13=0.5774⇒θ=54.7∘\cos\theta = \frac{1}{\sqrt{3}} = 0.5774 \quad\Rightarrow\quad \theta = 54.7^\circ

Progress check

Back to the chapter problem, now in three dimensions. Suppose the drone's first leg is a=(623)\mathbf{a} = \begin{pmatrix} 6 \\ 2 \\ 3 \end{pmatrix} km and its second is b=(−26−1)\mathbf{b} = \begin{pmatrix} -2 \\ 6 \\ -1 \end{pmatrix} km.

Find a+b\mathbf{a} + \mathbf{b} and the length of the return leg. Then work out a⋅b\mathbf{a} \cdot \mathbf{b}. The dot product is no longer zero, so the route is no longer right-angled in space. Say whether the angle between the two legs is now acute or obtuse, and give the reason from the sign of the dot product.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.