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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 and measures how steep it is, as the change in divided by the change in :
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 .
Length of a segment
The length (distance) between the two points comes from Pythagoras:
Leave the answer as an exact surd unless a decimal is asked for.
Midpoint
The midpoint is the average of the two coordinates:
The equation of a line
Two convenient forms:
- Gradient-intercept: , where is the gradient and is the -intercept.
- Point-gradient: , 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 and . [2 marks]
- Cue. .
Q2. Find the midpoint of the segment joining and . [2 marks]
- Cue. .
Q3. Find the equation of the line with gradient passing through , in the form . [2 marks]
- Cue. .
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 and are given. Find the gradient of and the coordinates of its midpoint.Show worked answer β
Gradient: .
Midpoint: .
What markers reward: the gradient as change in over change in with consistent order, and the midpoint as the average of the coordinates, giving .
Original3 marksFind the equation of the straight line passing through with gradient . Give your answer in the form .Show worked answer β
Use with and :
, so , giving .
What markers reward: substituting into the point-gradient form, expanding correctly, and rearranging to .
Related dot points
- Use the gradient conditions for parallel and perpendicular lines to find equations of lines and solve geometry problems
A focused answer to the N(A)-Level Additional Mathematics outcome on parallel and perpendicular lines. Equal gradients for parallel lines, the product of gradients equals negative one for perpendicular lines, and how to find their equations.
- Write the equation of a circle given the centre and radius, and find the centre and radius from a general equation by completing the square
A focused answer to the N(A)-Level Additional Mathematics outcome on circles. The standard form of a circle equation, finding the centre and radius, and converting from the general expanded form by completing the square.
- Sketch graphs of exponential and logarithmic functions, identify their key features, and recognise them as reflections of each other
A focused answer to the N(A)-Level Additional Mathematics outcome on exponential and logarithmic graphs. Their shapes, intercepts and asymptotes, and how each is the reflection of the other in the line y equals x.
- Use the derivative to find the gradient of a curve at a point and write the equations of the tangent and normal there
A focused answer to the N(A)-Level Additional Mathematics outcome on tangents and normals. Use the derivative to find the gradient at a point, then write the equation of the tangent and the perpendicular normal.