To model a situation, you choose the function type whose features match it, build the function from given points or by regression, and use it only where its assumptions hold. Linear models have a constant rate of change, quadratics one maximum or minimum, higher-degree polynomials several turning points, rational models an asymptote, and piecewise models a change of rule. Every prediction needs units, and a prediction far outside the data is unreliable.
Quick check
Find the average rate of change of from to .Show answerHide answer
. The change in output is over a change in input of , and .
Outputs at equally spaced inputs are . Which kind of function fits them exactly?Show answerHide answer
A linear function. The outputs fall by at every step, so the rate of change is constant.
Know these already? Jump to the practice questions
What you'll be able to do
- Choose a linear, quadratic, polynomial, rational or piecewise model from the features of a situation or a table of data.
- State the assumptions behind a model and the domain on which it makes sense in context.
- Write a model from given points, or fit one by regression on a graphing calculator.
- Use a model to predict a value, with units.
- Explain when a prediction from a model is unreliable.
Key terms
Contextual domain
The input values for which a model makes sense in its situation, often fewer than the function's full domain.
- In plain English
- The inputs that are physically or practically possible.
- Don't write
- "all real numbers" for a model of time, length or a count.
Regression
Fitting a chosen type of function as closely as possible to a data set, usually on a graphing calculator.
- In plain English
- The calculator finds the best curve of the type you picked.
- Don't write
- That the regression model passes through every data point.
Which function type fits the situation or data?
Match the features you see to the function that has them:
| Feature in the situation or data | Model |
|---|---|
| Equal changes in output over equal input steps | Linear |
| Equal second differences; one turning point | Quadratic |
| Several changes of direction | Polynomial of higher degree |
| Levels off toward a value, or a quantity shared out as | Rational |
| Different rules on different input intervals, such as price tiers | Piecewise |
With equally spaced inputs, use differences. For outputs , the first differences are and the second differences are . Constant second differences mean a quadratic model fits exactly. Measured data give roughly constant differences, which still point to the type.
Descriptions count too: "a fixed fee, then a charge per hour" is piecewise linear, and "the more people share the job, the less each does" is rational.
Key idea
Choose the model from a feature you can name: a constant rate, one turning point, several turning points, an asymptote, or a change of rule.
Check yourself
Show answerHide answer
Quadratic. The first differences are , and the second differences are all .
What assumptions and domain does a model need?
State the assumptions behind a model: a linear model assumes a constant rate of change, a falling-object model usually ignores air resistance, and a cost model assumes fixed prices.
The contextual domain comes from the situation. A tank holding liters that drains at liters per minute has volume liters. Time cannot be negative, and the tank is empty when , at . So the model makes sense for minutes, even though the rule works for any .
For a count, such as tickets sold, round predictions to whole numbers.
Examiner's eye
Marks are lost when a domain or prediction has no units or ignores the context. State the units and the endpoint that the situation forces.
Check yourself
Show answerHide answer
hours. The candle is gone when , which is at .
How do you build a model from points or by regression?
When the points are exact, build the model algebraically (Learn this):
- Linear through two points: slope , then .
- Quadratic with a known vertex : , then use one more point to find .
- Rational of the form : one point gives .
For example, a quadratic with vertex through needs , so and . The model is .
For measured data that do not fit exactly, choose the type from the features, then fit it by regression on a graphing calculator. Write the model you are fitting, such as , and report the coefficients to three decimal places, but predict with the unrounded stored values.
Check yourself
Show answerHide answer
. Substituting gives , so .
When is a prediction reliable?
A prediction is most trustworthy for an input inside the range of the data (interpolation), where the model's assumptions still hold. Extrapolation, predicting outside that range, is risky because the data cannot show the pattern continuing.
Signs that a prediction is unreliable:
- The input is far outside the data, especially for a polynomial, whose end behavior grows without bound.
- The output is impossible in context, such as a negative length or a count that is not a whole number.
- An assumption fails there, such as a constant rate lasting forever.
Check yourself
Show answerHide answer
The tank is already empty before , so is outside the contextual domain and the prediction is meaningless.
Worked example 1: A quadratic model from a table
Question: A ball's height (meters) at time (seconds) is recorded in the table. (a) Justify that a quadratic model fits. (b) Write the model. (c) Find the contextual domain, to three decimal places.
| (s) | |||||
|---|---|---|---|---|---|
| (m) |
What tells you the method
Equally spaced inputs mean you test differences; the symmetry about shows the vertex.
Step 1: Test the differences.
First differences: . Second differences: .
WhyConstant second differences are the feature of a quadratic.
Step 2: Use the vertex.
The maximum is , so . At : , so .
WhyVertex form needs only one more point to fix .
Step 3: Find where the ball lands.
gives , so .
WhyThe model stops at the ground; the other root is negative, before the throw.
Check it
, which matches the table.
Answer
(a) The second differences are all . (b) . (c) seconds.
Worked example 2: A piecewise model
Question: A parking garage charges $3 for up to hour, then $2.50 per hour after the first hour, charged by the minute, for stays up to hours. (a) Write a piecewise model for the cost in dollars after hours. (b) Find the cost of a -hour stay. (c) For how long can you park for $18?
What tells you the method
The rule changes at hour, so the model is piecewise.
Step 1: Write each piece.
for , and for .
WhyAfter the first hour you pay the $3 plus $2.50 for each hour beyond .
Step 2: Evaluate.
, so .
WhyYou use the piece whose interval contains the input.
Step 3: Solve for the time.
gives , so .
Why$18 is more than $3, so the second piece applies.
Check it
, and is inside .
Answer
(a) for , and for . (b) dollars. (c) hours.
Worked example 3: A regression model and its limits
Question: A test car's fuel economy is measured at five speeds (hypothetical data).
| Speed (mph) | |||||
|---|---|---|---|---|---|
| Economy (miles per gallon) |
(a) Fit a quadratic regression model, giving coefficients to three decimal places. (b) Predict the economy at mph. (c) The model gives . Explain why this prediction is unreliable.
What tells you the method
The data rise to one maximum and fall, so a quadratic is the type to fit.
Step 1: Fit the model.
Fitting on a graphing calculator gives , , .
WhyYou state the model before giving calculator values.
Step 2: Predict.
Using the stored coefficients, miles per gallon.
WhyRounded coefficients lose accuracy once is multiplied by .
Step 3: Judge the extrapolation.
mph is far beyond the data, and a negative economy is impossible.
WhyA quadratic's end behavior keeps decreasing, but real fuel economy cannot go below .
Check it
lies between and , the outputs at and mph.
Answer
(a) , so , and . (b) miles per gallon. (c) It is an extrapolation far outside to mph, and it gives an impossible negative value.
Your turn
Question: A candle is cm tall after burning for hours and cm tall after hours. Assume it burns at a constant rate. Write a linear model for its height in cm after hours, and find when it burns out.
Step 1:
The rate is cm per hour.
Step 2:
Use . Simplify it, then solve .
Show the full solutionHide the solution
. Setting gives , so the contextual domain is hours.
Answer: , and the candle burns out after hours.
Traps
Trap
Rounded regression coefficients give the same prediction as the full ones.
It seems right because each coefficient changes by less than . But that change is multiplied by the input or its square: in Worked example 3, rounding moves from to .
Check yourself
Show answerHide answer
miles per gallon, from the unrounded coefficients.
Trap
A model that fits the data well gives good predictions for any input.
It seems right because the curve passes close to every point. But the data say nothing about inputs far outside their range, and the context may make the output impossible there.
Check yourself
Show answerHide answer
The one at , because it is an interpolation inside the data; is an extrapolation.
What's examined
Modeling belongs to Unit 1, Polynomial and Rational Functions, on the AP® Precalculus exam, and can appear in multiple choice or free response. Regression needs a graphing calculator; building a model from exact points is done by hand. Expect "Identify" (the model type), "Write an expression" (the model), "Interpret" (a value with units), "Justify" (citing differences or a feature) and "Explain" (whether a prediction is reliable).
Practice questions
- Recall For inputs , the outputs are . Which type of function models the data exactly?
- A) Linear
- B) Quadratic
- C) Rational
- D) Piecewise constant
Show answer
Answer: B) Quadratic.
Marking points:
- First differences ; second differences , which are constant.
- A needs constant first differences; C would level off toward an asymptote; D would repeat outputs in blocks.
- Recall Which situation is best modeled by a rational function?
- A) Distance covered in hours at a constant miles per hour
- B) Height of a ball seconds after it is thrown upward
- C) A phone bill with a flat fee up to a data limit, then a charge per gigabyte
- D) Hours each person works when a -hour job is split equally among people
Show answer
Answer: D) The hours per person, .
Marking points:
- is a rational function: one polynomial divided by another.
- A is linear, B is quadratic and C is piecewise.
- Apply A quadratic model has its maximum at and passes through . Write the model.
Show answer
Answer: .
Marking points:
- Vertex form: .
- , so .
- Apply A shipping company charges $8 for a package of up to pounds, plus $1.50 for each pound over pounds, charged in fractions of a pound. What is the charge, in dollars, for a -pound package?
- A)
- B)
- C)
- D)
Show answer
Answer: C) dollars.
Marking points:
- , so .
- A charges $1.50 for every pound and drops the $8; B charges only the whole pounds over ; D charges $1.50 for all pounds on top of the $8.
- Apply A workshop has fixed costs of $1200 plus $4 for each item made, so the average cost per item is dollars for items. (a) Find the number of items for which the average cost is $10. (b) Identify the value that approaches as grows very large.
Show answer
Answer: (a) items. (b) approaches dollars per item.
Marking points:
- gives , so .
- , and gets close to for large .
- Exam-style A plant's height is modeled by cm, built from measurements over weeks. Which is the best reason that the prediction cm is unreliable?
- A) is far outside the data, and a constant growth rate is unlikely to last a year.
- B) The slope of the model is positive.
- C) The prediction is not a whole number.
- D) is greater than .
Show answer
Answer: A) It is an extrapolation that relies on the constant-rate assumption.
Marking points:
- The reason names the data range ( to weeks) and the assumption that fails.
- B and D are true of any increasing linear model; C is irrelevant, since heights need not be whole numbers.
- Exam-style A theater records ticket sales at five prices (hypothetical data): , , , , , with in dollars. (a) Fit a linear regression model , giving and to three decimal places. (b) Predict the number of tickets sold at $15. (c) Explain why the model should not be used at $35.
Show answer
Answer: (a) and . (b) , so about tickets. (c) It predicts tickets, which is impossible, and $35 is outside the prices in the data.
Marking points:
- The setup names the model, , before the calculator values.
- Prediction: , rounded to a whole number of tickets.
- At : , a negative count from an extrapolation.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- Constant first differences suggest linear, constant second differences suggest quadratic, an asymptote suggests rational, and a change of rule suggests piecewise.
- The contextual domain comes from the situation: no negative times or lengths, and an end where the quantity runs out.
- Build exact models from points algebraically; fit measured data by regression after choosing the type.
- Report regression coefficients to three decimal places, but predict with the unrounded ones.
- Trust interpolation more than extrapolation, and reject outputs that are impossible in context.