← Straight-line graphs

πŸ“– Equation of a line

The rule

  • A straight line has an equation of the form y = mx + c.
  • m is the gradient. It is the number multiplying x.
  • c is the y-intercept. It is where the line crosses the y axis, where x = 0.
  • Read c from the graph first. Then find m with rise Γ· run.
  • y = βˆ’x + 3 has m = βˆ’1. y = x has c = 0.

Examples

y = 2x + 1 β†’ m = 2, c = 1

The number with x is 2. The number on its own is 1.

xyβˆ’5βˆ’5βˆ’4βˆ’4βˆ’3βˆ’3βˆ’2βˆ’2βˆ’1βˆ’101122334455

y = βˆ’x + 3 β†’ m = βˆ’1, c = 3

βˆ’x is βˆ’1 Γ— x, so m = βˆ’1. The line crosses the y axis at 3.

xyβˆ’5βˆ’5βˆ’4βˆ’4βˆ’3βˆ’3βˆ’2βˆ’2βˆ’1βˆ’101122334455

y = 3x βˆ’ 2 β†’ m = 3, c = βˆ’2

m is the 3 with x. c is βˆ’2, with its minus.

A line has gradient 2 and crosses the y axis at βˆ’1. Equation? β†’ y = 2x βˆ’ 1

m = 2 and c = βˆ’1, so y = 2x + (βˆ’1) = 2x βˆ’ 1.

Watch out

  • β€œIn y = 2x + 1 the gradient is 1.” No: m is the number with x. The gradient is 2, and 1 is c.
  • β€œy = 2x βˆ’ 3 crosses the y axis at (βˆ’3, 0).” No: on the y axis x is 0. It crosses at (0, βˆ’3).
  • β€œThe line goes down, so it is y = 2x + 1.” No: a line going down has a negative m, like y = βˆ’2x + 1.
Start the lesson β–Ά