Equations of a line, intersections and distances
A line in the plane is described by a point and a direction, and from this idea come four ways of writing it: vector, parametric, symmetric and Cartesian. Knowing how to convert between them, deciding whether two lines meet, finding the distance from a point to a line and applying this to objects moving at constant velocity is typical material for Paper 1 and Paper 2.
Vector equation of a line
A line is fixed by a point that lies on it and by a direction. The point is given by its position vector (the vector from the origin to the point ), and the direction by a direction vector , which is any non-zero vector parallel to the line. To reach any point on the line, start at and move some multiple of the vector (forwards or backwards).
In the plane it is written in components:
The vector equation is not unique: any point on the line can serve as , and any non-zero multiple of can serve as the direction vector. Two equations that look different can describe the same line.
If two points and of the line are known, a direction vector is (vectors from the previous section: end minus start), and is taken as the point.
To check whether a point lies on the line, substitute its coordinates and check that the same satisfies both components.
Parametric, symmetric and Cartesian equations
Separating the vector equation component by component gives the parametric equations:
If and , solve for in both and equate them: this is the symmetric equation,
Clearing denominators and rearranging gives the Cartesian equation (or general form) . There is a useful relationship between its coefficients and those of the line.
The intuition: the points of the line satisfy always equal to , that is, their projection onto the direction of is constant. That is why the line is perpendicular to that vector.
Parallel and perpendicular lines
Two lines with direction vectors and and gradients and are related as follows.
The condition using the scalar (dot) product comes from the section on the scalar product: two non-zero vectors are perpendicular if and only if their scalar product is . For gradients it follows from this: with and , .
A shortcut for writing related lines directly in Cartesian form: the line is parallel to all lines of the form (only the constant term changes), and it is perpendicular to those of the form .
Intersection of two lines
In the plane, two lines can:
- cross at a single point: direction vectors not proportional;
- be distinct parallel lines: proportional direction vectors and no common point;
- be coincident: proportional direction vectors and a common point.
Distance from a point to a line
The distance from a point to a line is the smallest of the distances from to the points of . It is reached at the foot of the perpendicular to drawn through : any other point of the line is further away, because is a leg of a right-angled triangle whose hypotenuse is the distance to that other point.
With the Cartesian equation there is a direct formula. To derive it, let be any point on the line and its normal vector. The distance from is the length of the projection of onto the direction of , that is, . Since satisfies , the numerator is .
The distance between two parallel lines is found by taking any point on one of them and calculating its distance to the other. If the lines intersect, the distance between them is .
Application: motion at constant velocity
An object moving in a straight line at constant velocity traces out a line, and the vector equation captures this with time as the parameter:
Here the direction vector is not arbitrary: its modulus is the speed, and is no longer a free parameter but real time (in hours, seconds… depending on the units in the question). With speed in units of length per unit of time, the object covers units of length in a time .
Three typical questions:
- Position at an instant: substitute .
- Does it pass through a point? Solve ; the must be the same in both components and also .
- Do two objects meet? They must be in the same place at the same time: , with the same for both. The paths (the lines) can cross even though the objects do not coincide, because they pass through the crossing point at different times.
To find the minimum distance between two objects, study the vector from one to the other,
which is also a line (in time) with direction vector . There are two methods:
- write as a quadratic function of and find its minimum (the vertex of the parabola, or the derivative);
- use the fact that the minimum occurs when is perpendicular to , that is, .
In both cases, if the minimum occurs at a time , it is not valid: the smallest distance for is the one at the initial instant.
Worked examples
Line through two points
Consider the points and .
a) Find a direction vector of the line whose components are coprime integers and whose first component is positive.
b) Find the Cartesian equation of the line in the form , with coprime integers and .
c) The point lies on the line . Find .
Solution
a) . Dividing by gives the direction vector . A vector equation is, for example,
b) A normal vector is (swap the components of the direction vector and change the sign of one of them). The equation is , and since is on the line, :
Check with : .
c) Substitute : , so and .
A perpendicular and its point of intersection
The line has vector equation . Consider the point .
a) Find the Cartesian equation of in the form , with coprime integers and .
b) Using the same convention, find the Cartesian equation of the line that passes through and is perpendicular to .
c) Find the point where and intersect.
d) Calculate the distance from to .
Solution
a) With a normal vector is , so the equation is . With the point : .
b) The line has as direction vector a normal vector of , (check: ). Its normal vector is therefore : . With : .
c) Solve the system , . Multiplying the first by and the second by and adding: , that is, and . Then , . Hence . Check in : .
d) As is the foot of the perpendicular through , the distance is
Using the formula: . The two methods agree.
Two boats: do they meet? How close do they get?
Two boats, and , sail in straight lines at constant velocity. Their positions, in kilometres relative to a lighthouse at the origin, hours after noon, are
a) Calculate the speed of , in km/h.
b) Find the point at which the paths of the two boats cross.
c) Find the time at which passes that point and the time at which passes it, and conclude whether the boats collide.
d) Find the time at which the distance between the boats is minimum and the exact value of that minimum distance.
Solution
a) The velocity of is , so the speed is km/h.
b) For the paths, use different parameters: for and for .
From the second, . Substituting into the first: , so and , . The point is . Check with : .
c) With the values above, passes through at and at . The times are different, so the boats are not at that point at the same time. In fact they never meet: requires the same in both components, and the system , gives and , which are incompatible. The paths cross, but the boats do not collide.
d) The vector from to is
The minimum distance occurs when is perpendicular to the relative velocity :
To find the distance itself, . With :
(The parabola has its vertex at , which confirms the time.)
In the exam: what earns marks is using different parameters to cross the paths and then comparing the times: giving the point of intersection as a "meeting point" without that step is the common mistake. For the distance, set up and write down the condition you impose (perpendicular to the relative velocity, or minimum of ).
Common mistakes
Summary
- Line: (point with position vector and direction vector ). It is not unique: any point and any multiple of will do.
- Parametric , ; symmetric ; Cartesian , with normal and direction , gradient .
- Parallel: proportional direction vectors (or ). Perpendicular: (or ).
- Intersection: equate with different parameters (, ) and solve the system; proportional directions mean parallel or coincident lines.
- Distance from to : , or the length with the foot of the perpendicular.
- Motion: ; speed . Two objects meet if they coincide at the same ; the minimum distance comes from .
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp