Quarry School

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

about 2 minOpen the full lessonOnly this lesson

The rule

A linear function has form f(x)= mx +b, 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 m≠0, it is a polynomial of degree 1; if m=0, it is a constant function.

How

  1. Name the input and output with their units.
  2. Find the starting amount b and constant rate m.
  3. Write words and formula, calculate table columns, and plot the same pairs.
  4. Keep the inputs permitted by the story.

Worked example

Worked example

A small rule, then the train

OpenStax problem

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.

input t, secondsoutput D(t), meters0250133324163499
t, seconds: 0, 1, 2, 3; D(t), meters: 250, 333, 416, 499.
(0, 250)(−3.01, 0)starttwo secondsrun 1rise 832462186310434558
The same picture, shown 4 times now: y = 83x + 250, with its intercepts and slope marked.
Show the steps and the answer
input t, secondsoutput D(t), meters0250133324163499↓ evaluate: input given, read the output below it
The same picture a third time: t, seconds: 0, 1, 2, 3.
  1. f(1)=2×1+1=3.The input replaces x, then multiplication happens before addition.
  2. 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.
  3. D(2)=83×2+250=166+250=416 meters.Two seconds add two groups of 83 to the starting distance.
  4. Read 416 directly below 2 in the train table.Each table column pairs its input with its output.
  5. Plot (2, 416), include (0, 250), and retain t≥0.Input is horizontal and output is vertical; elapsed time begins at zero.
Answer
  • 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).
Double-check Two equal one-second additions give 250 + 83 + 83 = 416, agreeing with formula, table, and graph.

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

about 3 minOpen the full lessonOnly this lesson

The rule

In f(x)= mx +b, slope m is output change per input unit and initial value b=f(0).

The y-intercept or vertical intercept is the point (0, b).

How

  1. Identify input, output, and their units.
  2. Read the input coefficient as slope, with output-per-input units.
  3. Substitute zero to find the initial value and vertical intercept.
  4. 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
input time since switched on (hours)output snow depth (inches)0415.527613↓ evaluate: input given, read the output below it
Input–output table for D(t) = 1.5t + 4.
  1. 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.
  2. Compare D(t)=1.5t+4 with f(x)= mx +b. The coefficient of the input t is 1.5, so the slope is m=1.5incheshour, 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.
  3. Substitute t=0: D(0)=1.5(0)+4=0+4=4. So b=4: 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.
  4. 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.
  5. Evaluate the requested input: D(6)=1.5(6)+4=9+4=13. 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.
Answer
  • (a) Input t: hours since the machine was switched on
  • output D(t): snow depth in inches. (b) Slope m = 1.5 incheshour, 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.
Double-check Rate: D(6)−D(0)6−0 = 13−46 = 96 = 1.5 inches per hour, the same as the coefficient of t. Steps: D(1) = 1.5(1) + 4 = 5.5 and D(2) = 1.5(2) + 4 = 7, so the depth goes 4, 5.5, 7: it starts at 4 inches and each hour adds 1.5 inches.

Work to write

  1. Input: t = hours since the machine was switched on; output: D(t) = snow depth in inches
  2. Slope: m = 1.5 incheshour (1.5 inches per hour)
  3. D(0) = 1.5(0) + 4 = 4, so the initial value is b = 4 inches
  4. Vertical intercept: (0, 4)
  5. The patch starts with 4 inches of snow and gains 1.5 inches each hour
  6. 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

about 3 minOpen the full lessonOnly this lesson

The rule

In f(x)= mx +b, m > 0 gives an increasing linear function, m < 0 gives a decreasing linear function, and m=0 gives a constant function with a horizontal line.

How

  1. Write the formula as mx + b and keep the sign attached to m.
  2. Read the input coefficient; if the term is absent, m = 0.
  3. Use positive, negative, or zero slope to classify the function.
  4. Compare outputs at two increasing allowed inputs.
  5. Keep counting inputs whole and remaining counts nonnegative.

