Equations of Lines and Slope
1. Understanding Slope
Learning outcomes
- I can explain slope as a measure of steepness and direction.
- I can calculate slope from the coordinates of two points.
- I can identify positive, negative, zero, and undefined slopes.
- I can interpret the meaning of slope in real-world contexts.
- I can compare lines based on their slopes.
Understanding Slope
Slope is a measure of how steep a line is and the direction in which the line moves as you travel from left to right.
Slope describes the rate of change between two quantities. It tells us how much the vertical value changes for each unit of horizontal change.
For example:
- a steep hill has a large slope
- a flat road has a slope of zero
- a line rising from left to right has a positive slope
- a line falling from left to right has a negative slope
Slope is one of the most important ideas for understanding linear relationships.
Slope as Steepness
Imagine several ramps.
A ramp that rises quickly over a short horizontal distance is:
steep
A ramp that rises slowly over a long horizontal distance is:
less steep
Slope gives us a mathematical way to compare this steepness.
A greater absolute value of slope means a steeper line.
For example:
m = 5 is steeper than m = 2
m = −6 is steeper than m = −3
The negative sign describes direction, not how steep the line is.
Therefore, when comparing steepness, consider:
|m|
Slope as Direction
Slope also tells us which way a line moves as x increases.
Reading a graph from left to right:
line rises → positive slope
line falls → negative slope
line remains horizontal → zero slope
line is vertical → undefined slope
These four slope types are fundamental.
Rise Over Run
Slope is often described as:
slope = rise/run
The rise is the vertical change.
The run is the horizontal change.
Therefore:
m = change in y/change in x
or:
m = Δy/Δx
The symbol Δ means:
change in
So:
Δy = change in y
Δx = change in x
Calculating Slope from Two Points
If two points on a line are:
(x₁, y₁) and (x₂, y₂)
the slope is:
m = (y₂ − y₁)/(x₂ − x₁)
The numerator calculates the vertical change.
The denominator calculates the horizontal change.
An important rule is:
subtract the coordinates in the same order.
If you calculate y₂ − y₁ in the numerator, you must calculate x₂ − x₁ in the denominator.
Worked Example: Positive Slope
Find the slope between:
(2, 3) and (6, 11)
Use:
m = (y₂ − y₁)/(x₂ − x₁)
Substitute:
m = (11 − 3)/(6 − 2)
m = 8/4
m = 2
The slope is positive.
This means that for every increase of 1 in x:
y increases by 2
The line rises from left to right.
Understanding the Answer
A slope of:
m = 2
can also be written:
m = 2/1
This means:
rise = 2
run = 1
So you can move along the line by going:
right 1, up 2
Other equivalent movements include:
right 2, up 4
right 3, up 6
right 5, up 10
They all have the same ratio:
rise/run = 2
Worked Example: Negative Slope
Find the slope between:
(1, 8) and (5, 2)
m = (2 − 8)/(5 − 1)
m = −6/4
m = −3/2
The negative slope means the line falls from left to right.
For every 2 units moved to the right:
y decreases by 3
Understanding Negative Slope
A slope of:
m = −3/2
can be interpreted as:
right 2 → down 3
because:
rise = −3
run = 2
You could also write:
3/−2
which represents:
left 2 → up 3
Both movements follow the same line.
The Four Types of Slope
Every straight line has one of four slope classifications.
| Type | Appearance from Left to Right | Slope |
|---|---|---|
| Positive | Rises | m > 0 |
| Negative | Falls | m < 0 |
| Zero | Horizontal | m = 0 |
| Undefined | Vertical | Undefined |
Positive Slope
A line has a positive slope when y increases as x increases.
For example:
m = 3
means:
y increases by 3 for every increase of 1 in x
Positive slopes rise from:
lower left → upper right
Examples of positive rates might include:
- money earned as hours worked increase
- distance travelled as time increases
- water level rising as water is added
Negative Slope
A line has a negative slope when y decreases as x increases.
For example:
m = −4
means:
y decreases by 4 for every increase of 1 in x
Negative slopes fall from:
upper left → lower right
Examples might include:
- fuel remaining as distance travelled increases
- money remaining as purchases are made
- altitude decreasing during a steady descent
Zero Slope
A horizontal line has:
m = 0
Suppose two points are:
(2, 5) and (8, 5)
Then:
m = (5 − 5)/(8 − 2)
m = 0/6
m = 0
There is no vertical change.
The y-value remains constant.
Interpreting Zero Slope
A zero slope means:
no change in y as x changes
For example, imagine a tank containing exactly 500 L of water over a period when no water enters or leaves.
If:
x = time
y = water volume
then the graph would be horizontal.
Its slope would be:
0 L/min
Undefined Slope
A vertical line has an:
undefined slope
Consider:
(4, 2) and (4, 9)
Then:
m = (9 − 2)/(4 − 4)
m = 7/0
Division by zero is undefined.
Therefore:
the slope is undefined
Why Vertical Lines Have Undefined Slope
For a vertical line:
Δx = 0
The horizontal change is zero.
Since:
m = Δy/Δx
we would need to divide by zero.
Division by zero is not defined.
Therefore, a vertical line does not have a slope of zero.
It has:
undefined slope
Zero vs Undefined Slope
These are often confused.
Horizontal line
Δy = 0
m = 0/Δx
m = 0
Vertical line
Δx = 0
m = Δy/0
m is undefined
A useful reminder is:
horizontal = zero
vertical = undefined
Calculating Slope in Either Direction
Suppose the points are:
(2, 3) and (6, 11)
We previously calculated:
m = (11 − 3)/(6 − 2)
m = 8/4
m = 2
Now reverse the order:
m = (3 − 11)/(2 − 6)
m = −8/−4
m = 2
The answer is unchanged.
You may subtract the points in either order as long as you use:
the same order in the numerator and denominator.
A Common Calculation Error
Suppose the points are:
(2, 3) and (6, 11)
Incorrect:
m = (11 − 3)/(2 − 6)
m = 8/−4
m = −2
The mistake is that the subtraction order changed between the numerator and denominator.
Correct:
m = (11 − 3)/(6 − 2)
or:
m = (3 − 11)/(2 − 6)
Both give:
m = 2
Slope from a Graph
You can also calculate slope directly from a graph.
Choose two clear points on the line.
Then determine:
rise = vertical change
run = horizontal change
Finally:
m = rise/run
For greater accuracy, choose points that lie exactly on grid intersections when possible.
The Slope Triangle
A slope triangle can help visualize rise and run.
Starting from one point:
- move horizontally to the x-coordinate of the second point
- move vertically to reach the second point
The horizontal side represents:
run
The vertical side represents:
rise
Then:
m = rise/run
Different slope triangles along the same straight line produce equivalent ratios.
Example from a Graph
Suppose moving from one point to another requires:
right 4
up 6
Then:
rise = 6
run = 4
m = 6/4
m = 3/2
If another larger triangle gives:
rise = 12
run = 8
then:
m = 12/8
m = 3/2
The slope remains constant because the line is straight.
Slope as a Rate of Change
Slope does more than describe the appearance of a graph.
It represents:
rate of change
In general:
slope = change in output/change in input
If x represents time and y represents distance:
slope = change in distance/change in time
This is a speed or rate of travel.
If x represents hours worked and y represents money earned:
slope = change in money/change in hours
This represents earnings per hour.
Units of Slope
Slope often has meaningful units.
Suppose:
x = time in hours
y = distance in kilometres
Then:
slope = kilometres/hours
The units are:
km/h
Suppose:
x = number of tickets
y = total cost in dollars
Then:
slope = dollars/ticket
The units are:
$/ticket
Always interpret slope using:
y-units per x-unit
Worked Example: Distance and Time
A cyclist has travelled:
20 km after 1 hour
and:
60 km after 3 hours
The points are:
(1, 20) and (3, 60)
Calculate:
m = (60 − 20)/(3 − 1)
m = 40/2
m = 20
Units:
km/h
Interpretation:
The cyclist's distance increases by:
20 km for every additional hour
over this interval.
Worked Example: Earning Money
A worker earns:
$45 after 3 hours
and:
$105 after 7 hours
Slope:
m = (105 − 45)/(7 − 3)
m = 60/4
m = 15
Units:
$/hour
Interpretation:
The worker earns:
$15 for each additional hour worked
Worked Example: Decreasing Quantity
A tank contains:
800 L at 2 minutes
and:
500 L at 5 minutes
The points are:
(2, 800) and (5, 500)
Calculate:
m = (500 − 800)/(5 − 2)
m = −300/3
m = −100 L/min
The negative sign is important.
Interpretation:
The amount of water decreases by:
100 L each minute
Positive Slope in Context
A positive slope means the dependent variable increases as the independent variable increases.
Examples:
time increases → distance increases
hours worked increase → earnings increase
items sold increase → revenue increases
water added increases → volume increases
A positive slope therefore represents an:
increasing relationship
Negative Slope in Context
A negative slope means the dependent variable decreases as the independent variable increases.
Examples:
time increases → battery charge decreases
distance driven increases → fuel remaining decreases
time increases → amount of medicine in the body may decrease during a simplified interval
A negative slope represents a:
decreasing relationship
Zero Slope in Context
Zero slope means the output remains constant as the input changes.
Examples:
time passes → temperature remains constant
time passes → parked object's position remains constant
number of observations increases → a fixed reference value remains unchanged
The graph is horizontal.
Comparing Positive Slopes
Suppose two lines have slopes:
Line A: m = 2
Line B: m = 5
Both are positive.
Both rise from left to right.
However:
Line B is steeper
because:
|5| > |2|
It rises more rapidly for the same horizontal change.
Comparing Negative Slopes
Suppose:
Line A: m = −2
Line B: m = −7
Which is steeper?
Compare absolute values:
|−2| = 2
|−7| = 7
Therefore:
Line B is steeper
Although:
−7 < −2
the line with slope −7 has the greater steepness.
Comparing Positive and Negative Slopes
Suppose:
Line A: m = 4
Line B: m = −4
They have:
equal steepness
because:
|4| = |−4|
But they have opposite directions.
Line A rises from left to right.
Line B falls from left to right.
Comparing Lines Visually
If two lines are drawn on the same coordinate scale, their steepness can be compared visually.
A line closer to vertical generally has a greater absolute slope.
A line closer to horizontal has a smaller absolute slope.
However, visual comparison can be misleading if separate graphs use different axis scales.
The safest method is:
calculate and compare the slopes.
Parallel Lines
Distinct nonvertical parallel lines have:
the same slope
For example:
y = 3x + 2
and:
y = 3x − 5
both have:
m = 3
They never meet because they rise at exactly the same rate while having different vertical positions.
Slope and Linear Relationships
A straight line has a:
constant slope
This means its rate of change remains constant.
If a line has:
m = 4
then every increase of 1 in x produces an increase of 4 in y.
This constant rate of change is one of the defining features of a linear relationship.
Slope in y = mx + b
A common form of a linear equation is:
y = mx + b
where:
m = slope
b = y-intercept
For example:
y = 3x + 5
has:
m = 3
Therefore, y increases by 3 whenever x increases by 1.
The value 5 tells us where the line crosses the y-axis.
Example: Reading Slope from an Equation
Consider:
y = −2x + 7
The coefficient of x is:
−2
Therefore:
m = −2
The line has a negative slope.
It falls from left to right.
For every increase of 1 in x:
y decreases by 2
Fractional Slopes
Slope does not need to be a whole number.
For example:
m = 2/3
means:
right 3 → up 2
A slope of:
m = −1/4
means:
right 4 → down 1
Fractional slopes often describe lines that are less steep than lines with large whole-number slopes.
Decimal Slopes
Slope can also be expressed as a decimal.
For example:
m = 0.5
is equivalent to:
m = 1/2
This means:
right 2 → up 1
Similarly:
m = −0.25
is equivalent to:
m = −1/4
Slope and Constant Rate
Consider this table:
| x | y |
|---|---|
| 0 | 4 |
| 1 | 7 |
| 2 | 10 |
| 3 | 13 |
Each time x increases by 1:
y increases by 3.
Therefore:
slope = 3
Because the rate of change is constant, the relationship is linear.
Unequal x-Intervals
Be careful when x-values do not increase by equal amounts.
Consider:
| x | y |
|---|---|
| 1 | 5 |
| 3 | 11 |
| 7 | 23 |
From the first to second point:
Δy = 6
Δx = 2
m = 6/2 = 3
From the second to third:
Δy = 12
Δx = 4
m = 12/4 = 3
The y-values do not increase by the same amount, but the rate of change is still constant.
Therefore, the relationship is linear.
Slope and Average Rate of Change
For a straight line, slope is constant everywhere.
For a curved graph, however, the slope between two points represents the:
average rate of change over that interval
For example, if a car's distance-time graph curves, the car's speed is changing.
Calculating the slope between two points gives the average rate over that interval rather than a single constant rate for the entire journey.
Real-World Example: Temperature
Suppose the temperature is:
18°C at 8:00 a.m.
and:
24°C at 11:00 a.m.
Let x represent hours after 8:00 a.m.
The points are:
(0, 18) and (3, 24)
m = (24 − 18)/(3 − 0)
m = 6/3
m = 2°C/hour
Interpretation:
The temperature increased at an average rate of:
2°C per hour
during that period.
Real-World Example: Fuel
A vehicle has:
50 L of fuel at 0 km
and:
38 L after 180 km
Slope:
m = (38 − 50)/(180 − 0)
m = −12/180
m ≈ −0.067 L/km
The negative slope means fuel is being used.
A more convenient interpretation might be:
approximately 6.7 L per 100 km consumed over this interval.
The context determines the most useful way to express a rate.
Slope and Units Matter
Suppose a student calculates:
m = 12
This answer is incomplete in many real-world problems.
What does 12 mean?
It could mean:
- $12/hour
- 12 km/h
- 12 L/min
- 12°C/hour
- 12 people/year
A meaningful interpretation should include both:
value and units
Slope Does Not Always Mean Speed
Slope means:
rate of change
Speed is only one possible rate.
Depending on the graph, slope could represent:
- speed
- acceleration
- cost per item
- hourly wage
- population growth
- cooling rate
- water flow
- fuel consumption
- change in height
- change in temperature
Always examine the axis labels.
Choosing Two Points
When calculating slope from a graph, choose points carefully.
Good points:
- lie exactly on the line
- are easy to read
- preferably lie on grid intersections
- are reasonably far apart
Points farther apart can reduce the effect of small reading errors on a graph.
Do not automatically use points that are not actually on the line.
A Complete Comparison Example
Consider four lines:
Line A: m = 4
Line B: m = 1
Line C: m = −3
Line D: m = 0
Line A rises more steeply than Line B.
Line C falls from left to right.
Its steepness is greater than Line B because:
|−3| > |1|
Line D is horizontal.
Its slope is zero.
If a fifth line were vertical, its slope would be undefined.
A Reliable Strategy for Finding Slope
When given two points:
- Label the points (x₁, y₁) and (x₂, y₂).
- Write the slope formula.
- Calculate y₂ − y₁.
- Calculate x₂ − x₁.
- Keep the subtraction order consistent.
- Divide.
- Simplify the fraction if possible.
- Determine whether the slope is positive, negative, zero, or undefined.
- Include units if the problem has a real-world context.
- Interpret what the slope means.
A Reliable Strategy for Interpreting Slope
When given a slope in context, ask:
- What does x represent?
- What does y represent?
- What are the x-units?
- What are the y-units?
- Is the slope positive or negative?
- Is the relationship increasing or decreasing?
- What does one unit of x correspond to?
- What does the slope tell us about the change in y?
- Are the data continuous or discrete?
- Is the slope constant or only an average over an interval?
A good interpretation often follows:
"For every 1 [x-unit], y increases/decreases by [slope magnitude] [y-units]."
Common Mistakes
Reversing only one subtraction
If you reverse the y-values, you must also reverse the x-values.
Using x-change over y-change
Slope is:
change in y/change in x
not the reverse.
Ignoring negative signs
A negative slope communicates important information about direction.
Thinking −6 is less steep than −2 because −6 is a smaller number
Steepness depends on absolute value.
|−6| > |−2|
so −6 is steeper.
Saying a vertical line has slope zero
Horizontal lines have zero slope. Vertical lines have undefined slope.
Dividing by zero
If Δx = 0, the slope is undefined.
Forgetting units
Real-world slopes should usually be interpreted with y-units per x-unit.
Assuming every slope represents speed
Slope represents rate of change. Its meaning depends on the variables.
Comparing visual steepness on graphs with different scales
Different axis scales can make identical slopes look different.
Assuming equal changes in y prove a relationship is linear
You must consider the corresponding changes in x. The ratio Δy/Δx must remain constant.
Key Terms
Slope — measure of the steepness and direction of a line.
Rate of change — amount one variable changes compared with the change in another variable.
Rise — vertical change between two points.
Run — horizontal change between two points.
Δy — change in the y-coordinate.
Δx — change in the x-coordinate.
Positive slope — slope greater than zero; the line rises from left to right.
Negative slope — slope less than zero; the line falls from left to right.
Zero slope — slope of a horizontal line.
Undefined slope — slope of a vertical line, caused by division by zero.
Steepness — how rapidly a line rises or falls relative to horizontal change.
Absolute value — distance from zero; useful when comparing slope steepness.
Linear relationship — relationship with a constant rate of change and a straight-line graph.
Constant rate of change — rate that remains the same throughout a linear relationship.
Slope triangle — right triangle used on a graph to show rise and run.
y-intercept — point where a line crosses the y-axis.
Average rate of change — change in output divided by change in input over an interval.
Key Takeaways
- Slope measures both the steepness and direction of a line.
- Slope can be described as rise over run.
- Slope is calculated using m = Δy/Δx.
- From two points, use m = (y₂ − y₁)/(x₂ − x₁).
- Coordinate subtraction must be performed in the same order.
- A positive slope rises from left to right.
- A negative slope falls from left to right.
- A horizontal line has zero slope.
- A vertical line has undefined slope.
- A larger absolute slope means a steeper line.
- The sign of slope describes direction.
- The absolute value of slope helps describe steepness.
- Straight lines have constant slope.
- Distinct nonvertical parallel lines have equal slopes.
- Slope represents a rate of change between two variables.
- In real-world contexts, slope should be interpreted using units.
- Slope units are y-units per x-unit.
- A positive slope represents an increasing relationship.
- A negative slope represents a decreasing relationship.
- Zero slope represents a constant output.
- Different-looking graphs should not be compared visually unless their scales are the same.
- Slope does not always represent speed; its meaning depends on the variables.
- For nonlinear graphs, the slope between two points represents an average rate of change over that interval.
- Understanding slope provides the foundation for graphing linear equations and interpreting mathematical models.
Check Your Understanding
- Explain what slope tells us about a line.
- Describe the difference between steepness and direction when interpreting slope.
- Calculate the slope between the points (2, 5) and (6, 13).
- Calculate the slope between (1, 9) and (5, 1). Classify the slope.
- Find the slope between (−3, 4) and (5, 4). Explain what the result tells you about the line.
- Find the slope between (7, 2) and (7, 10). Explain why the slope is undefined.
- Which line is steeper: m = 3 or m = 7? Explain.
- Which line is steeper: m = −8 or m = −4? Explain why simply comparing −8 and −4 numerically can be misleading.
- Compare lines with slopes m = 5 and m = −5. How are their steepness and direction related?
- A cyclist travels 24 km after 1 hour and 72 km after 3 hours. Calculate the slope and interpret its meaning.
- A water tank contains 900 L after 2 minutes and 600 L after 5 minutes. Calculate the slope, include units, and explain the meaning of the negative sign.
- A student's earnings are represented by y = 18x + 25, where x is hours worked and y is dollars. Identify the slope and explain its real-world meaning.
- Two distinct lines both have slope −3. What can you conclude about the relationship between the lines?
- A graph appears steeper than another graph, but the two graphs use different axis scales. Explain why you should not rely only on their appearance to compare slopes.
- A student calculates the slope between (2, 4) and (8, 16) as (16 − 4)/(2 − 8) = −2. Identify the student's mistake and calculate the correct slope.