Introduction
In this unit, you’ll learn how to decide what kind of function to use to model a given scenario based on data, graphs, or characteristics, and explain the limitations of said choice.
Big Idea
On the AP Exam, you will be given a scenario, a table, or graph, and you must select an appropriate function family (i.e., linear, quadratic, cubic, higher-degree polynomials, or even piecewise functions) and explain why the type of function you chose fits the data. You need to be able to explain what assumptions you make and what implications your choice has on the domain and range.
Data Analysis
Before we begin determining what kind of function best models a scenario, we must understand finite differences–it is a method of detecting the degree of a polynomial function given points from a table, so long as the values (inputs) are equally spaced.
In the below sections, we will use the following table:
First differences
To calculate the first differences, compute , , etc. etc.
If these differences are roughly constant, then the data can be modeled by a linear function, which has a degree of one.
Note: the suitable error between first differences, which determines whether or not it can be considered roughly constant, will depend on the scale of the numbers.
For example, if you’re measuring distances between planets and you have one million miles compared to one million and five miles (as your first difference), it is roughly constant, since five is negligible compared to one million. However, if you’re measuring the lengths of ants and you have 10mm compared to 15mm, then this cannot be considered constant, as a 5mm difference is huge (50%) compared to the scale.
A general rule is that if the numbers are within about 10% of each other, they can be considered to be roughly constant; you should always trust your gut, though. On the AP exam, it will be clear whether an error is acceptable, you will never need to guess.
Second differences
The process is similar for second differences. The only difference this time is that you subtract the first first difference from the second first difference. For example, the first term in a second difference would be . And, if these differences are roughly constant, then it can be modeled by a quadratic model.
This pattern continues on, we can take successive second differences to find the third differences, and so on.
Function Families
Linear Function
The general form of a linear function is
Linear functions are great at modeling situations in which values change at a constant rate. Common words that describe this are “per”, “for every,” or anything that implies a constant rate of change.
When looking at a table of values, it implies that while the values are evenly spaced, the first differences (the difference between consecutive outputs/-values) are roughly constant. Preferably (and usually), they will be exactly constant; however, especially when modeling real life data, having a small bit of error is fine.
When plotting the points on a graph, you should be able to draw a straight line that is close / passes through each of the points.
Quadratic Functions
There are two general forms of quadratic functions that you will need to know.
The first is standard form:
The second is vertex form:
Quadratic models are very good at modeling a data set when the rate of change of the dataset itself is changing at a constant rate. The data typically approaches a minimum or maximum, and the rest of the data is symmetrical around that extreme.
In contrast to linear functions, when values of a quadratic function are evenly spaced, their first difference (the difference between output values) is not constant. Instead, their second differences are (roughly) constant.
Alternatively, you could also graph the data, and, if it is best modeled by a quadratic, it will resemble a parabola with exactly one vertex (one single peak or valley).
Cubic Functions
Cubic functions take on the general form
Typically, the only applied scenario (anything other than raw data points) you’d best use a cubic function to model is in the context of a volume problem or scaling in three-dimensions.
The best way to be sure is to just look at the values in a table. For cubic functions, when the inputs, , are equally spaced, neither the first nor second differences are constant. Rather, the third differences should be roughly constant.
Things become much more ambiguous when looking at it graphically, so it’s not recommended. However, one possible indicator that a dataset is best modelled by a cubic function is if it changes from increasing to decreasing or decreasing to increasing two times. Another indicator, though not perfect (as any function with an odd degree will also exhibit this behavior), is the end behavior of the function: if the is cubic.
Higher-Degree Polynomial Functions
From 1.4, you know that a polynomial function will take on the general form
Usually, at most, you will be tested on Quartic or Quintic functions (fourth and fifth degree).
The easiest way to tell if data is best modeled by a polynomial is just by looking at the graph. If the graph has multiple real zeros, or if there are several local maxima/minima (more than a quadratic or cubic would produce), or any other traits unique to a high-degree polynomial (which are explored in greater detail in article 1.4 on FiveHive), the data is likely best modeled by a polynomial function with a higher degree.
When looking at a table of values, it becomes slightly more complicated. When inputs are equally spaced, the n-th differences should be roughly constant (and nonzero), if a polynomial of n-th degree best models the data.
The main takeaway, though, is that polynomial functions best model data when there are multiple local max/mins, multiple zeros, or when the n-th differences point to a degree higher than .
Piecewise Functions
A piecewise function uses different formulas on different (nonoverlapping) intervals of the domain. There is not exactly a general form, but an example could be:
It is difficult to make a general rule for piecewise models. Often, the best way to figure out the behavior of a piecewise function is to find a point where the behavior of the graph changes.
More informally, if the graph looks “broken,” then it’s most likely a piecewise function. Some clear signs of this is if there is a point at which the function is not continuous or if there’s a sharp corner at a specific point.
From there, you can separate the graph into multiple sections, where each section represents an individual case of the piecewise function.
You can use piecewise functions to model a scenario when one function is not enough to describe the entire dataset.
For example, a piecewise function may be used when modeling parking rates, calculating shipping/payment costs, or calculating how much taxes someone owes.
Geometric clues
Many geometric models can be guessed simply from the dimension.
For example, in two-dimensional (area) contexts, the best way to model an area is usually a quadratic, and for three-dimensional (volume) contexts, the best way to model volume is usually a cubic (which will be expanded on in the next section). This is because, often, the area of a 2D shape is proportional to a quadratic, and the same applies to 3D objects and cubics. However, especially for irregular shapes, this isn’t always the case.
Regressions
If you want a full Desmos guide from FiveHive, check out the AP Precalculus Desmos Guide
Once you’ve decided on a type of model (linear, quadratic, cubic, etc.), Desmos (which will be provided to you on the exam), or your graphing calculator (if it has a regression option) can help you find the exact best–fit equation for your data through a process called regression.
Typically, regression will exclusively be used for when you are given data points
First, open up the Desmos Graphing Calculator. The version that is on desmos.com is slightly different than the one in BlueBook, but any changes present are minor.
Click the “+” → Table to create a data table

