IB Diploma Mathematics AA · Geometry and trigonometry
Vectors (HL)
1Describing vectors
A vector has both size and direction. A scalar has size only.
A vector can be written in column form, such as $\mathbf{a} = \begin{pmatrix} 3 \\ -1 \\ 2 \end{pmatrix}$, or with base vectors as $3\mathbf{i} - \mathbf{j} + 2\mathbf{k}$.
- The magnitude is its length: $|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}$.
- A unit vector has length 1. To make one, divide by the magnitude: $\hat{\mathbf{a}} = \frac{\mathbf{a}}{|\mathbf{a}|}$.
- The position vector of point $A$ is $\overrightarrow{OA}$, from the origin to $A$.
Magnitude and unit vector
- $\mathbf{a} = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}$.
- $|\mathbf{a}| = \sqrt{4 + 1 + 4} = 3$.
- Unit vector: $\frac{1}{3}\begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}$.
Check yourself
What is the magnitude of (3, 4, 0)?
Show the answer
5
√(9 + 16 + 0) = 5.
2Adding vectors and finding AB
Adding vectors, and the vector from A to B
- To add vectors, add the components. On a diagram, place them nose to tail.
- Multiplying by a scalar $k$ stretches the vector. If $k < 0$ it reverses direction.
- Two vectors are parallel if one is a multiple of the other.
The vector from $A$ to $B$ is:
$$\overrightarrow{AB} = \mathbf{b} - \mathbf{a}$$
The vector between two points
- $A(1, 4, -2)$ and $B(5, 1, 0)$.
- $\overrightarrow{AB} = \begin{pmatrix} 5 - 1 \\ 1 - 4 \\ 0 - (-2) \end{pmatrix} = \begin{pmatrix} 4 \\ -3 \\ 2 \end{pmatrix}$.
- Distance $AB = \sqrt{16 + 9 + 4} = \sqrt{29}$.
Check yourself
A has position vector a and B has position vector b. What is the vector AB?
Show the answer
b − a
Go back from A to O, then out from O to B: −a + b.
3The scalar product
The scalar product (dot product) of two vectors gives a number:
$$\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3 = |\mathbf{a}||\mathbf{b}|\cos\theta$$
where $\theta$ is the angle between them.
- If $\mathbf{a} \cdot \mathbf{b} = 0$, the vectors are perpendicular.
- To find the angle: $\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}$.
The angle between two vectors
- $\mathbf{a} = \begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}$.
- $\mathbf{a} \cdot \mathbf{b} = 2 - 2 + 4 = 4$.
- $|\mathbf{a}| = 3$ and $|\mathbf{b}| = 3$.
- $\cos\theta = \frac{4}{9}$, so $\theta = 63.6°$.
The vectors must both point away from the angle's corner. If one points in, you get the outside angle.
Check yourself
The scalar product of two non-zero vectors is 0. What does this tell you?
Show the answer
They are perpendicular
cos 90° = 0.
4The vector product
The vector product (cross product) gives a vector that is perpendicular to both $\mathbf{a}$ and $\mathbf{b}$:
$$\mathbf{a} \times \mathbf{b} = \begin{pmatrix} a_2b_3 - a_3b_2 \\ a_3b_1 - a_1b_3 \\ a_1b_2 - a_2b_1 \end{pmatrix}$$
Its size is $|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta$.
The vector product: perpendicular to both, with size equal to the parallelogram's area
- Area of the parallelogram with sides $\mathbf{a}$ and $\mathbf{b}$: $|\mathbf{a} \times \mathbf{b}|$.
- Area of the triangle: $\frac{1}{2}|\mathbf{a} \times \mathbf{b}|$.
- $\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b})$. The order matters.
- If $\mathbf{a} \times \mathbf{b} = \mathbf{0}$, the vectors are parallel.
Area of a triangle
- $\mathbf{a} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix} 0 \\ 3 \\ 1 \end{pmatrix}$.
- $\mathbf{a} \times \mathbf{b} = \begin{pmatrix} 0 \cdot 1 - 2 \cdot 3 \\ 2 \cdot 0 - 1 \cdot 1 \\ 1 \cdot 3 - 0 \cdot 0 \end{pmatrix} = \begin{pmatrix} -6 \\ -1 \\ 3 \end{pmatrix}$.
- Check: $\mathbf{a} \cdot (\mathbf{a} \times \mathbf{b}) = -6 + 0 + 6 = 0$. Good.
- $|\mathbf{a} \times \mathbf{b}| = \sqrt{36 + 1 + 9} = \sqrt{46}$.
- Triangle area $= \frac{1}{2}\sqrt{46} = 3.39$.
Check yourself
What is special about the direction of a × b?
Show the answer
It is perpendicular to both a and b
That is why it is used to find the normal to a plane.
5Unit vectors and magnitude
- The magnitude of $\mathbf{v} = \begin{pmatrix} a \\ b \\ c \end{pmatrix}$ is $|\mathbf{v}| = \sqrt{a^2 + b^2 + c^2}$.
- A unit vector has magnitude 1: $\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|}$.
$\mathbf{v} = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}$
- $|\mathbf{v}| = \sqrt{4 + 1 + 4} = 3$.
- Unit vector: $\frac{1}{3}\begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}$.
- A vector of length 12 in the same direction: $4\mathbf{v} = \begin{pmatrix} 8 \\ -4 \\ 8 \end{pmatrix}$.
Check yourself
What is the magnitude of $\begin{pmatrix} 3 \\ 4 \\ 0 \end{pmatrix}$?
Show the answer
5
$\sqrt{9 + 16}$.
6Angle between two vectors
$\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}$.
$\mathbf{a} = \begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}$, $\mathbf{b} = \begin{pmatrix} 2 \\ 0 \\ 1 \end{pmatrix}$
- $\mathbf{a} \cdot \mathbf{b} = 2 + 0 + 2 = 4$.
- $|\mathbf{a}| = 3$, $|\mathbf{b}| = \sqrt{5}$.
- $\cos\theta = \frac{4}{3\sqrt{5}} \approx 0.596$, so $\theta \approx 53.4°$.
If $\mathbf{a} \cdot \mathbf{b} = 0$, the vectors are perpendicular.
Check yourself
Which vector is parallel to (2, −1, 3)?
Show the answer
(−4, 2, −6)
It is −2 times the original vector.
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