Quarry School

College Algebra / Linear functions

Linear functions

Subject: Mathematics

All 9 lessons, in order.

The unit at a glance

  1. One steady change, four ways to show it

    Imagine you watch a train from a station.

  2. Read the starting amount and the amount per step

    Imagine a taxi meter begins at five dollars before the taxi moves, then adds two dollars for each block.

  3. Increasing, decreasing and constant lines

    Imagine three jars.

  4. Slope: output change divided by input change

    Picture a ramp.

  5. Anchor a line with a slope and a point

    Imagine you know one place on a ramp and how much it climbs for each step forward.

  6. Build the equation from two points

    Suppose someone gives you two spots on a straight ramp but does not tell you its tilt.

  7. Read a graph and choose a method

    Think of a graph as a road map.

  8. Turn a real situation into a linear model

    Think of a jar that already holds one coin.

  9. Build and check a line from a table

    Think of a table as several photographs of the same growing plant.

Rules (9)
  • One steady change, four ways to show it

    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.

  • Read the starting amount and the amount per step

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

  • Increasing, decreasing and constant lines

    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.

  • Slope: output change divided by input change

    m = riserun = y2−y1x2−x1 = f(x2)−f(x1)x2−x1, where x2 ≠ x1. Units are output units per input unit.

  • Anchor a line with a slope and a point

    point-slope form is y − y1 = m(x − x1). Equivalently, y = mx + b with b = y1 − mx1.

  • Build the equation from two points

    for distinct inputs, find m = y2−y1x2−x1, then b = y1 − mx1. Write y = mx + b or f(x) = mx + b.

  • Read a graph and choose a method

    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.

  • Turn a real situation into a linear model

    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.

  • Build and check a line from a table

    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.

Recipes (9)
  • One steady change, four ways to show it
    1. 1. Name the input and output with their units.
    2. 2. Find the starting amount b and constant rate m.
    3. 3. Write words and formula, calculate table columns, and plot the same pairs.
    4. 4. Keep the inputs permitted by the story.
  • Read the starting amount and the amount per step
    1. 1. Identify input, output, and their units.
    2. 2. Read the input coefficient as slope, with output-per-input units.
    3. 3. Substitute zero to find the initial value and vertical intercept.
    4. 4. Describe the start and rate in words, then evaluate any requested input.
  • Increasing, decreasing and constant lines
    1. 1. Write the formula as mx + b and keep the sign attached to m.
    2. 2. Read the input coefficient; if the term is absent, m = 0.
    3. 3. Use positive, negative, or zero slope to classify the function.
    4. 4. Compare outputs at two increasing allowed inputs.
    5. 5. Keep counting inputs whole and remaining counts nonnegative.
  • Slope: output change divided by input change
    1. 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. 2. Calculate rise as second output minus first output.
    3. 3. Calculate run as second input minus first input, in matching order.
    4. 4. If run is zero, stop. Otherwise divide rise by run and reduce.
    5. 5. Attach units. Multiply slope by run to check that you recover the rise.
  • Anchor a line with a slope and a point
    1. 1. Write m and the anchor (x1, y1).
    2. 2. Substitute into y − y1 = m(x − x1), keeping parentheses around negative coordinates.
    3. 3. Distribute m to both terms.
    4. 4. Add y1 to both sides to isolate y and reveal b.
    5. 5. Plug the original input into the final equation; its output must match the anchor. Check that the coefficient of x is still m.
  • Build the equation from two points
    1. 1. Convert function values into coordinate pairs: f(a) = c becomes (a, c).
    2. 2. Check that the inputs differ, then find slope in matching subtraction order.
    3. 3. Use an input-zero point to read b directly, or use an available point in point-slope form.
    4. 4. Rewrite in the requested form.
    5. 5. Substitute both given inputs into the final rule; each output must match.
  • Read a graph and choose a method
    1. 1. Read the numbers on both axes, because a drawn square need not mean one coordinate unit.
    2. 2. Choose two exact labeled points with different x-coordinates, because a nonzero run is needed for the slope.
    3. 3. Calculate output change divided by input change in the same point order, because reversing only one subtraction changes the sign.
    4. 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. 5. Write the equation and substitute both visible points, because a correct equation must give both of their outputs.
  • Turn a real situation into a linear model
    1. 1. Define the input and output, because a number without its meaning can lead to the wrong units or domain.
    2. 2. Identify the starting amount b and rate m. If two totals are given, divide output change by input change to find m.
    3. 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. 4. Write the model with its units and allowed inputs, because counting objects differs from measuring continuous time.
    5. 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.
  • Build and check a line from a table
    1. 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. 2. Read each column as one input-output pair, because values in the same column belong together.
    3. 3. For every neighboring pair, subtract the outputs and divide by the corresponding input difference, because unequal input gaps must be accounted for.
    4. 4. Compare all the rates. If any differ, no single linear function fits the whole table exactly.
    5. 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. 6. Substitute every listed input into the candidate equation, because fitting the first pair alone does not establish agreement with the whole table.
Traps (9)

Lesson 1 of 9

One steady change, four ways to show it

Subject: MathematicsLeans on: Function notationLeans on: Multiply before addingLeans on: Coordinate orderLeans on: Signed multiplicationLeans on: Decimal multiplicationLeans on: Domain notationLeans on: Rational and irrational inputsOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Imagine you watch a train from a station. When you start your clock, the train is already 250 meters away. Each second, it moves another 83 meters away. The seconds you enter are the input. The distance you get back is the output. A function is a rule that gives one output for each allowed input. This function has a constant rate of change: equal amounts of time add equal amounts of distance. You can tell that same story with words, a formula, a table, or a graph. These are four views of one relationship, like four descriptions of the same trip.

2 Picture it

(0, 250)(−3.01, 0)starttwo secondsrun 1rise 832462186310434558(0, 250)(−3.01, 0)starttwo secondsrun 1rise 83123462186310434558
y = 83x + 250, with its intercepts and slope marked.

Reminder

Reminder: Function notation, Multiply before adding, Coordinate order, Signed multiplication, Decimal multiplication, Domain notation, Rational and irrational inputs
  • Function notation. f(2) means output at input 2: for f(x) = 2x + 1, f(2) = 5.
  • Multiply before adding. 83 × 2 + 250 = 166 + 250 = 416.
  • Coordinate order. (2, 416) places input seconds first and output meters second.
  • Signed multiplication. 2(−1) = −2 because multiplying a negative input by positive 2 keeps it negative.
  • Decimal multiplication. 83 × 0.5 = 41.5 because half a second adds half of 83 meters.
  • Domain notation. t ≥ 0 and [0, ∞) include zero and every larger real time while the model applies.
  • Rational and irrational inputs. 0.5 and 2 can both be positive elapsed times; a continuous measurement need not be a whole count.

3 Why

After t seconds, traveling 83 meters each second adds 83t meters. Adding the 250 meters already present gives D(t) = 83t + 250. Each extra second adds another 83, so the plotted points keep the same slant and lie on a straight line. The story also limits which inputs make sense. Here t measures elapsed time after the clock starts, so negative t belongs outside this model even though the formula can calculate it.

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

The same idea, five ways

Say it

output equals a steady amount per step times the input, plus the start.

Write it

A linear function changes output at a constant rate as input changes.

In math
  • f(x) = mx + b
  • y = mx + b
  • D(t) = 83t + 250
  • m ≠ 0: degree 1
  • m = 0: constant function
  • b = f(0); m and b are fixed real numbers
Like

A moving walkway covers the same extra distance during equal amounts of time.

See it
(0, 250)(−3.01, 0)starttwo secondsrun 1rise 832462186310434558
The same picture again: y = 83x + 250, with its intercepts and slope marked.

The same idea, other ways

As a story

Start with what you already have, then add the same amount each step. The train already 250 meters away adds 83 meters every second.

t secondsmultiply by 83, thenadd 250inputoutputD(t) meters
The machine combines starting distance and distance traveled.
With small numbers

In f(x) = 2x + 1, each extra input step adds two. The starting one is present once.

input xoutput f(x)011325↓ evaluate: input given, read the output below it
x: 0, 1, 2; f(x): 1, 3, 5, read at x = 1.
As a picture

A straight ramp keeps the same slant wherever you stand. A linear graph keeps the same change for equal horizontal steps.

(0, 1)(−0.5, 0)startone step laterrun 1rise 2−22−4−22468
y = 2x + 1, for x from −2 to 3.
Why the change stays steady

Changing x to x + 1 changes mx + b to m(x + 1) + b = mx + m + b. The extra amount is m, while b stays fixed.

f(x) = mx + b

f(x + 1) = mx + m + b

One input step adds m

Part 1: Words

You can describe a rule before you write any symbols. Imagine you have one dollar saved and put away two more dollars each week. Your total is your original dollar plus two dollars for each week. That sentence says both where you begin and how you change. It is the word form of a linear function. The train sentence works the same way. You begin measuring when the train is 250 meters away, then each second adds 83 meters to that distance.

  • Rule: Word form names the input, output, starting amount, and constant rate, because those pieces identify what the function means.
  • Rule: A constant rate of change means equal input changes produce equal output changes, because the same amount is added for each input unit.

Input: seconds after the clock starts

Output: meters from the station

Start: 250 meters

Change: 83 meters per second

Reminder
Reminder: Repeated addition
  • Repeated addition. Two equal groups of 83 are 83 + 83 = 2 × 83 = 166.
The same idea, five ways
Say it

start with one, then add two for each step.

Write it

Total savings equal one dollar already saved plus two dollars for each week.

In math
  • f(x) = 2x + 1
  • D(t) = 83t + 250
  • output = rate × input + start
Like

A jar begins with money inside, and you add the same deposit each week.

See it
t seconds83 meters per secondplus 250 alreadypresentinputoutputdistance from station
The words identify the distance at the start and the distance added each second.

Worked example

Say a saving rule and the train rule

OpenStax problem

Describe the relationship means say the starting amount and the change per step. First describe one dollar saved plus two dollars per week. Then describe the train starting 250 meters from the station and moving away at 83 meters per second.

Show the steps and the answer
2 seconds83 × 2 + 250inputoutput416 meters
The two-second train story becomes one pass through the distance machine.
  1. After two weeks, savings are 1+2+2=5 dollars.The starting dollar is counted once, while the deposit is counted once per week.
  2. Name train time in seconds as the input and distance from the station in meters as the output.Distance depends on how much time has passed.
  3. Say: the train is 250 meters away at the start, plus another 83 meters away for each second.The 250 is already present when the clock starts.
  4. For two seconds, calculate 250+83+83=416 meters.Two seconds contribute two equal one-second distances.
Answer
  • Savings: one dollar at the start plus two dollars per week.
  • After two weeks, five dollars.
  • Train: 250 meters at the start plus 83 meters per second.
  • After two seconds, 416 meters.
Double-check The multiplication versions agree: 1 + 2 × 2 = 5 and 250 + 83 × 2 = 416.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The train starts at zero meters because the clock starts at zero seconds.
A zero input does not require a zero output. The clock starts after the train is already 250 meters away.
✓ Instead: At zero seconds in this model, the distance is 250 meters.
Tips and tricks
  • Include both 'at the start' and 'for each' when you describe the rule.

Part 2: Function notation

A function name is a label on a machine. In f(x), the letter f names the machine and the parentheses name its input. It does not mean f times x. For the train, D names the distance machine and t names the seconds you put in. The formula D(t) = 83t + 250 says to multiply seconds by 83 and add 250. This is slope-intercept form: the number multiplying the input is the steady change, and the added number is the output at input zero. The coefficient is the multiplying number, and the exponent is the raised number counting factors: x1 = x.

  • A polynomial is a sum of number multiples of nonnegative whole-number powers of a variable. Its degree is the largest exponent with a nonzero coefficient, so 2x1 + 1 has degree 1.
  • Rule: f(x) names the output at input x, because the parentheses specify what enters the function.
  • Rule: Slope-intercept form is f(x) = mx + b or y = mx + b, where m is the slope and b is the output at zero.
  • Rule: mx + b has degree 1 when m ≠ 0, because x1 is its highest power with a nonzero coefficient. When m = 0, a nonzero constant has degree 0; the zero polynomial has no ordinary degree.

D(t) = 83t + 250

t: input in seconds

83: constant rate

250: output at input zero

Reminder
Reminder: Order of operations
  • Order of operations. Multiply before adding: 2 × 3 + 1 = 6 + 1 = 7.
The same idea, five ways
Say it

D of t equals eighty-three times t plus two hundred fifty.

Write it

The distance at time t equals eighty-three times elapsed seconds plus 250 meters.

In math
  • D(t) = 83t + 250
  • f(x) = mx + b
  • y = mx + b
  • x1=x
  • m ≠ 0: degree 1
  • m = 0: f(x) = b
  • Polynomial: 2x1 + 1
  • Degree: highest remaining exponent, here 1
  • Coefficient: multiplying number, here 2
Like

A labeled recipe tells you what to do to any amount you put in.

See it
t× 83, then + 250inputoutputD(t)
The notation names the machine, input, and output.

Worked example

Replace the input in two formulas

OpenStax problem

Evaluate means find the output for the named input. Find f(1) for f(x) = 2x + 1, then D(0.5) for the train formula D(t) = 83t + 250.

Show the steps and the answer
0.5 second83 × 0.5 + 250inputoutput291.5 meters
Elapsed time can be a fraction of a second.
  1. f(1)=2×1+1=3.The input 1 replaces x, and multiplication happens before addition.
  2. D(0.5)=83×0.5+250.The input is half a second, so 0.5 replaces t.
  3. 83×0.5=41.5, then 41.5+250=291.5 meters.Half a second adds half of one second's 83 meters.
Answer
  • f(1) = 3.
  • D(0.5) = 291.5 meters.
Double-check Half the one-second added distance is 83 ÷ 2 = 41.5 meters. Adding it to 250 gives 291.5, matching substitution.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: D(2) means multiply D by 2.
D is a function name, and the parentheses name its input.
✓ Instead: D(2) = 83 × 2 + 250 = 416 meters.
✗ Not this: Counterexample: Every mx + b has degree 1 even when m = 0.
A zero coefficient removes the input term, so the highest remaining power is no longer x1.
✓ Instead: 3x + 2 has degree 1; 0x + 7 = 7 is a degree-zero constant.
Tips and tricks
  • Say 'of' when reading parentheses: D(2) is 'D of two.'

Part 3: Table

A table is like a receipt that keeps matching items in the same column. Here the item in the top row is an input, and the item directly below it is the matching output. This is tabular form. To make a table from a formula, you choose an allowed input, put it into the formula, and place its answer below it. The train's table shows selected times and distances. It does not show every possible time. You can still use the formula between the pictured columns.

  • Rule: A table column pairs an input with its output, because the two entries record one use of the function.
  • Rule: Equal input gaps in a linear function give equal output gaps, because its rate stays constant. Unequal input gaps need proportionally scaled changes.
input t, secondsoutput D(t), meters0250133324163499↓ evaluate: input given, read the output below it
t, seconds: 0, 1, 2, 3; D(t), meters: 250, 333, 416, 499, read at t, seconds = 2.
Reminder
Reminder: Subtraction as change
  • Subtraction as change. Later minus earlier gives 499 − 416 = 83.
The same idea, five ways
Say it

this input has the output directly below it.

Write it

A function table displays selected matching inputs and outputs.

In math
  • table column gives (x, f(x))
  • D(2) = 416 gives (2, 416)
  • D(t) = 83t + 250
Like

A receipt keeps each item's name and price together.

See it
input t, secondsoutput D(t), meters0250133324163499↓ evaluate: input given, read the output below it
The same picture again: t, seconds: 0, 1, 2, 3; D(t), meters: 250, 333, 416, 499, read at t, seconds = 2.

