Linear functions: crash course
about 12 min to listen9 lessons13 questions to tryUnit 8 of 17
Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.
You need first
1 One steady change, four ways to show it
The rule
A linear function has form mx , where fixed real numbers m and b give the constant rate m and input-zero output b.
Its graph lies on a straight nonvertical line. If , it is a polynomial of degree 1; if , it is a constant function.
How
- Name the input and output with their units.
- Find the starting amount b and constant rate m.
- Write words and formula, calculate table columns, and plot the same pairs.
- Keep the inputs permitted by the story.
Worked example
Worked example
A small rule, then the train
Find an output means put in the named input and calculate what comes out. Evaluate f(1) for f(x) = 2x + 1. Then represent D(t) = 83t + 250 in words, formula, table, and graph at two seconds.
Show the steps and the answer
- .The input replaces x, then multiplication happens before addition.
- Say: the train starts 250 meters away and adds 83 meters each second.The starting amount and the per-second amount describe different parts of the trip.
- meters.Two seconds add two groups of 83 to the starting distance.
- Read 416 directly below 2 in the train table.Each table column pairs its input with its output.
- Plot (2, 416), include (0, 250), and retain .Input is horizontal and output is vertical; elapsed time begins at zero.
- Small rule: f(1) = 3.
- Train words: 250 meters at the start plus 83 meters per second.
- Train formula: D(t) = 83t + 250, t ≥ 0 while the speed lasts.
- At two seconds: 416 meters, shown by the table column and point (2, 416).
The trap
Tip: Count the starting 250 once. Writing 333t would repeat the starting distance at every second.
2 Read the starting amount and the amount per step
The rule
In mx , slope m is output change per input unit and initial value .
The y-intercept or vertical intercept is the point (0, b).
How
- Identify input, output, and their units.
- Read the input coefficient as slope, with output-per-input units.
- Substitute zero to find the initial value and vertical intercept.
- Describe the start and rate in words, then evaluate any requested input.
Worked example
Worked example
Snow machine: starting depth and depth added per hour
A snow machine is switched on over a test patch at a ski hill. The snow depth on the patch, in inches, t hours after the machine is switched on is D(t) = 1.5t + 4. (a) Name the input and the output, with their units. (b) Give the slope with its units. (c) Find the initial value and the vertical intercept. (d) Describe the starting depth and the rate in words, then find D(6) and say what it means.
Show the steps and the answer
- Name the input and the output. Input: t, the time since the snow machine was switched on, in hours. Output: D(t), the snow depth on the patch, in inches.The slope is measured in output units per input unit and the initial value in output units, so the units have to be fixed before either number can be read.
- Compare with mx . The coefficient of the input t is 1.5, so the slope is , read as 1.5 inches per hour.In f(x) = mx + b the slope m is the change in output for each 1-unit increase in the input, so it carries output-per-input units: inches of depth per hour of running.
- Substitute : . So : the initial value is 4 inches, and the vertical intercept is the point (0, 4).The initial value is b = f(0), the output when the input is zero; here t = 0 is the moment the machine is switched on. The vertical intercept is the point (0, b), where the graph meets the vertical axis.
- Describe the start and the rate in words: when the machine is switched on, the patch already has 4 inches of snow, and the machine adds 1.5 inches of depth for every hour it runs.The initial value b is the starting amount and the slope m is the amount added for each 1-hour step of the input, so together, with their units, they describe the model in context.
- Evaluate the requested input: . After the machine has run for 6 hours, the snow on the patch is 13 inches deep.Evaluating D(6) means substituting 6 for t; the result is an output, so its unit is inches.
- (a) Input t: hours since the machine was switched on
- output D(t): snow depth in inches. (b) Slope m = 1.5 , so the depth grows 1.5 inches per hour. (c) Initial value D(0) = 4 inches
- vertical intercept (0, 4). (d) The patch starts with 4 inches of snow and gains 1.5 inches each hour
- D(6) = 13, so after 6 hours of running the snow is 13 inches deep.
Work to write
- Input: t = hours since the machine was switched on; output: D(t) = snow depth in inches
- Slope: m = 1.5 (1.5 inches per hour)
- D(0) = 1.5(0) + 4 = 4, so the initial value is b = 4 inches
- Vertical intercept: (0, 4)
- The patch starts with 4 inches of snow and gains 1.5 inches each hour
- D(6) = 1.5(6) + 4 = 13: after 6 hours the snow is 13 inches deep
The trap
Tip: At 33 feet, 14.322 PSI is the added pressure and 29.018 PSI is the total. Include the initial pressure when the question asks for pressure.
3 Increasing, decreasing and constant lines
The rule
In mx , m > 0 gives an increasing linear function, m < 0 gives a decreasing linear function, and gives a constant function with a horizontal line.
How
- Write the formula as mx + b and keep the sign attached to m.
- Read the input coefficient; if the term is absent, m = 0.
- Use positive, negative, or zero slope to classify the function.
- Compare outputs at two increasing allowed inputs.
- Keep counting inputs whole and remaining counts nonnegative.
Worked example
Worked example
Three formulas, then three text-message models
Classify means say what happens to output as input grows. First classify f(x) = 3x − 2, g(x) = −x + 5, and h(x) = 7. Then model sixty texts sent per day, texts remaining from a 500-text allowance at that rate, and a flat $50 monthly texting charge.
Show the steps and the answer
- For f, ; and , so the output increases.The positive coefficient adds three per step even though the start is negative.
- For g, ; and , so the output decreases.Two input steps remove two halves, totaling one.
- For h, write ; , so the output stays constant.An absent input term has coefficient zero.
- Let d count completed days within one billing month. Write sent texts as , with positive slope sixty texts per day.Every completed day adds sixty to a starting sent count of zero.
- Write remaining texts as . At day three, texts, with negative slope texts per day.Sent texts are removed from the original allowance.
- , but . Keep the completed-day remaining model only through day eight.A remaining count cannot be negative.
- Write dollars for the unlimited plan's charge within one billing month, with slope zero.The monthly charge does not vary with which day is observed.
- f(x) = 3x − 2: increasing.
- g(x) = −x + 5: decreasing.
- h(x) = 7: constant.
- Sent texts: T(d) = 60d, increasing, using whole completed days within the month.
- Remaining texts: R(d) = 500 − 60d, decreasing, using d in {0, 1, 2, 3, 4, 5, 6, 7, 8}.
- Current monthly charge: C(d) = 50 dollars, constant.
The trap
Tip: Classify by the input coefficient rather than the starting value. In 3x − 2, the positive three gives increasing behavior.
4 Slope: output change divided by input change
The rule
, where .
Units are output units per input unit.
How
- Label the two points so each input stays paired with its output. The subscripts 1 and 2 name points, while raised exponents name powers.
- Calculate rise as second output minus first output.
- Calculate run as second input minus first input, in matching order.
- If run is zero, stop. Otherwise divide rise by run and reduce.
- Attach units. Multiply slope by run to check that you recover the rise.
Worked example
Worked example
A small climb spread across two steps
Find the slope through (1, 2) and (3, 6). This asks how much the output changes for each one-unit increase in input.
Show the steps and the answer
- Rise .The output climbs from 2 to 6, four units upward.
- Run .That climb occurs across two input units.
- .Divide the total climb by the number of input units.
The trap
subtracting outputs in one order and inputs in the other reverses the sign. Use the same starting point for both differences.
Quick check
Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.
Try it · level 1 of 2
One step right
Find the slope through (0, 0) and (1, 2). This asks how high one step right takes you.
Show the steps and the answer
- Rise .The output increases two.
- Run .The input increases one.
- .Divide output change by input change.
5 Anchor a line with a slope and a point
The rule
point-slope form is .
Equivalently, mx with .
How
- Write m and the anchor (, ).
- Substitute into y − = m(x − ), keeping parentheses around negative coordinates.
- Distribute m to both terms.
- Add to both sides to isolate y and reveal b.
- Plug the original input into the final equation; its output must match the anchor. Check that the coefficient of x is still m.
Worked example
Worked example
Anchor a falling line at (−5, −1)
A line falls 2 units for every 5 units it runs to the right, so its slope is m = −. It passes through the point (−5, −1). Write the equation of the line in point-slope form, then rewrite it in slope-intercept form y = mx + b and state b. Check your equation at the given point.
Show the steps and the answer
- Write the slope and the anchor: and , so and .Point-slope form needs only these three numbers. Writing each one down with its sign before substituting keeps the double negatives in the next step under control.
- Substitute into , putting each negative coordinate in parentheses: . Simplify the double negatives: . This is the point-slope form.Subtracting a negative number is the same as adding, so y − (−1) becomes y + 1 and x − (−5) becomes x + 5. If the parentheses are dropped and you write y − 1 = −(x − 5), the line is anchored at (5, 1) instead of (−5, −1).
- Distribute to both terms in the parentheses: and , so .The slope multiplies the whole bracket x + 5, not just x. A negative slope times the positive 5 gives a negative product, so the constant is −2. Writing −x + 5 is the usual slip.
- Add to both sides: , so . The y-intercept is .Adding cancels the y − on the left and leaves y alone. The constant left on the right is b. Because is negative, adding it lowers the constant from −2 to −3. The rule's shortcut gives the same value: b = − m = −1 − (−)(−5) = −1 − 2 = −3.
- Plug the original input into : , which is the anchor's . The coefficient of x is , the given slope.The line we want has slope m and passes through (, ). Getting back at , with m still the coefficient of x, confirms both conditions. A sign slip anywhere in steps 2 to 4 would make the output miss −1.
Work to write
- y = −x − 3, so b = −3
- Check: −(−5) − 3 = 2 − 3 = −1 = , and the coefficient of x is − = m
The trap
y − 4 = 2(x − 1) switches the coordinates. The number beside y must be the output; the number beside x must be the input.
Quick check
Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.
Try it · level 2 of 3
Negative slope and input
Write the line with slope −3 through (−3, 7). This asks for a falling line anchored three units left of zero.
Show the steps and the answer
- .Subtract the actual negative input.
- .The negative slope multiplies both terms.
- Add 7: .This isolates y and reveals the initial value.
- At .Substituting the anchor checks both negative signs.
- Point-slope: y − 7 = −3(x + 3).
- Slope-intercept: y = −3x − 2.
6 Build the equation from two points
The rule
for distinct inputs, find , then .
Write mx or mx .
How
- Convert function values into coordinate pairs: f(a) = c becomes (a, c).
- Check that the inputs differ, then find slope in matching subtraction order.
- Use an input-zero point to read b directly, or use an available point in point-slope form.
- Rewrite in the requested form.
- Substitute both given inputs into the final rule; each output must match.
Worked example
Worked example
A first line from two small points
Find the line through (0, 1) and (2, 5). This asks for a rule returning both listed outputs at their corresponding inputs.
Show the steps and the answer
- .The output grows four while input grows two.
- from (0, 1).The output at input zero is the initial value.
- Write .Slope-intercept form combines the rate and starting value.
- At ; at .Both given points must fit the recovered line.
The trap
taking the first listed output as b. It gives b only when that point's input is zero; otherwise recover b by substitution.
Quick check
Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.
7 Read a graph and choose a method
The rule
For a nonvertical line, , then mx .
Read b at , or find from a known point.
How
- Read the numbers on both axes, because a drawn square need not mean one coordinate unit.
- Choose two exact labeled points with different x-coordinates, because a nonzero run is needed for the slope.
- Calculate output change divided by input change in the same point order, because reversing only one subtraction changes the sign.
- Read the output where x = 0 if that crossing is visible. Otherwise substitute a known point into y = mx + b and solve for b to find the unseen starting output.
- Write the equation and substitute both visible points, because a correct equation must give both of their outputs.
Worked example
Worked example
Read a small original graph
Writing the equation means finding a rule that gives every output on the pictured line. Find the equation of this original line through (0, 1) and (1, 2).
Show the steps and the answer
- At the vertical axis, and , so .The y-intercept is the output when the input is zero.
- .The output goes up 1 while the input goes up 1.
- Write .Slope-intercept form uses the slope 1 and the starting output 1.
The trap
Treating the left edge of the displayed window as the y-axis. The y-axis is where x = 0, which may not be shown.
Quick check
Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.
Try it · level 2 of 4
Count a rise and a longer run
Finding the equation means reading a change per single input unit. Use the original graph's points (0, −2) and (3, 0).
Show the steps and the answer
- Read from .The input at this crossing is zero.
- .A rise of 2 is spread over a run of 3, not a run of 1.
- Write .The fractional slope is the amount added per input unit.
8 Turn a real situation into a linear model
The rule
A constant-rate model has output starting amount rate input.
Write mx with units for m and b and a domain appropriate to the situation.
How
- Define the input and output, because a number without its meaning can lead to the wrong units or domain.
- Identify the starting amount b and rate m. If two totals are given, divide output change by input change to find m.
- If b is missing, substitute a known pair into output = mx + b and solve for b to recover the starting amount. Plug the value back into that pair.
- Write the model with its units and allowed inputs, because counting objects differs from measuring continuous time.
- For a given input, substitute it to find the output. For a target output, solve for the input, then plug it back in and check that it belongs to the domain.
Worked example
Worked example
One coin already there, two added per day
Finding the number of coins after one day means using input d = 1 to find the output. A jar starts with one coin and receives two coins at the end of every day. Write J(d) and find J(1).
Show the steps and the answer
- Let d be the number of completed days and J(d) the number of coins.The input counts daily deposits, so d is a nonnegative whole number.
- Write .There is 1 starting coin and each completed day contributes 2 coins.
- .An input of 1 means one daily deposit.
- J(d) = 1 + 2d, with d a nonnegative whole number.
- J(1) = 3 coins.
The trap
Using the first observed total as the initial value when its input is not zero. Remove its accumulated change to find the starting amount.
Quick check
Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.
Try it · level 3 of 5
Find salary from two earnings
Recovering the income rule means finding the pay per policy and the pay with no policies. Ilya earned $760 with three policies and $920 with five. Assume the same base salary and commission rate in both weeks.
Show the steps and the answer
- Read the pairs as (3, 760) and (5, 920).The input is policies and the output is weekly dollars.
- dollars per policy.Two extra policies earned $160 more, so each contributes $80.
- Find b from the three-policy week: , so subtract 240 to obtain .Removing the commissions isolates the base weekly salary.
- Plug back: . Write for nonnegative whole-number policy counts.The recovered salary must fit the observed week, and policies are counted as whole objects.
- I(n) = 80n + 520
- Commission: $80 per policy.
- Base salary: $520 per week.
9 Build and check a line from a table
The rule
With at least two distinct inputs and one output per input, compare on every adjacent interval of increasing inputs.
Equal rates mean the listed points fit mx . Read b under zero, or use mx.
How
- Arrange columns in increasing input order. Keep one copy of repeated identical pairs. Different outputs at the same input rule out a function, and one distinct pair alone does not determine a slope.
- Read each column as one input-output pair, because values in the same column belong together.
- For every neighboring pair, subtract the outputs and divide by the corresponding input difference, because unequal input gaps must be accounted for.
- Compare all the rates. If any differ, no single linear function fits the whole table exactly.
- If the rates match, read b in the column under zero. If zero is missing, substitute any listed pair and solve for b to recover the missing starting output.
- Substitute every listed input into the candidate equation, because fitting the first pair alone does not establish agreement with the whole table.
Worked example
Worked example
Start with a three-column table
Finding f(x) means making a rule that reproduces the output in every shown column. Use the pictured original table.
Show the steps and the answer
- From the column under 0 to the column under 1, .The output rises 1 over an input change of 1.
- From the column under 1 to the column under 2, .Every adjacent interval must have the same rate for one line to fit.
- Read in the output cell under input 0. Write .The common rate is 1 and the zero-input output is 1.
The trap
Looking only at the output differences when the input gaps change. Always divide by the actual input gap for that interval.
Quick check
Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.
Try it · level 2 of 4
Rat population with two-week gaps
Writing P(w) means finding the rat population rule that fits all four columns of the complete source table. Find the weekly rate even though the samples are two weeks apart.
Show the steps and the answer
- Read rats from the column under zero weeks.The zero-input output is the initial population.
- Check all rates: and rats per week.Every two-week gain must be divided by its input gap, and all intervals must agree.
- Write .The listed population values share the same modeled weekly rate and starting count.
10 Quick checks for the whole unit
Quick check 1 of 7
Find the slope through (−1, 4) and (2, −5).
Show the steps and the answer
Quick check 2 of 7
Write the line with slope −3 through (−1, 4).
Show the steps and the answer
Quick check 3 of 7
A linear function has f(0) = 6 and f(4) = 14. Find f(x).
Show the steps and the answer
Quick check 4 of 7
Is g(x) = −x + 5 increasing or decreasing?
Show the steps and the answer
Quick check 5 of 7
What kind of line is h(x) = 7?
Show the steps and the answer
Quick check 6 of 7
Can the train's elapsed-time input be 2.5 seconds? Can it be −2 seconds in the stated model?
Show the steps and the answer
- 2.5 seconds is allowed.
- −2 seconds is excluded.
- The domain is nonnegative real elapsed time, rather than only whole seconds.
Quick check 7 of 7
In C(x) = 1250 + 37.5x, give the meanings and units of both numbers.
Show the steps and the answer
- 1250: fixed cost of $1,250 for the month.
- 37.5: marginal cost of $37.50 per item.
- The first is the output at zero items.
- The second is the added cost per input unit.