Sub topic 2
Rate of Change: How Much \(y\) Changes per Unit of \(x\)
This chapter assumes you can plot ordered pairs, work with signed numbers and fractions, and solve simple equations. You will use those skills to describe how one quantity changes when another quantity changes.
What rate of change means
A rate of change compares a change in one quantity with a change in another quantity. In a coordinate plane, \(x\) is usually the input and \(y\) is usually the output.
The rate of change is
\[ \text{rate of change}=\frac{\text{change in }y}{\text{change in }x} \]
The symbol \(\Delta\) means “change in.” Therefore, the same relationship can be written as
\[ \frac{\Delta y}{\Delta x} \]
For a straight line, this rate stays constant. If \(y\) increases by 3 every time \(x\) increases by 1, the rate of change is 3. If \(y\) decreases by 2 every time \(x\) increases by 1, the rate is \(-2\).
A rate of change has units. For example, if \(y\) is distance in miles and \(x\) is time in hours, then the rate might be 60 miles per hour.
| Change in \(x\) | Change in \(y\) | Rate of change |
|---|---|---|
| 1 hour | 60 miles | 60 miles per hour |
| 2 hours | 120 miles | 60 miles per hour |
| 0.5 hour | 30 miles | 60 miles per hour |
The ratio is the same in each row.
Connecting rate of change to slope
The slope of a line is its rate of change. It measures vertical change compared with horizontal change:
\[ \text{slope}=\frac{\text{rise}}{\text{run}}=\frac{\Delta y}{\Delta x} \]
- Rise is the change in \(y\), or the vertical movement.
- Run is the change in \(x\), or the horizontal movement.
Suppose a line passes through \((2, 5)\) and \((6, 13)\). Moving from the first point to the second gives:
- Change in \(x\): \(6-2=4\)
- Change in \(y\): \(13-5=8\)
So the slope is
\[ \frac{8}{4}=2 \]
This means \(y\) increases by 2 units for every 1-unit increase in \(x\).
Use consistent direction
You may subtract the coordinates in either order, but use the same order for both changes:
\[ \frac{y2-y1}{x2-x1} \]
For the points \((2,5)\) and \((6,13)\),
\[ \frac{13-5}{6-2}=\frac{8}{4}=2 \]
Reversing both points gives the same result:
\[ \frac{5-13}{2-6}=\frac{-8}{-4}=2 \]
A common error is to reverse only one subtraction. That changes the sign and produces an incorrect slope.
def average_rate_of_change(x1, y1, x2, y2):
if x1 == x2:
raise ValueError("The rate is undefined when x does not change")
return (y2 - y1) / (x2 - x1)
print(average_rate_of_change(2, 5, 6, 13)) # 2.0
print(average_rate_of_change(0, 10, 4, 2)) # -2.0Read rate from a situation
Suppose a tank contains 50 liters of water and fills at 4 liters per minute. The quantity of water changes by 4 liters for each minute, so the rate of change is 4 liters per minute. The starting amount, 50 liters, is separate from the rate. Later, this distinction will appear in the equation \(y=mx+b\), where \(m\) is the rate of change and \(b\) is the starting value.
Exercise
A line passes through (−1, 4) and (3, −8). What is its rate of change, and what does the result mean?
Show answer
The rate is ((−8) − 4) / (3 − (−1)) = −12 / 4 = −3. The value of y decreases by 3 units for every 1-unit increase in x.