Write the vector and parametric equations of a line in 2D and 3D, test whether a point is on a line, and decide whether two lines are coincident, parallel, intersecting or skew, finding any point of intersection.
Each is in the Maths AI glossary, with every other term in the subject.
Lines that have every point in common, so that two different equations describe the same line.
Lying on the same straight line; points , and are collinear when
With a free account, Augment remembers where you stopped and what you have practiced.
A non-zero vector parallel to a line, which gives the line's direction; any non-zero scalar multiple of it is also a direction vector of the same line.
Two lines that have exactly one point in common, their point of intersection.
The separate equations , , that give each coordinate of a point on a line in terms of the parameter .
The part of a line that starts at a point and continues without end in one direction; with the line , it is the set of points with .
Lines in three dimensions that are not parallel and do not intersect.
An equation that gives the position vector of every point on a line, where is the position vector of a known point on the line, is a direction vector and is a real parameter.
Write down the vector equation of a line from a point on it and a direction vector, in two and three dimensions.
Find the vector equation of the line through two given points.
Convert between the vector equation of a line and its parametric equations.
Determine whether a given point lies on a line, and find an unknown coordinate of a point on a line.
Convert a two-dimensional line between the forms and .
Determine whether two lines are parallel, and show that two equations describe the same line.
Determine whether two lines in three dimensions intersect, are parallel or are skew, and find the point of intersection where it exists.
Interpret the parameter of a line in context, including rays and line segments.
A straight line in a plane has a familiar equation, , built from a gradient and an intercept. That form does not work in three dimensions: a single gradient cannot describe a direction in space, and a single linear equation in , and describes a flat plane. The vector equation of a line solves both problems at once. It describes a line by one point on it and one direction along it, and it works in exactly the same way in two dimensions and in three.
Straight paths in space appear wherever things travel or are built in straight lines: the flight path of an aircraft between turns, a submarine on a fixed course, a laser beam, a tunnel bored through rock, the ray from a viewer's eye that a computer follows to decide what colour a pixel should be. Questions such as "does this path pass through that point?", "do these two paths meet?" and "where?" become equations in one or two unknown numbers.
YouTubeA line is fixed by one point on it and its direction. Let be a known point on the line, with position vector from subtopic 3.10, and let be a non-zero vector pointing along the line. Starting at , every other point on the line can be reached by moving some multiple of
As runs through all real numbers, runs through the position vectors of every point on the line, and of no other point. A point not on the line cannot be reached from by moving along , because
The vector has a name of its own, because its role is different from that of . The position vector says where the line is; the direction vector says which way it goes.
The diagram shows a line through with direction vector . Each value of gives one point, equally spaced along the line; the point with has position vector

