Skip to main content
SingaporeAdditional MathematicsSyllabus dot point

How do we find the gradient, length and midpoint of a line segment and write the equation of a straight line?

Find the gradient, length and midpoint of a line segment, and find the equation of a straight line through given points

A focused answer to the N(A)-Level Additional Mathematics outcome on the straight line. Find the gradient, length and midpoint of a segment, and write the equation of a line through given points.

Generated by Claude Opus 4.88 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 handle the basics of the straight line on the coordinate plane: find the gradient (steepness) of a segment, its length, and its midpoint, and write down the equation of a line given enough information. These are the building blocks for the parallel and perpendicular line work and the circle topic, and they reappear in calculus when you find tangents and normals.

The answer

Gradient

The gradient of the line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) measures how steep it is, as the change in yy divided by the change in xx:

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}

Keep the order of subtraction the same on top and bottom. A positive gradient slopes up to the right; a negative gradient slopes down; a horizontal line has gradient 00.

Length of a segment

The length (distance) between the two points comes from Pythagoras:

length=(x2βˆ’x1)2+(y2βˆ’y1)2\text{length} = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Leave the answer as an exact surd unless a decimal is asked for.

Midpoint

The midpoint is the average of the two coordinates:

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

The equation of a line

Two convenient forms:

  • Gradient-intercept: y=mx+cy = mx + c, where mm is the gradient and cc is the yy-intercept.
  • Point-gradient: yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1), used when you know the gradient and one point.

To find the line through two points, first compute the gradient, then substitute one point into the point-gradient form, and finally rearrange into the form requested.

Examples in context

Example 1. Perpendicular bisector. To find the perpendicular bisector of a segment you need both its midpoint and its gradient: the bisector passes through the midpoint with the perpendicular gradient. So these three segment formulas are the first step of a very common coordinate-geometry construction.

Example 2. Distance to check a shape. Given four points, computing the lengths of the sides with the distance formula shows whether a quadrilateral is a square, rectangle or rhombus. The length formula is the standard tool for verifying geometric properties from coordinates.

Try this

Q1. Find the gradient of the line through (2,1)(2, 1) and (6,9)(6, 9). [2 marks]

  • Cue. m=9βˆ’16βˆ’2=84=2m = \dfrac{9 - 1}{6 - 2} = \dfrac{8}{4} = 2.

Q2. Find the midpoint of the segment joining (βˆ’2,5)(-2, 5) and (4,1)(4, 1). [2 marks]

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

Q3. Find the equation of the line with gradient βˆ’3-3 passing through (1,2)(1, 2), in the form y=mx+cy = mx + c. [2 marks]

  • Cue. yβˆ’2=βˆ’3(xβˆ’1)β‡’y=βˆ’3x+5y - 2 = -3(x - 1) \Rightarrow y = -3x + 5.

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.

Original3 marksThe points A(1,2)A(1, 2) and B(5,10)B(5, 10) are given. Find the gradient of ABAB and the coordinates of its midpoint.
Show worked answer β†’

Gradient: m=10βˆ’25βˆ’1=84=2m = \dfrac{10 - 2}{5 - 1} = \dfrac{8}{4} = 2.

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

What markers reward: the gradient as change in yy over change in xx with consistent order, and the midpoint as the average of the coordinates, giving (3,6)(3, 6).

Original3 marksFind the equation of the straight line passing through (2,3)(2, 3) with gradient 44. Give your answer in the form y=mx+cy = mx + c.
Show worked answer β†’

Use yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1) with m=4m = 4 and (x1,y1)=(2,3)(x_1, y_1) = (2, 3):

yβˆ’3=4(xβˆ’2)y - 3 = 4(x - 2), so yβˆ’3=4xβˆ’8y - 3 = 4x - 8, giving y=4xβˆ’5y = 4x - 5.

What markers reward: substituting into the point-gradient form, expanding correctly, and rearranging to y=4xβˆ’5y = 4x - 5.

Related dot points