3.2 Linear Functions, Slope & Graphs of Lines

Key Takeaways

  • Slope m = (y2 - y1)/(x2 - x1) is the constant rate of change of a linear function; it is undefined when x1 = x2, which is a vertical line.
  • Slope-intercept form y = mx + b reads the slope and y-intercept straight off the equation, while point-slope form y - y1 = m(x - x1) is the fastest way to build a line from a point and a slope.
  • Two distinct lines are parallel when m1 = m2 and perpendicular when m1 * m2 = -1, meaning their slopes are negative reciprocals.
  • A horizontal line y = k has slope 0 and is a function; a vertical line x = h has undefined slope and is not a function.
  • In an applied linear model f(x) = mx + b, the slope is the amount of change per unit of input and b is the starting or fixed value at x = 0.
Last updated: August 2026

3.2 Linear Functions, Slope & Graphs of Lines

The College Board's description of the CLEP College Algebra examination states that the test includes questions on linear and quadratic equations, inequalities, and graphs. Section 3.1 solved linear equations algebraically; this section handles the geometric half — the linear function f(x)=mx+bf(x) = mx + b and the straight line that represents it. Lines also underpin systems of equations (Section 3.5), the feasible regions of linear inequality systems, transformations of the parent function f(x)=xf(x) = x, and every "rate of change" word problem on the exam.


Slope: The Constant Rate of Change

For any two distinct points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on a line, the slope is

m=y2y1x2x1=riserun=ΔyΔx,x1x2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}} = \frac{\Delta y}{\Delta x}, \quad x_1 \neq x_2

What makes a function linear is that this ratio is the same for every pair of points you pick. That is the defining test: if a table of values shows equal changes in yy for equal changes in xx, the relationship is linear.

Slope ValueDirection of the LineReading It on a Graph
m>0m > 0IncreasingRises from left to right
m<0m < 0DecreasingFalls from left to right
m=0m = 0ConstantHorizontal line y=ky = k
mm undefinedNot a functionVertical line x=hx = h; the run is 00, so the quotient is undefined

Sign Trap: Subtract the coordinates in the same order top and bottom. Using y2y1x1x2\frac{y_2 - y_1}{x_1 - x_2} flips the sign of the slope, and the sign-flipped line is reliably offered as a distractor.


The Three Standard Forms of a Line

FormEquationUse It When
Slope-Intercepty=mx+by = mx + bYou want to read mm and the yy-intercept (0,b)(0, b) directly, or graph quickly
Point-Slopeyy1=m(xx1)y - y_1 = m(x - x_1)You know one point and the slope; this is the fastest construction form
StandardAx+By=CAx + By = CYou want intercepts fast, or you are setting up a system of equations

Converting is routine algebra: solve for yy to reach slope-intercept form, or clear fractions and move the variable terms to the left to reach standard form. From Ax+By=CAx + By = C with B0B \neq 0, the slope is m=ABm = -\frac{A}{B} — a shortcut worth memorising because it avoids a full rearrangement when a question asks only for the slope.

Intercepts of a Line

  • yy-intercept: set x=0x = 0 and solve for yy. In slope-intercept form it is simply (0,b)(0, b).
  • xx-intercept: set y=0y = 0 and solve for xx. For y=mx+by = mx + b with m0m \neq 0, it is (bm,0)\left(-\frac{b}{m}, 0\right).

Worked Example 1: Building a Line From Two Points

Problem: Find the equation of the line through (2,7)(-2, 7) and (4,5)(4, -5) in slope-intercept form, then give both intercepts.

  1. Compute the slope: m=574(2)=126=2m = \frac{-5 - 7}{4 - (-2)} = \frac{-12}{6} = -2
  2. Apply point-slope form using (2,7)(-2, 7): y7=2(x(2))=2(x+2)y - 7 = -2(x - (-2)) = -2(x + 2)
  3. Solve for yy: y7=2x4    y=2x+3y - 7 = -2x - 4 \implies y = -2x + 3
  4. Check with the other point: 2(4)+3=8+3=5-2(4) + 3 = -8 + 3 = -5 ✓.
  5. Intercepts: the yy-intercept is (0,3)(0, 3). Setting y=0y = 0 gives 0=2x+3    x=320 = -2x + 3 \implies x = \frac{3}{2}, so the xx-intercept is (32,0)\left(\frac{3}{2}, 0\right).

