C1PureCore

Straight-Line Graphs

A straight line is captured entirely by two numbers: its gradient and where it sits. From those you can write its equation, test whether two lines are parallel or perpendicular, and find lengths and midpoints.

28 min Video by TLMaths Coordinate Geometry

The big picture

Coordinate geometry is where algebra and geometry meet: shapes become equations, and geometric questions (“are these lines perpendicular?”, “where do they cross?”) become algebra you can solve. The straight line is the foundation of all of it. The gradient idea you meet here — rate of change of yy with xx — is exactly what differentiation generalises to curves, so time spent here pays off directly in calculus. And the parallel/perpendicular conditions reappear whenever you find a tangent or a normal to a curve.

A-Level Maths C1-07: The Equation of a Line in the form y = mx + cCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Find the gradient between two points and interpret it as a rate
  • Write the equation of a line in y=mx+cy = mx + c and y−y1=m(x−x1)y - y_1 = m(x - x_1) forms
  • Use the parallel (m1=m2m_1 = m_2) and perpendicular (m1m2=−1m_1 m_2 = -1) conditions
  • Find the midpoint and length of a line segment
1

Gradient: steepness as a number

The gradient\textbf{gradient} measures how steeply a line climbs: the change in yy divided by the change in xx between any two points on it — “rise over run”. A positive gradient rises left-to-right, a negative one falls, and zero is flat.

Because a straight line has the same\textbf{same} gradient everywhere, you can compute it from any two points and it will always agree. That constancy is precisely what makes the line straight.

m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Change in yy over change in xx — keep the points in the same order top and bottom.
Example 1Find the gradient of the line through (1,2)(1, 2) and (4,11)(4, 11).
1Rise: 11−2=911 - 2 = 9. Run: 4−1=34 - 1 = 3.
2m=93=3m = \dfrac{9}{3} = 3.
Answer
m=3m = 3
Why this works

Gradient is a rate: “for every 1 across, 3 up”. This is the same idea as speed (distance per time) or the derivative later — a straight line is just the case where the rate never changes.

2

Writing the equation of a line

The familiar form y=mx+cy = mx + c names the gradient mm and the yy-intercept cc. But when you know a gradient and a point\textbf{point} (not the intercept), the point-gradient form is faster: y−y1=m(x−x1)y - y_1 = m(x - x_1). Substitute and rearrange to whatever form the question wants.

y=mx+cy = mx + c
Gradient mm, yy-intercept cc.
y−y1=m(x−x1)y - y_1 = m(x - x_1)
Best when you know the gradient and one point.
Example 1Find the equation of the line with gradient 2 through (3,1)(3, 1).
1Use point-gradient: y−1=2(x−3)y - 1 = 2(x - 3).
2Expand: y−1=2x−6y - 1 = 2x - 6.
3Rearrange: y=2x−5y = 2x - 5.
Answer
y=2x−5y = 2x - 5

Tip — Exam answers are often wanted as ax+by+c=0ax + by + c = 0 with integer coefficients — be ready to clear fractions and rearrange.

3

Parallel and perpendicular lines

Two lines are parallel\textbf{parallel} exactly when they have the same gradient\textbf{same gradient}. They are perpendicular\textbf{perpendicular} when their gradients multiply to −1-1 — equivalently, each is the negative reciprocal\textbf{negative reciprocal} of the other. So a line perpendicular to one of gradient 2 has gradient −12-\tfrac12.

m1=m2(parallel)m_1 = m_2 \quad (\text{parallel})
Equal gradients never meet.
m1m2=−1(perpendicular)m_1 m_2 = -1 \quad (\text{perpendicular})
Negative reciprocal: flip and change sign.
Example 1Find the gradient of a line perpendicular to y=34x+1y = \tfrac{3}{4}x + 1.
1The gradient is 34\tfrac34.
2Perpendicular gradient is the negative reciprocal: flip to 43\tfrac43, change sign to −43-\tfrac43.
Answer
−43-\tfrac{4}{3}
Why this works

The m1m2=−1m_1 m_2 = -1 rule is what lets you find a normal\textbf{normal} to a curve later: differentiate for the tangent gradient, then take the negative reciprocal for the perpendicular normal.

4

Midpoint and length

Two more essentials. The midpoint\textbf{midpoint} of a segment is the average of the endpoints. The length\textbf{length} comes straight from Pythagoras on the horizontal and vertical gaps.

midpoint=(x1+x22,y1+y22)\text{midpoint} = \left( \dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2} \right)
Average the coordinates.
length=(x2−x1)2+(y2−y1)2\text{length} = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Pythagoras on the gaps.
Example 1Find the midpoint and length of the segment from (1,2)(1, 2) to (4,6)(4, 6).
1Midpoint: (1+42,2+62)=(2.5,4)\left(\tfrac{1+4}{2}, \tfrac{2+6}{2}\right) = (2.5, 4).
2Length: (4−1)2+(6−2)2=9+16=25=5\sqrt{(4-1)^2 + (6-2)^2} = \sqrt{9 + 16} = \sqrt{25} = 5.
Answer
Midpoint (2.5,4)(2.5, 4), length 55.

Think like an examiner

  • For a perpendicular line, use the negative reciprocal — a sign slip or forgetting to flip is the classic lost mark.
  • If the answer is required as ax+by+c=0ax + by + c = 0, clear fractions so the coefficients are integers.
  • Keep the points in a consistent order in the gradient formula — swapping one but not the other flips the sign.
  • A “normal” to a curve is a perpendicular line; expect to combine differentiation with the m1m2=−1m_1 m_2 = -1 rule.

