Deriving y = mx
Lines of the form y = mx pass through the origin.
star Slope is traditionally designated by the letter "m".

We know that the ratio of vertical increase to horizontal increase creates the slope of the line.
We also know that this ratio is constant (does not change) along the line.

pf1We have now shown that y = 2x is the equation of this line with a slope of 2 and passing through (0,0).

Given: slope of line = 2

Starting at the origin (0,0), we can draw a blue triangle with a rise of 2 and a run of 1 to illustrate this slope.

ALL triangles drawn on this line will now have a ratio of 2 to 1 for vertical increase to horizontal increase.

Let's draw a new triangle and label it's horizontal increase as x and its vertical increase as y.

pfslope1

(multiply both sides by x)
pfslope2

dividerdash

Now that we have the idea as to how we can establish the equation of a line by examining its slope, let's try to establish a more general formula. Remember that slope will be designated by m.

pf1We have now shown that   y = mx   is the equation of this line with a slope of m and passing through (0,0).

Given: slope of line = m

We are examining the same process again, only this time we are calling the slope "m" rather than assigning it a specific value.

Since the two triangles are similar we can set the ratios of their corresponding sides equal (forming a proportion).

pfslope4

(multiply both sides by x)
pfslope5

 

dividerdash

Deriving y = mx + b

Lines of the form y = mx + b do no pass through the origin, unless b = 0.
star Slope is designated by the letter "m" and "b" represents the y-intercept.

This approach will be similar to what we saw in the y = mx derivation.
Look carefully, as the work on the graph is a bit more complicated in this y = mx + b derivation.

pf8b

Given: slope of line = 1/2

We will be starting at the point (0,2) where the line crosses the y-axis for both of our triangles. This point is called the y-intercept, and is traditionally labeled as (0,b).

We can draw a blue triangle with a rise of 1 and a run of 2 to illustrate the given slope.

star We can NOT label the left side of the red triangle as simply y, because y represents the distance from the x-axis up to the top of the red right triangle.
The left side of the red triangle is actually y - 2.

Set up the ratios
to form the proportion.

pfslope7

arriw

(Multiply both sides by x.
Then add 2 to both sides.)

pfslope7


CONCLUSION: We have now shown that y = ½ x + 2 is the equation of this line
with a slope of 2 and passing through (0,2).

dividerdash

Now for the more general form.
Remember that the slope will be designated by m, and the y-intercept by b.

pf8b

Given: slope of line = m

We will be starting at the point (0,b) where the line crosses the y-axis for both of our triangles. This point is called the y-intercept, and is traditionally labeled as (0,b).

We can draw a blue triangle with a rise of m and a run of 1 to illustrate the given slope of m.

star We can NOT label the left side of the red triangle as simply y, because y represents the distance from the x-axis up to the top of the red right triangle.
The left side of the red triangle is actually y - b.

Set up the ratios
to form the proportion.

pfslope8

arriw

(Multiply both sides by x.
Then add b to both sides.)

pfslope9


CONCLUSION: We have now shown that y = mx + b is the equation of this line
with a slope of m and passing through
(0,b).


yellownotetransThe formula y = mx + b is an important formula.
You will need this formula for future studies in mathematics.


divider

NOTE: The re-posting of materials (in part or whole) from this site to the Internet is copyright violation
and is not considered "fair use" for educators. Please read the "Terms of Use".