Chapter 1: Understanding Functions and Their Applications
This chapter introduces functions — the foundational building blocks of calculus. You'll learn what functions are, how to represent and classify them, how to build new functions from old ones, and how key families of functions (exponential, logarithmic, and inverse functions) behave. Think of this chapter as your toolkit: everything we do in calculus later depends on what we establish here.
1.1 Four Ways to Represent a Function
What is a Function?
At its heart, a function is simply a rule. It takes an input, does something to it, and produces exactly one output. We write f(x) — pronounced "f of x" — to denote the output that the function f assigns to the input x.
Function: A rule f that assigns to each element x in a set D exactly one element f(x) in a set E.
The set D of all allowable inputs is called the domain, and the set of all possible outputs f(x) is called the range. We typically call x the independent variable (you get to choose it) and f(x) the dependent variable (its value depends on x).
A helpful mental model: think of a function as a machine. You feed a number x into the machine, and it reliably spits out one number f(x). The key word is reliably — for a given input, there is only ever one output.
Four Ways to Represent a Function
A function can be described in four equivalent ways:
- Verbally — in words ("the area of a circle with radius r")
- Numerically — by a table of input-output pairs
- Visually — by a graph in the coordinate plane
- Algebraically — by an explicit formula, such as A(r)=πr2
No single representation is always best. A graph lets you see trends and shape at a glance; a table is useful when data comes from experiment; a formula is ideal for computation. Often you'll move between all four.
Which Rules Define Functions? The Vertical Line Test
Not every equation or curve defines a function. Remember: a function must assign exactly one output to each input. If the equation y2=x is given, then for x=4 we get both y=2 and y=−2 — two outputs for one input, so it's not a function.
Vertical Line Test: A curve in the xy-plane is the graph of a function of x if and only if no vertical line intersects the curve more than once.
The reason is simple: if a vertical line x=a hits the curve at two points (a,b) and (a,c), that means the input a produces two different outputs — a violation of the function definition.
Piecewise Defined Functions
Sometimes a function is described by different formulas over different parts of its domain. These are called piecewise defined functions. A classic example is the absolute value function:
∣x∣={x−xif x≥0if x<0It looks like a "V" shape on the graph, with the vertex at the origin. The key point is that even though two different rules are used, f is still one function — you just apply whichever formula matches the region the input falls in.
Watch out: step functions (like a postage cost function, where the price jumps at fixed weight intervals) are another common piecewise function. The graph consists of horizontal segments at different heights, with jumps between them.
Even and Odd Functions
There's useful symmetry hiding in many functions. We say f is:
- Even if f(−x)=f(x) for all x in its domain → the graph is symmetric about the y-axis (e.g., f(x)=x2)
- Odd if f(−x)=−f(x) for all x in its domain → the graph is symmetric about the origin (e.g., f(x)=x3)
To test, substitute −x for x and simplify. If you get the original function back, it's even; if you get its negative, it's odd; if neither, it's neither.
Increasing and Decreasing Functions
A function is increasing on an interval I if f(x1)<f(x2) whenever x1<x2 in I — in other words, moving left to right, the graph rises. It is decreasing if the graph falls as you move right. This concept will become crucial when we look for maxima and minima in later chapters.
📝 Section Recap: A function is a reliable rule that assigns exactly one output to each input. We can describe functions verbally, numerically, visually, or algebraically. The Vertical Line Test identifies whether a graph represents a function. Piecewise functions use different formulas on different intervals, and functions can be classified by symmetry (even/odd) and by whether they increase or decrease on given intervals.
1.2 A Catalog of the Essential Function Types
Mathematical models of real-world phenomena are built from a handful of core function families. Before you can model anything, you need to know these families well.
Linear Functions
A linear function has the form f(x)=mx+b, where m is the slope and b is the y-intercept. Its graph is a straight line, and its defining characteristic is a constant rate of change — for every unit increase in x, f(x) changes by m units.
When data appears to follow a straight-line trend, we construct a linear model. One powerful tool for this is linear regression, which finds the "line of best fit" through a set of data points by minimizing the sum of squared vertical distances from each point to the line.
Polynomials
A polynomial is a function of the form:
P(x)=anxn+an−1xn−1+⋯+a1x+a0where n is a non-negative integer (the degree) and the ai are constants (coefficients). The domain of any polynomial is all of R.
Special cases have their own names:
- Degree 1: linear function
- Degree 2: quadratic function — graph is a parabola, opening up (a>0) or down (a<0)
- Degree 3: cubic function
Polynomials are extremely flexible models. For example, a falling ball's height can be well approximated by a quadratic function of time.
Power Functions
A power function has the form f(x)=xa for a constant a. Different values of a give strikingly different shapes:
- a=n (positive integer): curves like y=x2 (parabola) or y=x3 (cubic). Even powers give even functions; odd powers give odd functions.
- a=1/n (root functions): f(x)=nx. The square root has domain [0,∞); the cube root is defined for all reals.
- a=−1 (reciprocal): f(x)=1/x — a hyperbola with the axes as asymptotes.
- a=−2 (inverse square law): f(x)=C/x2. Many natural laws take this form — gravitational force, light intensity, electrostatic force all diminish inversely with the square of distance.
Rational Functions
A rational function is a ratio of two polynomials:
f(x)=Q(x)P(x)The domain excludes any values where Q(x)=0 (division by zero is undefined). Rational functions can have vertical asymptotes where Q(x)=0 and horizontal asymptotes as x→±∞.
Algebraic, Trigonometric, Exponential, and Logarithmic Functions
An algebraic function is built from polynomials using the four arithmetic operations plus taking roots. Any rational function is algebraic.
Functions that are not algebraic are called transcendental. The three major families are:
-
Trigonometric functions (sinx, cosx, tanx, etc.): periodic functions with domain R (for sin and cos) and range [−1,1]. Their periodic nature makes them ideal models for repetitive phenomena like tides, sound waves, and seasonal daylight variation. In calculus, angles are always in radians unless otherwise stated.
-
Exponential functions (f(x)=bx, b>0): domain is R, range is (0,∞). They model exponential growth (population) or decay (radioactive material).
-
Logarithmic functions (f(x)=logbx): the inverse of exponential functions. Domain is (0,∞), range is R. They grow slowly — much more slowly than power functions.
📝 Section Recap: The core function families are linear, polynomial, power, rational, algebraic, trigonometric, exponential, and logarithmic. Each has a characteristic shape and behavior. Recognizing which family best fits a situation is the first step in building a mathematical model. Linear regression is one tool for fitting data with a linear model.
1.3 Building New Functions from Old Ones
Once you know the basic functions, you can construct an enormous variety of new functions through two main techniques: transformations and combinations.
Transformations: Shifts, Stretches, and Reflections
Starting from a known graph y=f(x), you can obtain new graphs by applying simple modifications. Here's a quick reference:
| Transformation | Equation | Effect |
|---|---|---|
| Shift up by c | y=f(x)+c | Graph moves c units up |
| Shift down by c | y=f(x)−c | Graph moves c units down |
| Shift right by c | y=f(x−c) | Graph moves c units right |
| Shift left by c | y=f(x+c) | Graph moves c units left |
| Vertical stretch by c | y=c⋅f(x) | Graph stretches away from x-axis |
| Vertical compression | y=c1f(x) | Graph shrinks toward x-axis |
| Reflect about x-axis | y=−f(x) | Graph flips vertically |
| Reflect about y-axis | y=f(−x) | Graph flips horizontally |
A useful trick: transformations inside the argument (like f(x−c) or f(cx)) affect the horizontal direction, and they work oppositely to what you might expect — f(x−2) shifts the graph right, not left. Transformations outside the argument (like c⋅f(x) or f(x)+c) affect the vertical direction in the intuitive way.
For the absolute value transformation: y=∣f(x)∣ takes any part of the graph below the x-axis and reflects it upward, so all y-values become non-negative.
Combining Functions: Arithmetic Operations and Composition
Two functions f and g can be combined arithmetically. Their sum, difference, product, and quotient are defined pointwise:
(f+g)(x)=f(x)+g(x),(gf)(x)=g(x)f(x)The domain of f+g (and f−g, fg) is the intersection of the domains of f and g. For the quotient f/g, additionally exclude points where g(x)=0.
The most important combination in calculus is composition. The composite function f∘g is defined by:
(f∘g)(x)=f(g(x))Think of it as a two-stage pipeline: first apply g to the input x, then feed the result into f. The order matters — in general, f∘g=g∘f. The domain of f∘g consists of all x in the domain of g such that g(x) is in the domain of f.
A key skill you'll use constantly in calculus: decomposing a complicated function into simpler pieces. For example, F(x)=cos2(x+9) can be decomposed as F=f∘g∘h where h(x)=x+9, g(x)=cosx, and f(x)=x2.
📝 Section Recap: Transformations (shifts, stretches, reflections) let you build new graphs from known ones using a systematic set of rules. Arithmetic combinations and function composition extend this toolkit further. Composition in particular — where the output of one function becomes the input of another — is central to calculus techniques like the chain rule.
1.4 Exponential Functions in Depth
Graphs and Key Properties
An exponential function has the form f(x)=bx, where the base b is a positive constant. The variable is in the exponent — this is what makes exponential functions fundamentally different from power functions like x2.
For any base b>0 with b=1, the function f(x)=bx has domain R and range (0,∞). All exponential graphs pass through (0,1) because b0=1. Three qualitatively different behaviors arise:
- b>1: increasing exponential (growth)
- b=1: constant function f(x)=1
- 0<b<1: decreasing exponential (decay)
Since (1/b)x=b−x, the graph of y=(1/b)x is the reflection of y=bx about the y-axis. As b gets larger (for b>1), the growth becomes more and more rapid.
The key algebraic rules governing exponential functions are the Laws of Exponents:
bx+y=bxby,bx−y=bybx,(bx)y=bxy,(ab)x=axbxExponential Growth and Decay in Real Life
Exponential functions model any quantity that grows or shrinks by a constant percentage rate per unit time. A bacteria population that doubles every hour follows p(t)=p0⋅2t. A decaying viral load might follow V(t)=a⋅bt with b<1. In both cases, the ratio of successive values stays constant — that's the hallmark of exponential behavior.
The Special Base e
Among all possible bases, e≈2.71828 is the most natural for calculus. It is defined by the property that the tangent line to y=ex at the point (0,1) has slope exactly 1. This makes the derivative of ex especially clean (as we'll see in Chapter 3).
The function f(x)=ex is called the natural exponential function. Its graph lies between y=2x and y=3x, and it grows without bound as x→∞ while approaching 0 as x→−∞ (the x-axis is a horizontal asymptote).
📝 Section Recap: Exponential functions f(x)=bx have their variable in the exponent and exhibit either rapid growth or decay depending on whether b>1 or 0<b<1. The natural base e≈2.718 is especially important in calculus because of its slope property at the origin. Exponential functions appear throughout nature whenever a quantity grows or decays at a rate proportional to its current size.
1.5 Inverse Functions and Logarithms
One-to-One Functions and Inverses
Not every function has an inverse. To be "invertible," a function must be one-to-one (injective) — it never assigns the same output to two different inputs.
One-to-One Function: f is one-to-one if f(x1)=f(x2) whenever x1=x2.
The Horizontal Line Test gives a visual check: f is one-to-one if and only if no horizontal line crosses its graph more than once. For example, f(x)=x3 passes the test (it's one-to-one), while g(x)=x2 fails it (two x-values can give the same square).
For a one-to-one function f with domain A and range B, the inverse function f−1 has domain B and range A, and satisfies:
f−1(y)=x⟺f(x)=yThink of f−1 as the "undo" function: f−1(f(x))=x and f(f−1(x))=x. Important warning: f−1(x) does not mean 1/f(x).
To find f−1 algebraically: (1) write y=f(x), (2) solve for x in terms of y, (3) swap x and y to get y=f−1(x).
Graphically: the graph of f−1 is obtained by reflecting the graph of f about the line y=x. Every point (a,b) on the graph of f corresponds to the point (b,a) on the graph of f−1.
Logarithmic Functions
Since f(x)=bx (for b>0, b=1) is one-to-one, it has an inverse called the logarithm with base b, written logbx. The defining relationship is:
logbx=y⟺by=xIn plain English: logbx is the exponent you need to raise b to in order to get x. For example, log100.001=−3 because 10−3=0.001.
The domain of logb is (0,∞) (you can only take logarithms of positive numbers), and the range is all of R.
The Laws of Logarithms mirror the Laws of Exponents:
logb(xy)=logbx+logby logb(yx)=logbx−logby logb(xr)=rlogbxThese laws let you expand or condense logarithmic expressions — a skill you'll use extensively when solving equations.
The Natural Logarithm
The natural logarithm lnx=logex is the logarithm with base e. It is the most important logarithm in calculus. Its defining properties are:
lnx=y⟺ey=x,ln(ex)=x,elnx=x for x>0In particular, lne=1. The Change of Base Formula lets you convert any logarithm to natural log:
logbx=lnblnxThe graph of y=lnx is the reflection of y=ex about the line y=x. It is increasing on (0,∞) but grows very slowly — much slower than any positive power of x. The y-axis (x=0) is a vertical asymptote, with lnx→−∞ as x→0+.
Inverse Trigonometric Functions
Trigonometric functions like sinx are periodic and therefore not one-to-one over their full domains. To define inverses, we restrict the domain to an interval where the function is one-to-one:
- Arcsine (sin−1 or arcsin): restricts sinx to [−π/2,π/2]. The inverse has domain [−1,1] and range [−π/2,π/2].
- Arccosine (cos−1 or arccos): restricts cosx to [0,π]. The inverse has domain [−1,1] and range [0,π].
- Arctangent (tan−1 or arctan): restricts tanx to (−π/2,π/2). The inverse has domain R and range (−π/2,π/2).
A common mistake: sin−1(x) is NOT the same as 1/sin(x) (that would be cscx). The superscript −1 here denotes the inverse function, not a reciprocal.
The graph of y=tan−1x is especially useful: it has two horizontal asymptotes at y=π/2 and y=−π/2, and the function smoothly transitions between them, passing through the origin.
📝 Section Recap: A one-to-one function has an inverse that exactly "undoes" it. The inverse function's graph is the reflection of the original about the line y=x. Logarithms are the inverses of exponential functions — logbx answers "to what power must I raise b to get x?" The natural logarithm lnx (base e) is the most important for calculus. Inverse trigonometric functions are created by restricting the domain of sin, cos, and tan to intervals where they are one-to-one.
Chapter Summary
This chapter establishes the language of functions that calculus is built upon. Here's the big picture:
The concept of a function captures any rule that reliably maps inputs to outputs, and we can represent such rules in four ways (verbal, numerical, visual, algebraic). The essential function families — linear, polynomial, power, rational, trigonometric, exponential, logarithmic — each have characteristic graphs and behaviors worth memorizing. We can transform any function by shifting, stretching, or reflecting its graph, and we can combine functions through arithmetic or composition to build new, more complex functions.
Exponential functions grow (or decay) at a rate proportional to their current size, making them the natural model for population growth, radioactive decay, and compound interest. The base e≈2.718 is singled out for its special role in calculus. Logarithms are the inverses of exponentials, and they appear whenever we need to "undo" exponential behavior — for instance, when solving for time in a growth or decay equation. Inverse functions more broadly reverse the action of a one-to-one function, and inverse trigonometric functions let us recover angles from known trig values.