Worked example

Read a small table and the train table

OpenStax problem

Read the matching output means look directly below the requested input. First use the small table to find f(1). Then use the train table to find D(3) and verify its last one-second change.

input xoutput f(x)011325
x: 0, 1, 2; f(x): 1, 3, 5.
Show the steps and the answer
input xoutput f(x)011325↓ evaluate: input given, read the output below it
The same picture again: x: 0, 1, 2; f(x): 1, 3, 5, read at x = 1.
input t, secondsoutput D(t), meters0250133324163499↓ evaluate: input given, read the output below it
t, seconds: 0, 1, 2, 3; D(t), meters: 250, 333, 416, 499, read at t, seconds = 3.
  1. Read the entry directly below 1 in the small table: f(1)=3.Each column keeps one input with its matching output.
  2. Read the entry directly below 3 in the train table: D(3)=499 meters.The upper entry gives time and the lower entry gives distance.
  3. Compare columns under 2 and 3: time changes by 3−2=1 second and distance by 499−416=83 meters.Later minus earlier measures the change.
  4. Calculate D(3)=83×3+250=249+250=499 meters.The formula independently verifies the table answer.
Answer
  • Small table: f(1) = 3.
  • Train table: D(3) = 499 meters.
  • The last one-second change is 83 meters.
Double-check Three equal additions give 250 + 83 + 83 + 83 = 499 meters too.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: For D(2), read the output in the neighboring column under 3.
That switches which input the output belongs to.
✓ Instead: Stay under 2 and read 416 meters.
✗ Not this: Counterexample: Only the whole seconds in the table are allowed.
The table samples the function; it does not define all possible times.
✓ Instead: A half second is allowed too, giving D(0.5) = 291.5 meters.
Tips and tricks
  • Place a finger on the input and move straight down.

Part 4: Graph and allowed inputs

A graph is a map of the relationship. Move sideways to an input, then upward or downward to its output. The pair becomes a point on the picture. This is graphical form. The train's points line up, but you keep only zero seconds and later. The domain means the allowed inputs. Nonnegative means zero or more. Time can include part of a second, so this domain contains every nonnegative real number. A real number is a position on the number line, including whole numbers, fractions, and irrational numbers such as 2.

  • Rule: A graph plots allowed pairs (input, output), because horizontal coordinates give inputs and vertical coordinates give outputs.
  • Rule: The train domain is t ≥ 0, or [0, ∞), while the stated speed lasts, because t is elapsed time after the clock starts.
  • Rule: The unrestricted formula f(x) = 2x + 1 has domain (−∞, ∞), because doubling and adding one work for every real input.
  • Rule: A continuous-input context can restrict a linear graph to a ray, which starts at one endpoint and continues in one direction, or a segment, which has two endpoints, because only the allowed portion describes that context.
(0, 250)(−3.01, 0)starttwo secondsrun 1rise 832462186310434558
The same picture a third time: y = 83x + 250, with its intercepts and slope marked.
Reminder
Reminder: Interval endpoints
  • Interval endpoints. [0, ∞) includes zero. Infinity uses a parenthesis because it is not an endpoint you reach.
The same idea, five ways
Say it

t is zero or more; the unrestricted x can be any real number.

Write it

The train accepts nonnegative elapsed times while the unrestricted formula accepts all real inputs.

In math
  • t ≥ 0
  • [0, ∞)
  • {t | t ≥ 0}
  • f(x) = 2x + 1: x is real
  • (−∞,∞)
  • {x | x is real}
  • Ray domain: t ≥ 0; segment domain: 0 ≤ t ≤ 4
Like

A map can show a road in both directions while your trip begins at a chosen starting point.

See it
0included[0, ∞)
The train domain includes zero and all greater real times while the speed stays constant.

Worked example

A negative algebra input and a half-second train input

OpenStax problem

Check an input means decide whether its meaning is allowed before calculating. Evaluate f(−1) for unrestricted f(x) = 2x + 1. Then decide whether −1 and 0.5 seconds belong to the train model, and plot the allowed half-second point.

Show the steps and the answer
negative input alloweddomain−22−448
y = 2x + 1, for x from −3 to 3.
(0, 250)(−3.01, 0)starthalf seconddomain2462186310434558
y = 83x + 250, with its domain and intercepts marked.
  1. f(−1)=2×(−1)+1=−2+1=−1.The unrestricted formula accepts every real input, including −1.
  2. Exclude t=−1 from the elapsed-time train model.It lies before the model's chosen starting time.
  3. Keep t=0.5, then calculate D(0.5)=83×0.5+250=291.5 meters.Half a second is nonnegative, and time is not limited to whole seconds.
  4. Plot (0.5, 291.5) and keep t≥0.The point puts seconds first and meters second, and the graph must follow the domain.
Answer
  • Unrestricted formula: f(−1) = −1.
  • Train: −1 second is excluded.
  • 0.5 second is allowed.
  • Train point: (0.5, 291.5), with domain [0, ∞) while the stated speed lasts.
Double-check The half-second point is 41.5 meters beyond 250. Doubling 41.5 gives 83, exactly one second's added travel.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: D(−1) = 167 means negative time is allowed in this model.
A calculable output does not make the input meaningful in the story.
✓ Instead: Use t ≥ 0, because time is measured after the selected start.
Tips and tricks
  • Write what the input means beside its domain restriction.
  • A ray has one endpoint and continues; a segment has two endpoints. A finite graph window can display only part of either one.

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

Show one steady relationship four ways

1
Does the input describe a context with limits?
YesUse the story's limits, such as t ≥ 0 for elapsed time.
NoAn unrestricted mx + b permits every real input.
↓
2
Is m zero?
YesThe function is constant and the line horizontal.
NoThe polynomial has degree 1 and the line slopes.
  1. State the start and constant amount per step.
  2. Write output = rate × input + start.
  3. Place calculated pairs in an input-output table and plot matching points.
  4. Limit the graph to the allowed domain.

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

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Every function that increases is linear, including x2 for x ≥ 0.
The square function gains one from zero to one, then three from one to two. Its rate is not constant.
✓ Instead: A linear function gives equal output changes for equal input changes, as 2x + 1 does.
✗ Not this: Counterexample: The train's formula accepts all real inputs, so its model must too.
The story defines elapsed time after a start, excluding negative time.
✓ Instead: Use t ≥ 0 while the stated constant-speed motion lasts.
✗ Not this: Counterexample: A constant function cannot belong with linear functions because it is not degree 1.
This section includes horizontal lines in f(x) = mx + b. The degree-one description applies when m ≠ 0.
✓ Instead: f(x) = 7 is a constant member with slope zero; nonzero m gives degree 1.

Tips and tricks

  • Remember 'start plus steady change' for mx + b.
  • Words, formula, table, and graph should agree at every pictured input.

7 The trap

Tip: Count the starting 250 once. Writing 333t would repeat the starting distance at every second.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 2 of 9

Read the starting amount and the amount per step

Subject: MathematicsLeans on: SubstitutionLeans on: Decimal additionLeans on: Function notationLeans on: Coordinate orderLeans on: Multiplying by zeroLeans on: Decimal multiplicationLeans on: UnitsOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Imagine a taxi meter begins at five dollars before the taxi moves, then adds two dollars for each block. The starting amount and the amount for each block do different jobs. A linear formula records both. The amount multiplying the input is the slope, the output change for one input unit. The amount left at input zero is the initial value. On a graph, that starting point is the y-intercept, also called the vertical intercept. You choose or measure the input, called the independent variable. The resulting output is the dependent variable because it depends on that input.

2 Picture it

(0, 14.7)(−33.9, 0)surface33 feet4122028364122028(0, 14.7)(−33.9, 0)surface33 feet4122028364122028
y = 0.434x + 14.696, for x from 0 to 40.
−6−4−2246−6−4−2246
Change m, the amount per step, and b, the starting amount. m tilts the line and b slides it to meet the vertical axis at (0, b).

Reminder

Reminder: Substitution, Decimal addition, Function notation, Coordinate order, Multiplying by zero, Decimal multiplication, Units
  • Substitution. Replace the input everywhere: P(33) = 0.434 × 33 + 14.696.
  • Decimal addition. Line up decimal places: 14.322 + 14.696 = 29.018.
  • Function notation. P(33) is the pressure output when the depth input is 33.
  • Coordinate order. An intercept has input zero: (0, 14.696), not (14.696, 0).
  • Multiplying by zero. 0.434 × 0 = 0, so P(0) leaves the starting pressure 14.696.
  • Decimal multiplication. 0.434 × 33 = 14.322; restore the three decimal places after multiplying 434 × 33.
  • Units. PSI per foot times feet gives PSI; add the starting pressure in PSI.

3 Why

In f(x) = mx + b, putting in zero makes m × 0 equal zero, leaving f(0) = b. That explains why b is the initial value and why the graph crosses the vertical axis at (0, b). Putting in one adds one group of m, so f(1) = m + b. Removing the starting b leaves m. The numbers therefore describe different quantities: an amount and an amount per input unit.

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

The same idea, five ways

Say it

m tells the change per input unit; b tells the output at zero.

Write it

The independent variable is the input; the dependent variable is the output determined by that input.

In math
  • f(x) = mx + b
  • m: output units per input unit
  • b = f(0)
  • y-intercept = (0, b)
  • P(d) = 0.434d + 14.696
  • d: independent variable
  • P(d): dependent variable
Like

A taxi has a starting charge and a separate price per block.

See it
(0, 5)(−2.5, 0)initial valueone blockrun 1rise 2224681012
y = 2x + 5.

The same idea, other ways

As a taxi meter

The meter's five-dollar starting charge stays once. Each block adds two dollars. Five dollars is an amount; two dollars per block is a rate.

1 block2 × 1 + 5inputoutput$7
The total combines a per-block charge with the amount already on the meter.
As a graph

Input zero places you on the vertical axis. Its output is the start. One step right changes the output by the slope.

(0, 5)(−2.5, 0)initial valueone blockrun 1rise 2224681012
The same picture again: y = 2x + 5.
As units

The diver's output pressure uses PSI, meaning pounds per square inch. PSI measures push spread over each square inch. The slope uses PSI per foot, because each foot of depth adds pressure.

Input: depth in feet

Output: pressure in PSI

Slope: PSI per foot

Initial value: PSI at zero feet

Part 1: Slope as an amount per input unit

A rate answers how much changes for each step. If a taxi charge adds two dollars for one more block, its rate is two dollars per block. You need both units because two dollars alone does not say how often it is added. In a linear function this rate is the slope. For the diver, the input is depth in feet and the output is pressure in PSI. The slope 0.434 means that one more foot of depth adds 0.434 PSI to the pressure.

  • Rule: In mx + b, slope m is the output change per input unit, because one more input adds one more group of m.
  • Rule: Slope units are output units per input unit, because the rate relates output change to input change.
  • Rule: In P(d) = 0.434d + 14.696, the slope is 0.434 PSI per foot, because d measures feet and P measures pressure in PSI.

Input: depth in feet

Output: pressure in PSI

Slope: 0.434 PSI per foot

33 feet adds 14.322 PSI

Reminder
Reminder: Decimal multiplication
  • Decimal multiplication. 0.434 × 3 = 1.302 because three groups of 434 thousandths are 1302 thousandths.
The same idea, five ways
Say it

four hundred thirty-four thousandths PSI for each extra foot.

Write it

Each extra foot of depth increases the diver's pressure by 0.434 PSI.

In math
  • m = 0.434 PSI per foot
  • pressure change = 0.434 × depth change
  • m has output units per input unit
Like

A taxi meter adds the same charge each time another block is traveled.

See it
surfaceone footrun 2rise 0.8682414151617
y = 0.434x + 14.696, for x from 0 to 4.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The slope is 0.434 feet per PSI.
That reverses which quantity is the input and which is the output.
✓ Instead: The slope is 0.434 PSI per foot.
✗ Not this: Counterexample: At 33 feet, total pressure is 14.322 PSI.
That counts only added pressure and leaves out the surface pressure.
✓ Instead: Total pressure is 14.322 + 14.696 = 29.018 PSI.
Tips and tricks
  • Underline 'per' in the rate units and write output units before it.

Part 2: Initial value as the output at input zero

The initial value is what your output says before any input steps happen. A taxi can already charge five dollars while it has traveled zero blocks. A diver already experiences pressure at the water's surface, where her depth is zero feet. Putting in zero clears away the changing part and leaves the starting part. On the graph this becomes a point on the vertical axis, because that axis contains points whose horizontal coordinate is zero. That point is the y-intercept or vertical intercept.

  • Rule: Initial value means f(0) = b, because the input term m × 0 vanishes.
  • Rule: The y-intercept or vertical intercept is the point (0, b), because its input coordinate is zero.
  • Rule: P(0) = 14.696 PSI is the diver's surface pressure, because zero depth is the water's surface.
0 feet0.434 × 0 + 14.696inputoutput14.696 PSI
At zero depth, only the initial pressure remains.
Reminder
Reminder: Zero multiplication and coordinates
  • Zero multiplication and coordinates. 2 × 0 = 0. In (0, 5), zero is the input and five is the output.
The same idea, five ways
Say it

the initial value is the output when the input is zero.

Write it

The diver's surface pressure is 14.696 PSI and the vertical intercept is (0, 14.696).

In math
  • f(0) = b
  • y-intercept = (0, b)
  • P(0) = 14.696
  • vertical intercept = (0, 14.696)
Like

A taxi meter shows its starting charge before the wheels move.

See it
(0, 14.7)(−33.9, 0)surface33 feet4122028364122028
The same picture again: y = 0.434x + 14.696, for x from 0 to 40.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Any pressure on the graph can be b, so b = 29.018.
The initial value belongs specifically to input zero. The pressure 29.018 belongs to input 33.
✓ Instead: b = P(0) = 14.696 and the intercept is (0, 14.696).
Tips and tricks
  • Check a claimed initial value by putting zero into the original formula.

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

Read and explain a slope-intercept model

  1. Match the formula with mx + b.
  2. Give m output-per-input units.
  3. Give b output units and verify it at input zero.
  4. Say the starting amount and the change per step.
  5. Substitute the requested input, multiply, and add.

6 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

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: 14.696 is the slope because it is the larger number.
A number's role depends on its position in the formula, not its size.
✓ Instead: Slope 0.434 multiplies depth. Initial value 14.696 remains at depth zero.
✗ Not this: Counterexample: The diver intercept is (14.696, 0).
That reverses input and output. The vertical intercept has input zero.
✓ Instead: The intercept is (0, 14.696).

Tips and tricks

  • Say 'start' for b and 'per' for m, with units for both.
  • PSI is pressure; PSI per foot is the change in pressure for one extra foot.

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

Lesson 3 of 9

Increasing, decreasing and constant lines

Subject: MathematicsLeans on: Negative coefficientLeans on: Function versus outputLeans on: EvaluationLeans on: Fraction times a whole numberLeans on: Signed subtractionLeans on: Multiplication by zeroLeans on: Domain and countsOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Imagine three jars. You add the same number of coins to the first jar each day. You remove the same number from the second. You leave the third alone. As days pass, the first amount grows, the second shrinks, and the third stays the same. Linear functions can behave in those three ways. An increasing linear function has outputs that grow when inputs grow. A decreasing linear function has outputs that shrink. A constant function keeps the same output. Read their graphs from left to right, because moving right means the input is increasing.

2 Picture it

f(x) = 3x − 2: increasing

g(x) = −12x + 5: decreasing

h(x) = 7 = 0x + 7: constant

Reminder

