impera Open Impera

AP Precalculus · Polynomial and rational functions

Function model selection

1Choosing a model from the context

A mathematical model is a function chosen to describe a real situation. Start by asking how the quantity changes:

  • Linear $f(x) = mx + b$: changes by a constant amount per unit (steady rate). Example: a phone plan of $20 plus $0.10 per text.
  • Quadratic $f(x) = ax^2 + bx + c$: rate of change changes at a constant rate; has a single maximum or minimum. Example: the height of a thrown ball; area as a function of side length.
  • Cubic or higher polynomials: several turning points, used for data that rises and falls.
  • Exponential $f(x) = ab^x$: changes by a constant factor (proportional growth or decay). Example: population growth, compound interest, radioactive decay.
  • Rational: inverse proportion or quantities that level off. Example: average cost per item $\frac{C}{n}$.
  • Piecewise: different rules on different intervals. Example: tax brackets, parking charges.
Check yourself

A population increases by 4% each year. The best model is:

  • Quadratic

  • Linear

  • Rational

  • Exponential

Show the answer

Exponential

Constant percentage = constant factor.

2Choosing a model from data

Look at equally spaced inputs and compare outputs:

  • Constant differences → linear.
  • Constant second differences → quadratic.
  • Constant ratios (each output ÷ previous output) → exponential.
Worked example

$x = 0, 1, 2, 3$ and $y = 5, 10, 20, 40$.

  1. Differences: $5, 10, 20$ (not constant).
  2. Ratios: $2, 2, 2$ (constant).
  3. Exponential: $y = 5 \cdot 2^x$.
Worked example

$x = 0, 1, 2, 3$ and $y = 2, 5, 12, 23$.

  1. Differences: $3, 7, 11$; second differences $4, 4$.
  2. Quadratic.

A scatterplot helps too: look at the overall shape, then check with a residual plot.

Check yourself

Data has outputs 3, 6, 12, 24 at x = 0, 1, 2, 3. The model is:

  • Exponential with ratio 2

  • Linear with slope 2

  • Linear with slope 3

  • Quadratic

Show the answer

Exponential with ratio 2

Each output doubles.

3Building and checking the model

  • Use given points to find parameters, or use regression on a calculator (linear, quadratic, cubic, exponential).
  • Residual = actual value − predicted value.
  • A good model has a residual plot with no clear pattern and small residuals. A curved pattern in residuals means the model type is wrong.
Worked example

build a linear model through $(2, 11)$ and $(6, 23)$.

  1. Slope $m = \frac{23 - 11}{6 - 2} = 3$.
  2. $y - 11 = 3(x - 2)$, so $y = 3x + 5$.
Worked example

an exponential model through $(0, 200)$ and $(3, 25)$.

  1. $a = 200$; $200b^3 = 25$, so $b^3 = \frac{1}{8}$ and $b = \frac{1}{2}$.
  2. $y = 200\left(\frac{1}{2}\right)^x$.
Check yourself

A model predicts 48 but the actual value is 45. The residual is:

  • 45/48

  • −3

  • 3

  • 93

Show the answer

−3

Actual − predicted.

4Limits of models

Models have assumptions and a sensible domain:

  • An exponential population model ignores limited resources, so long-term predictions are unreliable.
  • A quadratic model of a ball's height only applies until the ball lands.
  • Interpolation (predicting within the data range) is more reliable than extrapolation (beyond it).
  • Restrict the domain to values that make sense (no negative times or lengths).
Check yourself

Why is extrapolating far beyond the data risky?

  • The pattern may not continue outside the observed range

  • The residuals are always zero outside the observed range

  • It always gives negative values far from the data

  • Models cannot be evaluated at inputs outside the data

Show the answer

The pattern may not continue outside the observed range

Assumptions may break down.

5Going deeper: deciding from data, and judging a model with residuals

Choosing a model means matching how the data change to how each family of functions changes.

Signatures over equal input steps

  • Linear: constant first differences (add the same amount).
  • Quadratic: constant second differences.
  • Exponential: constant ratios (multiply by the same amount).
  • Logarithmic: equal ratios of inputs give equal differences of outputs (the reverse of exponential).
  • Sinusoidal: values repeat in a regular cycle.
  • Rational: asymptotic behavior; inverse variation (xy constant).
Worked example

which model fits? x = 0, 1, 2, 3.

  1. y = 3, 6, 12, 24: ratios 2, 2, 2: exponential, $y = 3 \cdot 2^x$.
  2. y = 1, 4, 9, 16: first differences 3, 5, 7; second differences 2, 2: quadratic, $y = (x + 1)^2$.
  3. y = 5, 8, 11, 14: differences 3: linear, y = 5 + 3x.

Worked example (logarithmic): x = 1, 2, 4, 8 and y = 0, 3, 6, 9.

  1. Inputs double each time; outputs rise by 3.
  2. Logarithmic: $y = 3\log_2 x$.

Real data are not exact: look for differences or ratios that are roughly constant, and use regression on a calculator.

Residuals: residual = actual − predicted.

  • A residual plot graphs residuals against the input.
  • No pattern (random scatter about zero): the model is appropriate.
  • A clear pattern (a curve): the model has the wrong form.
  • Positive residual: the model underestimates; negative: overestimates.
Worked example

a linear model predicts 42 where the actual value is 45.

  1. Residual = 45 − 42 = +3.
  2. The model underestimates at this input.

Worked example (comparing models): for the same data, a linear model's residuals run negative, positive, negative across the range (a U-turned pattern), while an exponential model's are scattered. Choose the exponential.

Context matters as much as fit

  • Domain restrictions: time cannot be negative; a population cannot be fractional.
  • Long-run behavior: a quadratic model of a growing population eventually turns down; an exponential grows forever. Neither may be realistic outside the data.
  • Extrapolation beyond the data is risky; interpolation is safer.
  • State assumptions (constant growth rate; no limits on resources).

Piecewise models: when behavior changes (a different rate after a threshold), use different formulas on different intervals.

Worked example (reasoning in words): a taxi charges a fixed fee plus a constant amount per mile: linear. A quantity loses 12% of its value each year: exponential. The height of a tide through the day: sinusoidal. The area of a square as its side grows: quadratic. The time to travel a fixed distance as speed varies: rational.

Common mistakes

  • Checking differences when the inputs are not equally spaced.
  • Calling data exponential because they "grow fast."
  • Computing residuals as predicted − actual.
  • Choosing a model on fit alone, ignoring what happens outside the data.
  • Reading a patterned residual plot as a good fit.
Check yourself

Over equal steps of x, the outputs of a function are 80, 40, 20, 10. Which model is appropriate?

  • Logarithmic

  • Linear, with a constant difference

  • Exponential, with a constant ratio of ½

  • Quadratic, with constant second differences

Show the answer

Exponential, with a constant ratio of ½

Each output is half the previous one: constant proportional change.

6For top marks

  • Justify your model with a reason: constant differences, constant ratios, or a feature of the context.
  • State the domain and any assumptions of the model.
  • Use residuals to evaluate the fit.
  • Interpret parameters in context: in $y = 200(0.5)^x$, 200 is the starting amount and 0.5 means it halves each unit of time.
Example

"Since the successive ratios are all about 1.08, an exponential model $P = 1200(1.08)^t$ is appropriate: the population grows by 8% per year."

Check yourself

In the model C = 40 + 2.5n (n hours), 40 represents:

  • The cost per hour

  • A fixed starting cost

  • The number of hours

  • The total cost

Show the answer

A fixed starting cost

The constant term.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera