Skip to main content
Examonaut

Topic A.2 · Lesson 1 of 6

Coordinates and straight lines

Coordinates and midpoints

A coordinate pair (x,y)(x, y) gives a position: xx is the distance across from the origin O, and yy 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.

xyO−4−224−224P(−3, 5)Q(5, −1)M(1, 2)(−4, −3)

The midpoint of a line segment is exactly halfway along it. Halfway in the xx direction is the average of the two xx-coordinates, and the same for yy:

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

For P(−3,5)P(-3, 5) and Q(5,−1)Q(5, -1): (−3+52,5+(−1)2)=(1,2)\left(\frac{-3 + 5}{2}, \frac{5 + (-1)}{2}\right) = (1, 2), 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 y=2x+3y = 2x + 3, make a table: choose some xx values, work out each yy, 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 y=2x+3y = 2x + 3: 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.

xyO1234468y = 2x + 31 across2 up(0, 3)

To find a gradient from any two points on a line, divide the change in yy by the change in xx ("rise over run"):

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

The equation y=mx+cy = mx + c

Every straight line (except vertical ones) has an equation of the form y=mx+cy = mx + c, where

  • mm is the gradient, and
  • cc is the yy-intercept, the value of yy where the line crosses the yy-axis (because x=0x = 0 there, so y=cy = c).

In the diagram, y=2x+3y = 2x + 3 crosses the yy-axis at (0,3)(0, 3). Horizontal lines have equations like y=4y = 4; vertical lines have equations like x=−2x = -2. If an equation is not in the form y=mx+cy = mx + c, rearrange it first: 2y−6x=82y - 6x = 8 becomes y=3x+4y = 3x + 4, so the gradient is 3, not 6.

How to find the equation of a line through two points

  1. Step 1: Find the gradient mm from the two points.
  2. Step 2: Substitute mm and one point into y=mx+cy = mx + c, and solve for cc.
  3. 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 (1,5)(1, 5) and (4,11)(4, 11).

Show solution
  1. Gradient: m=11−54−1=63=2m = \frac{11 - 5}{4 - 1} = \frac{6}{3} = 2.
  2. Substitute (1,5)(1, 5) into y=2x+cy = 2x + c: 5=2+c5 = 2 + c, so c=3c = 3.
  3. The line is y=2x+3y = 2x + 3. Check with (4,11)(4, 11): 2×4+3=112 \times 4 + 3 = 11. ✓

Parallel and perpendicular lines

Parallel lines have the same steepness, so they have the same gradient. In the diagram, y=2x+1y = 2x + 1 and y=2x−3y = 2x - 3 are parallel: only the intercept differs.

xyO−224−2246y = 2x + 1y = 2x − 3y = −½x + 3

(Higher tier) Perpendicular lines meet at a right angle. Their gradients multiply to −1-1, so if one line has gradient mm, a perpendicular line has gradient −1m-\frac{1}{m}: flip the fraction and change the sign. In the diagram, y=−12x+3y = -\frac{1}{2}x + 3 is perpendicular to y=2x+1y = 2x + 1, because 2×(−12)=−12 \times (-\frac{1}{2}) = -1. 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 2x+3y=62x + 3y = 6 that passes through (4,1)(4, 1).

Show solution
  1. Rearrange to find the gradient: 3y=−2x+63y = -2x + 6, so y=−23x+2y = -\frac{2}{3}x + 2, gradient −23-\frac{2}{3}.
  2. Perpendicular gradient: flip and change sign, 32\frac{3}{2}.
  3. Substitute (4,1)(4, 1) into y=32x+cy = \frac{3}{2}x + c: 1=6+c1 = 6 + c, so c=−5c = -5.
  4. The line is y=32x−5y = \frac{3}{2}x - 5.

Practise this topic

Both are part of Premium.