Skip to main content

Vector and Cartesian equations of lines in QCE Specialist Mathematics Unit 3

Syllabus dot point

“Determine vector, parametric and Cartesian equations of a line in three dimensions, convert between these forms, and find the point of intersection of two lines or establish that they are parallel or skew”

QCESpecialist MathematicsUnit 3: Mathematical induction, and…8 min read

Quick answer

A line in three dimensions is r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d} (vector form), equivalently x=a1+td1x = a_1 + td_1, y=a2+td2y = a_2 + td_2, z=a3+td3z = a_3 + td_3 (parametric), or x−a1d1=y−a2d2=z−a3d3\frac{x-a_1}{d_1} = \frac{y-a_2}{d_2} = \frac{z-a_3}{d_3} (Cartesian). Two lines are parallel if their directions are scalar multiples; otherwise solve two component equations for tt and ss and test the third. Consistent means they intersect; inconsistent means they are skew.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

QCAA wants you to describe a line in three dimensions in three equivalent ways, move between them, and decide how two lines relate. In three dimensions lines need not be parallel or intersecting; they can be skew, missing each other entirely. The assessable skill is setting up the equations correctly and testing for a consistent intersection.

The answer

Vector equation of a line

A line through a point with position vector a\mathbf{a} and direction d\mathbf{d} has vector equation

r=a+td,t∈R.\mathbf{r} = \mathbf{a} + t\mathbf{d}, \qquad t \in \mathbb{R}.

As tt varies, r\mathbf{r} sweeps out every point on the line. The direction d\mathbf{d} may be scaled by any nonzero constant without changing the line.

Parametric equations

Writing a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and d=(d1,d2,d3)\mathbf{d} = (d_1, d_2, d_3) and splitting into components gives

x=a1+td1,y=a2+td2,z=a3+td3.x = a_1 + t d_1, \quad y = a_2 + t d_2, \quad z = a_3 + t d_3.

These three equations carry the same information as the single vector equation.

Cartesian equation

Eliminating the parameter tt (when each di≠0d_i \neq 0) gives the symmetric Cartesian form

x−a1d1=y−a2d2=z−a3d3.\frac{x - a_1}{d_1} = \frac{y - a_2}{d_2} = \frac{z - a_3}{d_3}.

Each equal ratio equals tt. If a direction component is zero, that coordinate is constant and is stated separately, for example z=a3z = a_3.

Relationship between two lines

Given r1=a+td\mathbf{r}_1 = \mathbf{a} + t\mathbf{d} and r2=b+se\mathbf{r}_2 = \mathbf{b} + s\mathbf{e}, classify them as follows. If d\mathbf{d} and e\mathbf{e} are scalar multiples, the lines are parallel (and identical if a point of one lies on the other). Otherwise solve the component equations for tt and ss. If a single pair (t,s)(t, s) satisfies all three components, the lines intersect at that point. If two components give a pair (t,s)(t,s) that fails the third, the lines are skew: not parallel and not intersecting.

Finding the intersection point

Equate the parametric forms component by component to get three equations in two unknowns tt and ss. Solve any two, then substitute into the third to test consistency. A consistent solution gives the intersection point by substituting tt back into r1\mathbf{r}_1.

Why skew lines matter

In two dimensions, non-parallel lines always meet. In three dimensions this fails, so you must check the third equation rather than assuming intersection. This third-equation check is exactly where QCAA distinguishes intersecting from skew lines.

A line from two points

A common starting point is two given points AA and BB rather than a point and a direction. Take the direction to be the displacement AB⃗=b−a\vec{AB} = \mathbf{b} - \mathbf{a} and the base point to be either AA or BB; both choices describe the same line. This is why a line has many equivalent vector equations: any point on the line and any nonzero scalar multiple of the direction will do. When checking whether a given point lies on a line, substitute its coordinates into the parametric equations and confirm the same value of tt satisfies all three.

The angle between two lines

The angle between two lines is the angle between their direction vectors, found with the dot product:

cos⁡θ=∣d1⋅d2∣∣d1∣∣d2∣.\cos\theta = \frac{|\mathbf{d}_1 \cdot \mathbf{d}_2|}{|\mathbf{d}_1||\mathbf{d}_2|}.

The absolute value gives the acute angle. Two lines are perpendicular when d1⋅d2=0\mathbf{d}_1 \cdot \mathbf{d}_2 = 0, even if the lines are skew and never meet, because the angle is defined by directions alone. This distinction (perpendicular directions versus actually meeting) is a regularly tested subtlety.

Distance from a point to a line

To find how far a point PP is from a line r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}, take the displacement AP⃗\vec{AP} from the base point, then use the cross product: the perpendicular distance is ∣AP⃗×d∣∣d∣\dfrac{|\vec{AP} \times \mathbf{d}|}{|\mathbf{d}|}. This works because ∣AP⃗×d∣=∣AP⃗∣∣d∣sin⁡θ|\vec{AP} \times \mathbf{d}| = |\vec{AP}||\mathbf{d}|\sin\theta is the area of the parallelogram, and dividing by the base length ∣d∣|\mathbf{d}| leaves the height, which is exactly the perpendicular distance.