Worked example

Worked example

Three formulas, then three text-message models

OpenStax problem

Classify means say what happens to output as input grows. First classify f(x) = 3x − 2, g(x) = −12x + 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
f(0)f(1)run 1rise 32−448
The same picture, shown 4 times now: y = 3x − 2.
g(0)g(2)run 2rise −124246
The same picture a third time: y = −0.5x + 5.
(0, 7)h(0)h(2)−222468
The same picture, shown 4 times now: y = 7.
input d, completed daysoutput R(d), texts remaining05003320820↓ evaluate: input given, read the output below it
The same picture a third time: d, completed days: 0, 3, 8; R(d), texts remaining: 500, 320, 20.
  1. For f, m=3>0; f(0)=−2 and f(1)=1, so the output increases.The positive coefficient adds three per step even though the start is negative.
  2. For g, m=−12<0; g(0)=5 and g(2)=−1+5=4, so the output decreases.Two input steps remove two halves, totaling one.
  3. For h, write h(x)=0x+7; h(0)=h(1)=7, so the output stays constant.An absent input term has coefficient zero.
  4. Let d count completed days within one billing month. Write sent texts as T(d)=60d, with positive slope sixty texts per day.Every completed day adds sixty to a starting sent count of zero.
  5. Write remaining texts as R(d)=500−60d. At day three, R(3)=500−180=320 texts, with negative slope −60 texts per day.Sent texts are removed from the original allowance.
  6. R(8)=500−480=20, but R(9)=500−540=−40. Keep the completed-day remaining model only through day eight.A remaining count cannot be negative.
  7. Write C(d)=50 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.
Answer
  • f(x) = 3x − 2: increasing.
  • g(x) = −12x + 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.
Double-check At day three, 180 sent plus 320 remaining equals 500. At day eight, 480 sent plus 20 remaining also equals 500. The monthly charge remains fifty dollars on either day.

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

about 1 minOpen the full lessonOnly this lesson

The rule

m=riserun=y2−y1x2−x1=f(x2)−f(x1)x2−x1, where x2≠x1.

Units are output units per input unit.

How

  1. Label the two points so each input stays paired with its output. The subscripts 1 and 2 name points, while raised exponents name powers.
  2. Calculate rise as second output minus first output.
  3. Calculate run as second input minus first input, in matching order.
  4. If run is zero, stop. Otherwise divide rise by run and reduce.
  5. 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
startone stepfinishrun 1rise 2242468
Two right and four up means two up per one right.
  1. Rise =6−2=4.The output climbs from 2 to 6, four units upward.
  2. Run =3−1=2.That climb occurs across two input units.
  3. m=42=2.Divide the total climb by the number of input units.
Answer
m = 2.
Double-check Move one right and two up twice: (1, 2) to (2, 4) to (3, 6). This reaches the supplied second point.

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
startfinishrun 1rise 221234
When run is one, rise is slope.
  1. Rise =2−0=2.The output increases two.
  2. Run =1−0=1.The input increases one.
  3. m=21=2.Divide output change by input change.
Answer
m = 2.
Double-check One step of slope two takes output zero to two.

5 Anchor a line with a slope and a point

Open the full lessonOnly this lesson

The rule

point-slope form is y−y1=m(x−x1).

Equivalently, y= mx +b with b=y1−mx1.

How

  1. Write m and the anchor (x1, y1).
  2. Substitute into y − y1 = m(x − x1), keeping parentheses around negative coordinates.
  3. Distribute m to both terms.
  4. Add y1 to both sides to isolate y and reveal b.
  5. 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 = −25. 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