Reminder: Negative coefficient, Function versus output, Evaluation, Fraction times a whole number, Signed subtraction, Multiplication by zero, Domain and counts
  • Negative coefficient. In −12x + 5, the minus sign belongs to the coefficient −12.
  • Function versus output. Different inputs may share an output: h(0) = h(2) = 7 still gives one output per input.
  • Evaluation. For f(x) = 3x − 2, f(1) = 3(1) − 2 = 1.
  • Fraction times a whole number. −12 × 2 = −22 = −1, so g(2) = 4.
  • Signed subtraction. 1 − (−2) = 3, so an output can increase from a negative start.
  • Multiplication by zero. 0 × x = 0, so h(x) = 0x + 7 always gives 7.
  • Domain and counts. Completed-day counts use whole numbers. R(9) = −40 is outside a model for nonnegative remaining texts.

3 Why

For f(x) = mx + b, adding one to the input adds m to the output. A positive m raises the output. A negative m lowers it. A zero m changes nothing. The starting value b shifts the line's height but does not change what one extra input step does. That is why the slope's sign, rather than the starting amount's sign, determines direction.

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

The same idea, five ways

Say it

positive slope rises, negative slope falls, and zero slope stays level.

Write it

The sign of slope determines whether linear outputs increase, decrease, or stay constant.

In math
  • m > 0: increasing
  • m < 0: decreasing
  • m = 0: constant
  • x2 > x1: compare f(x2) and f(x1)
Like

A jar fills, empties, or stays unchanged as another day passes.

See it

Read left to right

Positive slope: rising line

Negative slope: falling line

Zero slope: horizontal line

The same idea, other ways

As jars

Adding coins gives positive change, removing coins gives negative change, and leaving the jar alone gives zero change.

m > 0: output grows

m < 0: output shrinks

m = 0: unchanged output

As graphs

Move right to increase input. An upward line gives larger outputs; a downward line gives smaller outputs; a horizontal line gives the same output.

2−448
The solid positive-slope line rises while the dashed negative-slope line falls.
With one extra input

In f(x) = 3x − 2, one extra input adds three. In g(x) = −12x + 5, it removes half. In h(x) = 7, it adds zero.

f: m = 3, increasing

g: m = −12, decreasing

h: m = 0, constant

SlopeThe line
m > 0Increasing: rises from left to right.
m < 0Decreasing: falls from left to right.
m = 0Constant: horizontal.

Part 1: Increasing linear function

An increasing linear function is like a jar receiving the same deposit each day. As you move to a later day, you have more in the jar. On the graph, larger inputs are farther right and their outputs are higher. The slope is positive because each extra input step adds a positive amount. The jar could begin with a negative balance, such as a debt, and still increase. Increasing describes the direction of the change, not whether the current amount is above or below zero.

  • Rule: An increasing linear function has m > 0, because extra input adds positive output change.
  • Rule: Its graph rises from left to right, because moving right increases the input and the matching output becomes higher.
  • Rule: T(d) = 60d models sixty texts per completed day, because d equal daily groups contain 60d texts.
f(0)f(1)run 1rise 32−448
y=3x−2.
Reminder
Reminder: Subtracting a negative
  • Subtracting a negative. 1 − (−2) = 1 + 2 = 3, so the output rose by three.
The same idea, five ways
Say it

as input gets larger, output gets larger.

Write it

A positive slope gives an increasing linear function.

In math
  • m > 0
  • x2 > x1 implies f(x2) > f(x1)
  • f(x)=3x−2
  • T(d) = 60d
Like

You add the same positive deposit to a jar each day.

See it
f(0)f(1)run 1rise 32−448
The same picture again: y = 3x − 2.

Worked example

A line starting below zero and a growing text count

OpenStax problem

Show increasing behavior means find a higher output at a larger input. Compare f(0) and f(1) for f(x) = 3x − 2. Then compare T(2) and T(3) for T(d) = 60d within one billing month.

Show the steps and the answer
f(0)f(1)run 1rise 32−448
The same picture a third time: y = 3x − 2.
input d, completed daysoutput T(d), texts sent0021203180↓ evaluate: input given, read the output below it
Larger completed-day inputs give larger sent-text counts.
  1. f(0)=3×0−2=−2 and f(1)=3×1−2=1.Substitution gives the requested outputs.
  2. Compare 1>−2 and 1−(−2)=3, so f is increasing.The input rose by one and the output rose by its positive slope three.
  3. T(2)=60×2=120 texts and T(3)=60×3=180 texts.Every completed day contributes sixty texts to the total sent.
  4. Compare 180−120=60 texts for the additional day.The positive daily change shows increasing behavior.
Answer
  • f is increasing because m = 3 > 0.
  • T is increasing because its slope is 60 texts per day.
  • After three completed days, T(3) = 180 texts.
Double-check Two days' 120 texts plus another day's 60 texts equals 180, matching direct substitution.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: f(x) = 3x − 2 is decreasing because its constant term is negative.
The constant term sets starting height, while the coefficient controls change.
✓ Instead: f is increasing because m = 3 > 0.
Tips and tricks
  • Circle the input coefficient, including its sign, before classifying.

Part 2: Decreasing linear function

A decreasing linear function is like spending the same amount from a jar each day. As you move to a later day, less remains. Its slope is negative because an extra input step removes some output. On the graph, moving right takes you to a lower point. This can describe texts remaining in an allowance, but you must stop before the formula claims a negative number of remaining texts. A formula can keep decreasing forever; a real allowance cannot contain fewer than zero unused texts.

  • Rule: A decreasing linear function has m < 0, because increasing the input adds negative output change.
  • Rule: Its graph falls from left to right, because larger inputs have smaller outputs.
  • Rule: R(d) = 500 − 60d counts remaining texts from a 500-text allowance, because sent texts are removed from the original allowance.
  • Rule: For whole completed days, use d in {0, 1, 2, 3, 4, 5, 6, 7, 8}, because R(8) = 20 is nonnegative but R(9) = −40 is not a remaining count.
g(0)g(2)run 2rise −124246
y=−0.5x+5.
Reminder
Reminder: Fraction multiplication and negative addition
  • Fraction multiplication and negative addition. −12 × 2 = −1, and 5 + (−1) = 4.
The same idea, five ways
Say it

as input gets larger, output gets smaller.

Write it

A negative slope gives a decreasing linear function on its allowed inputs.

In math
  • m < 0
  • x2 > x1 implies f(x2) < f(x1)
  • g(x)=−12x+5
  • R(d)=500−60d
  • R(d) ≥ 0
  • d in {0, 1, 2, 3, 4, 5, 6, 7, 8}
Like

A jar loses the same amount at each withdrawal until nothing remains.

See it
input d, completed daysoutput R(d), texts remaining05003320820↓ evaluate: input given, read the output below it
d, completed days: 0, 3, 8; R(d), texts remaining: 500, 320, 20.

Worked example

Half a unit per step, then a limited allowance

OpenStax problem

Show decreasing behavior means find a lower output at a larger input. Compare g(0) and g(2) for g(x) = −12x + 5. Then find texts remaining after three completed days and check the last allowed completed day in R(d) = 500 − 60d.

Show the steps and the answer
g(0)g(2)run 2rise −124246
The same picture again: y = −0.5x + 5.
input d, completed daysoutput R(d), texts remaining05003320820↓ evaluate: input given, read the output below it
The same picture again: d, completed days: 0, 3, 8; R(d), texts remaining: 500, 320, 20.
  1. g(0)=5 and g(2)=−12×2+5=−1+5=4.Two input steps remove two halves, totaling one.
  2. Name g decreasing because 4 < 5 as the input moves from zero to two.Its negative slope produces smaller outputs at larger inputs.
  3. After three days, sent texts are 60×3=180; remaining texts are R(3)=500−180=320.Remaining texts equal the initial allowance minus texts already sent.
  4. R(8)=500−60×8=500−480=20 texts.Eight completed days still leave a nonnegative count.
  5. R(9)=500−60×9=500−540=−40, so exclude day nine from this formula for remaining texts.The calculation shows where the model stops describing an available allowance. A negative remaining count is not possible.
Answer
  • g is decreasing with slope −12.
  • After three completed days, 320 texts remain.
  • Day eight leaves 20 texts.
  • Day nine is outside this completed-day remaining-text model.
Double-check At day three, 180 sent plus 320 remaining equals 500. At day eight, 480 sent plus 20 remaining equals 500. Both account for the whole allowance.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: g(x) = −12x + 5 increases because its starting value is positive.
The starting value sets height; the negative coefficient sets the change.
✓ Instead: g decreases because m = −12 < 0.
✗ Not this: Counterexample: R(9) = −40 means negative forty texts remain available.
The algebraic formula has passed the allowance's meaningful range.
✓ Instead: Restrict this completed-day remaining model to days zero through eight. Later days require a different model.
Tips and tricks
  • Read a falling line from left to right and require remaining counts to stay at least zero.

Part 3: Constant function

A constant function is like a flat monthly membership price. The day you look at the bill can change, but the monthly price stays the same. The output does not depend on which allowed input you choose. You can write h(x) = 7 as h(x) = 0x + 7 to see its slope: zero. Its graph is horizontal because every point has the same output height. A $50 unlimited-texting plan works this way during one billing month. Fifty dollars is the monthly charge, not a daily charge.

  • Rule: A constant function has m = 0 and f(x) = b, because the input contributes zero to the output.
  • Rule: Its graph is horizontal, because every input has the same output height.
  • Rule: C(d) = 50 is the flat $50 texting charge for one billing month, because changing that month's day does not change its charge.
  • Rule: A constant function belongs to the mx + b line family but is not degree 1, because its x term has coefficient zero.
(0, 7)h(0)h(2)−222468
y = 7.
Reminder
Reminder: Multiplication by zero
  • Multiplication by zero. 0 × 2 + 7 = 7, so changing the input adds nothing.
The same idea, five ways
Say it

output stays the same when input changes.

Write it

A constant function has zero slope and a horizontal graph.

In math
  • m = 0
  • f(x) = b
  • f(x) = 0x + b
  • h(x) = 7
  • C(d) = 50
Like

A fixed membership price stays the same throughout the billing month.

See it
(0, 7)h(0)h(2)−222468
The same picture again: y = 7.

Worked example

Seven everywhere and fifty dollars for the month

OpenStax problem

Constant means equal outputs at different inputs. Find h(0) and h(2) for h(x) = 7. Then find the monthly texting charge on completed days one and three of the same billing month.

Show the steps and the answer
(0, 7)h(0)h(2)−222468
The same picture a third time: y = 7.
input d, completed days in one billing monthoutput C(d), monthly dollars050150350↓ evaluate: input given, read the output below it
The monthly charge remains fifty dollars at each selected day.
  1. Rewrite h(x)=7 as h(x)=0x+7.The input has no contribution, so its coefficient is zero.
  2. h(0)=0×0+7=7 and h(2)=0×2+7=7.Zero multiplication removes either input.
  3. C(d)=50, so C(1)=50 dollars and C(3)=50 dollars.The question measures the fixed charge for one billing month.
  4. Read slope zero dollars per day and classify C as constant.An extra day does not change that month's charge.
Answer
  • h(0) = h(2) = 7, so h is constant with slope zero.
  • C(1) = C(3) = $50 for the same billing month, so C is constant with slope zero dollars per day.
Double-check The charge difference is 50 − 50 = 0 dollars, confirming zero change and a horizontal graph.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: h(x) = 7 has slope seven.
Seven is the output, not its change. It does not multiply x.
✓ Instead: h(x) = 0x + 7 has slope zero and initial value seven.
✗ Not this: Counterexample: A flat $50 monthly plan costs 50d after d days.
That would describe a daily charge rather than a monthly one.
✓ Instead: The current billing month's charge is C(d) = 50 dollars.
Tips and tricks
  • Insert a zero input coefficient when the input letter is absent.

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

Classify a line by slope

1
Is m positive?
YesThe function is increasing.
NoCheck whether m is negative.
↓
2
Is m negative?
YesThe function is decreasing.
Nom is zero, so the function is constant.
↓
3
Does the output count a remaining allowance?
YesStop the decreasing model before its count becomes negative.
NoApply the story's other limits.
  1. Identify the input coefficient.
  2. Use its sign to name increasing, decreasing, or constant.
  3. Check with outputs at increasing allowed inputs.
  4. Apply limits from the real situation.

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

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: A function is increasing whenever its outputs are positive.
Increasing compares outputs at larger inputs. Positive outputs can still become smaller.
✓ Instead: g(x) = −12x + 5 decreases because its slope is negative, even where its outputs are positive.
✗ Not this: Counterexample: A horizontal line's slope equals its height.
Height is output; slope is output change per input unit.
✓ Instead: h(x) = 7 has initial value seven and slope zero.

Tips and tricks

  • Read the slope sign, then read the graph left to right.
  • For this text-count model, use whole completed days and exclude negative remaining counts.

7 The trap

Tip: Classify by the input coefficient rather than the starting value. In 3x − 2, the positive three gives increasing behavior.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 4 of 9

Slope: output change divided by input change

Subject: MathematicsLeans on: Ordered pairsLeans on: Subtracting negativesLeans on: Signed divisionLeans on: Reducing fractionsLeans on: Function notationLeans on: Absolute valueLeans on: Division by zeroLeans on: Units and roundingOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Picture a ramp. You walk forward along the floor and climb upward at the same time. To describe its tilt, you compare how much you climbed with how far you walked forward. On a graph, the upward change is called rise, and the forward change is called run. Either change can be negative if you move down or left. The slope is rise divided by run. You are asking how much the output changes for one unit of input change. A climb of 6 over a forward move of 3 means a climb of 2 for each step forward. The total climb is 6, but the slope is 2.

2 Picture it

(3, −2)(8, 1)run 2rise 1.2246810−4−22(3, −2)(8, 1)run 2rise 1.212345678910−4−22
The verified points give rise three and run five.

Reminder

Reminder: Ordered pairs, Subtracting negatives, Signed division, Reducing fractions, Function notation, Absolute value, Division by zero, Units and rounding
  • Ordered pairs. (3, −2) means input 3 and output −2.
  • Subtracting negatives. 1−(−2)=1+2=3.
  • Signed division. −7−3 = 73, while −73 is negative.
  • Reducing fractions. 63 = 2 because 6 ÷ 3 = 2.
  • Function notation. f(4) = 9 means the point (4, 9).
  • Absolute value. |−4| = 4 because −4 is four units from zero.
  • Division by zero. 50 is undefined because no number times zero gives five.
  • Units and rounding. 9dollars3items = 3 dollars per item; 103 ≈ 3.33 is rounded.

3 Why

Subscripts 1 and 2 label the first and second points; they are not powers. From input x1 to input x2, the horizontal change is x2 − x1; the vertical change is y2 − y1. Dividing spreads the vertical change across the horizontal units. For y = mx + b, subtracting the outputs gives (mx2 + b) − (mx1 + b) = m(x2 − x1). The starting amounts cancel. Divide by the nonzero input change to get m. That is why every pair of distinct inputs on the same line gives the same slope.

4 The rule

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

Units are output units per input unit.

The same idea, five ways

Say it

slope is change in output divided by change in input.

Write it

the output changes by m units per one-unit increase in input.

In math
  • m = riserun
  • m=y2−y1x2−x1
  • m=f(x2)−f(x1)x2−x1
  • Δy = mΔx; Δ means change
  • Graph words: vertical change divided by horizontal change
Like

Compare height gained on a ramp with floor distance covered.

See it
startrise 4, run 2run 1rise 22246
A ratio of changes describes the tilt.

The same idea, other ways

As a ramp

Walking five feet forward and climbing three gives slope 35. You climb three fifths of a foot for each foot forward.

