impera Open Impera

IB Diploma Mathematics AI · Geometry and trigonometry

Vectors (HL)

1Vectors and components

A vector has a size (magnitude) and a direction. A scalar has size only.

  • In 3D a vector is written as a column $\begin{pmatrix}x\\y\\z\end{pmatrix}$ or with unit vectors as $x\mathbf{i} + y\mathbf{j} + z\mathbf{k}$.
  • The magnitude is $|\mathbf{v}| = \sqrt{x^2 + y^2 + z^2}$.
  • A unit vector has magnitude 1. Divide a vector by its magnitude to get one in the same direction.
  • The vector from point $A$ to point $B$ is $\overrightarrow{AB} = \mathbf{b} - \mathbf{a}$ (end minus start).
  • Two vectors are parallel when one is a scalar multiple of the other.
Worked example

A displacement and its length

  1. $A(1, 2, 2)$ and $B(4, 2, 6)$.
  2. $\overrightarrow{AB} = \begin{pmatrix}3\\0\\4\end{pmatrix}$.
  3. $|\overrightarrow{AB}| = \sqrt{9 + 0 + 16} = 5$.
  4. A unit vector in that direction is $\frac{1}{5}\begin{pmatrix}3\\0\\4\end{pmatrix} = \begin{pmatrix}0.6\\0\\0.8\end{pmatrix}$.
Check yourself

What is the magnitude of the vector with components 2, 3 and 6?

  • 49

  • 11

  • √11

  • 7

Show the answer

7

√(4 + 9 + 36) = √49 = 7.

2The scalar product and angles

The scalar (dot) product of two vectors gives a number:

  • $\mathbf{v} \cdot \mathbf{w} = v_1w_1 + v_2w_2 + v_3w_3$
  • Also $\mathbf{v} \cdot \mathbf{w} = |\mathbf{v}||\mathbf{w}|\cos\theta$, where $\theta$ is the angle between them.
  • So $\cos\theta = \dfrac{\mathbf{v} \cdot \mathbf{w}}{|\mathbf{v}||\mathbf{w}|}$.
  • If $\mathbf{v} \cdot \mathbf{w} = 0$ the vectors are perpendicular.
  • The component of $\mathbf{v}$ in the direction of $\mathbf{w}$ is $\dfrac{\mathbf{v} \cdot \mathbf{w}}{|\mathbf{w}|}$. In physics this is how much of a force acts along a direction.
Worked example

The angle between two vectors

  1. $\mathbf{a} = \begin{pmatrix}1\\2\\2\end{pmatrix}$, $\mathbf{b} = \begin{pmatrix}3\\0\\4\end{pmatrix}$.
  2. $\mathbf{a} \cdot \mathbf{b} = 3 + 0 + 8 = 11$.
  3. $|\mathbf{a}| = 3$ and $|\mathbf{b}| = 5$.
  4. $\cos\theta = \frac{11}{15}$, so $\theta = 42.8°$ (3 s.f.).
Check yourself

The vectors (2, k, 1) and (3, 2, −4) are perpendicular. What is k?

  • −5

  • 5

  • −1

  • 1

Show the answer

−1

6 + 2k − 4 = 0 gives k = −1.

3Vector equations of lines

A line through a point with position vector $\mathbf{a}$, going in direction $\mathbf{b}$, is

$\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}$

  • Each value of the parameter $\lambda$ gives one point on the line.
  • To test whether a point is on the line, find a single $\lambda$ that works for every component.
  • The angle between two lines is the angle between their direction vectors. Take the acute angle.
  • In 3D, two lines can meet, be parallel, or be skew (not parallel and never meeting).
Worked example

Is the point on the line?

  1. Line: $\mathbf{r} = \begin{pmatrix}1\\0\\2\end{pmatrix} + \lambda\begin{pmatrix}2\\-1\\3\end{pmatrix}$. Point $(7, -3, 11)$.
  2. $x$: $1 + 2\lambda = 7$ gives $\lambda = 3$.
  3. $y$: $0 - 3 = -3$ ✓. $z$: $2 + 9 = 11$ ✓.
  4. The same $\lambda = 3$ fits all three, so the point is on the line.
Worked example

Angle between two lines

  1. Directions $\begin{pmatrix}2\\-1\\3\end{pmatrix}$ and $\begin{pmatrix}1\\1\\1\end{pmatrix}$.
  2. Dot product $= 2 - 1 + 3 = 4$. Magnitudes $\sqrt{14}$ and $\sqrt{3}$.
  3. $\cos\theta = \frac{4}{\sqrt{42}}$, so $\theta = 51.9°$.
Check yourself

The line r = (1, 0, 2) + λ(2, −1, 3). Which point is on it?

  • (5, 2, 8)

  • (5, −2, 8)

  • (2, −1, 3)

  • (3, 1, 5)

Show the answer

(5, −2, 8)

λ = 2 gives (1 + 4, 0 − 2, 2 + 6).

