Math 2 • Algebra & Functions

Building Function Models — I can build a function model from a context and choose the function family that fits best (linear/exponential/quadratic) with justification.

Learn to translate real-world scenarios into the right type of function and defend your choice with evidence.

Math 2 emblem with a variable, a triangle, and a ruler.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Long before graphing calculators or spreadsheets existed, people needed to predict the future — how much grain to plant, how quickly a population would grow, or how far a cannonball would fly. Each of these questions demanded a different kind of mathematical relationship. Over centuries, mathematicians discovered that most real-world patterns fall into a surprisingly small number of function families, each with its own distinctive shape and behavior. Understanding which family fits a given situation is the foundation of mathematical modeling — the art of turning real life into equations we can analyze and solve.

~300 BCE • Euclid & Proportional Reasoning

Greek mathematicians formalized the idea of direct proportion — if you double the input, the output doubles. This is the earliest ancestor of linear functions.

1600s • Galileo & Quadratic Motion

Galileo showed that a falling object covers distance proportional to the square of elapsed time. This was one of the first real-world applications of quadratic functions in physics.

1798 • Malthus & Exponential Growth

Thomas Malthus argued that human populations grow exponentially while food supply grows linearly, highlighting the explosive power of exponential functions.

1900s–Today • Modern Modeling

Scientists, economists, and engineers routinely choose among function families to model phenomena from viral spread to satellite trajectories. Choosing the right model is now a core skill in data science.

The central question this lesson addresses is: given a real-world context — a table of data, a verbal description, or a graph — how do you decide whether a linear, exponential, or quadratic model is the best fit, and how do you justify that choice? Answering this question turns you from someone who can solve equations into someone who can create them.

SECTION 2

Core Principles & Definitions

Before you can build a function model, you need to recognize the signatures of the three main function families. Each family has a unique algebraic form, a characteristic graph shape, and a telltale pattern in its data. When you encounter a new context, these signatures act like fingerprints that help you identify which family is at work.

1

Linear Functions

Form: y = mx + b. The graph is a straight line. The defining feature is a constant rate of change — equal changes in x always produce equal changes in y.
2

Exponential Functions

Form: y = a · bˣ. The graph curves sharply upward (growth) or toward zero (decay). The defining feature is a constant ratio (multiplicative change) — equal changes in x multiply y by the same factor.
3

Quadratic Functions

Form: y = ax² + bx + c. The graph is a parabola — a U-shape (or inverted U). The defining feature is that the rate of change itself changes at a constant rate — second differences are constant.
4

Function Model

A function model is an equation chosen to represent a real-world relationship. Building one means identifying input/output variables, selecting a function family, and writing the specific equation.
5

Justification

Simply writing an equation isn't enough. You must justify your choice using evidence — constant differences, constant ratios, graph shape, or the real-world behavior described in the context.
✦

KEY TAKEAWAY

Think of function families like vehicle types. A linear function is like a car on cruise control — steady speed, predictable distance. An exponential function is like a rocket — it keeps accelerating faster and faster (or slowing down by a fraction). A quadratic function is like a ball tossed in the air — it rises, peaks, and falls in a smooth arc. Picking the right model is like picking the right vehicle for the trip.

SECTION 3

Visual Explanation — The Three Function Families Side by Side

Three Function Families: Graph ShapesLINEAR: y = 2x + 1xyStraight line — constant slopeEXPONENTIAL: y = 2ˣxyCurve — grows faster and fasterQUADRATIC: y = x² − 4x + 5xyvertexParabola — rises, peaks (or dips), returns
Side-by-side comparison of the three function families. Notice how the linear graph is a straight line, the exponential graph curves increasingly steeply, and the quadratic graph forms a symmetric U-shape (parabola) with a vertex.

The graph shapes above reveal each family's personality. A linear function makes perfectly even progress — no surprises. An exponential function starts slowly but then takes off dramatically (or, for decay, drops off sharply and levels out near zero). A quadratic function has a turning point: it either reaches a minimum (opens up) or a maximum (opens down), making it ideal for situations involving projectile motion, area optimization, or revenue modeling.

When you see data or read a description, ask yourself: does this scenario describe steady, unchanging growth? That's linear. Does the quantity multiply by the same factor each period? That's exponential. Does the quantity speed up, hit a peak or valley, and then reverse direction? That's quadratic. Matching the behavior of the context to these signatures is the heart of model-building.

SECTION 4

Mathematical Framework — Equations & Data Tests

Each function family has both a standard equation form and a diagnostic test you can apply to a table of data. These tests — based on differences and ratios — give you concrete numerical evidence for your choice of model.

LINEAR MODEL

y=mx+by = mx + b

m = slope (constant rate of change), b = y-intercept (starting value when x = 0). Data test: first differences (Δy) are constant.

EXPONENTIAL MODEL

y=a⋅bxy = a · bˣ

a = initial value (y-intercept when x = 0), b = common ratio (growth factor if b > 1, decay factor if 0 < b < 1). Data test: consecutive ratios (y₂/y₁) are constant.

QUADRATIC MODEL

y=ax2+bx+cy = ax² + bx + c

a = leading coefficient (determines direction and width of parabola), b and c shift the parabola. Data test: second differences (Δ²y) are constant.

ℹ

What Are "Differences" and "Ratios"?

First differences are computed by subtracting consecutive y-values: Δy = y₂ − y₁. If every first difference is the same, the data is linear. Second differences are the differences of the first differences: Δ²y = Δy₂ − Δy₁. If these are constant, the data is quadratic. Consecutive ratios are computed by dividing consecutive y-values: y₂ ÷ y₁. If every ratio is the same, the data is exponential. These tests only work reliably when the x-values are equally spaced (e.g., x = 0, 1, 2, 3, …).

SECTION 5

Detailed Breakdown — Applying the Difference & Ratio Tests

Let's see the diagnostic tests in action with a concrete example. Suppose you're given three different data sets and you need to classify each one. The table below shows each data set along with its first differences, second differences, and consecutive ratios.

Diagnostic Tests: Differences & RatiosData Set A (Linear)x │ y0 │ 31 │ 72 │ 113 │ 154 │ 191st Differences (Δy):+4, +4, +4, +42nd Differences (Δ²y):0, 0, 0Ratios (yₙ₊₁/yₙ):2.33, 1.57, 1.36, 1.27✓ Constant 1st diff → LINEARData Set B (Exponential)x │ y0 │ 51 │ 152 │ 453 │ 1354 │ 4051st Differences (Δy):+10, +30, +90, +2702nd Differences (Δ²y):+20, +60, +180Ratios (yₙ₊₁/yₙ):3, 3, 3, 3✓ Constant ratio → EXPONENTIALData Set C (Quadratic)x │ y0 │ 11 │ 42 │ 113 │ 224 │ 371st Differences (Δy):+3, +7, +11, +152nd Differences (Δ²y):+4, +4, +4Ratios (yₙ₊₁/yₙ):4, 2.75, 2, 1.68✓ Constant 2nd diff → QUADRATIC
Each data set is analyzed using first differences, second differences, and consecutive ratios. The test that produces a constant result reveals the function family. Data Set A has constant first differences (linear), Data Set B has constant ratios (exponential), and Data Set C has constant second differences (quadratic).

Notice that the test that "wins" — the one that produces a constant — tells you the family. If none of the tests produce a perfectly constant result, the data may be approximately one type (choose the closest match) or may belong to a different family altogether (such as square root or logarithmic), which you'll study later.

💡

Context Clues Beyond Data

You don't always get a neat data table. Sometimes you only get a verbal description. Look for key phrases: "increases by the same amount each…" signals linear. "doubles every…" or "decreases by 15% each…" signals exponential. "maximum height," "area of a rectangle with fixed perimeter," or "launched into the air" signals quadratic.

SECTION 6

Worked Example — From Context to Model

A local coffee shop tracks the number of loyalty-app downloads each week after launching a social media campaign. Here is the data they collected:

Week (x)Downloads (y)
050
1100
2200
3400
4800

Coffee shop loyalty-app download data