startfinishrun 2rise 1.22461234
Divide the climb by the forward distance.
As a bill

Four more notebooks add $12. Each notebook adds 124 = $3. Dollars are the output units and notebooks are the input units.

4 more notebooks$3 per notebookinputoutput$12 more
Input change times rate equals output change.
As repeated steps

Slope −2 means one right and two down. Three right then means six down. Negative tells you the output falls as input increases.

startone rightthree rightrun 1rise −224−2246
The size of the output change scales with the input change.
Why either point order works

Going from (3, −2) to (8, 1) gives 35. Going backward gives −3−5, still 35. Both changes reversed, so the ratio stayed the same.

forward: 35

backward: −3−5 = 35

mixed order: 3−5 is wrong

Part 1: Coordinate slope

Two point addresses tell you the start and finish of a walk. Subtract the y-coordinates to find vertical displacement, the signed upward or downward change. Subtract the x-coordinates to find horizontal displacement. These are rise and run. Use the same start and finish for both.

  • Rule: rise = y2 − y1 and run = x2 − x1, because change is finish minus start.
  • Rule: m = riserun when run ≠ 0, because division gives change per input unit.
startfinishrun 2rise 1.22468−4−22
Rise and run are changes, not the coordinates of a single point.
Reminder
Reminder: Signed subtraction
  • Signed subtraction. Subtracting −2 means adding 2.
The same idea, five ways
Say it

finish minus start in both directions.

Write it

divide vertical displacement by horizontal displacement.

In math
  • rise = Δy = y2 − y1
  • run = Δx = x2 − x1
  • m=ΔyΔx
Like

Compare a ramp's climb with its forward distance.

See it
startfinishrun 2rise 1.22468−4−22
The same two addresses supply both changes.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: use 18 from the second point.
Those are a location's coordinates, not its changes from the first point.
✓ Instead: Subtract both start coordinates first: 1−(−2)8−3 = 35.
Tips and tricks
  • say finish minus start twice.

Part 2: Slope units and a constant-change assumption

Imagine spreading newly arrived people equally across several years. The population change goes on top and elapsed years go on bottom. That gives people per year. A linear model uses that same yearly amount throughout the interval. Actual populations might change differently within the interval, so state the constant-change assumption.

  • Rule: output units per input unit follow the same top-over-bottom order as the numbers.
  • The calculation gives an average rate; a constant-change model treats it as the rate throughout.
  • Input zero can mean years after a chosen date, not calendar year zero.

1900people3years

= 19003 people per year

≈ 633 people per year, rounded

Reminder
Reminder: Exact versus rounded
  • Exact versus rounded. 103 is exact; 3.33 is approximate, so use ≈.
The same idea, five ways
Say it

about six hundred thirty-three people per year.

Write it

assuming steady growth, each year adds 19003 people.

In math
  • m = 8100−62002012−2009 = 19003 people per year
  • m ≈ 633 people per year, rounded
  • P(t) = 6200 + 19003t, with t years after 2009
Like

Share the total growth equally among the elapsed years.

See it
20092012run 1rise 633262106670713075908050
A gain of 1900 is spread across three years.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: the rate is 1900 years per person.
Population is the output and time the input; both units and division were reversed.
✓ Instead: Use 19003 people per year.
Tips and tricks
  • write units before you reduce.

Part 3: Steepness and zero run

A downhill ramp can be as steep as an uphill ramp. The sign tells direction, while absolute value tells size without direction. Absolute value means distance from zero, so |−4| = 4. With matching scales, slope −4 is steeper than slope 1. A flat walk has no rise; a vertical move has no run.

  • Rule: with matching axis scales and units, greater |m| means a steeper line because one horizontal unit creates more vertical change.
  • Rule: a horizontal line has slope zero because its rise is zero and its run is nonzero.
  • Rule: a vertical line has undefined slope because its run is zero. It is not a function of x because one input has multiple outputs.
run 1rise −4−22−8−448
Compare tilt on the same axes.
Reminder
Reminder: Absolute value, Zero multiplication
  • Absolute value. |−4| = |4| = 4 because both are four units from zero.
  • Zero multiplication. 0 × 7 = 0 explains why 07 = 0 and why 70 has no value.
The same idea, five ways
Say it

size gives steepness and sign gives direction.

Write it

compare absolute slopes using matching scales and units.

In math
  • |−4|=4>|1|=1
  • Horizontal: y = 4, m = 0
  • Vertical: x = 2, slope undefined
Like

A staircase has the same steepness whether you go up or down.

See it
run 1rise −4−22−8−448
The falling line has a larger absolute slope than the dashed rising line.

Worked example

Zero on top versus zero on bottom

Find slopes through (1, 4) and (6, 4), then through (2, 1) and (2, 6). This asks whether each move is flat or has no forward travel.

Show the steps and the answer
firstsecond246246
No output change means zero slope.
12 ÷ 3 = 412 ÷ 2 = 612 ÷ 1 = 1212 ÷ 0 = ?0 groups: nowhere to put them, so no answer
Five divided by zero has no value.
  1. First rise =4−4=0; run =6−1=5.Outputs match while inputs differ.
  2. First slope =05=0, so the line is horizontal.Zero spread across five units remains zero.
  3. Second rise =6−1=5; run =2−2=0.Inputs match while outputs differ.
  4. Second slope would be 50, so it is undefined; x=2 is vertical and is not a function of x.No number times zero gives five, and input 2 has multiple outputs.
Answer
  • First: slope 0, horizontal.
  • Second: undefined slope, vertical, not a function of x.
Double-check For the flat line, 0 × 5 recovers rise zero. For the vertical line, no finite slope times run zero can recover rise five.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: −4 < 1, so slope −4 is less steep.
That comparison includes direction rather than magnitude.
✓ Instead: Compare |−4| = 4 with |1| = 1. The slope −4 is steeper on matching axes.
✗ Not this: Counterexample: a vertical line has zero slope.
Vertical means zero run. Zero slope requires zero rise.
✓ Instead: Horizontal has slope zero; vertical has undefined slope.
Tips and tricks
  • a flat floor has zero rise; a vertical wall has zero run.

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

Calculate and interpret slope

1
Is the input change zero?
YesDo not divide. Distinct points with that input form a vertical line with undefined slope.
NoDivide output change by input change.
↓
2
Is a rounded answer requested?
YesKeep the exact fraction first, then label the requested approximation.
NoKeep the reduced exact fraction if its decimal does not end.
  1. Name input and output units.
  2. Subtract in matching order.
  3. Check the run, then divide if it is nonzero.
  4. Reduce and interpret the units and sign.
  5. Multiply slope by run to recover rise.

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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

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

Rung 2 of 2

A downward move

Find the slope through (4, 7) and (6, 1). This asks how much the output falls per step right.

Show the steps and the answer
startfinishrun 1rise −34648
Moving right while falling gives negative slope.
  1. Rise =1−7=−6.The output falls six.
  2. Run =6−4=2.The input increases two.
  3. m=−62=−3.Six down across two units is three down per unit.
Answer
m=−3.
Double-check −3 × 2 = −6, and 7 − 6 = 1.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: 1−(−2)3−8 gives the slope through (3, −2) and (8, 1).
The point order matches neither direction of travel; only the denominator was reversed.
✓ Instead: Use 1−(−2)8−3 = 35, or reverse both differences.
✗ Not this: Counterexample: a climb of four across two units gives slope four.
Four is total rise. Slope gives rise per input unit.
✓ Instead: m = 42 = 2. Check: 2 × 2 = 4.
✗ Not this: Counterexample: two population counts prove a town grows steadily every year.
They determine an average over the interval. Growth between observations might vary.
✓ Instead: Treat that rate as a constant slope only under a stated or justified constant-change assumption.

Tips and tricks

  • remember rise over run. Output changes vertically, so it goes on top.
  • keep coordinate pairs together before subtracting.
  • 19003 is exact; 633 is rounded and will not reproduce the endpoint exactly.

7 The trap

subtracting outputs in one order and inputs in the other reverses the sign. Use the same starting point for both differences.

Lesson 5 of 9

Anchor a line with a slope and a point

Subject: MathematicsLeans on: SlopeLeans on: Ordered pairsLeans on: Subtracting negativesLeans on: DistributionLeans on: SolvingLeans on: FractionsLeans on: SubstitutionOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Imagine you know one place on a ramp and how much it climbs for each step forward. You can find every other place by measuring how far you moved from that known place. A line works the same way. The known point is your anchor. Compare the new input with the anchor's input, multiply that change by the slope, and get the output change from the anchor. Point-slope form writes that thought as one equation. You do not have to know where the line crosses the vertical axis first. The anchor can be anywhere on the line, including below or to the left of zero.

2 Picture it

anchorchange (1, 2)run 1rise 2246−8−44anchorchange (1, 2)run 1rise 2123456−8−44
Measure both changes from the same anchor.

Reminder

Reminder: Slope, Ordered pairs, Subtracting negatives, Distribution, Solving, Fractions, Substitution
  • Slope. m = 2 means one right gives two up; three right gives six up.
  • Ordered pairs. (4, 1) gives x1 = 4 and y1 = 1.
  • Subtracting negatives. x−(−3)=x+3.
  • Distribution. 2(x − 4) = 2x − 8 because 2 multiplies both terms.
  • Solving. Add 1 to y − 1 = 2x − 8 to isolate y.
  • Fractions. 92+1=92+22=112.
  • Substitution. At x = 4, 2x − 7 becomes 2(4) − 7 = 1; multiply first.

3 Why

For an anchor (x1, y1) and another point (x, y), the slope formula is m = y−y1x−x1 when x ≠ x1. Multiplying by x − x1 gives y − y1 = m(x − x1). This new equation also includes the anchor: substituting x = x1 and y = y1 gives 0 = m × 0. Distributing and adding y1 gives y = mx + (y1 − mx1), so both forms describe the same line.

4 The rule

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

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

The same idea, five ways

Say it

y minus the known y equals the slope times the difference between x and the known x.

Write it

output change from a known point equals slope times input change from that point.

In math
  • y−y1=m(x−x1)
  • f(x)−y1=m(x−x1)
  • y=y1+m(x−x1)
  • b = y1 − mx1
  • Graph words: line with slope m through (x1, y1)
Like

A spot on a ramp and its tilt locate every other spot.

See it
(0, −7)(3.5, 0)known pointrun 1rise 2246−8−44
One point fixes location and slope fixes tilt.

The same idea, other ways

As a walk from an anchor

Start at (4, 1). To reach input 7, move 7 − 4 = 3 right. Slope 2 tells you to move 6 up. Output becomes 1 + 6 = 7. Point-slope form records this walk for every input.

startthree right, six uprun 1rise 2468−2246810
A known point is the starting place for your calculation.
As a balance

The two sides measure the same change. Output change y − 1 equals twice input change x − 4. At the anchor both changes are zero; elsewhere the slope keeps them in the same ratio.

=y − 12(x − 4)do the same thing to both sides
Balance output change against slope times input change.
As a memory cue

Match y with y and x with x: subtract the known y from y, and the known x from x. Anchor (−2, 3) gives y − 3 = m(x + 2), because x − (−2) = x + 2.

anchor: (x1, y1)

y−y1=m(x−x1)

anchor (−2, 3): y − 3 = m(x + 2)

As two versions of the same rule

y − 1 = 2(x − 4) emphasizes the known point. y = 2x − 7 emphasizes the initial value. Expanding and adding 1 changes the appearance while keeping the same input-output pairs.

y−1=2(x−4)

y−1=2x−8

y=2x−7

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

Write a line from slope and one point

1
Is the anchor's input zero?
YesIts output is b, so y = mx + b can be written directly.
NoUse point-slope form or substitute into y = mx + b to solve for b.
↓
2
Is slope-intercept form requested?
YesDistribute, isolate y and check the anchor again.
NoA correct point-slope equation already describes the line.
  1. Match coordinates with x1 and y1.
  2. Substitute into point-slope form.
  3. Distribute and isolate y if slope-intercept form is requested.
  4. Check the anchor and the coefficient of x.

6 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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 3

Input zero is the anchor

Write the line with slope 1 through (0, 2). This asks for a rule starting at 2 and adding 1 per input unit.

Show the steps and the answer
(0, 2)(−2, 0)anchorone rightrun 1rise 12246
An input-zero point gives b immediately.
  1. y−2=1(x−0).Match the point's input and output with their variables.
  2. y−2=x. Add 2 to get y=x+2.Adding two isolates y and reveals b = 2.
  3. At x=0,y=0+2=2.This verifies the solved equation at the anchor.
Answer
  • Point-slope: y − 2 = 1(x − 0).
  • Slope-intercept: y = x + 2.
Double-check Input 1 gives 3, one more than the starting output, so the slope fits.

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

Rung 3 of 3

A fractional slope

Write the line with slope −32 through (3, 1). This asks for an exact equation when the per-step change is fractional.

Show the steps and the answer
(0, 5.5)(3.67, 0)b = eleven halvesanchortwo right, three downrun 1rise −1.5246−4−2246
Use run two to make the fractional slope's rise a whole number.
  1. y−1=−32(x−3).Use the given slope and anchor.
  2. y−1=−32x+92.The two negatives multiply to positive nine halves.
  3. Add 1=22: y=−32x+112.Isolate y and combine constant terms using equal-sized halves.
  4. At x=3,y=−92+112=1.The exact fractions reproduce the anchor.
Answer
  • Point-slope: y − 1 = −32(x − 3).
  • Slope-intercept: y = −32x + 112.
Double-check At input 5 the output is −2. The run from 3 to 5 is two, and the rise is −3, matching slope −32.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: slope 2 through (4, 1) gives y − 4 = 2(x − 1).
The coordinates traded places, anchoring the line at (1, 4).
✓ Instead: Use y − 1 = 2(x − 4). At (4, 1), both sides are zero.
✗ Not this: Counterexample: slope −3 through (−3, 7) gives y − 7 = −3(x − 3).
Subtracting the actual input −3 gives addition, not subtraction of 3.
✓ Instead: y − 7 = −3(x + 3), so y = −3x − 2. Input −3 gives output 7.
✗ Not this: Counterexample: y − 1 = 2x − 8 becomes y = 2x − 8 − 1.
You remove −1 beside y by adding 1 to both sides.
✓ Instead: y=2x−8+1=2x−7.

Tips and tricks

  • match y with y and x with x; say the coordinate names before filling the formula.
  • keep parentheses around substituted negatives until you simplify.
  • rebuild b = y1 − mx1 from y1 = mx1 + b; it does not need a separate memory drill.

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

Lesson 6 of 9

Build the equation from two points

Subject: MathematicsLeans on: Function notationLeans on: SlopeLeans on: Subtracting negativesLeans on: Signed divisionLeans on: Point-slope formLeans on: DistributionLeans on: Solving and checkingLeans on: Common denominatorsLeans on: Order of operationsOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Suppose someone gives you two spots on a straight ramp but does not tell you its tilt. Those spots tell you how far forward and how far up the ramp goes between them. That gives the slope. Then you are back to the previous lesson: use one spot as an anchor. Two points do two jobs. Their changes tell you the tilt, and either point tells you where to place the line. Function notation can hide the same information in parentheses. Saying f(4) = 14 means the spot (4, 14), with input 4 and output 14. Translate the notation before calculating so the addresses stay clear.

2 Picture it

(0, −9)(4.5, 0)firstsecondinitial valuerun 1rise 22468−8−448(0, −9)(4.5, 0)firstsecondinitial valuerun 1rise 2123456789−8−448
Neither supplied output is the initial value unless its input is zero.

Reminder

