Adding a third axis changes very little
A vector in space has three components instead of two: v = a i + b j + c k, where i, j and k are unit vectors along the x, y and z axes. Addition, subtraction and scalar multiplication all work exactly as they did in the plane — componentwise, one line each.
The magnitude is Pythagoras applied twice, once in the base plane and once vertically, which is why the formula simply gains a third square.
- a, b, c
- the components along x, y and z
- |v|
- the magnitudenever negative
Switch between dot and cross. The dot product produces a single number; the cross product produces a whole new vector, sticking out perpendicular to both — that difference is the entire chapter.
The dot product: a number that measures alignment
The dot or scalar product multiplies two vectors and returns a number. Computationally it is the sum of the products of matching components. Geometrically it is |a||b| cos θ, which makes it a measure of how much the two vectors point the same way.
That geometric form is what makes it useful: rearranged, it gives the angle between any two vectors, in two or three dimensions, without drawing anything.
Find the angle between a = 2i + 3j + k and b = i − 2j + 4k.
a · b = (2)(1) + (3)(−2) + (1)(4) = 2 − 6 + 4 = 0.Multiply matching components and add. Mismatching them is the usual slip.- A dot product of zero means
cos θ = 0.Neither vector is the zero vector, so the moduli cannot be responsible. - Therefore
θ = 90°— the vectors are perpendicular.No need to compute the magnitudes at all once the dot product turns out to be zero.
θ = 90°; the vectors are perpendicular
What the sign of the dot product tells you
Because |a| and |b| are positive, the sign of a · b is the sign of cos θ. Positive means the angle is acute and the vectors broadly agree; zero means exactly perpendicular; negative means obtuse, and the vectors are pulling in opposing directions. That is often all a question needs.
The cross product: a vector at right angles to both
The cross or vector product returns a vector, perpendicular to both of the originals, with magnitude |a||b| sin θ. Its direction is given by the right-hand rule, and reversing the order of the two vectors reverses that direction — so a × b = −(b × a) and the cross product is not commutative.
It is computed as a 3 × 3 determinant with i, j and k across the top row. The magnitude has a neat meaning: it is the area of the parallelogram the two vectors span, so half of it is the area of the triangle they form.
| Dot product | Cross product | |
|---|---|---|
| Result | a scalar | a vector |
| Formula | |a||b| cos θ | |a||b| sin θ |
| Zero when | the vectors are perpendicular | the vectors are parallel |
| Order matters? | no — a·b = b·a | yes — a×b = −(b×a) |
| Geometric meaning | projection / alignment | area of the parallelogram |
Zero means opposite things
a · b = 0 means the vectors are perpendicular, because cos 90° = 0. a × b = 0 means they are parallel, because sin 0° = 0. Students routinely quote the wrong one. Tie each to its trigonometric function and the pair becomes impossible to confuse.
The scalar triple product
Combining the two products gives a · (b × c), a single number whose absolute value is the volume of the parallelepiped built on the three vectors. It is evaluated as a 3 × 3 determinant of the components.
Its most useful consequence: if the triple product is zero, the three vectors lie in one plane — they are coplanar, because a solid built on them has no volume. That is the standard exam use.
Before you leave this chapter
- |v| = √(a² + b² + c²); everything else about addition works as it did in two dimensions.
- Dot product gives a scalar, |a||b| cos θ. Zero ⟹ perpendicular.
- Cross product gives a vector perpendicular to both, |a||b| sin θ. Zero ⟹ parallel.
- a × b = −(b × a), so the order matters; a · b = b · a, so it does not.
- |a × b| is the area of the parallelogram; |a · (b × c)| is the volume, and zero means coplanar.
Direction cosines and direction ratios
A vector in space makes an angle with each of the three axes. The cosines of those angles — written l, m and n — are the direction cosines, and they are exactly the components of the unit vector in that direction.
Any three numbers proportional to them are called direction ratios, and the components of the vector itself are the most obvious set. Dividing the ratios by the magnitude turns them into the cosines.
Find the direction cosines of v = 2i − 3j + 6k and the angle it makes with the x-axis.
|v| = √(4 + 9 + 36) = √49 = 7.The magnitude is the denominator for all three cosines.l = 2/7,m = −3/7,n = 6/7.A negative cosine simply means the angle with that axis is obtuse.- Check:
(4 + 9 + 36)/49 = 1✓The identity confirms all three at once, which is why it is worth doing. - Angle with the x-axis:
cos α = 2/7 = 0.2857, soα = 73.4°.Each direction cosine gives its own angle directly.
l, m, n = 2/7, −3/7, 6/7; α ≈ 73.4°
The vector equation of a line
A line is fixed by two pieces of information: somewhere it passes through, and the direction it runs in. Write the first as a position vector a and the second as a direction vector b, and every point on the line is reached by starting at a and travelling some multiple of b.
The parameter t is what varies. Each value of t names one point, negative values run backwards along the line, and t = 0 gives the point a itself. This is why the same line has infinitely many correct equations: any point on it can serve as a, and any scalar multiple of b gives the same direction.
- r
- the position vector of a general pointthe thing being described
- a
- a known point on the lineoften called the base point
- b
- the direction vectorany non-zero multiple works equally well
- t
- the parametereach value picks out one point
Two different-looking answers can be the same line
Because the base point and the scaling of the direction are both free, r = i + 2j + t(2i − 4j) and r = 3i − 2j + s(−i + 2j) describe the same line. If your answer disagrees with the mark scheme, check whether the direction vectors are multiples of each other and whether your base point satisfies their equation — it is very often correct.
How two lines can be related
In three dimensions two lines need not meet, and need not be parallel either — they can pass by one another at different heights. Such lines are called skew, and they have no two-dimensional analogue, which is why the possibility is so easy to forget.
Deciding which case applies is a fixed procedure. Compare the directions first, because that settles the parallel case immediately and without algebra.
| Test | Result | Conclusion |
|---|---|---|
| directions are multiples | and a point of one lies on the other | the same line |
| directions are multiples | but no shared point | parallel, never meeting |
| directions not multiples | the equations solve consistently | they intersect |
| directions not multiples | the equations are inconsistent | skew |
Determine whether the lines r = (1, 0, 2) + t(2, 1, −1) and r = (3, 2, 0) + s(1, −1, 2) intersect.
- Check the directions: (2, 1, −1) is not a multiple of (1, −1, 2), so the lines are not parallel.This rules out the parallel and identical cases, leaving intersecting or skew.
- Set the position vectors equal, component by component: 1 + 2t = 3 + s, 0 + t = 2 − s, 2 − t = 0 + 2s.If they intersect there is one point on both, so there must be values of t and s giving the same position.
- From the second equation, s = 2 − t. Substituting into the first: 1 + 2t = 5 − t, so 3t = 4 and t = 4/3, s = 2/3.Two equations are enough to find both parameters. The third then becomes a consistency test.
- Test in the third equation: 2 − 4/3 = 2/3 on the left, and 2(2/3) = 4/3 on the right. These are not equal.This is the step that decides the answer, and the one most often skipped.
- The equations are inconsistent, so the lines do not intersect. They are skew.Non-parallel and non-intersecting is precisely the definition of skew.
The lines are skew
Use different letters for the two parameters
Writing t in both lines forces them to be at the same point at the same value of t, which is a much stronger condition than intersecting and will report that intersecting lines do not meet. Use t for one and s for the other, always. And having solved for both, you must substitute into the unused third equation — skipping that check makes every pair of lines look as though it intersects.