Turn a real situation into a linear model
Leans on
Quick review (2 minutes)
Think of a jar that already holds one coin.
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.
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.
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.
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).
J(d) = 1 + 2d, with d a nonnegative whole number.
J(1) = 3 coins.
1. Name the monthly item input and dollar output.
2. Identify fixed cost as b and extra cost per item as m.
3. Write C(x) = mx + b for the allowed whole-item counts.
4. Evaluate the requested input and check fixed cost at zero.
1. Define the input in completed months.
2. Identify the starting songs and songs added each month.
3. Convert any year input to months before evaluating.
4. Check the added songs separately, then include the starting collection.
1. Define policy count and weekly dollars.
2. If base and commission are given, use them directly; otherwise compare the two earnings to find commission.
3. Substitute a known week to find base salary, then put it back into that week.
4. Write the income rule for whole policy counts and check another week.
1. Write the model equal to the target output to identify which inputs could produce it.
2. Check the rate before any division. For a nonzero rate, subtract the starting amount and divide by the rate.
3. For zero rate, compare the target with the constant output.
4. Put any solved input back into the original model and check that it is allowed.
Using the first observed total as the initial value when its input is not zero. Remove its accumulated change to find the starting amount.
Function
A rule that assigns exactly one output to each allowed input.
Input
The value you put into a function, often written x.
Output
The value a function produces for a particular input, often written y or f(x).
Function notation
Writing such as f(x) that names a function and its input. f(3) means the output of f at input 3.
Slope
The output change divided by the corresponding nonzero input change. It says how much output changes per input unit.
Initial value
The output at input zero, often a starting amount in a model. It is b in f(x) = mx + b.
Domain
The set of all inputs allowed for a function or its stated real-world model.
Nonnegative
Zero or greater. Zero is included.
Model
A mathematical description of a situation, used within stated assumptions and allowed inputs.
Fixed cost
A cost paid even when no items are produced. It stays unchanged as production count changes within the model.
Overhead
The operating expenses that keep a business running. In this cost model, monthly overhead is part of the fixed cost.
Production cost
The cost of making items. This section models it as a fixed amount per item multiplied by the number of items.
Variable cost
The part of total cost that changes with production count. Here it equals the per-item cost times the number produced.
Marginal cost
The extra cost of producing one additional item. In a linear cost model, it is the slope, with units dollars per item.
Base salary
The salary paid before any commission is added. It is the income at zero sales in this model.
Commission
Pay earned from sales. Here a fixed payment is added for each policy sold, so commission per policy is the income slope.
Evaluate
Find an expression's value or a function's output after replacing its variable with a given number.
Divisor
The number you divide by. It must be nonzero.
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
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. = = 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 mx with units for m and b and a domain appropriate to the situation.
The same idea, five ways
Start with what is already there, then add the same amount for every step.
A linear model combines a fixed starting amount with change at a constant rate.
- f(x) = mx + b
- f(0) = b
- m =
A coin jar has a starting collection plus the same deposit each day.
The same idea, other ways
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.
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.
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
Pay the monthly overhead, then add $37.50 for every item.
The total monthly cost is the fixed cost plus the variable cost.
- C(x) = 1250 + 37.5x
- C(0) = 1250
- x ≥ 0, with x a whole number
Rent is the cost of opening the workshop; materials add cost each time you make another item.
Worked example
Ben's cost, from no production to 100 items
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
- 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.
- Write .The overhead is present even at zero items, and every item adds $37.50.
- . .Zero items test the fixed cost; one item tests a single added production cost.
- .One hundred items contribute $3,750 above the fixed overhead.
- C(x) = 1250 + 37.5x
- C(0) = $1,250.
- C(1) = $1,287.50.
- C(100) = $5,000.
Counterexamples
What it is not, and the tempting wrong moves.
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.
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
Start with 200 songs and add 15 each completed month.
The collection contains its starting 200 songs plus 15 songs for each elapsed month.
- N(t) = 200 + 15t
- N(0) = 200
- N(12) = 380
- t ≥ 0, with t a whole number for monthly batches
A bookshelf begins with a stack of books and gains the same new stack every month.
Worked example
Marcus's songs after zero months, one month and a year
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
- Let t measure completed months and N(t) count songs. Write .The starting collection contributes 200, and t monthly additions contribute 15t songs.
- and .The smallest inputs check the starting collection and one monthly batch.
- One year is 12 months, so calculate .The rate is per month, so the input must also be measured in months.
- , and .Add the 12 new batches to the collection that was already there.
- N(t) = 200 + 15t
- N(0) = 200 songs.
- N(1) = 215 songs.
- N(12) = 380 songs.
Counterexamples
What it is not, and the tempting wrong moves.
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.
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
Keep the weekly base pay, then add the same bonus for each new policy.
Weekly income equals base salary plus commission per policy times policies sold.
- I(n) = 520 + 80n
- I(3) = 760
- I(5) = 920
- n ≥ 0, with n a whole number
A regular allowance is paid before any job bonuses are added.
Worked example
Evaluate the pay rule, then recover it from earnings
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
- With the stated ingredients, write . and .Zero policies give base pay; one policy adds one commission.
- . .Multiply the commission by the number of policies before adding the base salary.
- Now treat only the two earnings as given: dollars per policy.The change in pay divided by the change in policy count finds the commission under the fixed-pay arrangement.
- Use three policies to find the base salary: , so .Removing the commissions finds the pay that would remain with no policies.
- Plug the base salary back into that week's equation: . Write .The recovered base salary must reproduce the known earnings before it is used.
- 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.
Counterexamples
What it is not, and the tempting wrong moves.
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 = 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.
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
the output is known; find every allowed input that gives it.
Solve the model equal to the target, then check its domain.
- f(x) = T
- mx + b = T
- m = 0 and T = b: every allowed input
- m = 0 and T ≠ b: no input
Read a bill backward by removing its starting fee and counting its hourly charges.
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
- Write .The requested dollar output replaces C(h) and leaves h unknown.
- Subtract 13: .This removes the starting fee to isolate the hourly charges.
- Divide by 7: .Seven equal seven-dollar charges account for the remaining forty-nine dollars.
Counterexamples
What it is not, and the tempting wrong moves.
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
- Define the input and output, because a number without its meaning can lead to the wrong units or domain.
- Identify the starting amount b and rate m. If two totals are given, divide output change by input change to find m.
- If b is missing, substitute a known pair into output = mx + b and solve for b to recover the starting amount. Plug the value back into that pair.
- Write the model with its units and allowed inputs, because counting objects differs from measuring continuous time.
- For a given input, substitute it to find the output. For a target output, solve for the input, then plug it back in and check that it belongs to the domain.
Build, evaluate or reverse a real-world model
- Name both variables and their units.
- Find the rate and starting amount, directly or from two input-output pairs.
- Write f(x) = mx + b and state the meaningful domain.
- Substitute a known input, or solve for a missing input from a stated output.
- 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
- Let d be the number of completed days and J(d) the number of coins.The input counts daily deposits, so d is a nonnegative whole number.
- Write .There is 1 starting coin and each completed day contributes 2 coins.
- .An input of 1 means one daily deposit.
- J(d) = 1 + 2d, with d a nonnegative whole number.
- J(1) = 3 coins.
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
- Let w count completed weeks and B(w) count books. The domain is nonnegative whole weeks.The books are added in weekly batches.
- Write .Start with 2 books and add 3 for each weekly batch.
- . .One batch adds 3 and four batches add 12.
- B(w) = 2 + 3w
- B(1) = 5 books.
- B(4) = 14 books.
Rung 2 of 5
Evaluate the cost of 100 items
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
- Write for nonnegative whole-number item counts.The monthly starting cost is fixed while each item adds a constant cost.
- Substitute 100: .The question gives the item count and asks for the corresponding output.
- , so .Add the variable production cost to the fixed overhead.
Rung 3 of 5
Find salary from two earnings
Recovering the income rule means finding the pay per policy and the pay with no policies. Ilya earned $760 with three policies and $920 with five. Assume the same base salary and commission rate in both weeks.
Show the steps and the answer
- Read the pairs as (3, 760) and (5, 920).The input is policies and the output is weekly dollars.
- dollars per policy.Two extra policies earned $160 more, so each contributes $80.
- Find b from the three-policy week: , so subtract 240 to obtain .Removing the commissions isolates the base weekly salary.
- Plug back: . Write for nonnegative whole-number policy counts.The recovered salary must fit the observed week, and policies are counted as whole objects.
- I(n) = 80n + 520
- Commission: $80 per policy.
- Base salary: $520 per week.
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
- Set .The target output replaces I(n), leaving the number of policies unknown.
- Subtract 520 from both sides: .Removing the base salary isolates the income that must come from commissions.
- Divide both sides by 80: .Each policy earns $80 of commission, so this finds the needed number of policies.
- Plug back: .The found input must give the target output, and 8 is an allowed nonnegative whole-number count.
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
- Write the model as .The visit count has zero effect on the charge.
- For target 29, the equation is , which is true for every allowed v.Any allowed count leaves the same output; no division is needed.
- For target 30, the equation is , which says and has no solution.Changing the input cannot change the constant output.
- Target $29: every nonnegative whole visit count works.
- Target $30: no visit count works.
Counterexamples
What it is not, and the tempting wrong moves.
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.