Math
algebramedium~20 min

Linear Functions, Slope, and Rate of Change

You will be able to calculate slope and explain it as a rate of change, move between slope-intercept, point-slope, and standard form without losing information, and build a linear model from a table, a graph, or a word problem. You will also be able to interpret what the slope and the intercept mean in a real context, count the solutions of a system of two lines, and handle parallel and perpendicular lines.

Introduction

A relationship is linear when equal steps in the input always produce equal steps in the output. Walk one more mile and the trip costs the same extra amount every time. Wait one more month and the balance drops by the same number of dollars every time. That single idea, constant change per unit, is the whole subject; everything else on this page is bookkeeping about how to write it down.

Linear functions are the single most heavily tested topic in SAT math. They dominate the Algebra domain, and they reappear inside problems that look like they are about something else: systems of equations, unit conversion, geometry with coordinates, and data interpretation questions that ask you to describe a line of best fit. The ACT tests the same ideas with a stronger emphasis on speed and on coordinate geometry, so you will see more questions about parallel and perpendicular lines, midpoints, and distance.

What separates a student who scores well here from one who does not is usually interpretation rather than arithmetic. Almost everyone can compute (y2 - y1) / (x2 - x1). Far fewer can look at C = 250 + 18h and say immediately that 250 is a one-time charge, 18 is dollars per hour, and the number 18 would be unchanged if the setup fee doubled. Both tests are built to reward the second skill, so this lesson spends as much time on meaning as on procedure.

Game plan

How to attack these questions on test day.
  1. 1

    Attach units to every number before you interpret it

    When a question asks what a coefficient or constant means, write the units first. In C = 250 + 18h the 18 is dollars per hour because it multiplies hours, and the 250 is dollars with nothing multiplying it, so it is the amount when h = 0. The slope always answers "how much per one more unit" and the intercept always answers "how much when the input is zero." Then check whether an input of zero is meaningful in the story; if x counts years since 2010, the intercept is the 2010 value, not today's.

  2. 2

    Two data points are a slope question in disguise

    A word problem that gives you two prices, two temperatures, or two populations at two different inputs is asking you to build y = mx + b. Compute the rate first, m = (y2 - y1) / (x2 - x1), because it needs both points at once. Then substitute either point to find b. Finish by substituting the other point; if it does not check, the error is almost always a sign slip in the slope.

  3. 3

    Read a system's solution count off the slopes

    Before solving any system of two linear equations, put both in y = mx + b form and compare. Different slopes means the lines cross exactly once. Equal slopes with different intercepts means parallel lines and no solution. Equal slopes and equal intercepts means the same line and infinitely many solutions. On the digital SAT, questions that ask for a constant that makes a system have no solution or infinitely many solutions are slope comparisons, not solving problems; do not eliminate variables until you have compared slopes.

  4. 4

    Get the slope out of standard form before flipping anything

    A parallel or perpendicular question that hands you Ax + By = C is testing whether you will misread A as the slope. Solve for y first, or use m = -A / B, and only then copy the slope for a parallel line or flip and negate it for a perpendicular one. Confirm a perpendicular pair by multiplying the two slopes: the product must be exactly -1.

  5. 5

    Test a table with equal input steps, not just equal output steps

    A table is linear only if the ratio of the change in y to the change in x is the same between every pair of rows. When the x values step evenly, constant first differences in y are enough. When they do not, divide each change in y by its change in x before you decide. Once the ratio is constant it is the slope, and any single row then gives you the intercept.

Theory

Slope is defined as the change in the output divided by the change in the input: m = (y2 - y1) / (x2 - x1) for any two distinct points on the line. The reason this ratio is safe to compute from any two points you like is that a line has the same steepness everywhere. Pick two points close together and two points far apart, and the right triangles formed by their rise and run are similar triangles, so the ratio of rise to run is identical. That is why a linear function has one slope rather than a slope that depends on where you look, and it is why a table that is genuinely linear will show the same output change for every equal step in the input.

Slope carries units, and paying attention to them prevents most interpretation errors. If y is measured in dollars and x in hours, then m is dollars per hour, because you divided dollars by hours. This makes slope a rate of change. A positive slope means the output grows as the input grows; a negative slope means it shrinks; a slope of zero means the output never moves, giving a horizontal line. A vertical line has no slope at all, because the run is zero and division by zero is undefined, which is also why vertical lines are not functions.