Building the Function Model

  1. 1

    Step 1 — Identify Variables

    The independent variable (input) is x = weeks since the campaign launched. The dependent variable (output) is y = total downloads.
  2. 2

    Step 2 — Compute First Differences

    Δy: 100 − 50 = 50, 200 − 100 = 100, 400 − 200 = 200, 800 − 400 = 400. The first differences are 50, 100, 200, 400 — NOT constant, so the data is not linear.
    First differences: 50, 100, 200, 400 → Not constant → Not linear
  3. 3

    Step 3 — Compute Second Differences

    Δ²y: 100 − 50 = 50, 200 − 100 = 100, 400 − 200 = 200. The second differences are 50, 100, 200 — NOT constant, so the data is not quadratic.
    Second differences: 50, 100, 200 → Not constant → Not quadratic
  4. 4

    Step 4 — Compute Consecutive Ratios

    100 ÷ 50 = 2, 200 ÷ 100 = 2, 400 ÷ 200 = 2, 800 ÷ 400 = 2. Every ratio equals 2 — CONSTANT. The data is exponential.
    Consecutive ratios: 2, 2, 2, 2 → Constant → Exponential ✓
  5. 5

    Step 5 — Write the Equation

    Using y = a · bˣ, we identify a = 50 (the y-value when x = 0) and b = 2 (the common ratio). The model is:
    y = 50 · 2ˣ
  6. 6

    Step 6 — Justify the Choice

    We chose an exponential model because the consecutive ratios are constant (each week, the downloads double). This makes sense in context: social media sharing often leads to word-of-mouth that doubles reach each cycle. First and second differences were not constant, ruling out linear and quadratic models.

SECTION 7

Comparing the Three Models — Strengths & Limitations

No single function family is "best" — each one excels in certain situations and falls short in others. The table below summarizes when to use each model, what makes it strong, and what its limitations are.

FeatureLinearExponentialQuadratic
When to useConstant rate of change (e.g., pay per hour, distance at steady speed)Constant percentage change (e.g., population growth, radioactive decay)Situation has a max/min or involves area, projectile motion
Graph shapeStraight lineJ-curve (growth) or decay curveParabola (U or ∩)
Data testConstant 1st differencesConstant ratiosConstant 2nd differences
Key strengthSimplest model; easy to interpret slope & interceptCaptures rapid growth or decay accuratelyModels turning points and symmetry
Key limitationCannot model curves, peaks, or accelerationGrows (or decays) forever — unrealistic long-term for many contextsOnly one turning point; poor for data that levels off

Comparison of the three function families

✦

KEY TAKEAWAY

Choosing a function model is like choosing a map projection — every projection distorts something, and the best choice depends on what matters most for your trip. A linear model is the simplest "projection" but can't capture curves. An exponential model nails rapid change but eventually predicts impossibly large (or impossibly small) values. A quadratic model captures a turning point beautifully but can't model sustained growth. Your job is to pick the model that distorts the least for the context at hand.

SECTION 8

Connection to Advanced Modeling

The three families you've learned here — linear, exponential, and quadratic — are the building blocks for more sophisticated models you'll encounter in later courses. Understanding when and why each family works prepares you for the bigger world of data analysis and mathematical modeling.

What You Know NowWhere It Leads
Choosing between linear, exponential, and quadratic by testing differences/ratiosRegression analysis — using technology to fit the best curve to messy, real-world data
Writing y = mx + b from contextSystems of equations and linear programming for optimization
Writing y = a · bˣ for growth/decayLogarithmic functions (the inverse of exponentials) and compound interest formulas
Writing y = ax² + bx + c for parabolic situationsPolynomial and rational function modeling; calculus optimization
Justifying your model choiceResidual analysis — measuring how well your model actually fits the data

How today's skills connect to future math courses

In AP Statistics or Precalculus, you'll learn to use residual plots and R² values to quantify exactly how well a model fits data. But the intuition you build now — recognizing patterns, testing hypotheses about which family applies, and justifying your reasoning — is the same skill set you'll use at every level.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A friend says, "The data shows that every time x increases by 1, y gets multiplied by 5. That means the function is quadratic." Explain why your friend is incorrect and identify the correct function family.
Show answer
Your friend is describing a constant multiplicative change (a common ratio of 5), which is the hallmark of an exponential function, not a quadratic. A quadratic function is identified by constant second differences, not constant ratios. The correct model would be y = a · 5ˣ for some initial value a. The confusion likely arises because both exponential and quadratic functions produce curves, but they curve for fundamentally different reasons.

