AP Precalculus · Topic 1.14 · Reading guide, about 5 min

Building and using function models

Build function models from information, points or regression, then use them to predict, find extrema and interpret results with units.

In one minute

Once you know what kind of function fits a situation, the next job is to build the formula and use it. You might get a rate and a starting value, a few points, or a larger table to feed to technology. Then you use the model to answer questions: what is the value at a certain input, when does it reach a target, and where is the highest or lowest point.

The final step matters just as much as the calculation. A number from a model needs units and a sentence of meaning, and you should know when the model deserves your trust.

Key terms

Initial value
The output when the input is 0. In y=mx+by=mx+b it is bb, and it is often a starting amount or a fixed fee.
Rate of change
How much the output changes per one unit of input. For a line it is the slope, with units such as dollars per hour.
Regression
A calculator or computer method that finds the formula of a chosen type that best fits a table of data.
Piecewise model
A model with separate formulas on separate input intervals, used when the rule changes at certain inputs.
Extremum
A maximum or minimum value of a function, which can be found from a graph, a table or the vertex of a quadratic.
Interpolation
Predicting a value inside the span of the data used to build the model. It is usually reasonably safe.
Extrapolation
Predicting outside the data span. It is less reliable because the pattern may change.
Units
The labels, such as meters or dollars, that give a number meaning. Every interpreted answer should carry the right ones.

Building a model from information

Often the context hands you the pieces. A gym charges a 30 dollar sign-up fee plus 18 dollars per month. The initial value is 30 and the rate is 18 per month, so the cost after mm months is C(m)=18m+30C(m)=18m+30. If the problem gives a starting value and a rate, a linear model is nearly built.

Two points are enough to determine a line: find the slope from the change in output over the change in input, then use a point to find the intercept. Three points that do not lie on a line determine a quadratic. In general, n+1n+1 points with different inputs determine a polynomial of degree at most nn.

Worked example. Find a quadratic through (0,2)(0,2), (1,5)(1,5) and (2,12)(2,12). Write y=ax2+bx+cy=ax^2+bx+c. Since (0,2)(0,2) is on it, c=2c=2. Using (1,5)(1,5): a+b+2=5a+b+2=5, so a+b=3a+b=3. Using (2,12)(2,12): 4a+2b+2=124a+2b+2=12, so 4a+2b=104a+2b=10, which simplifies to 2a+b=52a+b=5. Subtract the equations a+b=3a+b=3 and 2a+b=52a+b=5: a=2a=2, and then b=1b=1. The model is y=2x2+x+2y=2x^2+x+2. Check with the third point: 2(4)+2+2=122(4)+2+2=12. It matches.

When there are more points than the model has constants, the points will not usually fit perfectly. Then use regression technology: enter the data, choose the model type that matches the context (linear, quadratic, and so on), and read the coefficients. Say that a calculator or software was used, and round only at the end.

Piecewise models

When a situation changes its rule, build one formula per piece and state the intervals. A parking garage charges 5 dollars per hour for the first 2 hours, and then 8 dollars per hour after that. For 0≤t≤20\le t\le 2, the cost is 5t5t. For t>2t>2, the first two hours already cost 1010, and each extra hour adds 8, so the cost is 10+8(t−2)10+8(t-2).

Check the join between pieces. At t=2t=2 the first piece gives 10, and the second piece gives 10+8(0)=1010+8(0)=10, so the pieces meet. A model that jumps at a breakpoint is acceptable only if the situation really jumps, like a flat fee that is added after a threshold.

To use a piecewise model, first decide which interval the input falls into, and only then plug in. For 3 hours of parking, t=3>2t=3>2, so the cost is 10+8(1)=1810+8(1)=18 dollars.

Using a model: what to report
QuestionWhat to doReport with
Value at a given inputSubstitute the inputOutput and its units
Input for a target outputSet the model equal to the target and solve, or use a graphInput and its units
Rate of changeUse slope or average rate over an intervalOutput units per input unit
Maximum or minimumUse the vertex, a graph or a tableWhere it occurs and its value

Using the model: predictions, rates and extrema

Worked example. A ball's height in feet after tt seconds is modeled by h(t)=−16t2+48t+4h(t)=-16t^2+48t+4. A quadratic opens downward here, so its vertex is the maximum. The vertex input is t=−b2a=−482(−16)=1.5t=-\dfrac{b}{2a}=-\dfrac{48}{2(-16)}=1.5 seconds. The height there is h(1.5)=−16(2.25)+48(1.5)+4=−36+72+4=40h(1.5)=-16(2.25)+48(1.5)+4=-36+72+4=40 feet. So the ball peaks at 40 feet after 1.5 seconds.

To find when it lands, set h(t)=0h(t)=0: −16t2+48t+4=0-16t^2+48t+4=0, which divides by −4-4 to give 4t2−12t−1=04t^2-12t-1=0. By the quadratic formula, t=12±144+168=12±1608t=\dfrac{12\pm\sqrt{144+16}}{8}=\dfrac{12\pm\sqrt{160}}{8}. The positive root is about 12+12.658≈3.08\dfrac{12+12.65}{8}\approx 3.08 seconds. The other root is negative, which is outside the contextual domain, so reject it.

Interpreting a rate means attaching units and a direction. The average rate of change from t=1t=1 to t=2t=2 is h(2)−h(1)2−1=36−361=0\dfrac{h(2)-h(1)}{2-1}=\dfrac{36-36}{1}=0 feet per second, because the ball is at 36 feet at both times. Say what that means: the ball ends that second at the same height it started.

Be careful when predicting. Interpolation inside the data is generally reliable. Extrapolating far beyond it assumes the pattern continues, and many real quantities level off, reverse or break the pattern. When you extrapolate, mention the risk.

How it connects

  • Back to 1.2: average rate of change is how you interpret a model's change over an interval.
  • Back to 1.4: extrema of polynomial models are the highest and lowest points on the graph.
  • Back to 1.13: choosing the model type and stating assumptions comes before building the formula.
  • Forward to 2.5: exponential models are built from situations and data in much the same way, with regression for larger tables.

Common mistakes

  • Leaving out units. An answer of 40 means little. Write 40 feet, and say what it describes.
  • Accepting every root as an answer. A negative time or a value outside the context has to be rejected with a reason.
  • Rounding early. Keep full values through the calculation and round at the end, especially in regression coefficients.
  • Using a piece of a piecewise model on the wrong interval. Decide which interval the input belongs to before you substitute.

How it shows up on the exam

  • You build a function from a description, a few points or a table, and then evaluate it or solve for an input.
  • Technology-based items give a data table and ask for a regression model, then use it to predict or interpret in context with units.
  • Written responses ask whether a prediction is trustworthy, or what a rate or extreme value means in the situation.

Check yourself

  1. How many points are needed to determine a unique cubic, and why?
  2. A model gives P(t)=2.5t+120P(t)=2.5t+120 for a population in thousands after tt years. What do 2.5 and 120 mean, with units?
  3. How do you decide which piece of a piecewise model to use for a given input?
  4. Why is predicting 30 years beyond your data riskier than predicting inside it?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.