Choosing a Model and Stating Its Assumptions
Practise this section (12)Jayden is selling T-shirts for a school fundraiser. Day 0 is launch day, and he writes down how many shirts he sold on each of the first five days: 3, 7, 13, 21, 31. His teammate says sales are growing at a steady rate. Jayden says they are speeding up. Who is right, and would you really bet on his prediction for day 10?
A model is a function that describes real data well enough to make predictions. In this page you learn to pick the right type of function from a table or a description, to build it, and to say honestly where it stops being believable.
Reading the pattern in a table
Different families of functions leave different fingerprints in a table of values. The easiest fingerprint to read is the successive differences: subtract each $y$-value from the next one. This works when the $x$-values are equally spaced.
Here is a table of $y = 1, 4, 11, 22, 37$ for $x = 0, 1, 2, 3, 4$. The first differences are $3, 7, 11, 15$, so they are not constant. The second differences are $4, 4, 4$, which are constant.
Table with x = 0 to 4 and y = 1, 4, 11, 22, 37. The first differences (+3, +7, +11, +15) are not constant, but the second differences (+4, +4, +4, highlighted) are: the signature of a quadratic function.Constant second differences mean the data follow a quadratic function. Each time the pattern shows up in a different row, the degree goes up by one.
Why does this work? A linear function adds the same amount every step. A quadratic function has a rate of change that itself changes at a steady pace. An exponential function multiplies by the same factor every step.
A table gives these values of a function: $x = 0, 1, 2, 3, 4$ and $y = 5, 8, 11, 14, 17$. Compute the successive differences of $y$. Then decide whether a linear,…
A table gives these values of a function: $x = 0, 1, 2, 3, 4$ and $y = 5, 8, 11, 14, 17$. Compute the successive differences of $y$. Then decide whether a linear, quadratic, or exponential model is the best choice, and explain your reasoning.
A table gives $x = 0, 1, 2, 3, 4$ and $y = 3, 4, 7, 12, 19$. Find the first differences and the second differences of $y$. What type of model do these differences…
A table gives $x = 0, 1, 2, 3, 4$ and $y = 3, 4, 7, 12, 19$. Find the first differences and the second differences of $y$. What type of model do these differences suggest? Explain how you know it is not linear.
A table gives $x=0,1,2,3,4$ and $y=1,2,9,28,65$. (a) Compute the first, second, and third differences. (b) What degree of polynomial model do these differences suggest?…
A table gives $x=0,1,2,3,4$ and $y=1,2,9,28,65$.
(a) Compute the first, second, and third differences.
(b) What degree of polynomial model do these differences suggest? Explain.
(c) Continue the pattern of differences to predict the value of $y$ when $x=5$.
Linear models and their domain
Use a linear model when something changes by the same amount per unit of input: a flat monthly price, a constant speed, a steady growth. In $f(x) = mx + b$, the slope $m$ is the rate of change (output units per input unit). The $y$-intercept $b$ is the initial value, the output when $x = 0$.
A model is only meaningful on a domain that makes sense in the situation. Time cannot be negative. A store cannot sell half a membership if memberships are sold by the month. A rental may have a maximum length. The domain of the formula is all real numbers, but the domain of the model is smaller.
Explore how the intercept and slope shape the line.
A gym charges a one-time sign-up fee of $\$25$ plus $\$30$ per month. Write a linear model $C(m)$ for the total cost after $m$ months. Then state a reasonable domain if…
A gym charges a one-time sign-up fee of $\$25$ plus $\$30$ per month. Write a linear model $C(m)$ for the total cost after $m$ months. Then state a reasonable domain if the gym only sells memberships for up to one year, and find the cost after 8 months.
Quadratic models
Choose a quadratic model when the data rise and then fall (or fall and then rise), when the table is symmetric about some input, or when the second differences are constant. Falling objects, areas, and profit as a function of price or quantity are classic examples.
Key features of $y = ax^2 + bx + c$:
-
Vertex at $x = -\dfrac{b}{2a}$. It is a maximum if $a < 0$ and a minimum if $a > 0$.
-
Zeros (x-intercepts) from factoring or the quadratic formula.
-
Symmetry about the vertical line through the vertex.
To show that a formula matches a table, plug in every $x$ and compare with the table. Matching four of five points is not a match. Another check: if the inputs step by $\Delta x$, the constant second difference of a quadratic is $2a(\Delta x)^2$.
A ball is tossed upward from a balcony. The table gives its height $h$ (in feet) at time $t$ (in seconds): $t=0, 0.5, 1, 1.5, 2$ and $h=4, 16, 20, 16, 4$. The values are…
A ball is tossed upward from a balcony. The table gives its height $h$ (in feet) at time $t$ (in seconds): $t=0, 0.5, 1, 1.5, 2$ and $h=4, 16, 20, 16, 4$. The values are symmetric about $t=1$.
(a) Explain why a quadratic model is appropriate.
(b) Show that $h(t)=-16t^2+32t+4$ matches all five data points.
(c) Find a restricted domain for which the model makes sense in this context.
A small company models its profit by $P(x)=-2x^2+80x-300$, where $x$ is the number of hundreds of units sold and $P(x)$ is the profit in thousands of dollars. (a) Find…
A small company models its profit by $P(x)=-2x^2+80x-300$, where $x$ is the number of hundreds of units sold and $P(x)$ is the profit in thousands of dollars.
(a) Find the number of units that maximizes profit and the maximum profit.
(b) Find the interval of sales levels where the company makes a profit.
(c) The model gives $P(50)=-1300$. Explain what this value means, and argue for a restricted domain for the model.
Piecewise-defined functions
Some situations follow different rules in different ranges of the input: a tiered price, a speed limit that changes, a tax bracket. A piecewise-defined function uses a different formula on each interval.
To evaluate it, find which interval the input belongs to, then use only that formula. Pay close attention to $<$ versus $\le$, because they decide where the boundary value goes.
$$f(x)=\begin{cases}x+3, & x<1\\ 2x^2-1, & x\ge 1\end{cases}$$At $x = 1$ the condition $x < 1$ is false and $x \ge 1$ is true, so $f(1)$ uses the second formula.
A piecewise function is continuous at a boundary $x = c$ when the pieces meet there: both formulas give the same value at $c$. If they give different values, the graph has a jump.
Graph of a parking cost model: cost rises 3 dollars per hour for the first 4 hours, then 2 dollars per hour, with the two pieces meeting at the point (4, 12)A piecewise-defined function is given by $$f(x)=\begin{cases}2x+1, & x<3\\ x^2-4, & x\ge 3\end{cases}$$ Evaluate $f(1)$, $f(3)$, and $f(5)$. For each input, say which…
A piecewise-defined function is given by
$$f(x)=\begin{cases}2x+1, & x<3\\ x^2-4, & x\ge 3\end{cases}$$Evaluate $f(1)$, $f(3)$, and $f(5)$. For each input, say which piece of the function you used and why.
Building piecewise models
To build a piecewise model, work one interval at a time:
-
List the breakpoints, where the rule changes.
-
On each interval, write the formula. For a linear piece through $(x_1, y_1)$ with slope $m$, use $y = y_1 + m(x - x_1)$. You can get $m$ from two points: $m = \dfrac{y_2 - y_1}{x_2 - x_1}$.
-
For tiered rates, the rate on the new tier applies only to the amount above the breakpoint. So the new piece is (total cost at the breakpoint) + (new rate) $\times$ (amount above the breakpoint).
-
Check that the pieces meet at each breakpoint, if the situation has no sudden jump.
Income tax brackets work the same way: the tax is the sum of the tax from every bracket you filled, plus the new rate times the part inside the current bracket.
Sometimes the pieces come from a description of motion rather than from prices.
Jayden's distance from home (miles) against time (hours): a rising segment to 12 miles at t = 1 (ride out), a flat segment until t = 1.5 (rest), then a falling segment back to 0 at t = 2.5 (ride home). Each stage is one piece.An electric company bills the first 500 kWh in a month at $\$0.12$ per kWh. Every kWh beyond 500 costs $\$0.18$. Write a piecewise-defined function $C(x)$ for the…
An electric company bills the first 500 kWh in a month at $\$0.12$ per kWh. Every kWh beyond 500 costs $\$0.18$. Write a piecewise-defined function $C(x)$ for the monthly cost of $x$ kWh, $x \ge 0$. Then find the cost of using 300 kWh and the cost of using 700 kWh.
During a hike, Aaliyah's elevation $E$ (in feet) at time $t$ hours is described as follows. For $0\le t\le 2$ she climbs at a constant rate from $1{,}000$ ft to…
During a hike, Aaliyah's elevation $E$ (in feet) at time $t$ hours is described as follows. For $0\le t\le 2$ she climbs at a constant rate from $1{,}000$ ft to $1{,}800$ ft. For $2< t\le 3$ she rests at the summit. For $3<t\le 5$ she descends at a constant rate to $1{,}200$ ft.
(a) Write a piecewise-defined linear model $E(t)$.
(b) Find $E(2.5)$ and $E(4)$.
(c) Find every time when her elevation is exactly $1{,}500$ ft.
(d) Explain why this model cannot be used for $t>5$.
A (fictional) state income tax works like this: 10% of the first $\$10{,}000$ of income, 15% of the income above $\$10{,}000$ up to $\$40{,}000…
A (fictional) state income tax works like this: 10% of the first $\$10{,}000$ of income, 15% of the income above $\$10{,}000$ up to $\$40{,}000$, and 25% of the income above $\$40{,}000$.
(a) Write a piecewise-defined function $T(x)$ for the tax on an income of $x$ dollars.
(b) Find $T(25{,}000)$ and $T(60{,}000)$.
(c) Is $T$ continuous at $x=10{,}000$ and $x=40{,}000$? Justify.
(d) Find the average tax rate (tax divided by income) for an income of $\$60{,}000$.
Assumptions, domain, and trusting a prediction
Every model is a simplification, so a good model comes with a statement of assumptions and a domain. Before you trust a prediction, ask three questions:
-
Does the model fit all the data? Test every data point, not just two of them.
-
Is the prediction inside the data (interpolation) or far outside it (extrapolation)? Extrapolation is riskier the farther you go.
-
What assumption could fail? Examples: the rate stays constant, no one changes prices, the town has room to grow, nothing runs out.
| Model | Typical assumption |
|---|---|
| Linear | The rate of change stays constant. |
| Quadratic | The same pattern of rising and falling continues (for a ball, only gravity acts). |
| Piecewise | The rules (prices, tiers, speeds) do not change. |
Matching a model to some points is not enough. Look at what happens when a line is built from just the first and last data points.
Five data points (t = 0 to 4) that curve upward. The line through the endpoints misses the middle points; the quadratic passes through all five: fitting just two data points is not enough to validate a model.The population of a small town is modeled by $P(t)=12{,}400+350t$, where $t$ is the number of years since 2015. (a) Predict the population in 2030. (b) In what year does…
The population of a small town is modeled by $P(t)=12{,}400+350t$, where $t$ is the number of years since 2015.
(a) Predict the population in 2030.
(b) In what year does the model predict a population of 20,000?
(c) State one assumption behind the model, and explain why the prediction for the year 2100 would be less trustworthy.
A plant's height $h$ (in inches) was measured at the end of week $t$: $t=0,1,2,3,4,5$ and $h=2,5,9,14,20,27$. (a) Marcus proposes the linear model $L(t)=3.6t+2$ (built…
A plant's height $h$ (in inches) was measured at the end of week $t$: $t=0,1,2,3,4,5$ and $h=2,5,9,14,20,27$.
(a) Marcus proposes the linear model $L(t)=3.6t+2$ (built from the first and last data points). Show that it misses the middle data points.
(b) Show that the second differences are constant, and verify that $Q(t)=0.5t^2+2.5t+2$ fits all of the data.
(c) Compare $L(10)$ and $Q(10)$. Argue which prediction you trust more, and say what real-world limit neither model captures.
Back to the start: Jayden's shirt sales, $3, 7, 13, 21, 31$, have first differences $4, 6, 8, 10$ and second differences $2, 2, 2$. Sales are speeding up, so the model is quadratic, $y = x^2 + 3x + 3$. It predicts 133 shirts on day 10. That is only believable if the fundraiser keeps getting more popular at the same pace. A shirt sale cannot grow forever, so the prediction deserves caution.
Summary
-
Equally spaced data: constant first differences mean linear, constant second differences mean quadratic, constant third differences mean cubic, and constant ratios mean exponential.
-
Linear model $mx + b$: $m$ is the rate (units of output per unit of input) and $b$ is the initial value.
-
Quadratic models fit rising-then-falling data. The vertex is at $x = -\frac{b}{2a}$, and a profit is positive between the zeros when $a < 0$.
-
Piecewise functions use a different formula on each interval. Choose the piece from the input, mind $<$ versus $\le$, and check continuity by comparing both pieces at the breakpoint.
-
For tiered rates, the new rate applies only to the amount above the breakpoint: new piece = total at breakpoint + rate $\times$ amount above.
-
Always state a domain that fits the context, test the model against all the data, and name its assumptions. Extrapolating far outside the data is risky.
Can't find your problem here?
The AI checks one of your exercises: paste the problem with your answer or take a photo of it.