The number (the Greek letter lambda) is the line's parameter: a variable that labels the points of the line. It counts how many steps of length separate from , with a sign showing which way. Other common letters are (mu),
The size of has a simple meaning. The distance from to the point with parameter is . If
Restricting the parameter gives part of a line. Taking only gives the points from onwards in the direction of , a half-line that starts at and never ends.
Computer graphics uses rays in this way. To decide what a viewer sees through one pixel of a screen, a ray tracing program sends a ray from the eye through the pixel, with , and finds the object it hits first, the one with the smallest positive
When a line is given by two points and , the direction vector is the displacement between them,
A direction vector can be replaced by any non-zero multiple of itself, so common factors can be removed. The direction
The example shows that a line has infinitely many vector equations: any point on it can serve as , and any non-zero multiple of a direction vector can serve as . Two equations that describe the same set of points are said to give the same line.
The vector equation holds one equation for each coordinate. Writing
The parametric form is the working form for almost every calculation. Testing a point, finding where a line reaches a given height, or finding where two lines meet all come down to one component equation at a time. In two dimensions there are just two equations, for and .
A point lies on a line exactly when one value of the parameter produces all of its coordinates. The method uses one parametric equation to find the only possible value of , and then checks that value in the remaining equations.
Write the parametric equations.
Use the simplest equation to find .
Substitute that into the other equations.
If every coordinate matches, the point is on the line; if any one fails, it is not.
Using the line
Three points lie on one straight line when the third is on the line through the first two. In vector terms, and
The two tests are the same calculation: is on the line exactly when
When a point on a line has missing coordinates, the known coordinate gives , and gives the rest.
The vector equation works in a plane with two-component vectors. A line from subtopic 2.1, Equations of straight lines, passes through its -intercept , and its gradient means a rise of
Conversely, a direction vector with gives a gradient of
To go from vector form back to , the parameter is removed: solve one parametric equation for and substitute into the other.
The graph of marks the points given by and 2. Equal steps in give equal steps of 3 across and 2 down, which is the direction vector, and the gradient of the line is
Two lines are parallel when their direction vectors are parallel, that is, when one direction vector is a scalar multiple of the other. This extends the 2D rule that parallel lines have equal gradients to three dimensions, where gradients are not available. The test for parallel vectors from subtopic 3.10 applies directly.
Parallel lines either never meet or are the same line. To tell which, test whether a point of one lies on the other: if it does, the lines are coincident; if not, they are parallel and distinct.
Two lines meet if some point lies on both. That point has a parameter on the first line and a parameter on the second, and in general these are different numbers, because the point is a different number of steps from each line's starting point.
Setting the two position vectors equal gives one equation for each component, with two unknowns and . In two dimensions there are two equations, which have a single solution unless the lines are parallel. In three dimensions there are three equations in two unknowns, more equations than unknowns, so a solution of two of them may not satisfy the third. The method is:
Write the lines with different parameters, and .
Equate the -, - and -components.
Solve two of the equations simultaneously, by hand or with the GDC's simultaneous equation solver (on a TI-84 Plus CE: APPS → PlySmlt2 → SIMULTANEOUS EQN SOLVER; on a Casio fx-CG50: MENU → Equation → SIMUL).
Substitute
The equations in step 3 form a system of linear equations in and , which subtopic 1.8 solves with technology. Each equation has to be rearranged into the form before it is entered.
In a plane, two lines that are not parallel always meet. In space, two lines can point in different directions and still miss each other, one passing over the other. A road bridge crossing a railway at an angle is an everyday example, and so is a diagonal across a room's floor and a different diagonal across its ceiling.
The three-panel diagram compares the cases. Intersecting lines share one point, parallel lines have the same direction and never meet, and skew lines, such as the floor diagonal and the ceiling diagonal of a box, have different directions but never meet either.

