Lesson 1.1 · Functions
Functions and their graphs
Almost everything in precalculus and calculus is a statement about functions: how fast they grow, where they turn around, what values they can and can't produce. This lesson sharpens the tools you already have (notation, domain and range, reading graphs) and adds a few new ones you'll use constantly from here on: interval notation, the difference quotient, average rate of change and symmetry.
What makes something a function
Definition
Function
A function from a set to a set is a rule that assigns to each input in exactly one output in . The set of allowed inputs is the domain. The set of outputs the function actually produces is the range.
The key word is exactly. An input can't be sent to two different outputs. Two different inputs sharing one output is perfectly fine: sends both and to , and it is still a function.
On a graph, "exactly one output" becomes the vertical line test: a graph is the graph of a function of if and only if no vertical line crosses it more than once. A vertical line hits the graph at every point whose input is , so two crossings would mean two outputs for one input.
Function notation
The symbol means "the output of when the input is ." The letter inside the parentheses is only a placeholder. Whatever you put in the parentheses replaces every in the rule, even if what you put in is an expression.
Worked example: Evaluating with expressions
Let . Find and .
Replace each with , keeping it in parentheses:
Now replace each with :
Common mistake
is not , and is not . Here , which is a different expression from . Substitute first, then simplify.
Domain and interval notation
When a function is given by a formula and no domain is stated, its implied domain is every real number for which the formula makes sense. At this level, two things can go wrong:
- Division by zero. Exclude any that makes a denominator .
- Even roots of negatives. The expression under (or any even root) must be .
Precalculus usually writes domains and ranges in interval notation. A square bracket means the endpoint is included; a parenthesis means it isn't. Infinity always gets a parenthesis, and ("union") joins separate pieces.
| Inequality | Interval |
|---|---|
Worked example: Finding an implied domain
Find the domain of .
The square root needs , so and (dividing by flips the inequality).
The denominator needs , so .
Both conditions must hold: and . In interval notation the domain is
The is included because is perfectly defined.
The difference quotient
Much of calculus starts from one expression that measures how a function changes between an input and a nearby input .
Difference quotient
For , the difference quotient of is
It is the slope of the line through the points and on the graph.
For polynomials, the in the denominator always cancels after you simplify the numerator. That cancellation is the point of the exercise, so don't stop early.
Worked example: Simplifying a difference quotient
Find and simplify the difference quotient of .
First find :
Subtract . The and terms cancel:
Every remaining term has a factor of , so divide:
Reading a graph
A graph shows the behavior of a function all at once. Here is the vocabulary for describing it.
- The zeros of are the inputs where : the -intercepts.
- is increasing on an interval if the graph rises from left to right there, and decreasing if it falls. Intervals of increase and decrease are described with -values, using open intervals.
- A relative (local) maximum is an output that is larger than every nearby output: a hilltop. A relative minimum is a valley bottom.
- The average rate of change of from to is , the slope of the secant line joining those two points.
Worked example: Describing a cubic
The graph of is shown. Describe where it increases and decreases, give its relative extrema, and find its average rate of change from to .
Reading left to right, the graph rises until , falls until , then rises again.
- Increasing on and ; decreasing on .
- Relative maximum ; relative minimum .
- Average rate of change: and , so . On average the function climbs unit per unit of on , even though it dips below the axis in between.
Even and odd functions
Some graphs have a built-in symmetry that you can test with algebra.
- is even if for every in the domain. Its graph is symmetric about the -axis. Example: , , .
- is odd if for every in the domain. Its graph is symmetric about the origin: rotating it leaves it unchanged. Example: , , .
Most functions are neither. To test, compute , simplify, and compare it with and with . For : , so it is odd, which matches the graph above (the hilltop at mirrors the valley at ).
Tip
For polynomials there's a shortcut: if every power of is even (a constant counts as ), the function is even; if every power is odd, it is odd. mixes both, so it is neither.
Practice
Which of these equations does not define as a function of ?
Let . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the domain of . Write it as an inequality in .
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
What is the domain of ?
Find the average rate of change of from to .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which is the simplified difference quotient for ?
Is even, odd or neither?
The graph of is shown. What is the range of ? Write it as an inequality in .
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5