(−5, −1)−6−4−2246−6−4−2246
The line through the anchor point (−5, −1) that falls 2 units for every 5 units to the right.
  1. Write the slope and the anchor: m=−25 and (x1,y1)=(−5,−1), so x1=−5 and y1=−1.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.
  2. Substitute into y−y1=m(x−x1), putting each negative coordinate in parentheses: y−(−1)=−25(x−(−5)). Simplify the double negatives: y+1=−25(x+5). 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 = −25(x − 5), the line is anchored at (5, 1) instead of (−5, −1).
  3. Distribute −25 to both terms in the parentheses: (−25)(x)=−25x and (−25)(5)=−2, so y+1=−25x−2.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 −25x + 5 is the usual slip.
  4. Add y1=−1 to both sides: y+1+(−1)=−25x−2+(−1), so y=−25x−3. The y-intercept is b=−3.Adding y1 cancels the y − y1 on the left and leaves y alone. The constant left on the right is b. Because y1 is negative, adding it lowers the constant from −2 to −3. The rule's shortcut gives the same value: b = y1 − mx1 = −1 − (−25)(−5) = −1 − 2 = −3.
  5. Plug the original input x=−5 into y=−25x−3: y=−25(−5)−3=2−3=−1, which is the anchor's y1. The coefficient of x is −25, the given slope.The line we want has slope m and passes through (x1, y1). Getting y1 back at x1, 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.
Answer
Point-slope form: y + 1 = −25(x + 5). Slope-intercept form: y = −25x − 3, so b = −3.
Double-check At x = −5: y = −25(−5) − 3 = 2 − 3 = −1, which matches the anchor (−5, −1). The coefficient of x is −25 = m. On the graph, one slope step from (−5, −1), right 5 and down 2, lands on (0, −3), the y-intercept found above.

Work to write

  1. m=−25,(x1,y1)=(−5,−1)
  2. y−(−1)=−25(x−(−5))
  3. y+1=−25(x+5)
  4. y+1=−25x−2
  5. y = −25x − 3, so b = −3
  6. Check: −25(−5) − 3 = 2 − 3 = −1 = y1, and the coefficient of x is −25 = 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
(0, −2)(−0.667, 0)anchorone rightrun 1rise −3−4−2−448
Keep negative input and negative slope in their separate positions.
  1. y−7=−3(x−(−3))=−3(x+3).Subtract the actual negative input.
  2. y−7=−3x−9.The negative slope multiplies both terms.
  3. Add 7: y=−3x−2.This isolates y and reveals the initial value.
  4. At x=−3,y=−3(−3)−2=7.Substituting the anchor checks both negative signs.
Answer
  • Point-slope: y − 7 = −3(x + 3).
  • Slope-intercept: y = −3x − 2.
Double-check Moving right from −3 to −2 changes the output from 7 to 4, a fall of three matching the slope.

6 Build the equation from two points

Open the full lessonOnly this lesson

The rule

for distinct inputs, find m=y2−y1x2−x1, then b=y1−mx1.

Write y= mx +b or f(x)= mx +b.

How

  1. Convert function values into coordinate pairs: f(a) = c becomes (a, c).
  2. Check that the inputs differ, then find slope in matching subtraction order.
  3. Use an input-zero point to read b directly, or use an available point in point-slope form.
  4. Rewrite in the requested form.
  5. 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
(0, 1)(−0.5, 0)firstsecondrun 1rise 22−22468
The input-zero point gives b while the two-point change gives m.
  1. m=5−12−0=42=2.The output grows four while input grows two.
  2. b=1 from (0, 1).The output at input zero is the initial value.
  3. Write y=2x+1.Slope-intercept form combines the rate and starting value.
  4. At x=0,y=1; at x=2,y=2(2)+1=5.Both given points must fit the recovered line.
Answer
y = 2x + 1.
Double-check The other anchor gives y − 5 = 2(x − 2). Distribute and add 5 to isolate y: y = 2x + 1 again. Substituting input 2 gives 5.

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.

Try it · level 1 of 2

Recover a hidden starting value

OpenStax problem

