Skip to main content
Northern IrelandMathsSyllabus dot point

How do you find and use the equation of a straight line, including gradient and intercept?

Plot and recognise straight-line graphs, find the gradient and y-intercept, use y=mx+cy = mx + c, find the equation of a line through given points, and use parallel and perpendicular gradient conditions.

A CCEA GCSE Mathematics answer on straight line graphs, covering plotting lines, finding the gradient and y-intercept, the equation y = mx + c, finding the equation through given points, and the conditions for parallel and perpendicular lines.

Generated by Claude Opus 4.811 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. Plotting and recognising lines
  3. Gradient and intercept
  4. The equation y = mx + c
  5. Parallel and perpendicular lines (Higher)
  6. Why this matters

What this dot point is asking

Straight-line graphs link algebra to coordinate geometry. In the CCEA Algebra strand you must plot and recognise straight lines, find the gradient and yy-intercept, use the equation y=mx+cy = mx + c, find the equation of a line through given points, and at Higher tier use the gradient conditions for parallel and perpendicular lines. These skills connect to simultaneous equations (where lines cross), to sequences (the common difference is a gradient) and to real-life rate graphs.

Plotting and recognising lines

A straight-line graph can be drawn from its equation by making a small table of values, working out yy for a few xx values, plotting the points and joining them. Lines of the form x=ax = a are vertical, y=by = b are horizontal, and y=mxy = mx pass through the origin. Recognising the shape and key features from the equation saves time.

Gradient and intercept

The gradient measures steepness: how much yy changes for each unit increase in xx. A positive gradient rises to the right, a negative gradient falls.

So through (1,2)(1, 2) and (4,11)(4, 11) the gradient is 11241=93=3\tfrac{11 - 2}{4 - 1} = \tfrac{9}{3} = 3.

The equation y = mx + c

Once you have the gradient mm and the intercept cc, the equation is simply y=mx+cy = mx + c. If you know the gradient and a point but not the intercept, substitute the point's coordinates to find cc.

Parallel and perpendicular lines (Higher)

Two lines are parallel when they have the same gradient, so any line parallel to y=4x1y = 4x - 1 has gradient 44. Two lines are perpendicular (meeting at a right angle) when the product of their gradients is 1-1; equivalently, one gradient is the negative reciprocal of the other. If a line has gradient 23\tfrac{2}{3}, a perpendicular line has gradient 32-\tfrac{3}{2}.

To find the equation of a parallel or perpendicular line through a given point, work out the required gradient, then substitute the point to find cc, exactly as above.

A worked perpendicular example makes the steps concrete. Find the line perpendicular to y=12x+3y = \tfrac{1}{2}x + 3 through the point (2,7)(2, 7). The given gradient is 12\tfrac{1}{2}, so the perpendicular gradient is its negative reciprocal, 2-2. Substitute the point into y=2x+cy = -2x + c: 7=2(2)+c7 = -2(2) + c, so 7=4+c7 = -4 + c and c=11c = 11. The equation is y=2x+11y = -2x + 11. The same two-step routine, find the gradient then find the intercept, handles every "find the equation of the line" question, whether the line is parallel, perpendicular, or simply through two points. When a question gives an equation in the form ax+by=cax + by = c, rearrange it into y=mx+cy = mx + c first so the gradient can be read off the coefficient of xx.

Why this matters

Straight-line graphs are the bridge between algebra and geometry and the basis for the rate-of-change ideas that run through measures and applied maths. The intersection of two lines is the graphical meaning of simultaneous equations, and the gradient and intercept appear in real contexts such as fixed-plus-variable costs and conversion graphs. CCEA rewards reading the gradient and intercept accurately and forming equations cleanly.

Exam-style practice questions

Practice questions written in the style of CCEA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

CCEA 20193 marksFind the equation of the straight line passing through (0,4)(0, 4) and (2,10)(2, 10). (Calculator.)
Show worked answer →

Find the gradient first: m=10420=62=3m = \dfrac{10 - 4}{2 - 0} = \dfrac{6}{2} = 3.

The line crosses the yy-axis at (0,4)(0, 4), so the intercept is c=4c = 4.

The equation is y=3x+4y = 3x + 4.

Marks are for the gradient, the intercept, and the full equation. Reading the intercept straight from the point on the yy-axis avoids extra work; substituting a point into y=mx+cy = mx + c also gives c=4c = 4.

CCEA 20213 marksA line is perpendicular to y=2x5y = 2x - 5 and passes through (4,1)(4, 1). Find its equation. (Higher, calculator.)
Show worked answer →

The gradient of the given line is 22. The perpendicular gradient is the negative reciprocal: 12-\dfrac{1}{2}.

Use y=mx+cy = mx + c with m=12m = -\tfrac{1}{2} and the point (4,1)(4, 1): 1=12(4)+c1 = -\tfrac{1}{2}(4) + c, so 1=2+c1 = -2 + c and c=3c = 3.

The equation is y=12x+3y = -\tfrac{1}{2}x + 3.

Marks are for the perpendicular gradient, substituting the point to find cc, and the final equation. Forgetting to take the negative reciprocal is the usual error.

Related dot points

Sources & how we know this