Vectors in IB Maths HL AA: dot product, cross product, and lines in 3D
I often tell my IB Maths HL AA students that vectors are a game-changer. Up to this point in their maths journey, geometry has largely been flat, two-dimensional. Vectors unlock 3D space. It is a shift in perspective that takes some adjusting, but the tools provided are powerful. In my classroom, I see students initially struggle with visualising 3D concepts, especially when it comes to lines and planes. But with consistent practice and a clear understanding of the dot product and cross product, these topics become manageable and often, enjoyable.
This article will focus on the core vector operations – the dot product and cross product – and how they are applied to describe lines and determine geometric properties in three dimensions. My aim here is to cut through the noise and provide a clear overview of the essential concepts you need for your IB exams, grounded in what I’ve seen work for my students over the last decade.
The Dot Product: Unpacking Geometry
The dot product, also known as the scalar product, is fundamental. It takes two vectors and returns a scalar quantity. This scalar tells us something about the angle between the two vectors. The formal definition for two vectors $\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix}$ is:
$$ \mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3 $$This component form is useful for calculation. However, the geometric definition is what gives the dot product its power:
$$ \mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta $$where $|\mathbf{a}|$ and $|\mathbf{b}|$ are the magnitudes of vectors $\mathbf{a}$ and $\mathbf{b}$, and $\theta$ is the angle between them. From this, we can derive the angle:
$$ \cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|} $$This formula is a workhorse in IB Maths HL AA. My students use it constantly to find angles between vectors, lines, and even between a line and a plane. A particularly important consequence is that if $\mathbf{a} \cdot \mathbf{b} = 0$ (and neither $\mathbf{a}$ nor $\mathbf{b}$ is the zero vector), then $\cos\theta = 0$, meaning $\theta = 90^\circ$. This indicates that the vectors are perpendicular or orthogonal. This property is crucial for many exam questions, especially those involving normal vectors to planes.
In my classroom, we practice a lot with questions like: "Find the value of $k$ such that vectors $\mathbf{u} = \begin{pmatrix} 2 \\ k \\ -1 \end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix} 3 \\ -2 \\ 4 \end{pmatrix}$ are perpendicular." The solution simply involves setting their dot product to zero and solving for $k$. This direct application of the orthogonality condition is something my students master quickly. For more practice problems, I often direct my students to our study notes for specific examples.
The Cross Product: Generating Perpendicular Vectors and Area
The cross product, or vector product, is unique to 3D vectors. Unlike the dot product, the cross product of two vectors results in another vector. This resultant vector has a specific property: it is perpendicular to both of the original vectors. For $\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix}$, the cross product is defined as:
$$ \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} $$This formula can be tricky to remember, and I often encourage my students to use the determinant form involving unit vectors $\mathbf{i}$, $\mathbf{j}$, $\mathbf{k}$ as a memory aid:
$$ \mathbf{a} \times \mathbf{b} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} $$The magnitude of the cross product also has a geometric interpretation:
$$ |\mathbf{a} \times \mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta $$This magnitude represents the area of the parallelogram formed by vectors $\mathbf{a}$ and $\mathbf{b}$ when placed tail-to-tail. Consequently, half of this magnitude gives the area of the triangle formed by the same two vectors. This is another vital application in problem-solving, especially for Paper 1 questions where coordinate geometry needs to be combined with vector methods.
A key property of the cross product is its anti-commutativity: $\mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a})$. Also, if two vectors are parallel, their cross product is the zero vector ($\mathbf{0}$). This is because $\theta = 0^\circ$ or $\theta = 180^\circ$, so $\sin\theta = 0$. I highlight these properties because they simplify many calculations and provide quick checks for parallelism.
Lines in 3D: Vector, Parametric, and Cartesian Forms
Describing a line in 3D space requires a point on the line and a direction vector. My students learn three main forms for representing a line:
- Vector Form: $\mathbf{r} = \mathbf{a} + t\mathbf{d}$
Here, $\mathbf{r} = \begin{pmatrix} x \\ y \\ z \end{pmatrix}$ is the position vector of any point on the line, $\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}$ is the position vector of a known point on the line, $\mathbf{d} = \begin{pmatrix} d_1 \\ d_2 \\ d_3 \end{pmatrix}$ is the direction vector of the line, and $t$ is a scalar parameter.
- Parametric Form:
$$ x = a_1 + td_1 \\ y = a_2 + td_2 \\ z = a_3 + td_3 $$
This form is derived directly from the vector form by equating components. It is particularly useful for finding coordinates of specific points on the line or for checking if a point lies on the line by seeing if a consistent $t$ value can be found for all three equations.
- Cartesian (or Symmetric) Form:
$$ \frac{x - a_1}{d_1} = \frac{y - a_2}{d_2} = \frac{z - a_3}{d_3} $$
This form is obtained by isolating $t$ in each of the parametric equations and setting them equal. It is often used for questions involving the intersection of lines or lines and planes, though I find that students sometimes prefer working with the parametric form for these types of problems if they are comfortable with substitution. Note that if a direction vector component $d_i$ is zero, that part of the Cartesian equation is written as $x-a_1=0$ (or $y-a_2=0$ or $z-a_3=0$) and the remaining ratio(s).
A common problem my students encounter is finding the intersection of two lines. My approach is to set the parametric equations of the two lines equal to each other (using different parameters, say $t$ and $s$) and solve the resulting system of three equations for two unknowns. If a consistent solution for $t$ and $s$ exists, the lines intersect. If not, they are either parallel (if their direction vectors are multiples of each other) or skew (if they are not parallel and do not intersect).
Angles Between Lines and the Shortest Distance
When two lines intersect, the angle between them can be found using the dot product of their direction vectors. If $\mathbf{d}_1$ and $\mathbf{d}_2$ are the direction vectors of two lines, the angle $\theta$ between them is given by:
$$ \cos\theta = \frac{|\mathbf{d}_1 \cdot \mathbf{d}_2|}{|\mathbf{d}_1||\mathbf{d}_2|} $$I emphasize the absolute value in the numerator here because the angle between two lines is conventionally taken as the acute angle ($0 \le \theta \le \frac{\pi}{2}$). This means $\cos\theta$ should always be non-negative.
Calculating the shortest distance between two skew lines is one of the more challenging vector problems in IB Maths HL AA. My students usually find this tough initially, but a structured approach makes it manageable. The shortest distance between two skew lines $L_1: \mathbf{r}_1 = \mathbf{a}_1 + t\mathbf{d}_1$ and $L_2: \mathbf{r}_2 = \mathbf{a}_2 + s\mathbf{d}_2$ is the length of the line segment that is perpendicular to both lines. The direction vector of this common perpendicular is $\mathbf{n} = \mathbf{d}_1 \times \mathbf{d}_2$. The shortest distance, $D$, is then given by the projection of the vector connecting a point on $L_1$ to a point on $L_2$ onto $\mathbf{n}$. Specifically:
$$ D = \frac{|(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{d}_1 \times \mathbf{d}_2)|}{|\mathbf{d}_1 \times \mathbf{d}_2|} $$This formula looks complex, but it breaks down logically. First, find a vector connecting a point on each line ($\mathbf{a}_2 - \mathbf{a}_1$). Second, find the vector perpendicular to both direction vectors ($\mathbf{d}_1 \times \mathbf{d}_2$). Finally, project the connecting vector onto this normal vector. This is often a multi-step problem that tests several concepts simultaneously, making it ideal for a Paper 3 question, or a longer Paper 1 or Paper 2 question. For deep dives into such problems, my students refer to examples from our Paper 1 SLAA resources, which offer a solid foundation even for HL.
Looking Ahead
Vectors in IB Maths HL AA are a cornerstone for understanding higher-level geometry and physics. The dot product and cross product are not just abstract mathematical operations; they are tools for uncovering geometric relationships, calculating areas, finding angles, and determining distances in three dimensions. My advice to my students is always to build a strong conceptual understanding first, then practice the calculations until they become second nature. Don't shy away from drawing diagrams, even rough ones, to visualise the problem. This helps bridge the gap between abstract equations and concrete geometric scenarios.
Mastering these vector concepts will not only boost your IB exam performance but will also provide a robust foundation for university-level mathematics and engineering. Keep practicing, review your errors, and don't hesitate to consult resources like our flashcards or your teacher for clarification. The initial hurdle of 3D visualisation is real, but with persistence, it becomes a powerful part of your mathematical toolkit.
Want to actually drill this?
Every IB Maths topic on this page has a full practice engine at ibmathrevision.com — with AI grading trained on real IB mark schemes.
Get access →