Do the lines r1=(1,0,2)+t(2,1,−1)\mathbf{r}_1 = (1, 0, 2) + t(2, 1, -1) and r2=(3,1,0)+s(1,−1,2)\mathbf{r}_2 = (3, 1, 0) + s(1, -1, 2) intersect?

Determine whether two lines in three dimensions are intersecting, parallel or skew.

Step 1: Check for parallel directions

Before testing for intersection, check whether the direction vectors (2,1,−1)(2, 1, -1) and (1,−1,2)(1, -1, 2) are scalar multiples of each other. There is no single constant kk such that (2,1,−1)=k(1,−1,2)(2, 1, -1) = k(1, -1, 2), since that would require k=2k = 2 from the first component but k=−1k = -1 from the second. The lines are not parallel.

Step 2: Equate components to form a system

For the lines to meet, there must be values of tt and ss that place both lines at the same point. Writing out the xx, yy and zz components separately gives three equations in two unknowns:

1+2t=3+s,t=1−s,2−t=2s.1 + 2t = 3 + s, \qquad t = 1 - s, \qquad 2 - t = 2s.

Step 3: Solve two of the equations

Solve the first two equations, which are the most straightforward. From the second equation, s=1−ts = 1 - t. Substituting into the first gives:

1+2t=3+(1−t)  ⟹  3t=3  ⟹  t=1,s=0.1 + 2t = 3 + (1 - t) \implies 3t = 3 \implies t = 1, \quad s = 0.

Step 4: Test the third equation for consistency

In three dimensions, two equations are not enough; the third equation must also be satisfied by the same pair (t,s)(t, s). Substituting t=1t = 1 and s=0s = 0 into the third equation:

LHS=2−1=1,RHS=2(0)=0.\text{LHS} = 2 - 1 = 1, \qquad \text{RHS} = 2(0) = 0.

Since 1≠01 \neq 0, the system is inconsistent. There is no single point that lies on both lines.

Final answer: the lines are skew; they are not parallel and they do not intersect.

Common trap

The classic error is solving two of the three component equations, finding a pair (t,s)(t, s), and declaring the lines intersect without checking the third equation. In three dimensions you must verify all three; skipping the check misses skew lines. A second slip is using the same parameter tt for both lines; each line needs its own parameter (tt and ss) because the meeting values differ.

Exam-style questions

Questions in the style of QCAA 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.

Practice3 marks
Paper 1 (technique). A line passes through A(2,−1,4)A(2, -1, 4) and B(5,1,0)B(5, 1, 0). (a) Determine a vector equation of the line. (b) Determine its symmetric Cartesian equation.
Show worked answer →

(a) Direction AB⃗=(5−2, 1−(−1), 0−4)=(3,2,−4)\vec{AB} = (5 - 2,\ 1 - (-1),\ 0 - 4) = (3, 2, -4). Vector equation: r=(2,−1,4)+t(3,2,−4)\mathbf{r} = (2, -1, 4) + t(3, 2, -4).

(b) Symmetric form: x−23=y+12=z−4−4\dfrac{x - 2}{3} = \dfrac{y + 1}{2} = \dfrac{z - 4}{-4}.

Markers reward the direction vector, a correct base point, and the symmetric form with matching signs.

Practice6 marks
Paper 2 (complex familiar). Two lines are ℓ1:r=(1,2,3)+t(2,−1,1)\ell_1: \mathbf{r} = (1, 2, 3) + t(2, -1, 1) and ℓ2:r=(4,0,1)+s(1,1,−2)\ell_2: \mathbf{r} = (4, 0, 1) + s(1, 1, -2). Determine whether the lines intersect, are parallel or are skew. If they intersect, give the point of intersection.
Show worked answer →

Directions (2,−1,1)(2, -1, 1) and (1,1,−2)(1, 1, -2) are not scalar multiples, so the lines are not parallel.

Equate components: 1+2t=4+s1 + 2t = 4 + s, 2−t=s2 - t = s, 3+t=1−2s3 + t = 1 - 2s. From the second, s=2−ts = 2 - t. Substitute into the first: 1+2t=4+(2−t)1 + 2t = 4 + (2 - t), so 3t=53t = 5, t=53t = \tfrac{5}{3}, then s=2−53=13s = 2 - \tfrac{5}{3} = \tfrac{1}{3}.

Test the third: LHS =3+53=143= 3 + \tfrac{5}{3} = \tfrac{14}{3}; RHS =1−2(13)=13= 1 - 2(\tfrac{1}{3}) = \tfrac{1}{3}. These differ, so the system is inconsistent. The lines are skew.

Markers reward the parallel check, solving two equations, and the crucial third-equation test that identifies skew lines.

Practise this

Sources & how we know this

ExamExplained