Reminder: Function notation, Slope, Subtracting negatives, Signed division, Point-slope form, Distribution, Solving and checking, Common denominators, Order of operations
  • Function notation. f(4) = 14 translates to (4, 14).
  • Slope. 7−18−5=63=2.
  • Subtracting negatives. 1−(−2)=3.
  • Signed division. −7−3=73.
  • Point-slope form. Slope 2 at (5, 1) gives y − 1 = 2(x − 5).
  • Distribution. 2(x−5)=2x−10.
  • Solving and checking. 1 = 10 + b gives b = −9; plugging back gives 10 − 9 = 1.
  • Common denominators. −2 = −105, so −2 − 95 = −195.
  • Order of operations. 2(8) − 9 = 16 − 9 = 7; multiply first.

3 Why

Two points with different inputs fix one slope because their output change divided by input change has one value. Substituting either point into y = mx + b then fixes b. The other point also fits because the slope reproduces exactly the change between the two points. This determines one line through them. It does not prove that a real process follows that line between observations; using a linear model requires a stated or justified constant-change assumption.

4 The rule

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

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

The same idea, five ways

Say it

find the change per step, then the starting amount.

Write it

two points with different inputs determine one line's slope and initial value.

In math
  • m=y2−y1x2−x1
  • b = y1 − mx1
  • y−y1=m(x−x1)
  • y = mx + b
  • f(x) = mx + b
  • f(a) = c means (a, c)
Like

Two spots on a straight ramp tell you its tilt and position.

See it
(0, −9)(4.5, 0)knownknownrun 1rise 22468−8−448
Recover the line, then verify both marked points.

The same idea, other ways

As tilt plus location

The changes between the points give the tilt. Either point pins that tilt to a location. A different anchor with the same slope would usually give a different line.

anchorsecond pointrun 1rise 22468−8−448
The two points locate the line as well as giving its tilt.
As a machine to recover

f(0) = 6 and f(4) = 14 mean the machine starts at 6 and adds eight across four steps. That is two per step, so f(x) = 2x + 6.

4multiply by 2, add 6inputoutput14
Function values are input-output addresses.

Part 1: Two coordinate pairs

A point with input zero is especially useful because its output is already the starting value. You still need both points to calculate slope. Listing the zero-input point second changes nothing. Reversing direction changes the sign of both differences, so the slope stays the same.

  • Rule: (0, b) lies on the y-axis because its horizontal coordinate is zero.
  • Rule: either point may come first if subtraction order matches in both differences.
  • Point-slope and slope-intercept forms describe the same line after correct distribution and equal addition.
(0, −3)(1.29, 0)initialknownrun 1rise 2.3324−448
Use the point on the vertical axis to read b.
Reminder
Reminder: Signed division, Intercept
  • Signed division. −7−3 is positive 73.
  • Intercept. (0, −3) gives b = −3 because its input is zero.
The same idea, five ways
Say it

input zero tells me the starting output.

Write it

use both points for slope and the zero-input point for b.

In math
  • (3,4),(0,−3)
  • m=−3−40−3=73
  • b=−3
  • y=73x−3
Like

A ramp marker at the start gives the starting height.

See it
(0, −3)(1.29, 0)input zeroother pointrun 1rise 2.3324−448
Input zero identifies the initial value even when listed second.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: b = 4 because (3, 4) is listed first.
Initial value is tied to input zero, not listing order.
✓ Instead: Use b = −3 from (0, −3).
Tips and tricks
  • an input-zero point is the quickest anchor.

Part 2: Two values written in function notation

Function notation reports what comes out when an input goes in. The parentheses do not multiply the letter f. f(0) = 6 means input zero gives output six. f(4) = 14 means input four gives output fourteen. These are two points for the same method. Read each statement aloud before writing its point address.

  • Rule: f(a) = c means point (a, c), because a is input and c is output.
  • Rule: when f is given to be linear, two distinct input-output pairs determine its equation.
  • Use the supplied function name in the answer.
04614function
Parenthesized inputs belong beside their stated outputs.
Reminder
Reminder: Evaluation
  • Evaluation. For f(x) = 2x + 6, f(4) = 2(4) + 6 = 14.
The same idea, five ways
Say it

f of four is fourteen; input four gives output fourteen.

Write it

the function gives six at zero and fourteen at four.

In math
  • f(0) = 6
  • f(4) = 14
  • (0, 6), (4, 14)
  • f(x) = 2x + 6
Like

Two receipts show a machine's result at two settings.

See it
04614function
Each input stays connected to its own output.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: f(4) = 14 means 4f = 14.
These parentheses label a function input rather than a multiplication.
✓ Instead: It means input 4 gives output 14, the point (4, 14).
Tips and tricks
  • translate into points before calculating slope.

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

Recover a line from two points

1
Are the inputs equal?
YesIf outputs differ, there is no function line through both. If outputs also match, you have only one distinct point and need more information.
NoFind the slope.
↓
2
Does either input equal zero?
YesThat output is b.
NoUse point-slope form or solve for b by substitution.
↓
3
Is function notation requested?
YesUse the supplied function name, such as f(x).
NoWrite the requested line form, often y = mx + b.
  1. Turn the data into input-output pairs.
  2. Compute matching changes and divide to get m.
  3. Read b at input zero or solve for it using one point.
  4. Write the equation and verify both points.

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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

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

Rung 2 of 2

Negative coordinates and slope

Find the line through (−2, 5) and (4, −4). This asks you to combine signed coordinates, a fractional slope and a hidden intercept.

Show the steps and the answer
(0, 2)(1.33, 0)firstinitialsecondrun 1rise −1.5−224−448
Positive initial value and negative slope can occur together.
  1. m=−4−54−(−2)=−96=−32.Output falls nine while input increases six; reduce by three.
  2. y−5=−32(x+2).Subtracting anchor input −2 gives addition.
  3. Distribute: y−5=−32x−3. Add 5: y=−32x+2.Distribution and addition isolate y.
  4. At x=−2,y=3+2=5; at x=4,y=−6+2=−4.Substitution verifies both points.
Answer
  • Point-slope: y − 5 = −32(x + 2).
  • Slope-intercept: y = −32x + 2.
Double-check Slope −32 times run six gives rise −9; 5 − 9 = −4.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: through (5, 1) and (8, 7), use y = 2x + 1.
Output 1 belongs to input 5, not input zero. The proposed rule returns 11 at input 5.
✓ Instead: 1 = 2(5) + b gives b = −9; check 10 − 9 = 1. The line is y = 2x − 9.
✗ Not this: Counterexample: f(0) = 6 and f(4) = 14 give points (6, 0) and (14, 4).
The parenthesized number is input and the number after the equals sign is output.
✓ Instead: Use (0, 6) and (4, 14), which give f(x) = 2x + 6.
✗ Not this: Counterexample: input 2 gives outputs 1 and 6, so use a horizontal line.
Horizontal means equal outputs, whereas these inputs are equal.
✓ Instead: The points lie on vertical x = 2, which is not a function of x and has undefined slope.

Tips and tricks

  • circle an input-zero point to identify b immediately.
  • when neither input is zero, choose the point with simpler coordinates as the anchor.
  • check both points. One successful substitution cannot catch every slope error.

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

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 7 of 9

Read a graph and choose a method

Subject: MathematicsLeans on: Ordered pairsLeans on: Solving for a missing constantLeans on: SlopeLeans on: Subtracting negativesLeans on: Fractions and signsLeans on: Initial valueLeans on: DistributionOpen this lesson
Leans on 0Comes back in 0

1 In plain words

Think of a graph as a road map. A marked point tells you where the road passes. The tilt tells you how far it rises or falls while you move right. To describe a straight road with an equation, you need its tilt and one place it passes. That place can be where it crosses the vertical axis, called the y-intercept, or another marked point. Read the numbered axes before you count. A square on the picture might represent two units instead of one. If the crossing is outside the picture, use a visible point to work backward to it.

2 Picture it

(0, 1)(−1, 0)starting outputone step laterrun 1rise 12−11234(0, 1)(−1, 0)starting outputone step laterrun 1rise 1−1123−11234
Read the starting output and the output change per input step from this original graph.

Reminder

Reminder: Ordered pairs, Solving for a missing constant, Slope, Subtracting negatives, Fractions and signs, Initial value, Distribution
  • Ordered pairs. In (4, 8), the first number is input x = 4 and the second is output y = 8.
  • Solving for a missing constant. To find b in 8 = −6 + b, add 6 on both sides: b = 14. Check: −6 + 14 = 8.
  • Slope. Slope is output change over input change: 2−11−0 = 1.
  • Subtracting negatives. 1 − (−3) = 4, so keep parentheses around negative coordinates.
  • Fractions and signs. −64 reduces to −32, and −32 × 4 = −6.
  • Initial value. At input zero, y = mx + b becomes y = b.
  • Distribution. 2(x − 4) = 2x − 8 because 2 multiplies both terms.

3 Why

A straight line keeps the same rise divided by run between every pair of different inputs. Two readable points therefore determine its slope. Its y-intercept tells you the output at input zero, so together they determine y = mx + b. You do not need to see the intercept: a known point satisfies the equation, and subtracting mx from its output finds b. The result must reproduce the visible points, regardless of the size of the graph window.

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

The same idea, five ways

Say it

Read two places on the line. Find the change per step, then the output at zero.

Write it

The equation describes the same straight line as the plotted points.

In math
  • m=y2−y1x2−x1
  • b = y1 − mx1
  • y = mx + b
  • y−y1=m(x−x1)
Like

A road's tilt and one known landmark let you describe where the road goes.

See it
(0, 1)(−1, 0)(1, 2)run 1rise 12−11234
The crossing gives b = 1, and one step right gives one step up.

The same idea, other ways

As a picture

The line goes through (0, 1) and (1, 2). Its rise is 1 while its run is 1, so m = 1 and b = 1. The equation is y = x + 1.

(0, 1)(−1, 0)start at 1right 1, up 1run 1rise 12−11234
An intercept and a rise over run describe the whole original line.
As a detective story

If the crossing is hidden, a visible point is still a clue. With slope 2 and point (5, 12), the equation 12 = 2(5) + b leaves b = 2 after subtracting 10. Plug back: 2(5) + 2 = 12. You have found the hidden crossing.

=1210 + bdo the same thing to both sides
Removing 10 from both sides finds the missing starting output 2.
You are givenDo this
Slope and y-interceptWrite y = mx + b.
Slope and one pointWrite y − y1 = m(x − x1), then simplify if needed.
Two pointsFind the slope first, then use either point in point-slope form.
A tableCheck output change divided by input change on every adjacent interval. Read b at input zero, or solve for it from another column.
A word problemThe starting amount is b. The amount per input unit is m. If those are hidden, use two stated input-output pairs.

Part 1: Slope and intercept supplied

If the tilt and the crossing are already given, you have both ingredients. The slope says how much to add for each input step. The intercept says what you have before any steps. Like a parking meter with a starting charge and a charge per hour, the equation combines those two amounts.

  • Rule: A known slope m and y-intercept b give y = mx + b, because mx measures the accumulated change and b supplies the starting output.
  • The intercept point is (0, b), because m × 0 contributes zero.
  • A negative b starts below zero. It does not make the line decreasing, because the sign of m controls the change.

Slope 3: the coefficient of x

Intercept 5: the separate constant

y = 3x + 5

Reminder
Reminder: Multiplication by zero
  • Multiplication by zero. Any number times zero is zero: 3 × 0 = 0, so 3(0) + 5 = 5.
The same idea, five ways
Say it

Start at b, then change by m for each input step.

Write it

The slope and y-intercept determine the line.

In math
  • y = mx + b
  • f(0) = b
  • (0, b)
Like

Start with a parking charge, then add the charge per hour.

See it
xmultiply by 3, add 5inputoutput3x + 5
The original rule multiplies by the slope before adding the starting output.

Worked example

Insert two supplied ingredients

Writing a line means combining its starting output and change per input unit. Write the original line with slope 3 and y-intercept 5. Find its outputs at zero and one.

Show the steps and the answer
(0, 5)(−1.67, 0)startone steprun 1rise 3−224812
Start at 5 and rise 3 for each step right.
  1. Put m=3 and b=5 into y= mx +b to get y=3x+5.Both ingredients are supplied, so no missing value needs to be solved.
  2. At x=0,y=3(0)+5=5. At x=1,y=3(1)+5=8.Zero tests the starting output, and one step tests the change.
Answer
  • y = 3x + 5
  • At x = 0: y = 5.
  • At x = 1: y = 8.
Double-check The output change is 8 − 5 = 3 for an input change of 1, so the stated slope is recovered.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Slope 3 and intercept 5 give y = 5x + 3.
This swaps the amount per step with the starting amount. At input zero it gives 3 instead of 5.
✓ Instead: Write y = 3x + 5 and check that x = 0 gives y = 5.
Tips and tricks
  • Put the amount per step beside x. Put the starting output by itself.

Part 2: Graph with a visible intercept

A visible crossing at the vertical axis gives the starting output directly. Choose that crossing and another marked point. Read their coordinates from the axis numbers. Then measure the output change and the input change. You are using two landmarks on a straight road, not estimating its tilt from how it looks on the page.

  • Rule: A visible point (0, b) gives the y-intercept b, because its input is zero.
  • Two exact points determine the slope, because their output change divided by input change is constant along a line.
  • A compressed or stretched picture can change the appearance of steepness, so coordinate numbers are more reliable than the drawn angle.
(0, −3)(1.5, 0)b = −324−4−2246
Read b on the vertical axis, where the input is zero.
Reminder
Reminder: Subtracting a negative
  • Subtracting a negative. Subtracting a negative adds its positive amount: 1 − (−3) = 1 + 3 = 4.
The same idea, five ways
Say it

Read the crossing, then measure rise divided by run.

Write it

The output at the vertical axis is the starting value.

In math
  • (0, b)
  • m = riserun
  • y = mx + b
Like

Read the road's starting landmark before measuring its change between landmarks.

See it
(0, −3)(1.5, 0)(2, 1)run 1rise 224−4−2246
The original line crosses at −3 and rises 4 over a run of 2.

Worked example

Read a crossing below zero

Writing an equation means recovering the pictured line's starting output and change per step. Use the original graph's labeled points (0, −3) and (2, 1).

(0, −3)(1.5, 0)(2, 1)run 1rise 224−4−2246
A negative starting output can belong to an increasing line.
Show the steps and the answer
  1. Read b=−3 from the point (0,−3).That point is on the vertical axis where the input is zero.
  2. m=1−(−3)2−0=42=2.Subtracting −3 adds 3, and the run is two coordinate units.
  3. Write y=2x−3.The line starts at −3 and adds 2 per input unit.
Answer
y=2x−3
Double-check At x = 0, y = −3. At x = 2, y = 4 − 3 = 1. The graph's two labels both fit.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The line crosses the horizontal axis near 1.5, so b = 1.5.
The horizontal crossing has output zero. The y-intercept has input zero. These are different crossings.
✓ Instead: Use the vertical crossing (0, −3), so b = −3.
Tips and tricks
  • For b, follow the axis where x = 0 and read the output.

Part 3: Graph with an intercept outside the window

A map can show only part of a road. The road still has a location farther back, even when that place is off the map. A graph works the same way. If the vertical axis is outside the window, use two visible points for the slope. Then use one point to remove the accumulated change and uncover the starting output.

  • Rule: From a visible point, b = y1 − mx1, because subtracting the accumulated change mx1 leaves the starting output.
  • The intercept may be outside the window, because the window shows only selected input and output ranges.
  • After solving for b, plug it into the point's equation, because the recovered starting value must reproduce the known output.

A graph window edge need not be x = 0

8=−6+b

b = 14

−6+14=8