Every pair of lines falls into exactly one of four cases, decided by two questions: are the directions parallel, and is there a common point? The table summarises the method.
Directions parallel? | Common point? | Relationship | How it shows in the equations |
|---|---|---|---|
yes | yes | coincident | a point of one line satisfies the other |
yes | no | parallel, distinct | a point of one line fails the other |
no | yes | intersecting | two equations give ; the third holds |
no | no | skew (3D only) | two equations give ; the third fails |
A GDC can sometimes carry out the whole test at once. Solvers that allow more equations than unknowns accept three equations in two unknowns and report that there is no solution when the lines are skew; others need a square system, in which case two equations are solved and the third is checked by hand. Either way, the working to write down is the three component equations, the values of and , and the check of the third equation with its conclusion.
A radar display shows aircraft from above, so it shows only the - and -coordinates. Two flight paths that cross on the screen may still be at different heights where they cross. In three dimensions such paths are skew, and the vertical separation where they appear to cross is what matters for safety.
The Channel Tunnel links Folkestone in England with Coquelles in France through a 50.46 km railway tunnel, opened in 1994. It was bored from both ends at once, so each team followed a planned straight-line course and the two courses had to meet under the sea. The service tunnel broke through on 30 October 1990, and the ceremonial breakthrough, when workers from each side met, followed on 1 December 1990. The two bores were found to be misaligned by only 30 cm horizontally and 8 cm vertically.
Source: Wikipedia, "Channel Tunnel" (accessed 2026).
A simplified model shows what such a misalignment means mathematically. Place the origin at the English starting point, with along the tunnel, horizontal across it and vertical, in metres, and suppose (hypothetically) that each team bores 19 km on a straight, gently descending course. The planned meeting point is .
The planned lines intersect at , where . Now suppose the French bore actually heads for a point 30 cm to the side of and 8 cm above it,
The -equation forces , and then the -equation gives . The -equation becomes
The model shows a general fact about lines in space. Two lines chosen with slightly uncertain directions are skew almost every time, because intersection needs the third equation to hold exactly. For this reason engineers ask how close two bores come rather than whether they meet exactly. A tunnel several metres wide can join two bores 30 cm apart, so the breakthrough was a success. A gap of 30 cm after about 38 km of combined tunnelling in the model measures the precision of the surveying, which was very high.
Vector equations of lines appear on HL Paper 1 and Paper 2, often in context: a ship or submarine on a straight course, an aircraft approaching an airport, a laser, a tunnel or a pipe. Common parts are write down an equation from a point and a direction (1–2 marks), find the equation through two points, find where a line reaches a given height or crosses a given line, show that a point lies on a line, and determine whether two lines intersect, with the check of the third equation earning a reasoning mark. Lines are often combined with the scalar product (perpendicular lines, the angle between lines; subtopic 3.13) and with motion (subtopic 3.12), where the parameter is time.
Write the parametric equations explicitly before solving, name the method ("equating components", "solving and simultaneously"), and show the third-equation check with a conclusion. When the GDC solves the system, write down the equations entered and the values of and it gives. A point asked for as coordinates should be given as coordinates.
The values of and in part (c) do not depend on , because appears only in the -component. Spotting which equations are free of the unknown, and solving those first, is the key step in questions with a parameter in a line.
Write down a vector equation of the line through with direction vector . [2]
Find a vector equation of the line through
The vector equation of a line is : is the position vector of a point on the line, a direction vector, a real parameter. Always write "
I can write down from a point and a direction, with "" included.
I can find the equation of a line through two points and simplify its direction vector.
I can explain what a value of
30 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Two fishing boats, the Marisol and the Kestrel, move with constant velocities. Their position vectors, in kilometres, hours after 06:00 are
Show that the paths of the two boats cross, and find the coordinates of the point where they cross.
4 marks
attempt to equate the paths using different parameters M1
and
A chairlift cable runs in a straight line from the base station to the top station . The -axis points east, the
In a science museum, a laser beam travels along the line
The entries of the mathematics: applications and interpretation formula booklet that 3.11 uses. Each opens in the explained booklet.
(a) Write down a vector equation for .
(b) Find the coordinates of the points on with and .
(c) Find the distance between these two points.
(a) Use with the point's position vector first.
(b) Substitute each value of .
The points are and .
(c) The parameters differ by , so the points are apart.
Check directly: the vector between the points is , and
(a) Find a vector equation of .
(b) The line has equation . Show that and are the same line.
(a) The direction vector is . Starting from :
(b) Two conditions are needed: the lines are parallel, and they share a point.
The direction of is
passes through , which is , a point of
A line parallel to through a point of is itself, so the equations describe the same line.
(a) Write down the parametric equations of its path.
(b) Find the coordinates of the point where the submarine reaches the surface.
(c) Find the distance it travels from the launch point to the surface, in metres.
(a) Read each coordinate from the point and the direction.
(b) At the surface : , so . Then
The submarine surfaces at .
(c) From to it moves , of length
about 1830 m (3 s.f.).
(a) The point lies on . Find the values of and .
(b) Determine whether the points , and are collinear, and if so, state which point lies between the other two.
(a) The -coordinate is known: , so .
(b) is the point with , and has . For , the
(a) The line passes through and rises 0.5 for every 1 across.
(b) The parametric equations are and . From the first,
As a check, the gradient is from the direction vector, and the point satisfies
(b) The lines and are given. Show that they are parallel and determine whether they are coincident.
(a) A parallel line can use the same direction, or a simpler multiple of it: .
(b)
Test whether , a point of , lies on . From
If it holds, the lines intersect: substitute into the first line (or into the second) to find the point of intersection. If it fails, the lines do not meet.
Show that and intersect, and find the coordinates of the point of intersection.
Equate the components, using different parameters.
Rearranged, the - and -equations are and
Check the -equation: left side , right side . It holds, so the lines intersect.
Substitute into :
The point of intersection is (3, −1, 3).
Determine whether the lines are parallel, intersecting or skew. Justify your answer.
Directions: and . The -ratio is 2 but the -ratio is 1, so neither is a multiple of the other: the lines are not parallel.
Equate components.
Substitute from the -equation into the -equation:
Check the -equation: left side , right side . Since
The lines are not parallel and do not intersect, so they are skew. (At , is at , directly 2 units above the point
(a) Find the point where the two paths appear to cross on the radar screen.
(b) Show that the paths are skew, and find the vertical separation of the paths at the point found in (a).
(c) Explain why skew paths do not by themselves guarantee that the aircraft are safely separated.
(a) On the screen only and count.
From the first, ; then , so
(b) The direction vectors are not parallel (their -components are 0 and , and
Since , the third equation fails: the paths are skew. Path passes 0.5 km (500 m) above path at the crossing point.
(c) The equations describe the paths, not where each aircraft is at a given time. Whether the aircraft come close depends on when each one reaches the crossing point, and on the distance between the paths at nearby points, which can be less than the vertical separation at one point. Times and closest approach are treated in subtopic 3.12.
(a) Find a vector equation of . [2]
(b) Find the coordinates of the point on at a depth of 10 m below ground level. [3]
(c) The pipes are to be joined where they meet. Find the value of for which and intersect, and the coordinates of the point of intersection. [6]
(d) In the case , determine whether the lines are parallel, intersecting or skew. Justify your answer. [3]
(a) direction (A1)
Note: accept any correct point and any non-zero multiple of the direction; award A0 for the final mark if "" is omitted.
(b) (M1)
(A1)
A1
(c) equating components with different parameters (M1)
, (A1)
solving: , A1A1
substituting into the -components: M1
; point of intersection A1
(d) directions
, from and as before; :
the lines are skew A1
Note: do not award A1 without the check of the third equation seen.
Total [14]
The line has equation . Determine whether each of the points and lies on . [4]
The point lies on the line of question 3. Find and . [3]
Write the line in vector form, and find the equation in the form of the line . [4]
Show that the lines and are coincident. [3]
The lines and are given. Show that they intersect and find the point of intersection. [6]
Determine whether the lines and are parallel, intersecting or skew. [5]
A drone is launched from and climbs in a straight line in the direction , with distances in metres and the height. (a) Write down a vector equation of its path. (b) Find its position when it reaches a height of 40 m. (c) Find the distance it has travelled to reach this height. [6]
The line passes through with direction , and has equation . (a) Find the value of for which the lines intersect. (b) For this value, find the point of intersection. [6]
; ; , , .
: gives ; ✓, ✓, so it is on . : ; ✓ but , so it is not on .
, so ; , .
. Gradient ; through : .
, so parallel. on the first line: gives ✓. Parallel with a common point, so coincident.
: ; : . Substituting, , so and . Check : and ✓, so the lines intersect, at .
Not parallel. : ; : . Then and , so , . : and ; not equal, so the lines are skew.
(a) . (b) : . (c) m.
(a) : ; : , so and : , . : , so . (b) .
Through two points and : . Any point on the line and any non-zero multiple of the direction give an equivalent equation.
Parametric form: , , , one equation per coordinate.
A point is on a line if one value of gives every coordinate; find from one equation and check the rest. Restricting gives a ray () or a segment ().
In 2D, is ; a direction has gradient .
Lines are parallel when their direction vectors are multiples; they are coincident if they also share a point.
To test for intersection, use different parameters, equate components, solve two equations and check the third. Non-parallel lines in 3D that fail the check are skew.
Lines with slightly uncertain directions in 3D are almost always skew, so in applications the useful question is often how close the lines come.
I can convert a vector equation into parametric equations and back.
I can test whether a point lies on a line, checking every coordinate.
I can find unknown coordinates of a point on a line.
I can decide whether three points are collinear and which one lies between the others.
I can convert between and vector form in two dimensions.
I can show that two lines are parallel, and decide whether they are coincident.
I can find the point of intersection of two lines using different parameters and a check of the third equation.
I can show that two lines are skew and justify the conclusion.
I can find where a line reaches a given height or value of one coordinate.
I can set out a GDC solution of the simultaneous equations with the working that must be written down.
, A1
the paths cross at A1
Note: Award M0 if the same parameter is used for both boats.
[4 marks]
Determine whether the boats collide. Justify your answer.
2 marks
the Marisol reaches the point at (07:45) but the Kestrel reaches it at (08:37.5) R1
so the boats do not collide A1
Note: Do not award the final mark without the reason.
[2 marks]
Find .
1 mark
Write down a vector equation of the line along which the cable runs.
2 marks
A support tower holds the cable at an altitude of m. Find the coordinates of the point where the cable meets the top of the tower.
3 marks
where distances are in metres. Two light sensors are placed at and .
Write down the equation of the beam in parametric form.
1 mark
Show that the beam hits the sensor at .
2 marks
Determine whether the beam hits the sensor at .
3 marks