Find both forms through (5, 1) and (8, 7). This asks for an equation when neither known input is zero.

Show the steps and the answer
(0, −9)(4.5, 0)bfirstsecondrun 1rise 22468−8−448
Extend the line back to input zero to see its initial value.
  1. m=7−18−5=63=2.Six output units across three input units means two per unit.
  2. y−1=2(x−5).Use the first point as anchor.
  3. Distribute: y−1=2x−10. Add 1: y=2x−9.These steps isolate y and reveal b.
  4. 2(5)−9=1 and 2(8)−9=7.Verify both points in the solved form.
Answer
  • Point-slope: y − 1 = 2(x − 5).
  • Slope-intercept: y = 2x − 9.
Double-check Directly solving 1 = 2(5) + b gives b = 1 − 10 = −9; plugging back gives 10 − 9 = 1.

7 Read a graph and choose a method

about 1 minOpen the full lessonOnly this lesson

The rule

For a nonvertical line, m=y2−y1x2−x1, then y= mx +b.

Read b at x=0, or find b=y1−mx1 from a known point.

How

  1. Read the numbers on both axes, because a drawn square need not mean one coordinate unit.
  2. Choose two exact labeled points with different x-coordinates, because a nonzero run is needed for the slope.
  3. Calculate output change divided by input change in the same point order, because reversing only one subtraction changes the sign.
  4. 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.
  5. 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
(0, 1)(−1, 0)(1, 2)run 1rise 12−11234
This original graph has a visible starting output and a one-unit run.
  1. At the vertical axis, x=0 and y=1, so b=1.The y-intercept is the output when the input is zero.
  2. m=2−11−0=11=1.The output goes up 1 while the input goes up 1.
  3. Write y=1x+1=x+1.Slope-intercept form uses the slope 1 and the starting output 1.
Answer
y = x + 1
Double-check At x = 0, 0 + 1 = 1. At x = 1, 1 + 1 = 2. Both plotted points are reproduced.

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).

(0, −2)(3, 0)run 2rise 1.3324−3−2−112
The original line rises 2 coordinate units while moving right 3.
Show the steps and the answer
  1. Read b=−2 from (0,−2).The input at this crossing is zero.
  2. m=0−(−2)3−0=23.A rise of 2 is spread over a run of 3, not a run of 1.
  3. Write y=23x−2.The fractional slope is the amount added per input unit.
Answer
y=23x−2
Double-check At x = 3, 23(3) − 2 = 2 − 2 = 0. At x = 0, the output is −2.

8 Turn a real situation into a linear model

about 1 minOpen the full lessonOnly this lesson

The rule

A constant-rate model has output = starting amount + rate × input.

Write f(x)= mx +b with units for m and b and a domain appropriate to the situation.

How

  1. Define the input and output, because a number without its meaning can lead to the wrong units or domain.
  2. Identify the starting amount b and rate m. If two totals are given, divide output change by input change to find m.
  3. 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.
  4. Write the model with its units and allowed inputs, because counting objects differs from measuring continuous time.
  5. 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
1 completed day1 + 2dinputoutput3 coins
Multiply the daily addition by the completed days, then add the starting coin.
  1. 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.
  2. Write J(d)=1+2d.There is 1 starting coin and each completed day contributes 2 coins.
  3. J(1)=1+2(1)=3.An input of 1 means one daily deposit.
Answer
  • J(d) = 1 + 2d, with d a nonnegative whole number.
  • J(1) = 3 coins.
Double-check Count the starting coin and two new coins: 1 + 2 = 3. Also J(0) = 1, so the model keeps the correct starting amount.

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

