Chapter 3 · pp. 7–7
Instructor Resources
This section covers the one idea at the center of precalculus: the function. You will learn what a function is, how to evaluate one, and how to tell when a relation is not a function. Everything else in precalculus, from graphs to trigonometry, builds on this idea.
What Is a Function?
A function is a rule that gives each input exactly one output. The set of allowed inputs is called the domain. The key phrase is "exactly one." An input may never lead to two different outputs. If it does, the rule is not a function.
Think of a vending machine. If you press the button for B4, you always get the same snack. A machine that gave you chips one time and a candy bar the next, with the same button, would be unpredictable. Functions are predictable in this way.
Note that two different inputs are allowed to share the same output. For example, with g(x)=x2, both g(2)=4 and g(−2)=4. This is fine. The rule only forbids one input giving more than one output.
Evaluating a Function
Function notation f(x) is read "f of x." It means "the output of the rule f when the input is x." To evaluate, replace x with the given input and simplify.
Example: Let f(x)=2x+3. This rule says "double the input, then add 3."
- For input 4: f(4)=2(4)+3=8+3=11.
- For input −1: f(−1)=2(−1)+3=−2+3=1.
- For input 0: f(0)=2(0)+3=3.
Each input gives one and only one output, so f is a function. You can check this by noticing that the arithmetic has just one possible answer for any number you put in.
When a Relation Is Not a Function
A relation is any pairing of inputs with outputs. Every function is a relation, but not every relation is a function.
Consider the circle
x2+y2=25.
Here, x is the input and y is the output. Try x=3:
32+y2=25⇒y2=16⇒y=4 or y=−4.
One input, x=3, gives two outputs, 4 and −4. So this relation fails the test and is not a function of x.
The same thing happens for most other x-values between −5 and 5. A single failure is enough, though. To show a relation is not a function, you only need to find one input with two outputs.
A Quick Way to Check: The Vertical Line Test
When you have a graph, draw imaginary vertical lines. If any vertical line touches the graph at more than one point, the graph is not a function. The circle above fails because the line x=3 crosses it at both (3,4) and (3,−4). The line y=2x+3 passes the test, because every vertical line crosses it exactly once.
Why This Matters
Functions let us describe how one quantity depends on another in a reliable way. If you know the rule and the input, you can always find the one correct output. Later topics, such as polynomial, exponential, and trigonometric functions, are all special kinds of functions with different rules.
Check yourself
- In your own words, what does it mean for a rule to be a function?
- If f(x)=2x+3, what is f(10)?
- Can two different inputs have the same output in a function? Explain and give an example.
- Why is x2+y2=25 not a function of x? Use a specific input to explain.
- Would a vertical line ever cross the graph of a function twice? Why or why not?