y = mx + c

Year 8 · Linear Graphs: Plotting Straight Lines (Year 8)

The general equation of any straight line is y = mx + c. m is the gradient (steepness of the line). c is the y-intercept (where the line crosses the y-axis).

How it works

  1. Write the equation as y = mx + c: y must be on its own on the left. Example: y = 3x − 2.
  2. Find m, the gradient: m is the coefficient of x (the number multiplying x). In y = 3x − 2, m = 3. A positive gradient slopes up to the right. A negative gradient slopes down.
  3. Find c, the y-intercept: c is the constant (the number on its own). Keep its sign. In y = 3x − 2, c = −2. The line crosses the y-axis at (0, −2), because x = 0 on the y-axis.
  4. Plot the y-intercept: Mark the point (0, c). For y = 3x − 2, mark (0, −2).
  5. Use the gradient for the next point: m = rise ÷ run. m = 3 = 3/1, so run 1 across and rise 3 up. From (0, −2) you reach (1, 1). For a negative gradient, rise goes down.
  6. Draw the line: Join the points with a ruler, extend it, and add arrowheads.
  7. Find the x-intercept (optional): The x-intercept is (x, 0). Substitute y = 0 and solve for x. For y = 2x − 4: 0 = 2x − 4, so x = 2. The point is (2, 0).

Worked examples

Example 1

y = 3x − 2: write the gradient and the y-intercept.

m is the number multiplying x: m = 3.

c is the number on its own: c = −2, so the point is (0, −2).

Answer: gradient 3, y-intercept (0, −2)

Example 2

y = 5x + 4. What is the gradient m?

The gradient is the coefficient of x.

Answer: 5

Example 3

y = 2x − 7. What is c, the y-intercept value?

c is the number on its own, with its sign.

Answer: −7

Example 4

y = −3x + 6. What is the gradient m?

The coefficient of x is −3.

Answer: −3

Example 5

y = 4x + 9 crosses the y-axis at (0, ?). Find the y value.

At the y-axis x = 0.

y = 4 × 0 + 9 = 9.

Answer: 9

Example 6

Find the x-coordinate of the x-intercept of y = 2x − 4.

On the x-axis y = 0: 0 = 2x − 4.

Add 4: 4 = 2x. Divide by 2: x = 2.

Answer: 2

Example 7

Find the x-coordinate of the x-intercept of y = 3x − 6.

Put y = 0: 0 = 3x − 6.

6 = 3x, so x = 2.

Answer: 2

A common mistake

Mixing up the two intercepts. The y-intercept has x = 0, written (0, y). The x-intercept has y = 0, written (x, 0).

Remember

y = mx + c. m = gradient (steepness). c = y-intercept, the point (0, c). x-intercept: put y = 0.
Open the interactive lessonAll Year 8 lessons

More lessons in this unit