Reminder
Reminder: Keeping an equation balanced
  • Keeping an equation balanced. Add the same amount to both sides: 8 = −6 + b becomes 14 = b after adding 6.
The same idea, five ways
Say it

Take away the change since zero to recover the hidden start.

Write it

A visible point and the slope determine the unseen intercept.

In math
  • y1 = mx1 + b
  • b = y1 − mx1
  • y−y1=m(x−x1)
Like

Work backward from a road landmark to a starting place outside the map.

See it
(4, 8)(8, 2)run 1rise −1.5468246810
This original window shows two points but neither x = 0 nor the intercept 14.

Worked example

Recover a hidden crossing

Finding the equation means describing this line even beyond the displayed window. Use the original graph's points (4, 8) and (8, 2), whose intercept is not shown.

(4, 8)(8, 2)run 1rise −1.5468246810
Use the point's coordinates to find the intercept outside this original window.
Show the steps and the answer
  1. m=2−88−4=−64=−32.The output falls by 6 over a run of 4.
  2. Use (4, 8): 8=−32(4)+b=−6+b.The known point lets us find the starting output b without seeing it.
  3. Add 6 to both sides: b=14. Plug back: −6+14=8.Adding 6 removes the known contribution and the substitution verifies the recovered intercept.
  4. Write y=−32x+14.Both the slope and the starting output are now known.
Answer
  • m=−32
  • b = 14
  • y=−32x+14
Double-check At x = 8, −32(8) + 14 = −12 + 14 = 2. The other visible point fits too.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The left edge of this graph is at output 9.5, so b = 9.5.
The left edge is x = 3, not x = 0. An edge of a graph window is not automatically an axis.
✓ Instead: At x = 3, −1.5(3) + 14 = 9.5. The actual intercept is b = 14 at x = 0.
Tips and tricks
  • Write the x-coordinate of the visible left edge before deciding whether it is the y-axis.

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

Choose the equation from the information given

1
Are the slope and y-intercept both given?
YesInsert them into y = mx + b, then check the output at zero.
NoLook for a known point or two readable points.
↓
2
Is the slope known and one point given?
YesUse y − y1 = m(x − x1), or substitute the point and solve for b. Plug the point back in.
NoIf two points are given or visible, calculate the slope first.
↓
3
Is this a graph with a visible crossing at x = 0?
YesRead b from that crossing and use the slope found from two points.
NoFor a graph with a hidden crossing, use a visible point to calculate b. For a table or story, check the rates and identify the starting amount.
  1. Identify whether you have a slope, an intercept, a point, two points, a graph, a table or a word description.
  2. Find any missing slope from two points or from a stated amount per input unit.
  3. Use y = mx + b when b is known. Use y − y1 = m(x − x1) or solve b = y1 − mx1 when another point is known.
  4. Check the result against the original information, including units and allowed inputs.

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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

Read a visible intercept

Finding the equation means giving a rule for the outputs on this original line. Use the marked points (0, 1) and (1, 2).

Show the steps and the answer
(0, 1)(−1, 0)(1, 2)run 1rise 12−11234
Start with a visible crossing and a run of one.
  1. Read b=1 at x=0.The vertical crossing gives the starting output.
  2. m=2−11−0=1.Rise and run are both 1.
  3. Write y=x+1.Insert m = 1 and b = 1 into slope-intercept form.
Answer
y = x + 1
Double-check The formula gives 1 at x = 0 and 2 at x = 1, matching both labels.

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

Rung 3 of 4

A falling line with unequal coordinate changes

Reading the equation means using numbered coordinate values rather than counting drawn squares. The neighboring marked points in this original graph differ by 2 horizontally and 3 vertically. Use the labeled points (2, 6) and (6, 0) to find the equation.

(0, 9)(6, 0)(2, 6)(4, 3)run 1rise −1.524684812
Between neighboring labeled points, a horizontal coordinate step of 2 corresponds to a vertical fall of 3.
Show the steps and the answer
  1. Read the coordinate changes: 0−6=−6 vertically and 6−2=4 horizontally.Across the two intervals between labeled points, the horizontal changes total 2 + 2 = 4 and the vertical falls total 3 + 3 = 6.
  2. m=−64=−32.Coordinate rise divided by coordinate run gives slope. This calculation uses labeled numbers and works even when the axes are drawn at different scales.
  3. Use (2, 6): 6=−32(2)+b=−3+b. Add 3 to find b=9.Removing the known contribution finds the output at input zero.
  4. Plug back: −3+9=6. Write y=−32x+9.The recovered intercept must reproduce the point before we use it.
Answer
y=−32x+9
Double-check At x = 6, −32(6) + 9 = −9 + 9 = 0. A rightward input change of 4 gives an output change of −6, as shown.

Rung 4 of 4

Recover an unseen intercept

Finding the equation means extending the rule beyond the graph window. The original window shows (4, 8) and (8, 2), but it does not show x = 0. Find the equation and the hidden intercept.

(4, 8)(8, 2)run 1rise −1.5468246810
Neither the left edge nor the top edge is the y-intercept of this original line.
Show the steps and the answer
  1. m=2−88−4=−64=−32.The labeled points show a fall of 6 over a run of 4.
  2. Substitute (4, 8): 8=−32(4)+b=−6+b.A visible point lets us solve for the hidden starting output.
  3. Add 6 to get b = 14. Substitute back: −6+14=8.The equal change on both sides isolates b and the substitution confirms it.
  4. Write y=−32x+14 and identify the intercept point (0, 14).At input zero the slope term vanishes, even though that input lies outside this window.
Answer
  • y=−32x+14
  • The unseen y-intercept is (0, 14).
Double-check At x = 8, −12 + 14 = 2, matching the other point. At x = 0, the formula gives 14, above the displayed output range.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Two drawn squares right and two squares down always mean slope −1.
The axes may assign different numbers to each square. Coordinate changes, rather than the picture's square counts, determine slope.
✓ Instead: If the run is 4 units and the fall is 6 units, m = −64 = −32.

Tips and tricks

  • Write the coordinates of two exact points before touching the slope formula.
  • Find m, find b, write the line. Check both points.

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

Lesson 8 of 9

Turn a real situation into a linear model

Subject: MathematicsLeans on: Order of operationsLeans on: Solving an equationLeans on: Function notationLeans on: Slope from two pairsLeans on: Decimal multiplicationLeans on: UnitsLeans on: DomainOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Think of a jar that already holds one coin. Each day you put in two more. The total is the coins already there plus the coins added over the days. A linear model is an equation that describes a situation with the same change for each input step. It has a starting amount and an amount per step. Money, songs and pay can follow this pattern too. Name what the input counts and what the output measures. Then ask which inputs make sense. A whole number of items or policies makes sense; a negative number of items does not.

2 Picture it

x input unitsstarting amount +rate × xinputoutputtotal output
A linear model adds the accumulated change to an amount present before the input begins.

Reminder

Reminder: Order of operations, Solving an equation, Function notation, Slope from two pairs, Decimal multiplication, Units, Domain
  • Order of operations. Multiply before adding: 520 + 80(3) = 520 + 240 = 760.
  • Solving an equation. In 1160 = 80n + 520, subtract 520 from both sides and divide both sides by 80. The check is 80(8) + 520 = 1160.
  • Function notation. C(100) asks for the cost output at input 100; replace x with 100.
  • Slope from two pairs. 920−7605−3 = 1602 = 80 dollars per policy.
  • Decimal multiplication. 37.5 × 100 = 3750; moving two place values corresponds to multiplying by 100.
  • Units. Dollars per item times items gives dollars; add the starting amount in dollars.
  • Domain. A whole-policy count can be 3 but cannot be 3.5 or −1.

3 Why

If each step adds m, then x steps add mx. Adding the initial amount b gives the total mx + b. The units explain the multiplication: dollars per item times items gives dollars. If two totals are supplied instead, their difference reveals the change earned or spent across the extra inputs. Dividing by that input change finds m, and subtracting mx from either total finds b. This describes the situation only while the constant-rate assumption and its allowed inputs remain valid.

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

The same idea, five ways

Say it

Start with what is already there, then add the same amount for every step.

Write it

A linear model combines a fixed starting amount with change at a constant rate.

In math
  • f(x) = mx + b
  • f(0) = b
  • m = outputchangeinputchange
Like

A coin jar has a starting collection plus the same deposit each day.

See it
d daysstart with 1, add 2dinputoutputJ(d) = 1 + 2d coins
The original jar model separates the starting coin from the coins added later.

The same idea, other ways

As a small story

One coin is in the jar before you begin. One day adds 2 coins, giving 3. Two days add 4 coins, giving 5. The same daily deposit explains J(d) = 1 + 2d.

input d daysoutput J(d) coins011325
Each one-day interval in this original table adds the same two coins.
By following the units

A charge of $2 per item times 3 items gives $6. If a $5 starting charge also applies, the total is $11. The item units cancel in the multiplication, leaving dollars.

$2 per item × 3 items = $6

$5 starting charge + $6 = $11

C(x) = 5 + 2x

Part 1: Fixed cost plus marginal cost

A business can pay rent even when it makes no items. That starting expense is a fixed cost. Overhead means expenses of keeping the business running, such as office rent. Making each item adds a production cost. When each extra item costs the same amount, that amount is the marginal cost. Add the fixed cost to the variable cost from the items made.

  • Rule: C(x) = 1250 + 37.5x, because Ben pays $1,250 in fixed monthly overhead plus $37.50 for every item made that month.
  • The fixed cost is $1,250 per month and the marginal cost is $37.50 per item, because one is paid without production and the other is added by each extra item.
  • The variable cost is 37.5x dollars, because it changes with the number of items. The variable production cost per item is constant in this model.
  • The domain is x = 0, 1, 2, … items per month, because whole items cannot be negative or fractional. Continue only while the stated cost arrangement applies.
(0, 1.25e+03)(−33.3, 0)fixed cost100 items123660841086001800300042005400
The line displays the trend, and only whole-number item inputs are used for actual production.
Reminder
Reminder: Multiplication with a decimal
  • Multiplication with a decimal. Multiplying by 100 shifts the decimal two places: 37.5 × 100 = 3750.
The same idea, five ways
Say it

Pay the monthly overhead, then add $37.50 for every item.

Write it

The total monthly cost is the fixed cost plus the variable cost.

In math
  • C(x) = 1250 + 37.5x
  • C(0) = 1250
  • C(x+1)−C(x)=37.5
  • x ≥ 0, with x a whole number
Like

Rent is the cost of opening the workshop; materials add cost each time you make another item.

See it
100 items$1,250 + $37.50 ×itemsinputoutput$5,000 that month
The monthly overhead is added once, while the per-item cost is multiplied by 100.

Worked example

Ben's cost, from no production to 100 items

OpenStax problem

Finding C(x) means describing the monthly cost for x items. Finding C(100) means putting in 100 items and reading the dollars out. Ben pays $1,250 monthly overhead and $37.50 per item. Find costs for zero, one and 100 items.

Show the steps and the answer
input x itemsoutput C(x) dollars0125011287.51005000↓ evaluate: input given, read the output below it
The output under zero is the fixed cost; the highlighted column gives the cost of 100 items.
  1. Let x count items made in one month and C(x) measure that month's cost in dollars.This makes the units and the nonnegative whole-number domain explicit.
  2. Write C(x)=1250+37.5x.The overhead is present even at zero items, and every item adds $37.50.
  3. C(0)=1250+37.5(0)=1250. C(1)=1250+37.5=1287.5.Zero items test the fixed cost; one item tests a single added production cost.
  4. C(100)=1250+37.5(100)=1250+3750=5000.One hundred items contribute $3,750 above the fixed overhead.
Answer
  • C(x) = 1250 + 37.5x
  • C(0) = $1,250.
  • C(1) = $1,287.50.
  • C(100) = $5,000.
Double-check Compute 100 groups of $37.50 as 10 × $375 = $3,750. Adding the $1,250 overhead gives $5,000 again.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: C(x) = (1250 + 37.5)x.
This charges the entire monthly overhead again for every item and gives zero cost when no items are made.
✓ Instead: C(x) = 1250 + 37.5x, so C(0) = 1250.
Tips and tricks
  • Test zero production. A fixed monthly cost must still appear.

Part 2: A music collection growing each month

Marcus has a collection before he starts adding new songs. That collection is the starting amount. Each completed month adds the same new batch. This works like adding the same stack of books to a shelf every month. Count the starting collection once, then add the number of monthly batches times the size of a batch.

  • Rule: N(t) = 200 + 15t, because Marcus starts with 200 songs and adds 15 songs each month.
  • The initial value is 200 songs and the slope is 15 songs per month, because t counts months since the starting collection was recorded.
  • A year corresponds to input t = 12, because there are 12 months in a year.
  • Use nonnegative whole-number t for completed monthly batches. A fractional-month value on the drawn line is an estimate, because the description does not specify when individual songs are added.
(0, 200)(−13.3, 0)starting collectionone year24681012198242286330374
The rising line shows the trend; the stated monthly batches give exact totals at whole months.
Reminder
Reminder: Function notation
  • Function notation. N(12) means use input 12 in the rule: N(12) = 200 + 15 × 12. It does not mean N times 12.
The same idea, five ways
Say it

Start with 200 songs and add 15 each completed month.

Write it

The collection contains its starting 200 songs plus 15 songs for each elapsed month.

In math
  • N(t) = 200 + 15t
  • N(0) = 200
  • N(12) = 380
  • t ≥ 0, with t a whole number for monthly batches
Like

A bookshelf begins with a stack of books and gains the same new stack every month.

See it
12 months200 + 15tinputoutput380 songs
Twelve batches add 180 songs to the starting collection of 200.

Worked example

Marcus's songs after zero months, one month and a year

OpenStax problem

Finding N(12) means using 12 months as the input to find the number of songs. Marcus starts with 200 songs and adds 15 songs each month. Write the model and find the totals after zero months, one month and one year.

Show the steps and the answer
input t monthsoutput N(t) songs0200121512380↓ evaluate: input given, read the output below it
The highlighted input is 12 months, not one month.
  1. Let t measure completed months and N(t) count songs. Write N(t)=200+15t.The starting collection contributes 200, and t monthly additions contribute 15t songs.
  2. N(0)=200 and N(1)=200+15=215.The smallest inputs check the starting collection and one monthly batch.
  3. One year is 12 months, so calculate N(12)=200+15(12).The rate is per month, so the input must also be measured in months.
  4. 15(12)=180, and 200+180=380.Add the 12 new batches to the collection that was already there.
Answer
  • N(t) = 200 + 15t
  • N(0) = 200 songs.
  • N(1) = 215 songs.
  • N(12) = 380 songs.
Double-check Six months add 90 songs. Two six-month groups add 180, and 200 + 180 = 380. The positive rate also explains why the collection increases.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: After one year, N(1) = 215 songs.
The input is measured in months. Input 1 means one month rather than one year.
✓ Instead: Convert one year to 12 months and use N(12) = 380 songs.
Tips and tricks
  • Write the input unit next to the number before substituting it.

Part 3: Salary plus commission

A salesperson's pay can have two pieces. The base salary is the amount earned even with no sales. A commission is extra pay for each sale. This is like getting a regular allowance plus the same bonus for each completed job. If neither piece is stated, compare two weeks. Extra earnings divided by extra policies reveals the commission. Remove that week's commissions to uncover the base salary.

  • Rule: I(n) = 520 + 80n, because Ilya earns a $520 weekly base salary plus $80 commission per new policy.
  • The commission rate is $80 per policy, because an earnings increase of $160 accompanied an increase of 2 policies.
  • The base salary is $520 per week, because removing 3 commissions of $80 from $760 leaves $520.
  • The domain is n = 0, 1, 2, … policies sold in one week, because sold policies are whole objects and their count is nonnegative. The pay arrangement is assumed unchanged between the two weeks.
3 policies$520 + $80 ×policiesinputoutput$760 for the week
A whole-number policy count determines the commissions added to the weekly base salary.
Reminder
Reminder: Interpreting a rate
  • Interpreting a rate. $160 more for 2 more policies means $160 ÷ 2 = $80 per policy.
The same idea, five ways
Say it

Keep the weekly base pay, then add the same bonus for each new policy.

Write it

Weekly income equals base salary plus commission per policy times policies sold.

In math
  • I(n) = 520 + 80n
  • I(3) = 760
  • I(5) = 920
  • m=920−7605−3=80
  • n ≥ 0, with n a whole number
Like

A regular allowance is paid before any job bonuses are added.

See it
input n policiesoutput I(n) dollars per week37605920
Two more policies correspond to $160 more earnings, revealing $80 per policy.

Worked example

Evaluate the pay rule, then recover it from earnings

OpenStax problem

Finding I(n) means finding weekly pay for a given policy count. First use a $520 base salary and $80 per policy to find the pay for zero, one, three and five policies. Then recover that same model from the source earnings of $760 for three policies and $920 for five policies.

Show the steps and the answer
input n policiesoutput I(n) dollars37605920
Use the two observed weeks to infer the constant commission.
=760240 + bdo the same thing to both sides
Subtract the commissions on both sides to find the weekly base salary.
  1. With the stated ingredients, write I(n)=520+80n. I(0)=520 and I(1)=600.Zero policies give base pay; one policy adds one commission.
  2. I(3)=520+80(3)=760. I(5)=520+80(5)=920.Multiply the commission by the number of policies before adding the base salary.
  3. Now treat only the two earnings as given: m=920−7605−3=1602=80 dollars per policy.The change in pay divided by the change in policy count finds the commission under the fixed-pay arrangement.
  4. Use three policies to find the base salary: 760=80(3)+b=240+b, so b=760−240=520.Removing the commissions finds the pay that would remain with no policies.
  5. Plug the base salary back into that week's equation: 240+520=760. Write I(n)=520+80n.The recovered base salary must reproduce the known earnings before it is used.
Answer
  • I(n) = 520 + 80n
  • Base salary: $520 per week.
  • Commission: $80 per policy.
  • I(0) = $520.
  • I(1) = $600.
  • I(3) = $760.
  • I(5) = $920.
Double-check The other week gives 80(5) + 520 = 920. Removing its $400 commission also leaves the same $520 base salary.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The $760 earned for three policies is the base salary.
That total includes three commissions. Base salary means earnings at zero policies.
✓ Instead: Subtract 3 × $80 = $240 from $760 to find the $520 base salary.
Tips and tricks
  • For a base salary, remove all commissions from either known week's total and compare the results.

Part 4: A target output asks for an input

Imagine a rental bill with a starting fee and the same charge for every hour. If you know the hours, you can calculate the bill. If you know the bill, you can work backward to the hours. Remove the starting fee first. What remains is the charge for the hours, so divide it by the nonzero hourly rate. A flat membership price works differently. Changing your visit count leaves the bill unchanged. An exact target either equals that flat price for every allowed count or cannot be reached at all.

  • Rule: For m ≠ 0, solving mx + b = T finds the input x = T−bm that produces target output T, because subtracting b and dividing by m undo the model operations.
  • Rule: For m = 0, output is always b. Target b is reached at every allowed input; another target is never reached.
  • Rule: Check the solved input against the domain, because an algebraic solution may require a negative or fractional count that the situation forbids.
=target billhourly rate ×hours +starting feedo the same thing to both sides
A target-output question works backward through the cost model.
Reminder
Reminder: Solve and substitute
  • Solve and substitute. For 62 = 7h + 13, subtract 13 and divide by 7 to get h = 7. Putting 7 back gives 62.
The same idea, five ways
Say it

the output is known; find every allowed input that gives it.

Write it

Solve the model equal to the target, then check its domain.

In math
  • f(x) = T
  • mx + b = T
  • m≠0:x=T−bm
  • m = 0 and T = b: every allowed input
  • m = 0 and T ≠ b: no input
Like

Read a bill backward by removing its starting fee and counting its hourly charges.

See it
=target Tmx + bdo the same thing to both sides
Both sides must describe the same requested output.

Worked example

Recover hours from a total bill

Find the hours means the bill is known and the hour input is unknown. A rental costs $13 to begin plus $7 per whole hour. How many hours give a $62 bill?

Show the steps and the answer
=627h + 13do the same thing to both sides
The remaining bill counts seven-dollar hour charges.
  1. Write 62=7h+13.The requested dollar output replaces C(h) and leaves h unknown.
  2. Subtract 13: 49=7h.This removes the starting fee to isolate the hourly charges.
  3. Divide by 7: h=7.Seven equal seven-dollar charges account for the remaining forty-nine dollars.
Answer
7 whole hours.
Double-check 7 × 7 + 13 = 49 + 13 = 62, and 7 is an allowed nonnegative whole hour count.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Solve C(v) = 30 for C(v) = 29 by dividing (30 − 29) by slope zero.
Zero cannot be a divisor and the visit count cannot change the fixed price.
✓ Instead: No input gives $30. Every allowed input gives $29 instead.
✗ Not this: Counterexample: A computed count of 3.5 whole items is automatically an exact attainable target.
The domain permits only whole item counts.
✓ Instead: Report that no allowed whole count reaches the target exactly if the nonzero-rate solution is 3.5.
Tips and tricks
  • Ask whether you are given an input to evaluate or an output to solve for. Check the rate before dividing and the domain after solving.

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

Build, evaluate or reverse a real-world model

1
Are the starting amount and amount per input unit stated?
YesUse those as b and m.
NoIf a rate and one pair are given, substitute that pair to find b and check it. Otherwise use two distinct input-output pairs to find m, then b. If neither kind of information is supplied, the model is not determined.
↓
2
Does the input count indivisible objects or completed monthly additions?
YesUse nonnegative whole-number inputs such as 0, 1 and 2.
NoFor continuous measurements such as elapsed time, allow nonnegative real inputs during the period when the model applies.
↓
3
Is the question giving a target output rather than an input?
YesFor nonzero m, set the model equal to the target, solve for the input, plug back and check the domain. For m = 0, compare the target with b: equality makes every allowed input a solution; a different target has no solution.
NoReplace the input symbol with the stated value and compute the output.
  1. Name both variables and their units.
  2. Find the rate and starting amount, directly or from two input-output pairs.
  3. Write f(x) = mx + b and state the meaningful domain.
  4. Substitute a known input, or solve for a missing input from a stated output.
  5. Plug the answer back into the model and interpret it with units.

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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 5

Starting amount plus a one-step rate

Writing B(w) means finding the total books after w completed weeks. A shelf starts with two books and gains three books each week. Find B(1) and B(4).

Show the steps and the answer
4 completed weeks2 + 3winputoutput14 books
The starting books are counted once; the weekly additions are counted four times.
  1. Let w count completed weeks and B(w) count books. The domain is nonnegative whole weeks.The books are added in weekly batches.
  2. Write B(w)=2+3w.Start with 2 books and add 3 for each weekly batch.
  3. B(1)=2+3(1)=5. B(4)=2+3(4)=14.One batch adds 3 and four batches add 12.
Answer
  • B(w) = 2 + 3w
  • B(1) = 5 books.
  • B(4) = 14 books.
Double-check Four batches of 3 make 12 books added. Together with the starting 2, that is 14 books. B(0) = 2 checks the start.

Rung 2 of 5

Evaluate the cost of 100 items

OpenStax problem

Finding C(100) means using 100 items as the input to find monthly cost in dollars. Use Ben's $1,250 fixed overhead and $37.50 cost per item.

Show the steps and the answer
100 items1250 + 37.5xinputoutput$5,000
Keep the fixed cost and the per-item cost in their separate roles.
  1. Write C(x)=1250+37.5x for nonnegative whole-number item counts.The monthly starting cost is fixed while each item adds a constant cost.
  2. Substitute 100: C(100)=1250+37.5(100).The question gives the item count and asks for the corresponding output.
  3. 37.5(100)=3750, so C(100)=1250+3750=5000.Add the variable production cost to the fixed overhead.
Answer
C(100) = $5,000 for the month.
Double-check The cost above overhead is $5,000 − $1,250 = $3,750. Dividing that by 100 items gives the stated $37.50 per item.

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

Rung 4 of 5

Solve for a target weekly income

Solving I(n) = 1160 means the weekly output is $1,160 and you must find the policy input that gives it. Under I(n) = 80n + 520, how many policies produce that income?

Show the steps and the answer
=116080n + 520do the same thing to both sides
Remove the base salary before dividing the remaining target earnings by the commission rate.
  1. Set 1160=80n+520.The target output replaces I(n), leaving the number of policies unknown.
  2. Subtract 520 from both sides: 640=80n.Removing the base salary isolates the income that must come from commissions.
  3. Divide both sides by 80: n=64080=8.Each policy earns $80 of commission, so this finds the needed number of policies.
  4. Plug back: I(8)=80(8)+520=640+520=1160.The found input must give the target output, and 8 is an allowed nonnegative whole-number count.
Answer
8 new policies give $1,160 for the week.
Double-check Five policies gave $920. Three more policies add 3 × $80 = $240, and $920 + $240 = $1,160.

Rung 5 of 5

A zero-rate target has all or no inputs

Find an input means decide which allowed visit counts give the requested charge. A membership costs $29 for the month regardless of visits. For C(v) = 29 with nonnegative whole visit counts, solve C(v) = 29 and C(v) = 30.

Show the steps and the answer

C(v) = 0v + 29

Target 29: every allowed input

Target 30: no input

  1. Write the model as C(v)=0v+29.The visit count has zero effect on the charge.
  2. For target 29, the equation is 29=0v+29, which is true for every allowed v.Any allowed count leaves the same output; no division is needed.
  3. For target 30, the equation is 30=0v+29, which says 30=29 and has no solution.Changing the input cannot change the constant output.
Answer
  • Target $29: every nonnegative whole visit count works.
  • Target $30: no visit count works.
Double-check At v = 0, C(0) = 29; at v = 6, C(6) = 29. The output stays 29 for any other allowed count as well.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Every money problem can be modeled by one constant-rate line.
A discount, a changed commission rate or a second monthly charge can change the amount per step. The fixed-rate assumption must come from the situation.
✓ Instead: Use one line only during the period and input range where the same starting cost and per-step rate apply.
✗ Not this: Counterexample: A solution of n = 3.5 is automatically a valid policy count.
This model counts whole policies. A fractional solution does not give an attainable exact target under that counting rule.
✓ Instead: Check the domain after solving. For a target that requires 3.5 policies, report that no whole-number count attains it exactly.

Tips and tricks

  • Put the units beside m and b: dollars per item versus dollars for the starting monthly cost.
  • For a target output with a nonzero rate, subtract the start, divide by the rate, then plug back and check the domain. With zero rate, compare the target with the constant output instead.

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

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.

Lesson 9 of 9

Build and check a line from a table

Subject: MathematicsLeans on: Decimal subtractionLeans on: Function notationLeans on: SlopeLeans on: FractionsLeans on: Solving for bLeans on: Ordered pairsLeans on: DomainLeans on: Zero runOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Think of a table as several photographs of the same growing plant. Each column matches a time with its height. To see whether one straight-line rule fits, compare the change in height with the time between photographs. Different time gaps can produce different height changes even when the growth per month stays the same. A photograph at time zero shows the starting height. If that photograph is missing, work backward from another one. Check every neighboring pair of columns. A few photographs can fit a line without proving that the plant grows steadily between the photographs or afterward. Put the photographs in time order first. Repeating the same photograph adds no information. Two different heights recorded for the same time cannot be outputs of one function.

2 Picture it

input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
Use every column and every time gap before deciding that one line fits the measurements.

Reminder

Reminder: Decimal subtraction, Function notation, Slope, Fractions, Solving for b, Ordered pairs, Domain, Zero run
  • Decimal subtraction. Line up decimal places: 16.5 − 14.5 = 2.0, while 8 − 4 = 4, so the rate is 2.0 ÷ 4 = 0.5.
  • Function notation. H(8) means find the height at input 8 months: 12.5 + 0.5(8) = 16.5 feet.
  • Slope. An output gain 80 over two weeks gives 802 = 40 rats per week.
  • Fractions. 12 = 24 = 0.5; different-looking gains can have the same rate.
  • Solving for b. 7 = 3(2) + b gives b = 1 by subtracting 6; check 6 + 1 = 7.
  • Ordered pairs. A column with input 2 and output 7 supplies point (2, 7).
  • Domain. Elapsed time can be 2.5 months when the model allows continuous time; a count of whole objects cannot be 2.5.
  • Zero run. A repeated input gives a gap of 7 − 7 = 0. Do not divide by that gap. Identical pairs repeat information; different outputs at that input fail the function definition.

3 Why

For a line, output change equals m times input change, so dividing the two changes must give the same m on every interval. Matching all adjacent rates shows that the listed points fit a single line. The output under input zero gives b directly. If zero is missing, substituting a listed pair into y = mx + b finds b by subtraction. Unequal raw output changes are harmless when the input gaps also differ. Samples establish agreement at the sampled inputs, not at every possible input.

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

The same idea, five ways

Say it

For every pair of neighboring columns, compare change in output with change in input.

Write it

A table fits one line when each interval has the same output change per input unit.

In math
  • m=y2−y1x2−x1
  • f(0) = b
  • b = y − mx
  • f(x) = mx + b
Like

Plant photographs may be taken at different time gaps; compare growth per month rather than growth per photograph.

See it
input xoutput f(x)011223
Both one-unit intervals add one output unit, and the output under zero is 1.

The same idea, other ways

By reading the columns

In the small table, the output goes up 1 when the input goes up 1, on both intervals. That gives m = 1. The output under zero is 1, so b = 1 and f(x) = x + 1.

input xoutput f(x)011223↓ evaluate: input given, read the output below it
The highlighted zero-input column identifies the starting output.
As growth measured per month

A tree gaining 1 foot in 2 months and 2 feet in 4 months has the same rate in both intervals: half a foot per month. Compare the rate, because the photographs may be taken at different time gaps.

1 foot ÷ 2 months = 0.5 foot per month

2 feet ÷ 4 months = 0.5 foot per month

Different gaps, same rate

Part 1: Input zero is visible

A column under zero is a photograph taken at the start. Its output is the initial value. For the rat population, that column shows 1,000 rats before any weeks have passed. The other columns show how the population changes. Divide each population gain by the weeks in its interval to find the rate per week.

  • Rule: P(w) = 1000 + 40w fits the given population table, because each two-week interval adds 80 rats and the starting count is 1,000.
  • The slope is 40 rats per week, because 80 rats ÷ 2 weeks = 40 rats per week.
  • The initial value is 1,000 rats, because the output under w = 0 is 1,000.
  • Elapsed weeks can be nonnegative real numbers. Actual rat counts are whole numbers, so the drawn population line can estimate change between observations. The table alone does not prove constant growth at every time.
input w weeksoutput P(w) rats01000210804116061240
The two-week gaps belong in the denominator of the slope calculation.
Reminder
Reminder: Rate units
  • Rate units. 80 rats ÷ 2 weeks = 40 rats per week. The input unit belongs under the output unit.
The same idea, five ways
Say it

Start with 1,000 rats and use a modeled gain of 40 rats per week.

Write it

The sampled population increases by 80 rats for every two-week interval shown.