Common misconceptions

Taking the perpendicular gradient of 2 as −2-2.
It is the negative reciprocal, −12-\tfrac12: flip and change sign.
Computing gradient as x2−x1y2−y1\dfrac{x_2 - x_1}{y_2 - y_1}.
It is y2−y1x2−x1\dfrac{y_2 - y_1}{x_2 - x_1} — rise over run, not run over rise.
Mismatching the order of points, e.g. y2−y1y_2 - y_1 over x1−x2x_1 - x_2.
Subtract in the same order top and bottom, or the sign will be wrong.
Forgetting the square root in the length formula.
Length =(Δx)2+(Δy)2= \sqrt{(\Delta x)^2 + (\Delta y)^2} — the squared distance is not the distance.

Straight-line toolkit

m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Gradient.
y−y1=m(x−x1)y - y_1 = m(x - x_1)
Point-gradient form.
m1m2=−1m_1 m_2 = -1
Perpendicular condition.
d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}
Distance between points.

Stretch yourself

The points A(1,2)A(1, 2), B(5,4)B(5, 4) are given. Find the equation of the perpendicular bisector of ABAB.

Hint — The perpendicular bisector passes through the midpoint of ABAB with a gradient perpendicular to ABAB.

Reveal solution
SolutionMidpoint of ABAB: (1+52,2+42)=(3,3)\left(\tfrac{1+5}{2}, \tfrac{2+4}{2}\right) = (3, 3). Gradient of ABAB: 4−25−1=12\tfrac{4-2}{5-1} = \tfrac12. Perpendicular gradient: −2-2. Using point-gradient through (3,3)(3,3): y−3=−2(x−3)y - 3 = -2(x - 3), i.e. y=−2x+9y = -2x + 9. The perpendicular bisector is the set of points equidistant from AA and BB — a fact used constantly in circle geometry to locate a centre. ■\blacksquare

Questions students ask

How do I find the equation of a line from two points?
First find the gradient with m=y2−y1x2−x1m = \tfrac{y_2-y_1}{x_2-x_1}, then substitute the gradient and either point into y−y1=m(x−x1)y - y_1 = m(x - x_1) and rearrange to the form asked for.
What is the gradient of a line perpendicular to another?
The negative reciprocal: flip the fraction and change the sign. So perpendicular to gradient 34\tfrac34 is −43-\tfrac43, because their product is −1-1.
When should I use y=mx+cy = mx + c versus y−y1=m(x−x1)y - y_1 = m(x - x_1)?
Use y=mx+cy = mx + c when you know the yy-intercept directly. Use the point-gradient form when you know the gradient and a general point — it avoids solving for cc separately.
What is a perpendicular bisector?
The line that cuts a segment in half at right angles. It passes through the midpoint with the negative-reciprocal gradient, and every point on it is equidistant from the two ends.

Key takeaways

  • Gradient m=y2−y1x2−x1m = \tfrac{y_2-y_1}{x_2-x_1} measures steepness as a rate.
  • Write lines as y=mx+cy = mx + c or y−y1=m(x−x1)y - y_1 = m(x - x_1).
  • Parallel: equal gradients. Perpendicular: gradients multiply to −1-1 (negative reciprocal).
  • Midpoint averages the coordinates; length uses Pythagoras.
  • These ideas power tangents and normals to curves later.

How this fits the course

Build on

  • Coordinates and graphs (GCSE)soon

Related

Leads to

  • Circles
  • Differentiation — tangents & normals (later)soon

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. The gradient through (2,3)(2, 3) and (6,11)(6, 11) is:

    • 22
    • 44
    • 12\tfrac12
    • 88
    Show answer and explanation

    Answer: 22

    11−36−2=84=2\tfrac{11-3}{6-2} = \tfrac{8}{4} = 2.

  2. A line perpendicular to y=4x−1y = 4x - 1 has gradient:

    • −14-\tfrac14
    • 44
    • 14\tfrac14
    • −4-4
    Show answer and explanation

    Answer: −14-\tfrac14

    Negative reciprocal of 4 is −14-\tfrac14.

  3. The line through (0,5)(0, 5) with gradient −2-2 is:

    • y=−2x+5y = -2x + 5
    • y=2x+5y = 2x + 5
    • y=−2x−5y = -2x - 5
    • y=5x−2y = 5x - 2
    Show answer and explanation

    Answer: y=−2x+5y = -2x + 5

    Intercept 5, gradient −2-2, so y=−2x+5y = -2x + 5.

  4. Two lines are parallel when:

    • their gradients are equal
    • their gradients multiply to −1-1
    • they share a point
    • their intercepts are equal
    Show answer and explanation

    Answer: their gradients are equal

    Equal gradients means the lines never meet — parallel.

  5. The midpoint of (2,7)(2, 7) and (8,1)(8, 1) is:

    • (5,4)(5, 4)
    • (4,5)(4, 5)
    • (6,6)(6, 6)
    • (3,3)(3, 3)
    Show answer and explanation

    Answer: (5,4)(5, 4)

    Average the coordinates: (2+82,7+12)=(5,4)\left(\tfrac{2+8}{2}, \tfrac{7+1}{2}\right) = (5, 4).

  6. The distance between (0,0)(0, 0) and (6,8)(6, 8) is:

    • 1010
    • 1414
    • 14\sqrt{14}
    • 4848
    Show answer and explanation

    Answer: 1010

    62+82=100=10\sqrt{6^2 + 8^2} = \sqrt{100} = 10.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 4 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.