Slopes, Rates of Change, and Similar Triangles

In this lesson, you will learn a formula to compute the slope of a line using any two points on the line (not just points whose $x$-coordinates differ by 1). You will also use similar triangles to see why this formula works, and why the line with slope $m$ and $y$-intercept $(0, b)$ is the graph of the equation $y=mx+b$.


Slope as rate of change

Jane is descending a 20-foot rock. She climbs down the rock at a rate of 2 feet per minute (so, each minute her height decreases by 2 feet).

In this example $t$ represents time in minutes and $h$ represents Jane’s height in feet. When $t=0$, $h=20$. What is $h$ when $t=1$? Enter the value you just found in the $h$ column corresponding to $t=1$ in the table to the right. Repeat this for the other $t$ values in the table to chart her progress. The points representing Jane’s height are plotted on the grid to the left.
$t$$h$
What shape is formed by the points plotted on the grid to the left (triangle, circle, line, square, …)?
Click . What is the slope of the red line on the grid to the left? (Remember that slope is the amount of change in the height of a line as you move 1 unit to the right.)

The rate of change between the points $(0, 20)$ and $(2, 16)$ is:

$$\text"change in height"/\text"change in time" = {16-20}/{2-0} = {-4}/2 = -2$$

Find the rate of change between the points shown in the table below. All of these points are on the graph.

$t$- and $\cl"red"h$-
values
rate of change
Look at the rates of change that you just computed. Are they the same as each other or are they different from each other?
Is the slope of the line equal to those rates of change?

The slope of the line through the points $(x_1,y_1)$ and $(x_2,y_2)$ is:
$${y_2-y_1}/{x_2-x_1}$$

Computing more slopes

The formula $${y_2-y_1}/{x_2-x_1}$$ from slopeDef lets you compute slopes by using $x$-values that aren’t exactly one unit apart. Sometimes, this makes it easier to compute those slopes.

Compute the slope of each line by using the given $x$-values, and the formula $${y_2-y_1}/{x_2-x_1}$$.

EquationValuesSlope

Compute the slope of the line $$y=-3/2x+1$$ by using each of the given $x$-values.

ValuesSlope

As you can see, whenever the $x$-coordinate on the graph of $$y=-3/2x+1$$ changes by 2, the $y$-coordinate changes by $-3$ (goes down by 3). This is illustrated by the picture below.

You can say something similar for any line whose slope is a fraction:

For any numbers $p$ and $q$ with $q$ not equal to zero, a line of slope $$p/q$$ is the graph of an equation of the form $$y=p/q x + b$$. Changing the $x$-coordinate on that line by $q$ makes the $y$-coordinate change by $p$.

Similar triangles and slope

You have seen that it’s possible to compute the slope of a line by using any two points on that line, and you will get the same answer whichever points you choose. We will now explore why that is true.

Compute the slope of each line in the table below, by using the given $x$-values. In each case, a triangle will be drawn on the grid to the left, to the right of the line that is graphed. The horizontal side of the triangle shows the difference between the two $x$-values in the table, while the vertical side shows the difference between the two $y$-values. So the lengths of the sides of the triangle determine the numerator ($y_2-y_1$) and denominator ($x_2-x_1$) of the slope computation $${y_2-y_1}/{x_2-x_1}$$.

EquationValuesSlope

When the slope of a line is negative, the vertical side of the triangle will be below the horizontal side instead of above it. (Its length will still be positive, because lengths are always positive.)

EquationValuesSlope

The line $$\cl"red"{y = 1/2 x + 2}$$ is graphed on the grid to the left, along with a triangle like the ones in slope-triangle-qn, representing a slope computation for this line. You can slide the $d$ slider to translate (move) the triangle along the line, and slide the $r$ slider to dilate (expand and contract) the triangle about its bottom left point.

As you slide these sliders, does the bottom side of the triangle stay horizontal?
Does the right side of the triangle stay vertical?
Does the third side of the triangle stay on the line?
Does the triangle still represent a slope computation for the line as in slope-triangle-qn?

This is because translations and dilations take lines to parallel lines, so they transform horizontal lines to other horizontal lines, and vertical lines to other vertical lines. Also, these translations and dilations don’t change the red line.


As you slide the $d$ slider, does the horizontal side of the triangle change in length?
Does the vertical side of the triangle change in length?
Does sliding the $d$ slider change the value of the slope computation (the length of the vertical side divided by the length of the horizontal side)?

This works because translations don’t change length measurements (they are rigid motions).

As you slide the $r$ slider, does the horizontal side of the triangle change in length?
Does the vertical side of the triangle change in length?
When the $r$ slider is set to $1$, what do you get when you divide the length of the vertical side of the triangle by the length of its horizontal side?
When the $r$ slider is set to $2$, what do you get when you divide the length of the vertical side of the triangle by the length of its horizontal side?
When the $r$ slider is set to $1.6$, what do you get when you divide the length of the vertical side of the triangle by the length of its horizontal side?
Does sliding the $r$ slider change the value of the slope computation (the length of the vertical side divided by the length of the horizontal side)?

Dilations change length measurements, but they multiply all lengths by the same number $r$. So dilations don’t change the result of the slope computation $${y_2-y_1}/{x_2-x_1}$$, which depends on the quotient (or ratio) of two length measurements.

Any two triangles that you get in this way can be transformed into each other by translating and dilating, so the triangles are similar (have the same shape, but not necessarily the same size).