In math
  • P(w) = 1000 + 40w
  • P(0) = 1000
  • m = 802 = 40 rats per week
  • w ≥ 0
Like

The first photograph gives the starting population; later photographs reveal the weekly rate.

See it
input w weeksoutput P(w) rats01000210804116061240↓ evaluate: input given, read the output below it
The complete source table shows the initial population under zero weeks.

Worked example

Use the complete rat population table

OpenStax problem

Writing P(w) means finding a population rule that matches all four columns of the pictured source table. Find the rate per week and the starting population.

input w weeksoutput P(w) rats01000210804116061240
The same picture again: 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
All three adjacent two-week intervals add 80 rats.
  1. Read P(0)=1000 from the column under 0, so b=1000 rats.The initial value is the output at zero elapsed weeks.
  2. First interval: 1080−10002−0=802=40 rats per week.Divide the population increase by its two-week time gap.
  3. Second interval: 1160−10804−2=40. Third interval: 1240−11606−4=40.Every adjacent interval must share the rate, not only the first one.
  4. Write P(w)=1000+40w.Combine the starting population with the common modeled weekly gain.
Answer
  • P(w) = 1000 + 40w
  • Initial population: 1,000 rats.
  • Modeled rate: 40 rats per week.
Double-check P(0) = 1000, P(2) = 1080, P(4) = 1160 and P(6) = 1240. All columns fit; behavior between these sampled times still requires the constant-growth assumption.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The population grows by 80 rats per week.
The gain of 80 takes two weeks. Omitting the input gap doubles the stated rate.
✓ Instead: Use 80 ÷ 2 = 40 rats per week.
Tips and tricks
  • Write the time gap below each population change before reducing the fraction.

Part 2: Input zero is missing

A table may begin after the process has already started. Its first output is then a later photograph, not the starting amount. First find the rate from the listed columns. Then use one column to work backward: remove the change accumulated since input zero. What remains is the starting output, even though the zero-input column was never printed.

  • Rule: If zero is missing, find b = y − mx from a listed pair, because subtracting accumulated change removes what happened after the start.
  • The first listed output is b only if its input is zero, because b describes f(0).
  • The original example's common rate is 3 and its recovered initial value is 1, because 7 − 3(2) = 1.
=76 + bdo the same thing to both sides
Subtract the accumulated change 6 to uncover the starting output 1.
Reminder
Reminder: Solving for an added constant
  • Solving for an added constant. To isolate b in 7 = 6 + b, subtract 6 from both sides: b = 1. Plug back: 6 + 1 = 7.
The same idea, five ways
Say it

Use a later total and take away the change since the start.

Write it

A missing zero-input column does not stop you from finding the initial value.

In math
  • y = mx + b
  • b = y − mx
  • 7 = 3(2) + b
  • b = 1
Like

A later savings balance minus all later deposits reveals the money present before those deposits.

See it
input xoutput f(x)27413619
No column under zero appears in this original table, so the initial value must be recovered.

Worked example

Find the absent starting output

Finding f(x) means reproducing the outputs in this original table, including recovering its missing output at input zero. Use the pictured columns.

input xoutput f(x)27413619
The same picture again: x: 2, 4, 6; f(x): 7, 13, 19.
Show the steps and the answer
input xoutput f(x)27413619↓ evaluate: input given, read the output below it
The highlighted known pair supplies the equation used to recover the absent initial value.
  1. First rate: 13−74−2=62=3. Second rate: 19−136−4=62=3.Both intervals must agree before one line can describe the listed values.
  2. Use the column under 2: 7=3(2)+b=6+b.This equation makes the missing starting output the only unknown.
  3. Subtract 6 to find b = 1. Plug back: 3(2)+1=7.Removing the change since zero isolates the start, and substitution verifies it.
  4. Write f(x)=3x+1.The common slope is 3 and the recovered starting output is 1.
Answer
  • f(x) = 3x + 1
  • The missing initial value is f(0) = 1.
Double-check f(4) = 12 + 1 = 13 and f(6) = 18 + 1 = 19. The other columns agree with the recovered equation.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The first output is 7, so b = 7.
Its input is 2. It includes two steps of accumulated change and therefore is not the output at zero.
✓ Instead: Remove 3 × 2 = 6 from 7 to find b = 1. Check: 3(2) + 1 = 7.
Tips and tricks
  • Circle the input attached to any candidate b. It must be zero.

Part 3: Unequal input gaps

If plant photographs are taken two months apart at first and four months apart later, the later gains should be larger under steady growth. That does not mean the rate has changed. Divide each height gain by its own time gap. A one-foot gain over two months and a two-foot gain over four months both mean half a foot per month.

  • Rule: H(t) = 12.5 + 0.5t fits the source tree measurements, because all four interval rates are 0.5 foot per month.
  • The starting height is 12.5 feet, because the column under t = 0 gives that height.
  • The two later intervals span four months each, because the input gaps are 8 − 4 and 12 − 8. Use those actual gaps rather than assuming every gap is two months.
  • Time can be measured continuously, so t can be a nonnegative real number. The observations support the line at the listed times from 0 to 12 months. Predictions between or beyond them rely on an added constant-growth assumption.
1/22/4
One over two and two over four represent the same rate.
Reminder
Reminder: Equivalent fractions
  • Equivalent fractions. Dividing numerator and denominator by 2 gives 24 = 12 = 0.5.
The same idea, five ways
Say it

Divide each gain by the time that gain took.

Write it

Unequal time gaps can have equal rates even when their height gains differ.

In math
  • H(t) = 12.5 + 0.5t
  • 12 = 24 = 0.5 foot per month
  • H(0) = 12.5
  • 0 ≤ t ≤ 12 for the observed time span
Like

Two hours of steady walking cover twice the distance of one hour without changing walking speed.

See it
input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
The complete source table includes both two-month and four-month gaps.

Worked example

Use every interval in the tree-height table

OpenStax problem

Writing H(t) means finding one height rule for all the source table's sampled months. Use the pictured five columns and compare growth per month, including the wider time gaps.

input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
The same picture a third time: t months: 0, 2, 4, 8, 12; H(t) feet: 12.5, 13.5, 14.5, 16.5, 18.5.
Show the steps and the answer
input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
The gains double when the time gaps double, leaving the same monthly rate.
  1. Read b=12.5 feet from the column under zero months.That is the height when the measurements begin.
  2. First rate: 13.5−12.52−0=12=0.5. Second rate: 14.5−13.54−2=12=0.5.Each of these gains takes two months.
  3. Third rate: 16.5−14.58−4=24=0.5. Fourth rate: 18.5−16.512−8=24=0.5.Each of the larger gains takes four months, so its rate remains half a foot per month.
  4. Write H(t)=12.5+0.5t.Every interval has the same rate, and the starting height is known.
Answer
  • H(t) = 12.5 + 0.5t
  • Initial height: 12.5 feet.
  • Modeled growth rate: 0.5 foot per month.
Double-check The formula gives H(0) = 12.5, H(2) = 13.5, H(4) = 14.5, H(8) = 16.5 and H(12) = 18.5 feet. Every listed measurement matches.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: The tree is nonlinear because the later output gains are 2 feet instead of 1 foot.
The later input gaps are also twice as large. Output gains must be compared per input unit.
✓ Instead: Compute 1 ÷ 2 = 0.5 and 2 ÷ 4 = 0.5 foot per month. All listed rates match.
Tips and tricks
  • Write a separate denominator for each interval. Never carry the first gap across the whole table.

Part 4: A table that cannot fit one line

The first two photographs can look consistent with steady growth, while a later one breaks the pattern. Check every interval before choosing a linear rule. If one input step adds one output unit but the next equal step adds three, the rate changed. You can still describe those observations, but a single constant-rate line cannot pass through all of them exactly.

  • Rule: If any adjacent rates differ, no single linear function fits all listed points exactly, because a line has one constant rate.
  • Two points with different inputs always determine a candidate line. A third point can fail that rule, because agreement at two inputs does not establish a constant rate elsewhere.
  • Even equal rates in a finite table do not prove that the complete process is linear, because unmeasured inputs may behave differently.
input xoutput g(x)001124
Check every neighboring pair rather than assuming the first rate continues.
Reminder
Reminder: Testing a formula
  • Testing a formula. For a candidate y = x, input 2 gives output 2. A table output of 4 at that input disproves the candidate.
The same idea, five ways
Say it

One changed rate is enough to rule out a single exact line for the full table.

Write it

The listed points are not all on one line when their interval rates differ.

In math
  • 1−01−0=1
  • 4−12−1=3
  • 1 ≠ 3
Like

A car can go slowly during one hour and faster during the next; one fixed speed does not describe both hours.

See it
input xoutput g(x)001124
Equal input gaps produce different output gains in this original counterexample.

Worked example

Test a tempting line against the last column

Checking whether the table fits a line means comparing all interval rates, then seeing whether one equation gives every output. Test the pictured original table.

input xoutput g(x)001124
The same picture a third time: x: 0, 1, 2; g(x): 0, 1, 4.
Show the steps and the answer
input xoutput g(x)001124↓ evaluate: input given, read the output below it
The last output defeats the line suggested by the first two columns.
  1. First rate: 1−01−0=1.The first input step adds 1 to the output.
  2. Second rate: 4−12−1=3.The next equal input step adds 3 instead.
  3. The rates 1 and 3 differ, so no single line fits all three columns.A linear function has the same output change per input unit everywhere.
  4. The first two columns suggest g(x)=x, but at x=2 that rule gives 2 rather than 4.Checking the last column exposes why fitting only the first two points is insufficient.
Answer
No single linear function fits all three listed pairs exactly.
Double-check The endpoints alone suggest slope 4−02−0 = 2 and the line y = 2x. At x = 1 it gives 2 instead of 1, confirming the failure another way.
Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Any table is linear because you can connect its first two points with a line.
The remaining points may not be on that line. In this example the next rate changes from 1 to 3.
✓ Instead: Check every interval and every listed point. Report that no single line fits when a rate differs.
Tips and tricks
  • Use the final column as a quick check after finding a candidate equation from the first two.

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

Check a table and recover its equation

1
Do repeated inputs have different outputs?
YesStop. One input would have more than one output, so no function fits this data.
NoKeep one copy of each repeated identical pair and put the remaining inputs in increasing order.
↓
2
Are at least two distinct inputs left?
YesTheir input gaps are nonzero, so calculate the interval rates.
NoOne distinct pair cannot determine an unknown slope. Obtain another distinct pair or a stated slope.
↓
3
Are all adjacent input gaps the same?
YesEqual output changes give equal rates, but still calculate the rate in output units per input unit.
NoDivide each output change by its own input gap before comparing.
↓
4
Are all the calculated rates equal?
YesUse that common rate as m and find b.
NoNo single line fits the whole table exactly. Do not force a linear equation onto it.
↓
5
Is there a column with input zero?
YesRead its output as b.
NoUse y = mx + b with a listed pair, subtract mx to isolate b, and plug the result back into that pair.
  1. Arrange columns in increasing input order. Repeated input with different outputs means the data are not a function. Keep one copy of each identical pair; at least two distinct inputs are needed to recover an unknown slope.
  2. Read the input unit and output unit.
  3. Compute a rate for every adjacent interval using that interval's actual input gap.
  4. If rates differ, report that one line does not fit the listed values exactly.
  5. If rates agree, find the starting output from the zero-input column or by substitution.
  6. Check the equation in every column and state any limits on the model's use.

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

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

Unit input gaps

Finding f(x) means making a rule for every output in this original table. Use the pictured columns with one-unit input gaps.

input xoutput f(x)02142638
x: 0, 1, 2, 3; f(x): 2, 4, 6, 8.
Show the steps and the answer
input xoutput f(x)02142638
Each one-unit input gap corresponds to an output gain of 2.
  1. Rates: 4−21−0=2,6−42−1=2 and 8−63−2=2.Every adjacent one-unit gap must have the same output gain.
  2. Read b=2 from the output under input zero.That column shows the starting value.
  3. Write f(x)=2x+2.Use the common rate 2 and the starting output 2.
Answer
f(x) = 2x + 2
Double-check f(0) = 2(0) + 2 = 2.
f(1) = 2(1) + 2 = 4.
f(2) = 2(2) + 2 = 6.
f(3) = 2(3) + 2 = 8.
Every computed output matches its cell in the picture.

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

Rung 3 of 4

Recover a missing starting value

Finding f(x) means recovering a rule for the listed original pairs and its missing output at zero. Use the pictured table, which begins at input 2.

input xoutput f(x)210516822
x: 2, 5, 8; f(x): 10, 16, 22.
Show the steps and the answer
input xoutput f(x)210516822↓ evaluate: input given, read the output below it
Use a known pair to recover the missing output at zero.
  1. First rate: 16−105−2=63=2. Second rate: 22−168−5=63=2.Both three-unit intervals must have the same rate.
  2. Use the column under 2: 10=2(2)+b=4+b.A known output and the common slope give an equation for the missing start.
  3. Subtract 4 to find b = 6. Plug back: 2(2)+6=10.Removing the accumulated change isolates the starting output, and the known pair verifies it.
  4. Write f(x)=2x+6.The common slope is 2 and the recovered initial value is 6.
Answer
  • f(x) = 2x + 6
  • f(0) = 6
Double-check At x = 5, 10 + 6 = 16. At x = 8, 16 + 6 = 22. Both remaining columns fit.

Rung 4 of 4

Tree height with unequal time gaps

OpenStax problem

Writing H(t) means finding a height rule that fits every source measurement. Use the complete pictured tree table and account for its unequal month gaps.

input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
The same picture, shown 5 times now: t months: 0, 2, 4, 8, 12; H(t) feet: 12.5, 13.5, 14.5, 16.5, 18.5.
Show the steps and the answer
input t monthsoutput H(t) feet012.5213.5414.5816.51218.5
Check all four interval rates, including both of the wider four-month gaps.
  1. Read b=12.5 feet under t=0.This is the starting height of the experiment.
  2. First two rates: 13.5−12.52−0=12=0.5 and 14.5−13.54−2=12=0.5 foot per month.Each of these height gains took two months.
  3. Last two rates: 16.5−14.58−4=24=0.5 and 18.5−16.512−8=24=0.5 foot per month.Each later gain took four months, so a larger gain does not mean a larger rate.
  4. Write H(t)=0.5t+12.5.All four rates agree and the zero-input height is known.
Answer
  • H(t) = 0.5t + 12.5
  • The modeled rate is 0.5 foot per month.
Double-check H(0) = 12.5, H(2) = 13.5, H(4) = 14.5, H(8) = 16.5 and H(12) = 18.5 feet. The equation matches all five columns. Predictions between the measured months or later depend on the steady-growth assumption.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Counterexample: Equal raw output gains are required in every linear table.
Output gains are equal only when the corresponding input gaps are equal. Unequal gaps can produce unequal gains at the same rate.
✓ Instead: Compare output change divided by input change on every interval.
✗ Not this: Counterexample: A table whose samples fit a line proves that the complete process is linear forever.
The table says nothing directly about unmeasured times or future changes in the process.
✓ Instead: Say the listed points fit a line. State the constant-rate assumption before predicting other outputs.
✗ Not this: Counterexample: Every repeated input can be ignored, even when its output changes.
A function gives one output for an allowed input. Deleting a conflicting output hides a failure of that definition.
✓ Instead: Ignore only repeated identical input-output pairs. Different outputs at the same input rule out a function.

Tips and tricks

  • Rate, rate, rate, then starting value. Write one rate for every adjacent interval.
  • If zero is absent, recover b by removing mx from a known output and plug it back in.

7 The trap

Looking only at the output differences when the input gaps change. Always divide by the actual input gap for that interval.

Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.