Calculus is the study of how functions change, so we begin with functions themselves. A function is a rule that turns each allowed input into exactly one output. In this section we read functions from formulas, tables, and graphs, find their domains and ranges, and get comfortable with the notation we will use all semester.
01 · What makes a rule a function?
A function f is a relation between a set of inputs and a set of permissible outputs that assigns to every input exactly one output. We write y = f(x): y is the value of f at x. Because a function sends each element of the input set to one element of the output set, functions are also called mappings.
- The set of inputs is the domain. The set of outputs that actually occur is the range.
- A codomain is any set that contains the range, for example all real numbers.
- x is the independent variable and y is the dependent variable. On a graph we plot the points (x, f(x)).
Two inputs may share an output: f(1) = 4 and f(−1) = 4 is fine for f(x) = x². What a function cannot do is send one input to two outputs. If a list of data contains f(1) = 3 and f(1) = 5, it is not a function.
Pick a relation. Each arrow sends an input (left) to an output (right). Decide whether the relation is a function, then read the domain and range.
02 · Domain, range, and interval notation
Unless a domain is given, the domain of f(x) is the set of all real x for which the formula makes sense. Check two things first:
- Denominators: we cannot divide by 0. For 3/(x² − 1), exclude x = ±1.
- Square roots: the expression under √ must be ≥ 0. For √(4 − 3x), require 4 − 3x ≥ 0, so x ≤ 4/3.
The range is the set of outputs f(x) as x runs through the domain. For f(x) = x² − 4 the range is [−4, ∞), because x² ≥ 0.
The domain is shaded on the x-axis (orange) and the range on the y-axis (green). Read the reasoning, then compare the set-builder and interval forms.
{x | x has some property} is read "the set of x such that x has the property." Intervals use parentheses for endpoints that are not included and brackets for endpoints that are:
[a, b] = {x | a ≤ x ≤ b}
[a, ∞) = {x | x ≥ a}, (−∞, ∞) = ℝ
03 · Evaluating functions
To evaluate f at an input, replace every x in the formula by that input, in parentheses, and simplify. The input can be a number, a letter, or an expression such as b + 1 or x + h.
A function can also be given by a table of values or by a graph; f(a) is then read from the row x = a, or from the height of the graph above x = a.
Choose an input. Watch the substitution happen in parentheses.
04 · Piecewise functions and the vertical line test
A piecewise-defined function uses different formulas on different parts of its domain. To evaluate it, first decide which piece the input belongs to, then use that formula.
A set of points in the plane is the graph of a function exactly when every vertical line meets it at most once. If some vertical line meets it twice, one input has two outputs.
05 · Zeros and intercepts
A zero of f is an input x with f(x) = 0; on the graph it is an x-intercept. The y-intercept is the point (0, f(0)), and it exists only when 0 is in the domain.
Useful fact: √A = 0 exactly when A = 0, and x² = a² gives x = ±a.
Guided problems · Review of Functions
Original problems on domains, ranges, notation, piecewise functions, and intercepts. Open a hint if you need one, check your answers, then try another set.
Check your understanding · Review of Functions
Answer each question on paper first, then open the answer to check yourself.
Find the domain of f(x) = (2x + 5)/(3x² + 4) and of g(x) = √(4 − 3x). Write both in interval notation.
Show answer
3x² + 4 ≥ 4 for every real x, so the denominator is never 0 and the domain of f is (−∞, ∞). For g we need 4 − 3x ≥ 0, so x ≤ 4/3: the domain is (−∞, 4/3].
Let f(x) = −x for x < 4, f(4) = 0, and f(x) = x² for x > 4. Find f(−2), f(4), and f(5).
Show answer
−2 < 4 uses the first piece: f(−2) = 2. f(4) = 0 by the middle piece. 5 > 4 uses the last piece: f(5) = 25.
Find the zeros and the y-intercept of f(x) = √(x² − 1).
Show answer
√(x² − 1) = 0 gives x² = 1, so the zeros are x = ±1. f(0) = √(−1) is not a real number, so 0 is not in the domain and there is no y-intercept.