Then, enter your inputs in the first column (Desmos labels it ) and outputs in the second column
Then, we can input the regression.
In Desmos, regressions use the tilde symbol (~). It should be found above your tab key (press shift + `). Using the general forms that we listed above (other than for piecewise functions, in which you must separate the graph into their own unique behaviors), we can create a regression.

Alternatively, you can click the regression button:

From here, choose the best regression using the dropdown menu

For each regression, you will receive some data

For this unit, all we care about is .
To understand what its significance is, let’s interpret the regression. The equation Desmos is giving you is the “best fit” within the model you chose (linear, quadratic, etc.). A higher means that the function fits the data better (with a max of 1). If I had used a quadratic function to model my data instead, my would be significantly lower and thus imply that the quadratic model does not fit my data well.
Additionally, the function that Desmos provides you can be used to estimate data at points between the data given.
You will learn later, though, that a high may not always mean a great fit, and instead, you will learn how to use residuals to determine how well a function fits.
Assumptions and Restrictions in Modeling
When we model data, it is almost never a perfect prediction. Rather, it is a simplified version that emphasizes an overall trend with the data.
Articulating Assumptions
Consistency Assumptions
These are assumptions about what is considered constant when we use a model. It’s essentially what we consider doesn’t change.
For example:
- You can assume a car travels at constant speed without stopping for traffic to support a linear model.
- You can assume gravity is constant and air resistance is negligible (constant of )
While these often aren’t constant in real life, we model them as constant in order to reflect general trends in the data.
Covariation Assumptions
Covariation assumptions describe how quantities change together. It explains how if one variable changes, how the other responds.
For example:
- In a linear model, there is a linear relationship between and .
- In a quadratic model, there is a quadratic relationship between and .
Covariation assumptions are important because you are justifying why you chose a specific model for your data.
Domain Restrictions
Speaking from a purely mathematical perspective, a polynomial is defined for all real numbers.
However, in the real world, the dataset that a function models is not defined for all real numbers. You will almost always restrict the domain based on multiple factors, including:
Context clues/implications:
Take time, for example. You cannot have a negative time, for that wouldn’t exactly make sense. The point in which you start something is considered time equals zero. As a corollary, time is considered to be greater than or equal to zero .
The same restriction applies to physical quantities such as length, area, volume, mass, # of things (people, animals, etc.), etc. They must all be nonnegative.
Validity Range / Extreme Values
Sometimes, a model only makes sense within the data range used to build it.
In fact, FRQ 2 on the AP exam for AP Precalculus almost always tests this; it specifically asks if a model can be accurate at a time outside of the given data. They will give you a scenario in which the real life data does not match the model, and you must explain why the error is increasing.
Predicting beyond the data (extrapolation) can give unreasonable results, so you must restrict the domain to the observed interval.
A common type of problem involving this is with a box from a sheet of cardboard:
Let be the volume of an open-top box formed by cutting squares of side x from the corners of a rectangular sheet.
There are two implications we must consider.
- Assuming all squares that are cut are the same size, you can’t have any of the squares be greater than or equal to half of the length of the box.
- You cannot cut a negative length
If a sheet as a width , a reasonable domain would be: (in reality, may have an ever smaller upper bound based on the length)
Discrete vs Continuous
Discrete means that a function has values that exclusively occur at distinct, countable points. (think the number of students in a class; you can’t have 2.5 students. Rather, you have 20, 21, or 22 students)
Continuous means that a variable can take on any value within an interval (the height of a student could be 5.6ft tall, 5.7 ft tall, etc.)
If the dataset contains discrete values, you’ll often round your model to an integer. For example, if you have a question asking you how many years it takes for a sample of radium-226 to decay to one half its original amount (where you for some reason need to give your answer as a whole number), and you calculate it to be , you would round it to years. If you were to round it to years, then it would not have reached half of its mass yet. Only after years has it actually reached half of its mass.
However, for a problem like counting bacteria that have been cultured, if you obtain a number like , then you’d round it to since you haven’t yet formed the 55th bacterium.
How to approach Modeling Questions
First, read the above in order to find a function type that makes sense for your data. Then, check if your function makes sense in the context of the problem: for example, if you’re modeling the height of a water droplet shot out of a water gun, does your function first increase then decrease? You should also make sure that your model isn’t overcomplicated: a quintic function is likely not necessary for simple data.
Some additional things you can do are
- State the assumptions you’re making: What stays constant? What kind of relationship do you assume between the variables?
- Specify Domain and Range: Input () restrictions like or physical measurements being greater than , etc. Output restrictions being nonnegative or sometimes even exclusively whole numbers (no decimals)
- Clarify where the model is actually valid (for this class, it will be exclusively within the domain of the data given)
- Justify your model choice. Specifically point out (if applicable) constant differences, the graph shape/characteristics, context words, or geometric contexts (area vs volume)
