Skills

Lines, Slope and Linear Equations

see every function move

3 min readfreeNot practiced

A line changes at a steady rate: the same step in xx always gives the same change in yy. That makes lines the measuring stick for every other function in this course. To see how fast a curve changes between two of its points, you draw the line through them and read its slope.

Slope

The slope of a line is its rise over its run, the change in yy divided by the change in xx, between any two of its points:

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

Subtract in the same order on top and bottom. For (−2,5)(-2, 5) and (4,−7)(4, -7): mm=−7−54−(−2)= \frac{-7 - 5}{4 - (-2)}=−126= \frac{-12}{6}=−2= -2.

The line through (1, 2) and (4, 8). A dashed horizontal run of 3 goes from (1, 2) to (4, 2) and a dashed vertical rise of 6 goes up to (4, 8), so the slope is 6/3 = 2.
Figure 1. From (1,2)(1, 2) to (4,8)(4, 8) the run is 33 and the rise is 66, so the slope is 22. LevlPrep original diagram.
SlopeThe lineExample
positiverises left to righty=2x+1y = 2x + 1
negativefalls left to righty=−3x−2y = -3x - 2
00horizontaly=4y = 4
undefinedvertical (run 00)x=4x = 4

Equations of a line

Point-slope form uses one point (x1,y1)(x_1, y_1) and the slope mm: y−y1=m(x−x1)y - y_1 = m(x - x_1). It says that from the known point, yy changes by mm times the change in xx. Solved for yy, it is y=y1+m(x−x1)y = y_1 + m(x - x_1), the form you will use to estimate values.

Slope-intercept form y=mx+by = mx + b has slope mm and yy-intercept (0,b)(0, b).

Worked example 1. Find the line through (2,10)(2, 10) and (6,22)(6, 22), and its value at x=3x = 3.

Slope: mm=22−106−2= \frac{22 - 10}{6 - 2}=124= \frac{12}{4}=3= 3.

Point-slope form from (2,10)(2, 10): y−10=3(x−2)y - 10 = 3(x - 2), so y=10+3(x−2)y = 10 + 3(x - 2).

At x=3x = 3: y=10+3(1)=13y = 10 + 3(1) = 13. In slope-intercept form the line is y=3x+4y = 3x + 4.

When you rewrite point-slope form, distribute the slope to both terms: y−4=−3(x+2)y - 4 = -3(x + 2) becomes y−4=−3x−6y - 4 = -3x - 6, so y=−3x−2y = -3x - 2.

A line through two points of a curve

The two points do not have to come from a line. For f(x)=x2f(x) = x^2, the points (2,f(2))=(2,4)(2, f(2)) = (2, 4) and (5,f(5))=(5,25)(5, f(5)) = (5, 25) are on a curve, and the line through them has slope 25−45−2=7\frac{25 - 4}{5 - 2} = 7. The next topic gives this slope its own name and uses it to measure how fast ff changes; the algebra is the same as here.

Slope in context

When xx and yy are quantities, the slope has units of output per input. For a phone plan C(m)=15+0.10mC(m) = 15 + 0.10m dollars for mm minutes, the slope is 0.100.10 dollars per minute: each extra minute adds $0.10. The intercept, $15, is the cost at m=0m = 0.

Spot a mistake on this page?