Understanding how to calculate the slope is essential for determining whether a function is linear or nonlinear. The slope of a line measures its steepness and is often represented by the letter \( m \). To find the slope between two points, you use the formula: \[ m = \frac{y_2 - y_1}{x_2 - x_1} \]
This formula essentially takes the difference in the \( y \)-values and divides it by the difference in the \( x \)-values. If the slope is constant (the same between any pair of points), then the function is linear.
In our example, the points given were: (-2, -8), (-1, -3), (0, 0), (1, 1), and (2, 0). We used the slope formula to calculate the slopes between each adjacent pair of points:
- From (-2, -8) to (-1, -3): \( m = 5 \)
- From (-1, -3) to (0, 0): \( m = 3 \)
- From (0, 0) to (1, 1): \( m = 1 \)
- From (1, 1) to (2, 0): \( m = -1 \)
Since these slopes are different, we conclude that the function is nonlinear.