Skip to main content
SingaporeAdditional MathematicsSyllabus dot point

How do gradients, distances and midpoints let us describe and relate straight lines in the plane?

Find the gradient, length and midpoint of a line segment, write the equation of a line, and use the conditions for parallel and perpendicular lines

A focused answer to the O-Level A-Maths outcome on straight lines. The gradient, distance and midpoint formulae, forms of the equation of a line, and the parallel and perpendicular conditions.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to work confidently with points and lines on the Cartesian plane: to find the gradient, length and midpoint of a segment, to write the equation of a line in various forms, and to use the gradient conditions that detect parallel and perpendicular lines. These tools are the backbone of every coordinate-geometry problem.

The answer

Gradient, distance and midpoint

For two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2):

gradientΒ m=y2βˆ’y1x2βˆ’x1,length=(x2βˆ’x1)2+(y2βˆ’y1)2,\text{gradient } m = \frac{y_2 - y_1}{x_2 - x_1}, \quad \text{length} = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2},

midpoint=(x1+x22,y1+y22).\text{midpoint} = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right).

The distance formula is Pythagoras applied to the horizontal and vertical gaps.

The equation of a line

The two most useful forms:

y=mx+c(gradient-intercept),yβˆ’y1=m(xβˆ’x1)(point-gradient).y = mx + c \quad\text{(gradient-intercept)}, \qquad y - y_1 = m(x - x_1) \quad\text{(point-gradient)}.

Use point-gradient when you know a point and the gradient; rearrange to gradient-intercept to read off the yy-intercept.

Parallel and perpendicular lines

Two lines are parallel when their gradients are equal, and perpendicular when the product of their gradients is βˆ’1-1:

parallel:Β m1=m2,perpendicular:Β m1m2=βˆ’1.\text{parallel: } m_1 = m_2, \qquad \text{perpendicular: } m_1 m_2 = -1.

So the gradient perpendicular to mm is the negative reciprocal βˆ’1m-\dfrac{1}{m}.

The perpendicular bisector

A perpendicular bisector of a segment passes through the midpoint and is perpendicular to the segment. Find the midpoint, take the negative reciprocal of the segment's gradient, and write the line through the midpoint.

Finding the foot of the perpendicular

A common A-Maths extension is to find the foot of the perpendicular from a point to a line, the closest point on the line. The method chains the tools: take the negative reciprocal of the line's gradient to get the perpendicular's gradient, write the perpendicular through the given point, then solve it simultaneously with the original line to find their intersection. That intersection is the foot, and the distance from the point to it is the shortest distance to the line. Setting up the perpendicular and intersecting it with the line is the standard route, and it reuses the gradient, equation, and simultaneous-solving skills together.

Using the ratio of a point dividing a segment

Beyond the midpoint, A-Maths asks for a point dividing a segment in a given ratio. A point PP dividing ABAB in the ratio m:nm : n has coordinates (nx1+mx2m+n,ny1+my2m+n)\left(\tfrac{n x_1 + m x_2}{m + n}, \tfrac{n y_1 + m y_2}{m + n}\right), which reduces to the midpoint formula when m=nm = n. So the point dividing A(1,2)A(1, 2) and B(7,8)B(7, 8) in the ratio 2:12 : 1 is (1(1)+2(7)3,1(2)+2(8)3)=(5,6)\left(\tfrac{1(1) + 2(7)}{3}, \tfrac{1(2) + 2(8)}{3}\right) = (5, 6). Recognising the midpoint as the special case 1:11 : 1 of this general section formula ties the two ideas together and handles the ratio problems that go beyond simple bisection.

Examples in context

Example 1. Shortest distance to a path. The shortest route from a point to a straight road is along the perpendicular from the point to the line; finding that perpendicular and its foot uses the negative-reciprocal gradient, a classic optimisation in surveying.

Example 2. Detecting a right angle in a shape. To confirm a triangle has a right angle at a vertex, check that the gradients of the two sides meeting there multiply to βˆ’1-1, turning a geometric claim into a quick gradient calculation.

Try this

Q1. Find the gradient of the line joining (1,4)(1, 4) and (3,10)(3, 10). [2 marks]

  • Cue. 10βˆ’43βˆ’1=3\dfrac{10 - 4}{3 - 1} = 3.

Q2. State the gradient of a line perpendicular to y=2x+1y = 2x + 1. [1 mark]

  • Cue. Negative reciprocal of 22 is βˆ’12-\dfrac{1}{2}.

Q3. Find the equation of the line through (0,3)(0, 3) parallel to y=4xβˆ’7y = 4x - 7. [2 marks]

  • Cue. Same gradient 44, intercept 33: y=4x+3y = 4x + 3.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original5 marksThe points A(1,2)A(1, 2) and B(5,10)B(5, 10) are given. Find the equation of the perpendicular bisector of ABAB.
Show worked answer β†’

Midpoint of ABAB: (1+52,2+102)=(3,6)\left(\dfrac{1 + 5}{2}, \dfrac{2 + 10}{2}\right) = (3, 6).

Gradient of ABAB: 10βˆ’25βˆ’1=84=2\dfrac{10 - 2}{5 - 1} = \dfrac{8}{4} = 2. The perpendicular gradient is βˆ’12-\dfrac{1}{2}.

Equation through (3,6)(3, 6): yβˆ’6=βˆ’12(xβˆ’3)y - 6 = -\dfrac{1}{2}(x - 3), so y=βˆ’12x+152y = -\dfrac{1}{2}x + \dfrac{15}{2}.

Markers reward the midpoint, the gradient of ABAB, the negative reciprocal for the perpendicular, and the line through the midpoint.

Original4 marksFind the length of the line segment joining P(βˆ’2,3)P(-2, 3) and Q(4,βˆ’5)Q(4, -5), and state the coordinates of its midpoint.
Show worked answer β†’

Length: PQ=(4βˆ’(βˆ’2))2+(βˆ’5βˆ’3)2=62+(βˆ’8)2=36+64=100=10PQ = \sqrt{(4 - (-2))^2 + (-5 - 3)^2} = \sqrt{6^2 + (-8)^2} = \sqrt{36 + 64} = \sqrt{100} = 10.

Midpoint: (βˆ’2+42,3+(βˆ’5)2)=(1,βˆ’1)\left(\dfrac{-2 + 4}{2}, \dfrac{3 + (-5)}{2}\right) = (1, -1).

Markers reward correct substitution into the distance formula, the value 1010, and the midpoint (1,βˆ’1)(1, -1).

Related dot points