4The vector product and areas

The vector (cross) product gives a vector perpendicular to both:

  • $\mathbf{v} \times \mathbf{w} = \begin{pmatrix}v_2w_3 - v_3w_2\\v_3w_1 - v_1w_3\\v_1w_2 - v_2w_1\end{pmatrix}$
  • Its size is $|\mathbf{v} \times \mathbf{w}| = |\mathbf{v}||\mathbf{w}|\sin\theta$.
  • That size is the area of the parallelogram with sides $\mathbf{v}$ and $\mathbf{w}$. Half of it is the area of the triangle.
  • Order matters: $\mathbf{w} \times \mathbf{v} = -(\mathbf{v} \times \mathbf{w})$.
  • If $\mathbf{v} \times \mathbf{w} = \mathbf{0}$, the vectors are parallel.
Worked example

Area of a triangle

  1. Two sides of a triangle are $\begin{pmatrix}1\\2\\3\end{pmatrix}$ and $\begin{pmatrix}4\\5\\6\end{pmatrix}$.
  2. Cross product: $(2 \times 6 - 3 \times 5,\ 3 \times 4 - 1 \times 6,\ 1 \times 5 - 2 \times 4) = (-3, 6, -3)$.
  3. Its magnitude is $\sqrt{9 + 36 + 9} = \sqrt{54} = 7.35$.
  4. Triangle area $= \frac{1}{2} \times 7.35 = 3.67$ square units.
Check yourself

What does |v × w| measure?

  • The area of the parallelogram formed by v and w

  • The component of v in the direction of w

  • The length of the vector sum v + w of the two

  • The angle between the two vectors v and w

Show the answer

The area of the parallelogram formed by v and w

|v||w| sin θ is base × perpendicular height.

5Motion with constant velocity

An object starting at position $\mathbf{r}_0$ with constant velocity $\mathbf{v}$ is at

$\mathbf{r} = \mathbf{r}_0 + t\mathbf{v}$

  • The speed is $|\mathbf{v}|$.
  • Two objects collide only if they are at the same point at the same time $t$.
  • The closest approach: write the vector between them as a function of $t$, find its length, and minimise it (with technology or by differentiating the square of the distance).

Ships A and B move in straight lines; they are closest after 2 hours

Worked example

Two ships

  1. Ship A starts at $(0, 0)$ with velocity $\begin{pmatrix}3\\4\end{pmatrix}$ km/h. Ship B starts at $(10, 0)$ with velocity $\begin{pmatrix}-1\\2\end{pmatrix}$ km/h.
  2. Speed of A $= \sqrt{9 + 16} = 5$ km/h.
  3. B minus A at time $t$: $\begin{pmatrix}10 - 4t\\-2t\end{pmatrix}$.
  4. Distance squared: $D = (10 - 4t)^2 + 4t^2$. Then $D'(t) = -8(10 - 4t) + 8t = 40t - 80 = 0$, so $t = 2$ hours.
  5. The gap is then $\begin{pmatrix}2\\-4\end{pmatrix}$, of length $\sqrt{20} = 4.47$ km. They never collide.
Check yourself

A boat has velocity (6, 8) km/h. What is its speed?

  • 48 km/h

  • 14 km/h

  • 100 km/h

  • 10 km/h

Show the answer

10 km/h

√(36 + 64) = 10.

6Relative position and closest approach

Worked example

Two ships

  1. Ship A: $\mathbf{r}_A = \begin{pmatrix} 0 \\ 0 \end{pmatrix} + t\begin{pmatrix} 3 \\ 4 \end{pmatrix}$ km, $t$ in hours.
  2. Ship B: $\mathbf{r}_B = \begin{pmatrix} 10 \\ 0 \end{pmatrix} + t\begin{pmatrix} -2 \\ 4 \end{pmatrix}$.
  3. Relative position: $\mathbf{r}_B - \mathbf{r}_A = \begin{pmatrix} 10 - 5t \\ 0 \end{pmatrix}$.
  4. Distance: $|10 - 5t|$, which is zero at $t = 2$.
  5. The ships are at the same point after 2 hours, so they collide unless one changes course.
Check yourself

What is the speed of a ship with velocity $\begin{pmatrix} 3 \\ 4 \end{pmatrix}$ km/h?

  • 5 km/h

  • 7 km/h

  • 25 km/h

  • 12 km/h

Show the answer

5 km/h

Magnitude.

7Components of a force

Vectors resolve forces into components.

Worked example

A force of 50 N at 30° above the horizontal

  1. Horizontal component: $50\cos 30° \approx 43.3$ N.
  2. Vertical component: $50\sin 30° = 25$ N.
  3. As a vector: $\begin{pmatrix} 43.3 \\ 25 \end{pmatrix}$.
Check yourself

What is the vertical component of 20 N at 30° above the horizontal?

  • 17.3 N

  • 10 N

  • 20 N

  • 30 N

Show the answer

10 N

$20\sin 30°$.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera