Three-dimensional vectors, lines and spheres in HSC Mathematics Extension 2: component form, magnitude, the scalar product, vector equations of lines and the equation of a sphere
“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 3D vector is with magnitude . The scalar product is . A line through point with direction is . A sphere of centre and radius is .
Jump to a section
What this dot point is asking
NESA wants you to extend two-dimensional vectors into three dimensions. You must write vectors in component form using , , , 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 relative to three mutually perpendicular axes. The position vector of that point is
where , , are the unit vectors along the , and axes. To reach the point you step along , then along , then along ; 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 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 is
This is Pythagoras applied twice. The vector is the long diagonal of a rectangular box with edge lengths , and : the floor diagonal has length , and the space diagonal then has length , which is the formula above.
The unit vector in the direction of is , and the distance between two points and is , the magnitude of the displacement.
The scalar product in three dimensions
The scalar (dot) product is
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
Two non-zero vectors are perpendicular exactly when , because . The scalar product is commutative (), distributes over addition, and satisfies , which is the bridge between lengths and the dot product used throughout vector proofs.
For and :
Perpendicular . Every formula is the 2D one with a third term added, so the only new habit is to keep the third component in every line of working.
Vector equation of a line
A line through the point with position vector and parallel to the direction vector consists of all points
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 on the line with position vector , and a direction pointing along the line. Adding one copy of to 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 of a general point is (to get onto the line at ) plus copies of (to slide along to ). At you are at ; positive moves one way, negative the other.
In components, reads
so , , . To find the line through two points and , take and direction . The point may be any point on the line and 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:
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 (), 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 passes in front of at different depths (the break in 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 (the radius) from a centre with position vector :
In Cartesian coordinates with this is
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 , and ; the constant left over equals .
How exam questions ask about 3D vectors and lines
- "Find the magnitude of" or "the distance between and ": apply (to for a distance).
- "Find the angle between and ": compute and both magnitudes, then .
- "Show that and are perpendicular": show ; no need to find the angle.
- "Find a vector equation of the line through and ": take , then state .
- "Does 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 and radius " or "... and write down its centre and radius": state , or complete the square to read off and .
Keep every vector in three components from the first line to the last; the single most common lost mark is dropping the term partway through. For an angle, leave exact (a fraction) before taking the inverse cosine, and read the units the question wants (degrees or radians). When deciding intersect versus skew, always use two different parameters ( and ) and state explicitly that you checked the third equation; markers want to see that the consistency test was actually done. For a sphere given in expanded form, complete the square one variable at a time and keep the on the right. Quoting a vector equation when a specific point is asked loses the mark: substitute the given parameter value.
Find the angle between and
The angle between two vectors is found via the scalar product formula . We compute the scalar product and the two magnitudes separately, then combine them.
Compute the scalar product: The scalar product is the sum of the products of corresponding components:
Compute the magnitudes: Each magnitude is the square root of the sum of the squares of the components:
Find and hence the angle: Rearranging the scalar product formula gives . Substituting:
Taking the inverse cosine (the angle is between and for the angle between two vectors):
Verify the result: As a check, and , confirming the calculation is consistent.
Final answer: .
Decide whether two lines intersect or are skew
The lines are and . We must decide whether they meet, and if so where.
Check the directions are not parallel: The direction of is and of is . One is a scalar multiple of the other only if all three ratios match: are not equal, so the directions are not parallel. The lines therefore either intersect at one point or are skew.
Set the position vectors equal, component by component: Using different parameters, . This gives three equations:
Solve two of the equations: Substitute the second equation, , into the first:
Then .
Test the third equation: The consistency check is the whole point in three dimensions. Substitute and into the third equation, :
Since , the third equation fails. No single pair satisfies all three.
Conclude: The directions are not parallel and the equations are inconsistent, so the lines are skew: they neither intersect nor run parallel. (Had the third equation held, we would substitute into to give the meeting point.)
Final answer: the lines are skew.
- Adding components into the magnitude without squaring
- The magnitude squares each component, sums, then square-roots. Omitting the squares gives a wrong length.
- Dropping the third component
- Carrying a 2D habit into 3D and quietly losing the term changes the vector entirely. Keep all three components throughout.
- Reusing one parameter for two lines
- Use for one line and for the other. A shared letter forces a false constraint and breaks intersection questions.
- Forgetting the third consistency equation
- Two non-parallel lines in space need not meet. Solve two coordinate equations, then check the third before claiming an intersection; if it fails, the lines are skew.
- Confusing position and direction vectors for a line
- In , is a point on the line and is its direction. Swapping them describes a different line.
- Forgetting to square the radius
- The sphere equation has on the right. Writing instead changes the radius.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
HSC 2024-style2 marksFind the angle between the vectors and , in radians, correct to 1 decimal place.Show worked answer →
Use the scalar (dot) product: .
Dot product: .
Magnitudes: and .
So .
radians (to 1 decimal place).
Mark notes: 1 mark for computing and the magnitudes, 1 mark for giving radians.
HSC 2023-style2 marksFind a vector equation of the line through the points and .Show worked answer →
A vector equation of a line needs a point on it and a direction vector.
Direction vector: .
Using as the point, a vector equation is
, where is a real parameter.
(Using as the point, or any non-zero scalar multiple of the direction, is equally correct.)
Mark notes: 1 mark for a correct direction vector , 1 mark for a complete vector equation with a point and the parameter .
HSC 2024-style3 marksThe line passes through and . (i) Find a vector equation of . (ii) Determine, giving reasons, whether lies on .Show worked answer →
Part (i). Direction vector: .
A vector equation is .
Part (ii). lies on only if a single gives all three coordinates of :
- : , so .
- : , so .
These values are inconsistent (), so no single produces .
Therefore does not lie on .
Mark notes: part (i) 1 mark for a correct vector equation. Part (ii): 1 mark for substituting and solving for in at least one coordinate, 1 mark for showing the values are inconsistent and concluding.