The line $$\cl"red"{y=3/4 x - 1}$$ is graphed on the grid to the left. Two triangles like the ones in slope-triangle-qn are drawn on that line, representing two different slope computations for this line. You can slide the $d$ slider to translate (move) one of those triangles along the line, and slide the $r$ slider to dilate (expand and contract) that triangle about its bottom left point. The transformed triangle will be drawn in red.

How far do you have to translate the red triangle (slide the $d$ slider) in order to make its bottom left point coincide (match up exactly) with the bottom left point of the black triangle?
Once you have done that, how much do you have to dilate the red triangle (slide the $r$ slider) in order to make the entire red triangle coincide with the entire black triangle?
By using a translation like the ones given by the $d$ slider, can you get the bottom left points of any two slope computation triangles for this line to coincide?
Then by using a dilation like the ones given by the $r$ slider, can you get the top right points of any two slope computation triangles for this line to coincide?
Once these bottom left and top right points coincide, will the entire triangles coincide?

Because any two slope computations for this line can be connected by these transformations, and these transformations do not change the value you get from a slope computation, any two slope computations must result in the same value. That is, you can use the formula $${y_2-y_1}/{x_2-x_1}$$ with any two points $(x_1,y_1)$ and $(x_2,y_2)$ on the line, and you will get the same number (the slope of the line). This is true for any non-vertical line.

Getting equations from slopes

The line drawn to the left passes through the origin $\cl"red"{(0,0)}$, and has slope 2. You can slide the $x$ slider to see various slope computation triangles for the line, using $(x_1,y_1) = \cl"red"{(0,0)}$ and $(x_2,y_2) = \cl"red"{(x,y)}$ for the point $\cl"red"{(x,y)}$ on the line.

Because the slope of the line is 2, the vertical side of the slope computation triangle must be 2 times as long as the horizontal side. What is the length of the vertical side when $x=1$ (and so the horizontal side has a length of 1)?
What are the coordinates of the point $(x,y)$ on the line with $x=1$?
What is the length of the vertical side when $x=2$?
What are the coordinates of the point $(x,y)$ on the line with $x=2$?
The vertical side of the triangle is 2 times as long as the horizontal side. What is the length of the vertical side of the triangle when its horizontal side has length $x$?
What are the coordinates of the point on the line with $x$-coordinate $x$?
What equation relates $x$ and $y$ when $(x, y)$ is a point on the line?
What are the coordinates of the point $(x,y)$ on the line with $x=-2$?
Is your equation relating $x$ and $y$ true for points on the line when $x$ is negative?

Click to see a line through the origin with slope $-2$. You can slide the $x$ slider to see various slope computation triangles for the line, using the points $(x_1,y_1) = \cl"red"{(0,0)}$ and $(x_2,y_2) = \cl"red"{(x,y)}$ on the line.

Because the slope of the line is $-2$, the vertical side of the slope computation triangle must be 2 times as long as the horizontal side (and go down from the horizontal side when $x$ is positive). What is the $y$-coordinate of the point on the line when $x=1$?
What are the coordinates of the point on the line with $x=2$?
What are the coordinates of the point with $x$-coordinate $x$?
What is the equation of this line?

Click to add an $m$ slider below the grid to the left, which controls the line’s slope. A slope computation triangle is still shown, using the points $(x_1,y_1) = \cl"red"{(0,0)}$ and $(x_2,y_2) = \cl"red"{(x,y)}$ on the line.

If the line has slope $m$, the numerator $y_2-y_1 = y-0 = y$ of this slope computation must be $m$ times as large as the denominator $x_2-x_1 = x-0 = x$, for any point $(x,y)$ on the line. What is the $y$-coordinate of the point on the line with $m=0.5$ when $x=2$?
When the slope is $0.5$, what is the $y$-coordinate of the point with $x$-coordinate $x$?
When the slope is $m$, what is the $y$-coordinate of the point with $x$-coordinate $x$? (Hint: Your answer is a letter, not a number.)
What equation relates $x$ and $y$ when $(x, y)$ is a point on the line?

As you can see:

If a line passing through the origin has slope $m$, its equation is $y=mx$.

The line drawn to the left has slope $2$ and $y$-intercept $\cl"red"{(0,1)}$. You can slide the slider to see various slope computation triangles for the line, along with the distance (marked in blue) between the horizontal side of each slope computation triangle and the $x$-axis.

As you slide the slider, does the distance from the horizontal side of the triangle to the $x$-axis change or stay the same?
What is the distance from the horizontal side of the triangle to the $x$-axis when $x=1$?
Because the slope of the line is 2, the vertical side of the slope computation triangle must be 2 times as long as the horizontal side. What is the length of the vertical side of the triangle when $x=1$?
What is the $y$-coordinate of the point on the line where $x=1$?
What is the length of the vertical side of the triangle when $x=2$?
What is the $y$-coordinate of the point on the line where $x=2$?
What is the length of the vertical side of the triangle when its horizontal side has length $x$?
What is the $y$-coordinate of the point with $x$-coordinate $x$?
What equation relates $x$ and $y$ when $(x, y)$ is a point on the line?
What are the coordinates of the point $(x,y)$ on the line with $x=-2$?
Is your equation relating $x$ and $y$ true for points on the line when $x$ is negative?

For each row in the table below, give an equation for the line with the given slope and $y$-intercept.

Slope$y$-interceptEquation

As you can see:

If a line has slope $m$ and $y$-intercept $(0, b)$, it is the graph of the equation $y=mx+b$.