A taxi charges 4 dollars the moment you get in, plus 2 dollars for every kilometre you ride. A 1 km ride costs 6 dollars, a 2 km ride costs 8 dollars, a 10 km ride costs 24 dollars. You do not need a giant price list: two numbers tell you everything. The 4 dollars is where the cost starts, before you have gone anywhere. The 2 dollars per kilometre is how fast the cost grows. Those two numbers have names, the initial value and the rate of change, and every linear relation has them (except a vertical line, which you will meet in the next lesson). Once you can spot them in a story, a table, a graph or an equation, you can move between all four and answer questions like "how far can I go for 30 dollars?"
Initial value and rate of change
The initial value is the value of the dependent variable when the independent variable is : the starting amount, a flat fee, the water already in a pool. The rate of change tells you how much the dependent variable changes for each increase of 1 in the independent variable. In a real situation it comes with units that use the word "per": dollars per kilometre, litres per minute. To calculate it from any two rows of a table or two points on the graph, divide the change in the dependent variable by the change in the independent variable.
| Distance d (km) | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Cost C (dollars) | 4 | 6 | 8 | 10 | 12 | 14 |
| First difference | +2 | +2 | +2 | +2 | +2 |
Look at how the same two numbers show up in each representation of the taxi fare. In the story they are "4 dollars to start" and "2 dollars per km". In the table, the cost in the row where is the initial value, 4, and the first difference (with going up by 1) is the rate of change, 2. On the graph, the line meets the vertical axis at , and it rises 2 dollars for every 1 km to the right. In the equation , the number multiplying is the rate of change and the number added on is the initial value. In general, a linear relation can be written as
Direct and partial variation
For a linear relation whose rate of change is not : when the initial value is , the relation is a direct variation. Gas is an example: at 1.60 dollars per litre, . Zero litres cost zero dollars, so the line passes through the origin , and doubling the amount doubles the cost: 20 L cost 32 dollars and 40 L cost 64 dollars. When the initial value is not , the relation is a partial variation, like the taxi fare . Part of the cost is fixed and part varies. Doubling the distance does not double the cost: a 3 km ride costs dollars, but a 6 km ride costs dollars, not 20.
- Initial value is
- Equation , e.g.
- Graph passes through the origin (0, 0)
- Doubling doubles
- Initial value is not
- Equation with , e.g.
- Graph crosses the vertical axis above or below the origin
- Doubling does not double
Filling and emptying: positive and negative rates
A backyard pool already holds 2000 L of water, and a hose adds 25 L every minute. The initial value is 2000 L and the rate of change is L per minute, so , where is the time in minutes. After 1 hour () the pool holds L. Now picture a hot tub holding 1200 L that drains at 40 L per minute. The amount decreases, so the rate of change is negative: , often written . The tub is empty when : gives minutes. On a graph, a positive rate makes the line rise from left to right, and a negative rate makes it fall.