π 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.
y = βx + 3 β m = β1, c = 3
βx is β1 Γ x, so m = β1. The line crosses the y axis at 3.
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.