Writing the rule y = mx + c
Writing a linear rule in the form y = mx + c from a description, from a graph, or from two data points, using letters that suit the context.
Once you know the rate and the starting value, you can write the rule. The rule is more useful than the graph: it gives exact answers for any input, and you can type it into a spreadsheet.
The gradient–intercept form
In context we swap $x$ and $y$ for letters that say what they are. A taxi fare is $F = 2.3d + 4.2$: $F$ dollars for $d$ kilometres, $\$2.30$ per km, $\$4.20$ to start.
From a description
A gym charges a $\$40$ joining fee and then $\$15$ a week. Write a rule for the total cost $C$ after $w$ weeks.
From two data points
Often you don't see the intercept directly. You have two results, such as two bills. Find the gradient from the two points first, then substitute one point to find $c$.
A phone repair shop charged $\$170$ for a $2$-hour job and $\$335$ for a $5$-hour job. Assuming a linear rule, write $C$ in terms of the hours $h$, and explain the intercept.
Choose the repair shop. Adjust $m$ and $c$ until the line passes through both receipts. Your rule should match Example 2. Then try the electricity story and the bushwalk, where the gradient is negative. Write each rule using the context letters.
From a graph
Read $c$ where the line crosses the vertical axis. Pick two points that sit exactly on grid lines, find the rise over the run, and write the rule. Make sure you read the scales: one grid square might be $5$ minutes across and $\$20$ up.
A graph shows the water left in a $9000$ L rainwater tank in a dry spell. It crosses the vertical axis at $9000$ and passes through $(30, 6000)$, with time in days. Write the rule and find when the tank is empty.
Your turn
An electricity bill has a fixed supply charge plus a cost per kWh. Using $400$ kWh cost $\$232$, and using $650$ kWh cost $\$322$. Write the rule for the bill $B$ in terms of usage $E$.
Show the working
$m = \dfrac{322 - 232}{650 - 400} = \dfrac{90}{250} = 0.36$, so $\$0.36$ per kWh. Then $232 = 0.36 \times 400 + c$, so $c = 232 - 144 = 88$. The rule is $B = 0.36E + 88$: a $\$88$ supply charge plus $36$ cents per kWh.
What is the gradient of $y = 7 - 2x$?
The number multiplying $x$ is $-2$. The order doesn't matter.
What is the vertical intercept of $y = 7 - 2x$?
When $x = 0$, $y = 7$.
A tutor charges $\$20$ for materials and $\$55$ per lesson. Which rule gives the cost $C$ for $n$ lessons?
The per-lesson charge multiplies $n$. The one-off $\$20$ is the intercept.
A line passes through $(2, 9)$ and $(6, 19)$. Find its gradient.
$\dfrac{19 - 9}{6 - 2} = \dfrac{10}{4} = 2.5$
For the same line, find the vertical intercept $c$.
$9 = 2.5 \times 2 + c$, so $c = 9 - 5 = 4$. Check: $2.5 \times 6 + 4 = 19$ ✓
A repair shop charges by $C = 55h + 60$. What is the fixed fee, in dollars?
The intercept, $60$, is what you pay when $h = 0$.
A tank's volume is $W = 9000 - 100t$ litres after $t$ days. After how many days is it empty?
$0 = 9000 - 100t$, so $t = 90$.
Bills of $\$232$ for $400$ kWh and $\$322$ for $650$ kWh lie on a straight line. What is the cost per kWh, in dollars?
$\dfrac{322 - 232}{650 - 400} = \dfrac{90}{250} = 0.36$
Exam style: A photographer charges $\$345$ for a $4$-hour shoot and $\$570$ for a $9$-hour shoot. Assuming a linear rule, find the hourly rate in dollars.
$\dfrac{570 - 345}{9 - 4} = \dfrac{225}{5} = 45$ dollars per hour.
Exam style: For the same photographer, find the fixed fee in dollars.
$345 = 45 \times 4 + c$, so $c = 345 - 180 = 165$. Check: $45 \times 9 + 165 = 570$ ✓. The rule is $C = 45h + 165$.
Coaching Centre