OpenStax problem

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
input n policiesoutput I(n) dollars37605920
Compare the two input changes and output changes before finding the base salary.
  1. Read the pairs as (3, 760) and (5, 920).The input is policies and the output is weekly dollars.
  2. m=920−7605−3=1602=80 dollars per policy.Two extra policies earned $160 more, so each contributes $80.
  3. Find b from the three-policy week: 760=80(3)+b=240+b, so subtract 240 to obtain b=520.Removing the commissions isolates the base weekly salary.
  4. Plug back: 80(3)+520=760. Write I(n)=80n+520 for nonnegative whole-number policy counts.The recovered salary must fit the observed week, and policies are counted as whole objects.
Answer
  • I(n) = 80n + 520
  • Commission: $80 per policy.
  • Base salary: $520 per week.
Double-check At n = 5, I(5) = 400 + 520 = 920, matching the other week. The positive commission makes income increase with sales.

9 Build and check a line from a table

Open the full lessonOnly this lesson

The rule

With at least two distinct inputs and one output per input, compare outputchangeinputchange on every adjacent interval of increasing inputs.

Equal rates mean the listed points fit f(x)= mx +b. Read b under zero, or use b=y− mx.

How

  1. 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.
  2. Read each column as one input-output pair, because values in the same column belong together.
  3. For every neighboring pair, subtract the outputs and divide by the corresponding input difference, because unequal input gaps must be accounted for.
  4. Compare all the rates. If any differ, no single linear function fits the whole table exactly.
  5. 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.
  6. 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.

input xoutput f(x)011223
The same picture again: x: 0, 1, 2; f(x): 1, 2, 3.
Show the steps and the answer
input xoutput f(x)011223
Read one input and output from each column and check both intervals.
  1. From the column under 0 to the column under 1, m=2−11−0=1.The output rises 1 over an input change of 1.
  2. From the column under 1 to the column under 2, m=3−22−1=1.Every adjacent interval must have the same rate for one line to fit.
  3. Read b=1 in the output cell under input 0. Write f(x)=x+1.The common rate is 1 and the zero-input output is 1.
Answer
f(x) = x + 1 fits all three listed pairs.
Double-check The formula gives f(0) = 1, f(1) = 2 and f(2) = 3, matching every column. These samples alone do not establish the rule at unlisted inputs.

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

OpenStax problem

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.

input w weeksoutput P(w) rats01000210804116061240
The same picture, shown 4 times now: w weeks: 0, 2, 4, 6; P(w) rats: 1000, 1080, 1160, 1240.
Show the steps and the answer
input w weeksoutput P(w) rats01000210804116061240
The rate is 40 per week because each gain of 80 spans two weeks.
  1. Read b=1000 rats from the column under zero weeks.The zero-input output is the initial population.
  2. Check all rates: 1080−10002−0=40,1160−10804−2=40 and 1240−11606−4=40 rats per week.Every two-week gain must be divided by its input gap, and all intervals must agree.
  3. Write P(w)=40w+1000.The listed population values share the same modeled weekly rate and starting count.
Answer
P(w) = 40w + 1000
Double-check Substitution gives P(0) = 1000, P(2) = 1080, P(4) = 1160 and P(6) = 1240. The line fits the observations; steady growth between them remains a model assumption.

10 Quick checks for the whole unit

7 questions

Quick check 1 of 7

Find the slope through (−1, 4) and (2, −5).

Show the steps and the answer
Answer
−3: −5−42−(−1) = −93 = −3, using the same point order in both changes.

Quick check 2 of 7

Write the line with slope −3 through (−1, 4).

Show the steps and the answer
Answer
y = −3x + 1: point-slope form is y − 4 = −3(x + 1). Distribute, then add 4 to both sides.

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
Answer
f(x) = 2x + 6: slope is 14−64−0 = 2 and the input-zero output is 6.

Quick check 4 of 7

Is g(x) = −12x + 5 increasing or decreasing?

Show the steps and the answer
Answer
Decreasing, because its slope −12 is negative.

Quick check 5 of 7

What kind of line is h(x) = 7?

Show the steps and the answer
Answer
Constant and horizontal, with slope zero, because every input gives output 7.

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
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
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.