Slope-intercept form, y = mx + b, is the form to reach for when you want to graph quickly or read off the starting value. Here b is the output when x = 0, which is why it is called the y-intercept: it is where the line crosses the vertical axis. In a modeling problem b is the fixed part, the amount that exists before anything happens, and m is the repeating part, the amount added for each additional unit. Note that b is only a meaningful starting value when x = 0 is meaningful in the context; if x counts years since 2010, then b is the value in 2010, not the value now.

Point-slope form, y - y1 = m(x - x1), is the form to reach for when a question hands you a slope and a point that is not the intercept. It works because the slope formula, rearranged, says that for any point (x, y) on the line, (y - y1) / (x - x1) = m, and multiplying both sides by (x - x1) clears the fraction. Writing the line this way takes one step instead of the two steps it takes to substitute into y = mx + b and solve for b, and it is far less error prone under time pressure. You can always expand it into slope-intercept form afterward.

Standard form, Ax + By = C, is the form that shows up in constraint problems: A dollars per unit of one thing plus B dollars per unit of another equals a fixed budget C. Its two intercepts fall out instantly, since setting y = 0 gives x = C / A and setting x = 0 gives y = C / B. Its slope is -A / B, which you can confirm by solving for y: By = -Ax + C, so y = (-A / B)x + C / B. Recognizing standard form matters because the test likes to ask for the slope of a line that is written this way, hoping you will misread A as the slope.

Two distinct lines are parallel exactly when they have the same slope and different intercepts, since equal steepness means they never converge. Two lines are perpendicular exactly when their slopes multiply to -1, that is, when one slope is the negative reciprocal of the other. The reason is geometric: rotating a direction arrow with run p and rise q by ninety degrees produces an arrow with run -q and rise p, so the slope changes from q / p to p / -q = -p / q. Flip and negate. The same slope comparison decides how many solutions a system of two linear equations has, because a solution is a point that lies on both lines: different slopes cross exactly once, equal slopes with different intercepts never meet, and equal slopes with equal intercepts describe one line with infinitely many shared points. Finally, to recognize these question types quickly, watch for the phrases constant rate, per, each additional, and the request to interpret a coefficient; each is a signal that the underlying model is linear and that the tested skill is reading the slope or the intercept in context.

In the interactive graph below, drag the slope slider and watch the line tilt around its y-intercept while the x-intercept marker slides along the axis; its position is always -b / m, which is why it races away as the slope approaches zero. Drag the intercept slider and watch the whole line slide up and down without changing its steepness. Set the slope to 0 to get a horizontal line and notice the x-intercept readout disappears, then try to find pairs of slopes that would meet at a right angle, such as 2 and -0.5.

Worked figures

Constant first differences signal a linear function

The x values step up by 1 each row. The y values step up by 4 every time, so y is linear with slope 4 and intercept 7, giving y = 4x + 7. The z values start at the same 7 but their changes grow by 2 each row, so z is not linear; a single row that breaks the pattern is enough to rule a line out.

Table 1
xyChange in yzChange in z
07--7--
111492
2154134
3194196
4234278
52743710

Same slope, different intercepts: parallel lines

Both lines climb 3 units for every 2 units to the right, so both have slope 1.5 and they never meet. Changing b slides the entire line up or down without tilting it: the intercepts are (0, 2) and (0, -3), and the lower line crosses the x-axis at (2, 0) because 1.5(2) - 3 = 0.

Figure 1
-8-6-4-2024681012-4-202468(0, 2)(0, -3)(2, 0)xy
  • y = 1.5x + 2
  • y = 1.5x - 3

Perpendicular slopes are negative reciprocals

Both lines pass through (0, 3), but one has slope 2 and the other has slope -0.5. Their product is -1, which is exactly the condition for a right angle at the crossing point. The steep line reaches the x-axis at (-1.5, 0) and the shallow one at (6, 0).

Figure 2
-6-4-20246810-6-4-202468(0, 3)(-1.5, 0)(6, 0)xy
  • y = 2x + 3
  • y = -0.5x + 3

Reading slope and intercept in context

A phone plan costs 15 dollars per month plus 10 cents per minute, so C = 15 + 0.10m. Notice the cost at 0 minutes is the fixed 15 dollars, and every extra 50 minutes adds exactly 5 dollars: the intercept is the fixed charge and the slope is the per-minute rate.

Table 2
Minutes used (m)Monthly cost in dollars (C)Change from previous row
015.00--
5020.005.00
10025.005.00
15030.005.00
20035.005.00

A system's solution is where the lines cross

