Skip to main content
SingaporeMathsSyllabus dot point

What does the equation of a straight line tell us, and how do we find it?

Interpret and use the equation y = mx + c, find the gradient and intercept, and determine the equation of a straight line

A focused answer to the O-Level E-Maths outcome on straight-line graphs. The form y = mx + c, finding gradient and intercept, determining a line's equation from points or a graph, and parallel lines.

Generated by Claude Opus 4.88 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 answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to understand the straight-line equation y=mx+cy = mx + c, find the gradient and the yy-intercept, and determine a line's equation from a graph, from two points, or from a point and a gradient. Straight-line work underpins coordinate geometry and the reading of linear graphs.

The answer

The form y = mx + c

A straight line is described by:

y=mx+cy = mx + c

where mm is the gradient (steepness) and cc is the yy-intercept (the value of yy where the line crosses the yy-axis). Reading these two numbers off the equation tells you everything about the line's position and slope.

Gradient

The gradient measures how steeply the line rises:

m=change in ychange in x=y2y1x2x1m = \frac{\text{change in } y}{\text{change in } x} = \frac{y_2 - y_1}{x_2 - x_1}

A positive gradient rises left to right, a negative gradient falls, and a zero gradient is horizontal. The steeper the line, the larger the magnitude of mm.

Finding the equation

From two points, find the gradient first, then substitute one point into y=mx+cy = mx + c to find cc. From a graph, read the intercept directly off the yy-axis and compute the gradient from any two clear grid points.

Parallel lines

Parallel lines have the same gradient. So any line parallel to y=3x+2y = 3x + 2 has gradient 33 and differs only in its intercept cc. This makes parallelism easy to test by comparing gradients.

Reading a real-life linear graph

In applied questions the gradient and intercept carry units and meaning, so interpreting them is as important as calculating them. On a distance-time graph the gradient is a speed (distance per unit time) and a horizontal section means stationary; on a cost-quantity graph the gradient is the price per item and the intercept is a fixed charge. So a line C=2n+5C = 2n + 5 for the cost of nn items says each item costs 22 dollars and there is a fixed 55-dollar charge. Translating the gradient and intercept back into the words of the problem, with their units, is exactly what an E-Maths interpretation question rewards.

Horizontal and vertical lines

Two special cases do not fit the usual y=mx+cy = mx + c reading and are worth knowing. A horizontal line has gradient 00 and equation y=cy = c, because yy never changes. A vertical line has an undefined gradient (the run is zero, so the fraction is undefined) and equation x=ax = a, because xx is constant while yy varies freely. Recognising that y=4y = 4 is a flat line and x=4x = 4 is an upright line prevents the common mix-up between the two, and explains why a vertical line cannot be written in the form y=mx+cy = mx + c at all.

Examples in context

Example 1. Taxi fares. A fare of a fixed flag-down plus a rate per kilometre is a straight-line relationship, cost=(rate)×d+(flag-down)\text{cost} = (\text{rate}) \times d + (\text{flag-down}). The flag-down is the intercept and the per-kilometre rate is the gradient.

Example 2. Converting temperatures. The conversion from Celsius to Fahrenheit, F=1.8C+32F = 1.8C + 32, is a straight line with gradient 1.81.8 and intercept 3232. Reading the gradient and intercept explains how the two scales relate.

Try this

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

  • Cue. Gradient 4-4, intercept 99.

Q2. Find the gradient of the line through (0,2)(0, 2) and (5,17)(5, 17). [2 marks]

  • Cue. m=17250=3m = \dfrac{17 - 2}{5 - 0} = 3.

Q3. Write the equation of the line with gradient 22 passing through (0,3)(0, -3). [2 marks]

  • Cue. Intercept is 3-3, so y=2x3y = 2x - 3.

Exam-style practice questions

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

Original3 marksA straight line passes through the points (1,5)(1, 5) and (4,14)(4, 14). Find its equation in the form y=mx+cy = mx + c.
Show worked answer →

Gradient: m=14541=93=3m = \dfrac{14 - 5}{4 - 1} = \dfrac{9}{3} = 3.

Substitute one point into y=3x+cy = 3x + c, using (1,5)(1, 5): 5=3(1)+c5 = 3(1) + c, so c=2c = 2.

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

Markers reward the gradient from the change in yy over the change in xx, substituting a point to find cc, and the final equation.

Original3 marksThe line LL has equation 2y=6x52y = 6x - 5. (a) State the gradient of LL. (b) Write down the equation of a line parallel to LL that passes through the origin.
Show worked answer →

(a) Rearrange into the form y=mx+cy = mx + c: y=3x2.5y = 3x - 2.5. The gradient is 33.

(b) A parallel line has the same gradient 33. Through the origin the intercept is 00, so its equation is y=3xy = 3x.

Markers reward rearranging to read off the gradient as 33, knowing parallel lines share a gradient, and the equation y=3xy = 3x.

Related dot points