Parallel and Perpendicular Lines

  • Parallel: two distinct lines are parallel exactly when m1=m2m_1 = m_2 (and their yy-intercepts differ). Same slope, same yy-intercept means the lines coincide, not that they are parallel.
  • Perpendicular: m1m2=1m_1 \cdot m_2 = -1, so each slope is the negative reciprocal of the other. A slope of 35\frac{3}{5} pairs with 53-\frac{5}{3}.
  • The exception: a horizontal line (m=0m = 0) and a vertical line (undefined slope) are perpendicular, but their slopes cannot be multiplied. Handle this pair by inspection rather than by formula.

Worked Example 2: Perpendicular Line Through a Point

Problem: Find the equation of the line perpendicular to 3x4y=123x - 4y = 12 that passes through (6,1)(6, -1).

  1. Find the given line's slope using m=ABm = -\frac{A}{B}: m=34=34m = -\frac{3}{-4} = \frac{3}{4}.
  2. Take the negative reciprocal: the perpendicular slope is 43-\frac{4}{3}.
  3. Apply point-slope form: y(1)=43(x6)    y+1=43x+8y - (-1) = -\frac{4}{3}(x - 6) \implies y + 1 = -\frac{4}{3}x + 8
  4. Solve for yy: y=43x+7y = -\frac{4}{3}x + 7
  5. Verify perpendicularity: 34(43)=1\frac{3}{4} \cdot \left(-\frac{4}{3}\right) = -1 ✓.

Horizontal and Vertical Lines

LineEquationSlopeIs It a Function?
Horizontal through (a,k)(a, k)y=ky = k00Yes — every input maps to the single output kk
Vertical through (h,b)(h, b)x=hx = hUndefinedNo — it fails the Vertical Line Test

Students routinely swap these. Anchor them by remembering that y=ky = k states what yy always equals, which is a flat line, while x=hx = h states what xx always equals, which is an upright line.


Linear Models: Interpreting mm and bb in Context

When a linear function models a real situation, both parameters carry meaning:

f(x)=mchange per unit of xx+bvalue when x=0f(x) = \underbrace{m}_{\text{change per unit of } x} \cdot\, x + \underbrace{b}_{\text{value when } x = 0}

CLEP asks these as verbal-to-symbolic translation items, so practise reading the two numbers out of the sentence.

Worked Example 3: Building and Interpreting a Linear Model

Problem: A rental company charges a flat fee of 45 dollars plus 28 cents per mile driven. Write the cost CC as a function of miles mm, state what each parameter means, find the cost of a 150-mile trip, and determine how many miles produce a charge of 115 dollars.

  1. Identify the fixed amount: the 45-dollar deposit is charged regardless of distance, so it is the value at m=0m = 0 — the intercept.
  2. Identify the rate: 28 cents per mile is the change per unit of input — the slope.
  3. Write the model: C(m)=0.28m+45C(m) = 0.28m + 45
  4. Evaluate at 150 miles: C(150)=0.28(150)+45=42+45C(150) = 0.28(150) + 45 = 42 + 45 The cost is 87 dollars.
  5. Solve backwards for C=115C = 115: 115=0.28m+45    70=0.28m    m=250 miles115 = 0.28m + 45 \implies 70 = 0.28m \implies m = 250 \text{ miles}

Exam Trap: "Flat fee plus a rate" always gives an intercept plus a slope. Answer choices frequently multiply the flat fee by the variable as well — C(m)=45m+0.28C(m) = 45m + 0.28 or C(m)=45(m+0.28)C(m) = 45(m + 0.28) — so check which quantity is genuinely fixed before choosing.

Recognising a Linear Relationship in a Table

xx1357
yy1151-17-7

Each step of +2+2 in xx produces 6-6 in yy, so the ratio 62=3\frac{-6}{2} = -3 is constant and the relationship is linear with m=3m = -3. Back-solve for bb using (1,11)(1, 11): 11=3(1)+b    b=1411 = -3(1) + b \implies b = 14, giving y=3x+14y = -3x + 14. A table whose yy-differences are not constant for constant xx-steps is not linear — check it before assuming.

Test Your Knowledge

What is the equation, in slope-intercept form, of the line passing through the points (-3, 8) and (5, -4)?

A
B
C
D
Test Your Knowledge

A line is perpendicular to 2x + 5y = 20 and passes through the point (4, 3). What is its slope?

A
B
C
D
Test Your Knowledge

A gym charges a one-time $60 registration fee plus $22 per month. Which function gives the total cost C after t months, and what is the total cost after 9 months?

A
B
C
D
Test Your Knowledge

Which statement about the lines y = -4 and x = -4 is correct?

A
B
C
D