The lines y = 2x - 1 and y = -x + 5 have different slopes, so they meet exactly once. Setting the right sides equal gives 2x - 1 = -x + 5, so 3x = 6 and x = 2, and then y = 2(2) - 1 = 3. The point (2, 3) is the only pair that satisfies both equations at the same time.

Figure 3
-4-202468-2-101234567x = 2y = 3solution (2, 3)(0, -1)(0, 5)xy
  • y = 2x - 1
  • y = -x + 5

How many solutions a system of two lines can have

Compare slopes first and intercepts second. Two lines cross once, never, or everywhere, and there is no fourth possibility, because two distinct straight lines cannot meet in two separate points.

Table 3
Slopesy-interceptsNumber of solutionsExample
DifferentAnyExactly oney = 2x - 1 and y = -x + 5 meet at (2, 3)
SameDifferentNoney = 1.5x + 2 and y = 1.5x - 3 are parallel
SameSameInfinitely manyy = 4x - 7 and 8x - 2y = 14 are the same line

Try it yourself

slope (m)2
y-intercept (b)3
Equation
y = 2x + 3
Slope
2
y-intercept
(0, 3)
x-intercepts
x = -1.5

Worked examples

Try each one before opening the solution.

Example 1: Build the equation from a table

A table gives the pairs (2, 19), (5, 10), (8, 1), and (11, -8). Confirm the relationship is linear and write its equation in slope-intercept form.

y = -3x + 25 through the four table points
-10-5051015202530024681012y-intercept (0, 25)(2, 19)(5, 10)(8, 1)(11, -8)xy
  • y = -3x + 25
Show solution
  1. Check the input steps: 5 - 2 = 3, 8 - 5 = 3, 11 - 8 = 3, so x steps by 3 every row.

    Equal input steps are required before first differences in y mean anything.

  2. Check the output steps: 10 - 19 = -9, 1 - 10 = -9, -8 - 1 = -9, so y changes by -9 every row and the relationship is linear.
  3. Compute the slope as change in y over change in x: m = -9 / 3 = -3.

    The slope is not -9. Each -9 drop happens over 3 units of x, so the rate per single unit is -3.

  4. Find b by substituting the point (2, 19) into y = -3x + b: 19 = -3(2) + b, so 19 = -6 + b.

    The table has no x = 0 row, so the intercept must be solved for rather than read off.

  5. Solve for b: b = 19 + 6 = 25, so the equation is y = -3x + 25.
  6. Check against a point you did not use: at x = 11, y = -3(11) + 25 = -33 + 25 = -8, which matches the table.

Answer: y = -3x + 25

Example 2: Interpret a rate in context

A print shop charges a one-time setup fee plus a fixed price per shirt. An order of 20 shirts costs 190 dollars and an order of 50 shirts costs 400 dollars. Find the cost of 80 shirts.

C = 7n + 50
01002003004005006007000102030405060708090n = 80setup fee (0, 50)(20, 190)(50, 400)(80, 610)shirts (n)cost in dollars (C)
  • C = 7n + 50
Show solution
  1. Write the two facts as points with shirts as the input: (20, 190) and (50, 400).

    Cost depends on the number of shirts, so shirts go on the x-axis and dollars on the y-axis.

  2. Compute the slope: m = (400 - 190) / (50 - 20) = 210 / 30 = 7, so each shirt costs 7 dollars.

    Slope has units of dollars per shirt, which is exactly the per-shirt price the problem describes.

  3. Substitute (20, 190) into C = 7n + b: 190 = 7(20) + b, so 190 = 140 + b.
  4. Solve for b: b = 190 - 140 = 50, so the model is C = 7n + 50 and the setup fee is 50 dollars.

    Check with the other point: 7(50) + 50 = 350 + 50 = 400. It matches.

  5. Evaluate at n = 80: C = 7(80) + 50 = 560 + 50 = 610.

Answer: 80 shirts cost 610 dollars; the model is C = 7n + 50 with a 50 dollar setup fee and 7 dollars per shirt.

Example 3: Perpendicular line through a given point

Find the equation of the line perpendicular to 2x - 5y = 20 that passes through (4, -3).

2x - 5y = 20 and the perpendicular through (4, -3)
-8-6-4-20246810-20246810(4, -3)(0, -4)(0, 7)xy
  • 2x - 5y = 20
  • y = -2.5x + 7
