Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Function Model Construction and Application

Lesson ~12 min read 8 MCQs

In simple terms: 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.

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;
A flowchart illustrating the decision-making process for function modeling. It starts with analyzing a scenario and branches into four paths based on the data's relationship: constant rate (linear model), curved data (polynomial model), inverse proportionality (rational model), or changing rules (piecewise model). All paths lead to the final step of applying the model to make predictions.

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 function y = x² to build these models if we know the vertex, like f(x) = a(x - h)² + k.
  • Cubic f(x) = ax³ + ... & Quartic f(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:

  1. A constant function: C(d) = 50 if 0 ≤ d ≤ 10
  2. A linear function: C(d) = 50 + 5(d - 10) if d > 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 values
    Plug in an x to find a y. (e.g., "What will profits be in year 7?")
  • Solve for inputs
    Set the function equal to a value and solve for x. (e.g., "When will the company reach $1 million in profit?")
  • Analyze behavior
    Find 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.

Comparing linear, quadratic, and cubic function shapes for modeling different real-world scenarios.

Worked examples

Example 1

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

  1. 1
    Enter the data
    First, we go to the statistics menu on our calculator. We'll enter the t values (1, 2, 3, 4) into one list (like L1) and the P(t) values (-5.2, 1.5, 4.1, 8.3) into a second list (L2).
  2. 2
    Choose the regression
    The 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.
  3. 3
    Write down the model
    The calculator will output the coefficients a, b, c, and d for the function P(t) = at³ + bt² + ct + d. Let's say it gives us (rounding to two decimal places):
    • a = -0.88
    • b = 7.05
    • c = -14.17
    • d = 2.8 So, our model is: P(t) = -0.88t³ + 7.05t² - 14.17t + 2.8

Part B: Applying the Model

  1. 1
    Identify the input
    We want to predict the profit at t = 6.
  2. 2
    Plug into the model
    We substitute t = 6 into our function: P(6) = -0.88(6)³ + 7.05(6)² - 14.17(6) + 2.8
  3. 3
    Calculate
    P(6) = -0.88(216) + 7.05(36) - 85.02 + 2.8 P(6) = -190.08 + 253.8 - 85.02 + 2.8 P(6) = -18.5
  4. 4
    Interpret the result
    The 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.

Example 2

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.

  1. 1
    First 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.
  2. 2
    Second 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 - 3 h = 7.2 So, this rule applies when 3 < h ≤ 7.2.
  3. 3
    Third 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.

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
Plotting the coffee shop's quarterly profit data and the cubic regression model.

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.

  1. Construct a rational function model D(t) that represents the temperature difference after t minutes.
  2. 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.

  1. What is the average rate of change of the ball's height between t=0.5 seconds and t=1.5 seconds?
  2. What do the units of this rate of change represent?
Visualizing the soccer ball's parabolic trajectory and the secant line for average rate of change.