Question 2: BASIC CALCULATION

A gym charges a $25 sign-up fee and $40 per month. Write a function model for the total cost y after x months. Name the function family and justify your choice.
Show answer
The model is y = 40x + 25. This is a linear function because the cost increases by the same amount ($40) every month — a constant rate of change. The slope m = 40 represents the monthly fee, and the y-intercept b = 25 represents the one-time sign-up fee. If you computed first differences for a table of values, each would equal 40, confirming the linear classification.

Question 3: INTERMEDIATE

Consider the following data: x = 0, 1, 2, 3, 4 and y = 2, 6, 18, 38, 66. Compute first differences and second differences. Identify the function family and explain your reasoning.
Show answer
First differences: 6 − 2 = 4, 18 − 6 = 12, 38 − 18 = 20, 66 − 38 = 28. These are 4, 12, 20, 28 — not constant, so the data is not linear. Second differences: 12 − 4 = 8, 20 − 12 = 8, 28 − 20 = 8. The second differences are all constant at 8, which tells us the data fits a quadratic function of the form y = ax² + bx + c. Since constant second differences = 2a, we get a = 4. Using the point (0, 2) gives c = 2, and substituting (1, 6) yields b = 0. The model is y = 4x² + 2.

Question 4: APPLIED

A biologist observes a bacteria culture in a lab. At time 0 hours, there are 300 bacteria. At 1 hour there are 450, at 2 hours there are 675, at 3 hours there are 1012.5, and at 4 hours there are 1518.75. Determine the function family, write the model, and predict the population at 6 hours.
Show answer
Computing consecutive ratios: 450 ÷ 300 = 1.5, 675 ÷ 450 = 1.5, 1012.5 ÷ 675 = 1.5, 1518.75 ÷ 1012.5 = 1.5. The ratios are constant at 1.5, so this is an exponential function. The model is y = 300 · 1.5ˣ. To predict the population at 6 hours: y = 300 · 1.5⁶ = 300 × 11.390625 ≈ 3417 bacteria. This makes biological sense because bacteria reproduce by division, creating multiplicative growth each generation.

Question 5: CRITICAL THINKING

A farmer has 120 meters of fencing and wants to build a rectangular pen against a barn wall (so only three sides need fencing). Let x represent the width of the pen. Write a function for the area A in terms of x, identify the function family, and explain why this context practically guarantees that family. Then find the dimensions that maximize area.
Show answer
If the two widths are each x meters, the remaining fencing for the length is 120 − 2x meters. The area is A = x(120 − 2x) = −2x² + 120x. This is a quadratic function because it involves the product of two linear expressions in x, producing an x² term. The context guarantees a quadratic because area = length × width, and both dimensions depend linearly on the same variable x. Since a = −2 < 0, the parabola opens downward, confirming a maximum exists. The vertex occurs at x = −b/(2a) = −120/(2 × −2) = 30. So the width is 30 m, the length is 120 − 2(30) = 60 m, and the maximum area is 1800 m².

SUMMARY

Lesson Summary

Summary

Building a function model means translating a real-world context into a mathematical equation by identifying the input and output variables, then selecting the function family that best describes the relationship. The three families studied here are linear (y = mx + b) with a constant rate of change, exponential (y = a · bˣ) with a constant multiplicative ratio, and quadratic (y = ax² + bx + c) with a constant second difference. Each family has a distinctive graph shape — a straight line, a J-curve or decay curve, and a parabola, respectively.

To choose the right family, use diagnostic tests on data (first differences, second differences, or consecutive ratios) or look for context clues in verbal descriptions (steady increase → linear; doubles/halves → exponential; maximum height or area → quadratic). Always justify your choice by citing the specific evidence — constant differences, constant ratios, or the real-world behavior — that supports your model. This skill of reasoning about which model fits best is the foundation for all future work in data analysis, statistics, and applied mathematics.

Varsity Tutors • Math 2 • Building Function Models