Show solution
  1. Solve the given equation for y: -5y = -2x + 20, so y = (2/5)x - 4.

    The slope is not 2. In standard form the slope is -A / B = -2 / (-5) = 2/5.

  2. Take the negative reciprocal of 2/5 to get the perpendicular slope: -5/2.

    Flip and negate. Check: (2/5)(-5/2) = -1.

  3. Use point-slope form with (4, -3): y - (-3) = (-5/2)(x - 4), that is y + 3 = (-5/2)(x - 4).

    Point-slope avoids solving for b as a separate step.

  4. Distribute: y + 3 = (-5/2)x + 10, because (-5/2)(-4) = 10.
  5. Subtract 3 from both sides: y = (-5/2)x + 7.
  6. Verify the point: at x = 4, y = (-5/2)(4) + 7 = -10 + 7 = -3, which is the given point.

Answer: y = (-5/2)x + 7

Example 4: Choose a constant so a system has no solution

For what value of k does the system {3x2y=6kx+4y=9\begin{cases} 3x - 2y = 6 \\ kx + 4y = 9 \end{cases} have no solution?

3x - 2y = 6 and -6x + 4y = 9 are parallel
-10-50510-4-20246(0, -3)(0, 2.25)xy
  • 3x - 2y = 6
  • -6x + 4y = 9
Show solution
  1. Translate the phrase: no solution means the two lines are parallel, so they must have equal slopes and different y-intercepts.

    Decide this before any algebra. Infinitely many solutions would need equal slopes and equal intercepts as well.

  2. Solve the first equation for y: -2y = -3x + 6, so y = (3/2)x - 3. Its slope is 3/2 and its intercept is -3.
  3. Solve the second equation for y: 4y = -kx + 9, so y = (-k/4)x + 9/4. Its slope is -k/4 and its intercept is 9/4.

    Keep k inside the slope; it is the only unknown left.

  4. Set the slopes equal: -k/4 = 3/2, so k = -4(3/2) = -6.
  5. Confirm the intercepts differ: -3 is not 9/4, so with k = -6 the lines are distinct and parallel, and the system has no solution.

    If the intercepts had matched, the lines would coincide and the system would have infinitely many solutions instead.

Answer: k = -6

Practice

Check your understanding 1

A line passes through the points (2, 7) and (6, 19). What is the slope of the line?

Check your understanding 2

A line has slope -2 and passes through the point (3, -1). Which equation represents this line in slope-intercept form?

Check your understanding 3

A water tank is draining. The volume of water remaining, in gallons, after t minutes is given by V = 480 - 12t. What does the number 12 represent in this model?

Check your understanding 4

Which equation represents the line that is perpendicular to the line 3x + 4y = 8 and passes through the point (0, -2)?

Check your understanding 5

How many solutions does the system y = 4x - 7 and 8x - 2y = 14 have?

Check your understanding 6

A linear function f has the values f(1) = 5, f(2) = 8, f(4) = 14, and f(7) = 23. Which equation defines f?

Common mistakes

Inverting the slope formula. Students who are rushing sometimes compute run over rise, (x2 - x1) / (y2 - y1), which produces the reciprocal of the correct answer. The fix is to say the words out loud as you write: rise over run, change in output over change in input. If your answer is the reciprocal of a listed choice, you probably made this error, and the test writers will have included that reciprocal as a distractor.

Mismatching the order of subtraction. If you compute the numerator as y2 - y1 you must compute the denominator as x2 - x1, using the same point as the starting point in both. Subtracting in opposite orders flips the sign of the slope, turning an uphill line into a downhill one. Circle which point you are calling point one before you compute anything.

Treating the first row of a table as the y-intercept. The intercept b is the output when x = 0, not the first output listed. If a table starts at x = 3, the value there is not b, and you must either extend backward or solve for b algebraically. This mistake is especially costly in modeling questions that ask for the fixed cost or initial amount.

Using the reciprocal without negating it for perpendicular lines. A line with slope 3/4 is perpendicular to a line with slope -4/3, not 4/3. Both the flip and the sign change are required. A quick sanity check is that perpendicular slopes must have opposite signs, since one line goes uphill and the other goes downhill, unless one is horizontal and the other vertical.

Assuming a table is linear because the outputs change by a constant amount, without checking that the inputs step by a constant amount. Outputs of 5, 8, 11 look linear, but if the inputs are 1, 2, 4, the rates are 3 per unit and then 1.5 per unit, so the relationship is not linear. Always confirm equal input steps before you read off first differences.

Stopping at equal slopes when a system question asks about solutions. Equal slopes tell you the lines are parallel or identical, but not which. You must also compare the intercepts: different intercepts means no solution, equal intercepts means infinitely many. A question that asks for the constant that gives infinitely many solutions requires both conditions, and choosing the value that only matches the slopes is the most common wrong answer.