Skip to main content
ScotlandMathsSyllabus dot point

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

Determining and using the equation of a straight line in the forms y equals mx plus c and y minus b equals m times x minus a, including the gradient, the y-intercept, and parallel lines.

A focused answer to the SQA National 5 Mathematics straight line content, covering the equation y equals mx plus c, reading the gradient and y-intercept, the point-gradient form, finding the equation from a gradient and a point, and parallel lines.

Generated by Claude Opus 4.89 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. The equation y = mx + c
  3. Finding the equation from a gradient and a point
  4. Parallel lines
  5. Rearranging into the standard form
  6. Examples in context
  7. Try this

What this dot point is asking

The SQA wants you to find and use the equation of a straight line. You should be able to read the gradient and y-intercept from y=mx+cy = mx + c, build an equation from a gradient and a point using the point-gradient form, and recognise that parallel lines share a gradient.

The equation y = mx + c

Every non-vertical straight line can be written as y=mx+cy = mx + c. The number mm in front of xx is the gradient and the number cc on its own is the y-intercept, the yy value where the line crosses the y-axis (at x=0x = 0).

So y=2x+5y = 2x + 5 has gradient 22 and crosses the y-axis at (0,5)(0, 5), while y=x+3y = -x + 3 has gradient 1-1 and crosses at (0,3)(0, 3).

Finding the equation from a gradient and a point

When you know the gradient and one point on the line, the quickest route is the point-gradient form.

If you are given two points instead, first find the gradient with m=y2y1x2x1m = \dfrac{y_2 - y_1}{x_2 - x_1}, then use either point in the point-gradient form.

Parallel lines

Two lines are parallel when they have the same gradient and never meet. To find a line parallel to a given one, keep the gradient and use the new point.

Rearranging into the standard form

Equations are not always given in y=mx+cy = mx + c form. When a line is written as, say, 2x+y=82x + y = 8 or 4x2y=64x - 2y = 6, rearrange it to y=mx+cy = mx + c to read off the gradient and intercept. Make yy the subject by moving the xx term across and dividing if needed.

This is also how you find where two lines meet: rearrange both into y=mx+cy = mx + c and set them equal, or solve them as simultaneous equations.

Examples in context

The straight line models any constant rate. A taxi that charges a £3\pounds 3 flag fall plus £2\pounds 2 per mile costs C=2m+3C = 2m + 3 pounds for mm miles: the gradient 22 is the price per mile and the intercept 33 is the fixed charge. Reading the graph of cost against distance, the steepness gives the rate and the starting height gives the standing charge. The same idea links a distance-time graph's gradient to speed.

Try this

Q1. State the gradient and y-intercept of y=2x+9y = -2x + 9. [2 marks]

  • Cue. Gradient 2-2, y-intercept 99.

Q2. Find the equation of the line through (0,1)(0, -1) with gradient 55. [2 marks]

  • Cue. y=5x1y = 5x - 1.

Q3. Find the line through (2,7)(2, 7) parallel to y=4x3y = 4x - 3. [2 marks]

  • Cue. y=4x1y = 4x - 1.

Exam-style practice questions

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

SQA National 5 20193 marksFind the equation of the straight line passing through (2,1)(2, 1) with gradient 33.
Show worked answer →

Use the point-gradient form yb=m(xa)y - b = m(x - a) with m=3m = 3 and (a,b)=(2,1)(a, b) = (2, 1) (1 mark): y1=3(x2)y - 1 = 3(x - 2). Expand the bracket: y1=3x6y - 1 = 3x - 6 (1 mark). Rearrange to y=mx+cy = mx + c form: y=3x5y = 3x - 5 (1 mark). Markers reward correct substitution into the formula, expanding, and the final equation.

SQA National 5 20223 marksA line passes through (0,4)(0, 4) and (3,13)(3, 13). Find its equation in the form y=mx+cy = mx + c.
Show worked answer →

Find the gradient: m=13430=93=3m = \dfrac{13 - 4}{3 - 0} = \dfrac{9}{3} = 3 (1 mark). The line crosses the y-axis at (0,4)(0, 4), so the y-intercept is c=4c = 4 (1 mark). Write the equation: y=3x+4y = 3x + 4 (1 mark). Markers reward the gradient, the y-intercept read from the point on the y-axis, and the equation.

Related dot points

Sources & how we know this