Topic A.2 · Lesson 1 of 6
Coordinates and straight lines
Coordinates and midpoints
A coordinate pair gives a position: is the distance across from the origin O, and is the distance up. Negative values go left or down. A good way to remember the order is "along the corridor, then up the stairs". The two axes split the grid into four quadrants, and the diagram shows points in several of them.
The midpoint of a line segment is exactly halfway along it. Halfway in the direction is the average of the two -coordinates, and the same for :
For and : , which is the point M in the diagram. Working backwards, if M is the midpoint and you know P, then Q is as far beyond M as P is before it.
Straight-line graphs and gradient
To plot a line such as , make a table: choose some values, work out each , plot the points and join them with a ruler. Three points are enough; the third is a check.
The gradient measures steepness: how far the line goes up for every 1 across. The diagram shows : every step of 1 to the right is a step of 2 up, so the gradient is 2. A line sloping down to the right has a negative gradient, a horizontal line has gradient 0, and the steeper the line, the bigger the gradient's size.
To find a gradient from any two points on a line, divide the change in by the change in ("rise over run"):
The equation
Every straight line (except vertical ones) has an equation of the form , where
- is the gradient, and
- is the -intercept, the value of where the line crosses the -axis (because there, so ).
In the diagram, crosses the -axis at . Horizontal lines have equations like ; vertical lines have equations like . If an equation is not in the form , rearrange it first: becomes , so the gradient is 3, not 6.
How to find the equation of a line through two points
- Step 1: Find the gradient from the two points.
- Step 2: Substitute and one point into , and solve for .
- Step 3: Write the equation, then check it with the other point.
Worked example
The line through two points
Find the equation of the line through and .
Show solutionHide solution
- Gradient: .
- Substitute into : , so .
- The line is . Check with : . ✓
Parallel and perpendicular lines
Parallel lines have the same steepness, so they have the same gradient. In the diagram, and are parallel: only the intercept differs.
(Higher tier) Perpendicular lines meet at a right angle. Their gradients multiply to , so if one line has gradient , a perpendicular line has gradient : flip the fraction and change the sign. In the diagram, is perpendicular to , because . Why? Rotating a line through 90° turns a step of "1 across, 2 up" into "2 across, 1 down".
Worked example
A perpendicular lineHigher tier
Find the equation of the line perpendicular to that passes through .
Show solutionHide solution
- Rearrange to find the gradient: , so , gradient .
- Perpendicular gradient: flip and change sign, .
- Substitute into : , so .
- The line is .
Practise this topic
Both are part of Premium.