Function Model Construction and Application
Why this matters
Imagine you're running a small online business from your home in Dallas, selling custom-designed hoodies. Your first month, you sold 50 and made a small profit. The next month, 70. The month after, 120. You can see a pattern, but it's not a straight line. How many hoodies do you need to stock for the holiday season? If you order too few, you miss out on sales. Too many, and you're stuck with unsold inventory.
This is not just a business problem; it's a math problem. The skills you'll learn here are about taking real-world data—like your sales numbers—and building a function that models it. This mathematical model becomes your crystal ball. It can help you predict future sales, find your maximum possible profit, and make smart decisions. We'll learn how to build these models for all sorts of scenarios, from the path of a basketball to the pricing of a new app.
Concept overview
flowchart TD
A[Start: Analyze a real-world scenario] --> B{What's the relationship?};
B --> C[Constant rate of change?];
C --> D[Linear Model: f(x)=mx+b];
B --> E[Curved data with turns?];
E --> F[Polynomial Model: Quadratic, Cubic, etc.];
F --> G[Use Regression on Calculator];
B --> H[Is one quantity inversely proportional to another?];
H --> I[Rational Model: f(x)=k/x];
B --> J[Do the rules change at certain points?];
J --> K[Piecewise Model];
subgraph "Apply the Model"
direction LR
L[Predict values: Plug in x]
M[Solve for inputs: Find x for a given y]
N[Analyze: Find rates of change, max/min]
end
D --> L;
G --> L;
I --> L;
K --> L;
Core explanation
Welcome to one of the most practical topics in all of precalculus. We're moving beyond just analyzing functions on a graph and learning how to build them from scratch to solve real problems. Think of yourself as an architect, but instead of buildings, you're designing mathematical models.
What is a Function Model?
A function model is an equation that represents the relationship between variables in a real-world context. For example, a model might relate the time a baseball is in the air to its height. Our goal is to find the best function that tells the story of the data.
Building Polynomial Models
Polynomials are your go-to for modeling things that curve, rise, and fall. The type of polynomial you choose depends on the "shape" of the situation.
- Linear
f(x) = mx + b: Use this for situations with a constant rate of change. Think of a car driving at a steady 60 mph, or a phone plan that costs $40 per month no matter how much data you use (for now!). - Quadratic
f(x) = ax² + bx + c: Perfect for anything that follows a parabolic path—it goes up and then comes down, or vice-versa. The classic example is the height of a projectile, like a football thrown by a quarterback. We can also use transformations of the parent functiony = x²to build these models if we know the vertex, likef(x) = a(x - h)² + k. - Cubic
f(x) = ax³ + ...& Quarticf(x) = ax⁴ + ...: These are for more complex scenarios with more "wiggles" or turning points. A cubic function can have up to two turns, and a quartic can have up to three. Think of modeling a company's profit over several years, which might dip, recover, and then grow.
Using Technology for Regression
Most of the time, real-world data isn't perfectly clean. Your hoodie sales numbers won't form a perfect parabola. This is where your graphing calculator or a tool like Desmos becomes your best friend.
You can enter your data points (like (month, sales)) and perform a regression to find the best-fit function. Your calculator has options for Linear Regression (LinReg), Quadratic Regression (QuadReg), CubicReg, and QuarticReg. The calculator does the heavy lifting to find the a, b, and c values that make the function fit your data as closely as possible.
Building Rational Models
What if the relationship isn't about adding or multiplying, but about dividing? That's where rational functions come in.
The key phrase to look for is "inversely proportional." This means as one quantity goes up, the other goes down in a specific way. A rational function of the form f(x) = k/x or f(x) = k/x² is often the right model.
Think about this: you and your friends are painting a large mural for a community center in Chicago.
- If 2 people work, it might take 10 hours.
- If 4 people work, the time should be cut in half to 5 hours.
- If 10 people work, it might only take 2 hours.
As the number of people (x) increases, the time (y) decreases. This is an inverse relationship. The model would look something like Time = k / (Number of People). The k is called the constant of proportionality, and you can find it using one of the known data points (like 10 = k/2, so k=20).
Building Piecewise-Defined Models
Sometimes, one single rule doesn't apply to the whole situation. The rules change depending on the input. This is incredibly common in real life.
A piecewise-defined function is a function built from two or more different function "pieces," each with its own specific domain.
A classic example is cell phone data plans:
- $50 for the first 10 GB of data.
- After 10 GB, it's $5 for each additional GB.
This isn't one simple linear function. It's two:
- A constant function:
C(d) = 50if0 ≤ d ≤ 10 - A linear function:
C(d) = 50 + 5(d - 10)ifd > 10
We combine them into a single piecewise model. The most common mistake here is getting the domain boundaries (0 ≤ d ≤ 10 and d > 10) wrong. Be precise!
Applying Your Model
Once you've built your beautiful function model, what do you do with it? You use it!
- Predict valuesPlug in an
xto find ay. (e.g., "What will profits be in year 7?") - Solve for inputsSet the function equal to a value and solve for
x. (e.g., "When will the company reach $1 million in profit?") - Analyze behaviorFind maximums, minimums, and average rates of change to understand the story behind the numbers. For example, the average rate of change between month 2 and month 5 tells you the average increase in sales per month during that period.
Always remember to include units in your final answer. A number without units is meaningless in the real world. Is the answer 42 dollars, 42 feet, or 42 years? Context is everything.
Worked examples
Modeling Business Growth (Polynomial Regression)
Problem: A new coffee shop in Seattle, "The Daily Grind," records its quarterly profit for its first year of operation. The data is shown in the table, where t is the quarter (1, 2, 3, 4) and P(t) is the profit in thousands of dollars.
| Quarter (t) | Profit P(t) (in thousands) |
|---|---|
| 1 | -5.2 |
| 2 | 1.5 |
| 3 | 4.1 |
| 4 | 8.3 |
A) Use a graphing calculator to find a cubic regression model for this data. B) Use the model to predict the profit in the middle of the second year (t = 6).
Solution:
Part A: Finding the Model
- 1Enter the dataFirst, we go to the statistics menu on our calculator. We'll enter the
tvalues (1, 2, 3, 4) into one list (like L1) and theP(t)values (-5.2, 1.5, 4.1, 8.3) into a second list (L2). - 2Choose the regressionThe problem specifically asks for a cubic regression. We'll navigate to the calculation menu and select
CubicReg. We tell the calculator to use our two lists of data. - 3Write down the modelThe calculator will output the coefficients
a,b,c, anddfor the functionP(t) = at³ + bt² + ct + d. Let's say it gives us (rounding to two decimal places):a = -0.88b = 7.05c = -14.17d = 2.8So, our model is:P(t) = -0.88t³ + 7.05t² - 14.17t + 2.8
Part B: Applying the Model
- 1Identify the inputWe want to predict the profit at
t = 6. - 2Plug into the modelWe substitute
t = 6into our function:P(6) = -0.88(6)³ + 7.05(6)² - 14.17(6) + 2.8 - 3Calculate
P(6) = -0.88(216) + 7.05(36) - 85.02 + 2.8P(6) = -190.08 + 253.8 - 85.02 + 2.8P(6) = -18.5 - 4Interpret the resultThe model predicts a profit of -$18,500. This is a great example of why you must be careful when extrapolating (predicting far outside your original data range). A cubic model that fits the first four points perfectly might not represent the long-term reality. The business might actually be growing, but this specific model shows a downturn after a certain point.
Building a Piecewise Model
Problem: A parking garage in downtown Boston charges drivers based on the number of hours parked. The rate is $8 per hour for the first 3 hours. After 3 hours, the rate drops to $5 for each additional hour (or fraction thereof). The maximum charge for any 24-hour period is $45. Construct a piecewise function for the cost, C(h), for parking h hours, where 0 < h ≤ 24.
Solution:
We need to break this down into pieces based on the changing rules.
- 1First piece (The first 3 hours)The cost is a simple $8 per hour.
- Rule:
C(h) = 8h - Domain: This rule applies from the moment you park until the 3-hour mark. So,
0 < h ≤ 3.
- Rule:
- 2Second piece (After 3 hours, up to the max charge)The cost is the price for the first 3 hours ($8 3 = $24) PLUS $5 for each additional* hour. The number of additional hours is
h - 3.- Rule:
C(h) = 24 + 5(h - 3) - Domain: This rule starts right after 3 hours. We need to figure out where it stops. It stops when the cost hits the $45 maximum. Let's solve for
h:45 = 24 + 5(h - 3)21 = 5(h - 3)4.2 = h - 3h = 7.2So, this rule applies when3 < h ≤ 7.2.
- Rule:
- 3Third piece (The maximum charge)After 7.2 hours, you just pay the flat maximum fee.
- Rule:
C(h) = 45 - Domain: This applies from 7.2 hours all the way up to the 24-hour limit. So,
7.2 < h ≤ 24.
- Rule:
Putting it all together:
Our final piecewise function is:
/ 8h, if 0 < h ≤ 3
C(h) = < 24 + 5(h - 3), if 3 < h ≤ 7.2
\ 45, if 7.2 < h ≤ 24
Try it yourself
Problem 1: The Cooling Coffee
A cup of hot coffee is left on a desk in a 70°F room. Its temperature is measured every few minutes. The data shows that the difference between the coffee's temperature and the room's temperature is inversely proportional to the time elapsed. After 5 minutes, the temperature difference is 100°F.
- Construct a rational function model
D(t)that represents the temperature difference aftertminutes. - What will the temperature difference be after 20 minutes?
Problem 2: Soccer Ball Kick
Priya kicks a soccer ball. The height of the ball, h(t) in feet, after t seconds is modeled by the function h(t) = -16t² + 48t.
- What is the average rate of change of the ball's height between
t=0.5seconds andt=1.5seconds? - What do the units of this rate of change represent?
Practice — 8 questions
In simple terms, this topic is about creating mathematical equations (functions) that act as "blueprints" for real-world situations, allowing us to make accurate predictions.
/ 8h, if 0 < h ≤ 3
C(h) = < 24 + 5(h - 3), if 3 < h ≤ 7.2
\ 45, if 7.2 < h ≤ 24
- 1.14.A: Construct a linear, quadratic, cubic, quartic, polynomial of degree n, or related piecewise-defined function model.
- 1.14.B: Construct a rational function model based on a context.
- 1.14.C: Apply a function model to answer questions about a data set or contextual scenario.
- 1.14.A.1
- A model can be constructed based on restrictions identified in a mathematical or contextual scenario.
- 1.14.A.2
- A model of a data set or a contextual scenario can be constructed using transformations of the parent function.
- 1.14.A.3
- A model of a data set can be constructed using technology and regressions, including linear, quadratic, cubic, and quartic regressions.
- 1.14.A.4
- A piecewise-defined function model can be constructed through a combination of modeling techniques.
- 1.14.B.1
- Data sets and aspects of contextual scenarios involving quantities that are inversely proportional can often be modeled by rational functions. For example, the magnitudes of both gravitational force and electromagnetic force between objects are inversely proportional to the objects’ squared distance.
- 1.14.C.1
- A model can be used to draw conclusions about the modeled data set or contextual scenario, including answering key questions and predicting values, rates of change, average rates of change, and changing rates of change. Appropriate units of measure should be extracted or inferred from the given context.
flowchart TD
A[Start: Analyze a real-world scenario] --> B{What's the relationship?};
B --> C[Constant rate of change?];
C --> D[Linear Model: f(x)=mx+b];
B --> E[Curved data with turns?];
E --> F[Polynomial Model: Quadratic, Cubic, etc.];
F --> G[Use Regression on Calculator];
B --> H[Is one quantity inversely proportional to another?];
H --> I[Rational Model: f(x)=k/x];
B --> J[Do the rules change at certain points?];
J --> K[Piecewise Model];
subgraph "Apply the Model"
direction LR
L[Predict values: Plug in x]
M[Solve for inputs: Find x for a given y]
N[Analyze: Find rates of change, max/min]
end
D --> L;
G --> L;
I --> L;
K --> L;
Read what Saavi narrates
(Music fades in and out)
Hey there. I'm Saavi, and welcome to Shrutam.
Let's talk about something you might do every day... maybe you run a small online business, or you're tracking a science fair project. Imagine you're selling custom hoodies. Your sales are growing, but not in a straight line. How do you know how many to stock for the holidays? Order too few, you lose money. Order too many, you lose money.
This is where math becomes your secret weapon. Today, we're learning how to take real-world data, like your sales numbers, and build a function that models it. This model becomes your crystal ball. It helps you predict the future, find your maximum profit, and make smart decisions.
Essentially, function modeling is about translating a real-world story into a mathematical equation. We'll build different kinds of functions—polynomials for things that curve, rational functions for relationships where one thing goes up as another goes down, and piecewise functions for when the rules of the game change partway through.
Let's walk through an example. Imagine a new coffee shop in Seattle. They track their profit every quarter for a year. The numbers are a little messy... they lose money at first, then start making some. We can plug this data into our calculator and ask it to find a "cubic regression model." That's a fancy way of saying, "Find the best-fit curvy line for this data."
The calculator gives us an equation, something like P of t equals negative zero point eight eight t-cubed plus seven point zero five t-squared... and so on. That equation is our model. Now, we can use it. What's the profit going to be in the second year, at time t equals 6? We just plug 6 into our model and calculate. The model might predict a loss, which tells us something important: models are great, but they're not perfect, especially when you predict far into the future.
Here's a common mistake I see all the time. When you're dealing with a situation where one thing is "inversely proportional" to another—like the time it takes to do a job and the number of people working—students often forget a little variable called 'k', the constant of proportionality. They'll write the model as y equals one over x. But it should be y equals k over x. You have to use the data you're given to solve for that k first! It's a small step, but it makes all the difference between a wrong answer and a right one.
The skills you're learning today are used everywhere, from economics to engineering to video game design. So take your time, practice building these models, and you'll be able to tell the mathematical story of almost any situation you can imagine. You've got this.
(Music fades in)
A linear model assumes a constant rate of change. If the data shows growth that is speeding up or slowing down, a line will be a poor fit and lead to inaccurate predictions.
Plot your data points first. Look at the shape. Does it look like a parabola (U-shape)? Use a quadratic model. Does it have more wiggles? Try a cubic or quartic model.
Writing `y = 1/x` instead of `y = k/x` assumes the constant is 1, which is rarely true. The constant `k` is what scales the model to your specific scenario.
Always start inverse variation problems with `y = k/x` or `y = k/x²`. Use one given data point `(x, y)` to solve for `k` first. Then you can write your final model.
A function must have exactly one output for each input. If your intervals overlap (e.g., `x ≤ 4` and `x ≥ 4`), then at `x=4`, the function has two different rules, which isn't allowed.
Be very careful with your inequality signs. Use `≤` or `≥` for one piece and `<` or `>` for the next. For example, `0 < x ≤ 5` and `5 < x ≤ 10`. The point `x=5` belongs to only the first piece.
A model is built to fit a specific set of data. A cubic function that fits your first four data points might curve downwards dramatically for the fifth point, even if common sense says the trend should continue up.
Use your model to predict values *within* or *very close to* your data range (interpolation). If you must extrapolate, state that the prediction may be unreliable and consider if the model makes sense in the long run.
In application problems, the numbers have meaning. Answering "the profit is 50" is incomplete. Is that $50? $50,000? 50 cents? The units are part of the answer.
Reread the problem to find the units for each variable. State your final answer clearly with the correct units, like "The predicted cost is $34.50" or "The height of the ball is 64 feet."