How are vectors in three dimensions described, how do we find lines and spheres, and how does the scalar product extend to space?
Represent three-dimensional vectors in component form, compute the scalar product and magnitude, and find vector equations of lines and the equation of a sphere
A focused answer to the HSC Maths Extension 2 dot point on 3D vectors. Component form with i, j, k, magnitude as a space diagonal, the scalar product and angle in space, parametric vector equations of lines, intersecting versus skew lines, and the equation of a sphere, built up stage by stage with verified worked examples and diagrams.
✦ Generated by Claude Opus 4.8·14 min answer·
Reviewed by: AI editorial process; not yet individually human-reviewed
NESA wants you to extend two-dimensional vectors into three dimensions. You must write vectors in component form using i, j, k, compute magnitude and the scalar (dot) product, find the angle between vectors, write vector equations of lines, decide whether two lines intersect or are skew, and derive the equation of a sphere. Almost every formula is the two-dimensional one with a third term bolted on; the genuinely new ideas are the third axis itself, the possibility of skew lines, and the sphere.
Vectors in component form
A point in space is described by an ordered triple (x,y,z) relative to three mutually perpendicular axes. The position vector of that point is
r=xi+yj+zk,
where i, j, k are the unit vectors along the x, y and z axes. To reach the point you step x along i, then y along j, then z along k; the three steps are independent because the axes are perpendicular.
Addition, subtraction and scalar multiplication act component by component, exactly as in two dimensions. The only discipline the third dimension demands is never to silently drop the k term: a vector you began in two-dimensional habit will be wrong by a whole coordinate.
Magnitude as a space diagonal
The magnitude (length) of a=a1i+a2j+a3k is
∣a∣=a12+a22+a32.
This is Pythagoras applied twice. The vector is the long diagonal of a rectangular box with edge lengths a1, a2 and a3: the floor diagonal has length a12+a22, and the space diagonal then has length (a12+a22)+a32, which is the formula above.
The unit vector in the direction of a is a^=∣a∣a, and the distance between two points A and B is ∣AB∣=∣b−a∣, the magnitude of the displacement.
The scalar product in three dimensions
The scalar (dot) product is
a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cosθ,
where θ is the angle between the vectors. The component formula and the geometric formula are two faces of the same number: the first lets you compute it from coordinates, the second lets you extract the angle. Rearranging gives
cosθ=∣a∣∣b∣a⋅b.
Two non-zero vectors are perpendicular exactly when a⋅b=0, because cos90∘=0. The scalar product is commutative (a⋅b=b⋅a), distributes over addition, and satisfies a⋅a=∣a∣2, which is the bridge between lengths and the dot product used throughout vector proofs.
Vector equation of a line
A line through the point with position vector a and parallel to the direction vector d(=0) consists of all points
r=a+λd,λ∈R.
The recipe is the same as in two dimensions, just with three-component vectors. Build it up one piece at a time.
Stage 1, a point and a direction. Fix a point A on the line with position vector a, and a direction d pointing along the line. Adding one copy of d to a lands on a second point of the line.
Stage 2, the whole line. Letting λ range over every real number sweeps out the entire line. The position vector r of a general point P is a (to get onto the line at A) plus λ copies of d (to slide along to P). At λ=0 you are at A; positive λ moves one way, negative the other.
In components, r=a+λd reads
xyz=a1a2a3+λd1d2d3,
so x=a1+λd1, y=a2+λd2, z=a3+λd3. To find the line through two points A and B, take a=OA and direction d=AB=b−a. The point a may be any point on the line and d any non-zero multiple of the direction, so a line has infinitely many vector equations.
To test whether a point lies on the line, solve for a single λ that reproduces every component. Set up one equation per coordinate, solve the first for λ, and check that the same λ satisfies the other two. If any coordinate disagrees, the point is off the line, exactly as in the worked exam question above.
Intersecting versus skew lines
Two lines meet where their position vectors coincide. Use different parameters for the two lines and set them equal:
a1+λd1=a2+μd2.
That is one equation per coordinate, so three equations in only two unknowns λ and μ. Solve two of them, then check the third: this is where three dimensions differs sharply from two. In the plane, two non-parallel lines always meet. In space they need not.
If λ and μ from the first two equations also satisfy the third, the lines intersect and substituting gives the meeting point. If the directions are parallel (d1=kd2), the lines are parallel; test a point of one against the other to decide whether they are coincident or distinct. If the directions are not parallel and the third equation fails, the lines are skew: they are neither parallel nor intersecting, an arrangement impossible in a plane.
In the picture the two skew lines appear to cross, but L2 passes in front of L1 at different depths (the break in L1 shows this), so there is no common point. Algebraically, that is precisely the case where the first two equations give a (λ,μ) pair that the third equation rejects.
The equation of a sphere
A sphere is the set of points at fixed distance R (the radius) from a centre C with position vector c:
∣r−c∣=R.
In Cartesian coordinates with c=(a,b,c) this is
(x−a)2+(y−b)2+(z−c)2=R2.
This is the natural 3D analogue of the circle equation, with the third squared term appearing for the extra coordinate. An expanded form is converted back to centre-radius form by completing the square in each of x, y and z; the constant left over equals R2.
How exam questions ask about 3D vectors and lines
"Find the magnitude of" or "the distance between A and B": apply a12+a22+a32 (to b−a for a distance).
"Find the angle between u and v": compute u⋅v and both magnitudes, then cosθ=∣u∣∣v∣u⋅v.
"Show that u and v are perpendicular": show u⋅v=0; no need to find the angle.
"Find a vector equation of the line through A and B": take d=b−a, then state r=a+λd.
"Does C lie on the line?": solve one coordinate for λ and check it reproduces the other two.
"Do the lines intersect, or are they skew?": set the forms equal with different parameters, solve two coordinates, and test the third; if it fails and the directions are not parallel, say "skew".
"Find the equation of the sphere with centre C and radius R" or "... and write down its centre and radius": state ∣r−c∣=R, or complete the square to read off c and R.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
HSC 20242 marksFind the angle between the vectors u=(1,2,−2) and v=(4,−4,7), in radians, correct to 1 decimal place.
Mark notes: 1 mark for computing u⋅v and the magnitudes, 1 mark for cosθ=−32 giving θ≈2.3 radians.
HSC 20232 marksFind a vector equation of the line through the points A(−3,1,5) and B(0,2,3).
Show worked answer →
A vector equation of a line needs a point on it and a direction vector.
Direction vector: AB=B−A=(3,1,−2).
Using A(−3,1,5) as the point, a vector equation is
r=(−3,1,5)+λ(3,1,−2), where λ is a real parameter.
(Using B as the point, or any non-zero scalar multiple of the direction, is equally correct.)
Mark notes: 1 mark for a correct direction vector AB=(3,1,−2), 1 mark for a complete vector equation with a point and the parameter λ.
HSC 20243 marksThe line L passes through A(3,5,−4) and B(7,0,2). (i) Find a vector equation of L. (ii) Determine, giving reasons, whether C(10,5,−2) lies on L.
Show worked answer →
Part (i). Direction vector: AB=B−A=(4,−5,6).
A vector equation is r=(3,5,−4)+λ(4,−5,6).
Part (ii). C lies on L only if a single λ gives all three coordinates of C(10,5,−2):
x: 10=3+4λ, so λ=47.
y: 5=5−5λ, so λ=0.
These values are inconsistent (47=0), so no single λ produces C.
Therefore C(10,5,−2) does not lie on L.
Mark notes: part (i) 1 mark for a correct vector equation. Part (ii): 1 mark for substituting C and solving for λ in at least one coordinate, 1 mark for showing the values are inconsistent and concluding.