Functions and Models
Calculus begins by treating a changing quantity as a function: one input determines one output. A function can be described by a formula, graph, table, verbal rule, or data set, and a good calculus student learns to move between those descriptions without changing the underlying relationship. Later topics such as limits, derivatives, integrals, and differential equations all depend on this language.
Models matter because real problems rarely arrive as polished formulas. A falling object, a cooling drink, a population, or a cost curve must first be represented by variables, units, and assumptions. The quality of the calculus that follows depends on the quality of that modeling step: the domain must match the physical situation, the units must be meaningful, and the graph should behave in a way that agrees with the context.
Definitions
A function from a domain to a codomain is a rule assigning exactly one output to each input . The graph is the set of ordered pairs
The domain is the set of allowable inputs. The range is the set of outputs actually produced. In applications, the domain is not always the natural algebraic domain of the formula. For example, is algebraically meaningful for all real , but as an area model for a circle it uses .
Important function families include:
- Linear functions: , with constant rate of change .
- Power functions: , including roots and reciprocal powers.
- Polynomials: .
- Rational functions: , with .
- Algebraic functions formed by arithmetic operations, powers, and roots.
- Trigonometric functions such as , , and .
- Exponential and logarithmic functions, used for multiplicative growth and inverse growth scales.
Transformations change a graph while preserving a recognizable shape:
Composition is , defined when lies in the domain of . A function is even if and odd if . One-to-one functions pass the horizontal line test and have inverse functions on their ranges.
Two modeling distinctions are worth making early. A discrete model uses inputs such as and often appears as a sequence, table, or recurrence. A continuous model allows all inputs in an interval and is the natural setting for derivatives and integrals. A population counted each year may begin as discrete data, but a smooth function can still be useful if the goal is to estimate trends, rates, or accumulated change.
Another distinction is exact description versus approximation. The formula exactly describes the circumference of an ideal circle. A least-squares line through experimental data is an approximation, and its slope should be interpreted with uncertainty. Calculus uses both kinds of formulas, but a model built from data should always be checked against the scale and scatter of that data.
Key results
For a line through two distinct points and , the constant rate of change is
Every other point on the same line satisfies
so the point-slope equation is
Solving for gives . This is more than an algebra formula: it is the prototype for local linear approximation. When a differentiable curve is viewed under enough magnification, it behaves almost like its tangent line, and the slope of that tangent line is the derivative.
Function composition is associative where all expressions are defined:
The proof is only careful notation:
However, composition is usually not commutative. In general, and have different formulas, domains, and interpretations. This matters later in the chain rule, where the order of inside and outside functions controls the derivative.
When fitting a simple model, the main questions are:
- What are the input and output variables?
- What units do they use?
- What domain is meaningful?
- Is the expected change additive, multiplicative, periodic, saturating, or constrained?
- Does the model interpolate within known data, or extrapolate beyond it?
Interpolation is usually safer than extrapolation because it stays between observed values. Extrapolation may be useful, but it depends heavily on whether the chosen function family still matches the real mechanism outside the data range.
Units provide a strong consistency check. If is measured in seconds and in meters, then a slope has units meters per second. If gives square meters, then has units square meters per meter, which simplifies to meters and represents area gained per unit increase in radius. Dimensional reasoning catches many modeling mistakes before any graphing or differentiation begins.
Graphical features also carry mathematical information. Intercepts identify where a quantity is zero. Increasing and decreasing intervals describe the sign of average or instantaneous change. Concavity suggests whether growth is accelerating or slowing. Asymptotes often encode physical limits, such as saturation or forbidden input values. Even before formal calculus, reading those features prepares the later derivative and integral interpretations.
Visual
| Description | Typical model | Signature behavior | Calculus role |
|---|---|---|---|
| Constant rate | Equal input changes give equal output changes | Slope is constant | |
| Power scaling | Output responds by powers of input size | Derivatives lower powers; integrals raise powers | |
| Exponential growth | or | Equal input changes multiply output | Derivative is proportional to value |
| Logarithmic scale | Rapid early growth, slow later growth | Inverse of exponential behavior | |
| Periodic motion | Repeating cycles | Derivatives shift phase | |
| Rational constraint | Holes and asymptotes possible | Limits diagnose behavior |
The same modeling pipeline appears throughout calculus:
Worked example 1: build and interpret a linear model
Problem. Suppose Fahrenheit temperature depends linearly on Celsius temperature . The calibration points are and . Find the model, interpret the slope, and compute the Celsius temperature corresponding to F.
Method.
- Use the two calibration points to compute the slope:
- Use point-slope form with :
- Solve for :
-
Interpret the slope. A change of C corresponds to a change of F. The intercept says that C is F.
-
Set and solve for :
Checked answer. The model is , and F corresponds to C. Substitution checks it:
Worked example 2: composition, domain, and symmetry
Problem. Let and . Find and its domain. Then determine whether is even, odd, or neither.
Method for composition.
- Place inside :
- Require the radicand to be nonnegative:
- Factor:
- The product is nonnegative outside the roots, so
Thus the domain is .
Method for symmetry.
- Compute :
- Simplify powers:
- Compare with :
Checked answer. with domain . The function is even, so its graph is symmetric about the -axis.
Code
from math import sqrt
def celsius_to_fahrenheit(c):
return (9 / 5) * c + 32
def compose_domain_sample(x):
radicand = x * x - 4
if radicand < 0:
return None
return sqrt(radicand)
for c in [0, 20, 100]:
print(c, celsius_to_fahrenheit(c))
for x in [-3, -1, 0, 2, 5]:
print(x, compose_domain_sample(x))
Common pitfalls
- Treating the algebraic domain as the application domain. A formula may allow negative inputs while the model does not.
- Forgetting that shifts right by , not left by .
- Composing functions in the wrong order. means apply first, then .
- Checking symmetry by looking only at a few values. Use or algebraically.
- Ignoring units. A slope is not just a number; it has output units per input unit.
- Extrapolating a model far beyond its data without checking whether the behavior remains realistic.
Connections
- Limits and Continuity: functions are the objects whose limiting behavior is studied.
- Derivatives and Rates: the slope idea from linear models becomes instantaneous rate of change.
- Exponential Log and Inverse Functions: inverse and growth models become central function families.
- Applications of Derivatives: graphs and transformations support monotonicity, concavity, and optimization.