Skip to main content
SingaporeMathsSyllabus dot point

How do we plot a straight-line graph, and what do its gradient and intercept tell us?

Plot and draw graphs of linear functions y = mx + c, and interpret the gradient and y-intercept

A focused answer to the N(A)-Level Mathematics outcome on linear graphs. Plotting y = mx + c, finding gradient from two points, the meaning of the y-intercept, and reading values from a line.

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 plot and draw the graph of a linear function written as y=mx+cy = mx + c, and to interpret what the gradient mm and the yy-intercept cc mean. A linear function always gives a straight line, and reading that line is a skill used in travel graphs, coordinate geometry and statistics.

The answer

The equation of a straight line

Every straight line (except a vertical one) can be written as:

y=mx+cy = mx + c

where mm is the gradient (steepness) and cc is the yy-intercept (where the line crosses the yy-axis). For y=3x+2y = 3x + 2, the gradient is 33 and the line crosses the yy-axis at (0,2)(0, 2).

Plotting a line from its equation

To draw the graph, build a small table of values:

  1. Choose a few xx values, such as 00, 11 and 22.
  2. Work out yy for each using the equation.
  3. Plot the points and join them with a straight line using a ruler.

For y=2x+1y = 2x + 1: when x=0x = 0, y=1y = 1; when x=1x = 1, y=3y = 3; when x=2x = 2, y=5y = 5. Three points that line up confirm there is no arithmetic slip.

Gradient

The gradient measures how steep the line is - how much yy changes for each unit increase in xx:

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 from left to right; a negative gradient falls. A larger number means a steeper line. A gradient of 00 is a horizontal line.

The y-intercept

The yy-intercept cc is the value of yy where the line meets the yy-axis, that is when x=0x = 0. In a real context it often means a starting value, such as a fixed fee before any usage is added.

Reading values from a graph

Once a line is drawn, you can read off a yy value for any xx (or the reverse) by going up from the axis to the line and across. This is how travel and conversion graphs are used.

Examples in context

Example 1. A taxi fare. A taxi charges a \3flagdownplus flag-down plus \11 per kilometre, so the fare is y=x+3y = x + 3 where xx is the distance. The yy-intercept 33 is the fixed starting charge and the gradient 11 is the cost per kilometre. Reading the graph at x=5x = 5 gives a fare of \8$.

Example 2. Comparing two lines. The lines y=2xy = 2x and y=2x+3y = 2x + 3 have the same gradient, so they are parallel and never meet. The second is simply the first shifted up by 33. Recognising equal gradients as parallel lines is a quick way to compare straight-line graphs.

Try this

  • Cue. State the gradient and yy-intercept of y=5x2y = 5x - 2. The gradient is 55 and the intercept is 2-2.
  • Cue. Find the gradient of the line through (2,1)(2, 1) and (6,9)(6, 9). Compute 9162=84=2\dfrac{9 - 1}{6 - 2} = \dfrac{8}{4} = 2.
  • Cue. Find yy when x=3x = 3 on the line y=2x+10y = -2x + 10. Substitute: y=6+10=4y = -6 + 10 = 4.

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 has equation y=2x1y = 2x - 1. (a) State the gradient and the yy-intercept. (b) Find the value of yy when x=4x = 4.
Show worked answer →

(a) Compare with y=mx+cy = mx + c. The gradient is m=2m = 2 and the yy-intercept is c=1c = -1.

(b) Substitute x=4x = 4: y=2(4)1=81=7y = 2(4) - 1 = 8 - 1 = 7.

What markers reward: correctly reading mm and cc from the form y=mx+cy = mx + c, and a correct substitution. The yy-intercept is the number on its own, including its sign.

Original3 marksA line passes through the points (1,3)(1, 3) and (4,9)(4, 9). Find the gradient of the line.
Show worked answer →

Gradient is the change in yy divided by the change in xx:

m=9341=63=2m = \dfrac{9 - 3}{4 - 1} = \dfrac{6}{3} = 2.

What markers reward: the correct gradient formula (difference in yy over difference in xx), subtracting the coordinates in the same order top and bottom, and the simplified value. Subtracting in opposite orders (for example 939 - 3 over 141 - 4) gives the wrong sign.

Related dot points