The key idea
Think of a function as a machine. You drop in an input, it follows its rule, and one output comes out. The name of the machine is f, and is read "f of x." It does not mean f times x.
| Word | Meaning | Example for |
|---|---|---|
| input | the x value you put in | 9 |
| output | the value that comes out, or y | |
| domain | all allowed inputs | , because you cannot take the square root of a negative number |
| range | all possible outputs | , because a square root is never negative |
In Algebra 1, two things shrink a domain: you cannot divide by zero, and you cannot take the square root of a negative number. If neither shows up, the domain is all real numbers. In a word problem, the situation can limit it too, like not having a negative number of tickets.
Worked examples
Example 1: evaluate a function
Problem If , find .
- Replace every x with , in parentheses. Then follow the order of operations.
- The parentheses matter: , while would mean .
Answer
Example 2: find the input that gives an output
Problem If , for what value of x is ?
- This time the output is given. Set the rule equal to 11.
- Add 7.
- Divide by 3.
- Check: .
Answer
Example 3: domain and range from an equation
Problem Find the domain and range of .
- The expression under the square root cannot be negative.
- Add 5. That is the domain.
- The smallest output is . As x grows, the square root grows without limit, and it is never negative. So the range is .
Answer Domain: . Range: .
Example 4 (test-hard): an expression as the input
Problem If , find and simplify .
- Replace every x with , then expand and combine like terms.
- Check with a number. If , then , and . They agree.
Answer
Common mistakes
- Reading f(x) as multiplication. is the output when the input is 3. It is not .
- Leaving out parentheses for a negative input. for is . Typing into a calculator gives .
- Mixing up f(3) and f(x) = 3. The first gives you the input and asks for the output. The second gives you the output and asks for the input.
- Calling the x values the range. Domain is inputs (x). Range is outputs (y).
- Thinking a repeated output breaks the rule. is a function. Only a repeated input with two different outputs, like and , is not.
Quick methods
Practice
5 practice questions
If , what is ?
Show answer
Answer:
. The answer comes from using 4 instead of .
Which set of ordered pairs is NOT a function?
Show answer
Answer:
The input 0 gives two different outputs, 5 and 7, so it breaks the one-output rule. The other sets repeat some outputs, which is allowed.
What is the domain of ?
- all real numbers
- all real numbers except 3
- all real numbers except
Show answer
Answer: all real numbers except 3
The denominator is 0 when , and you cannot divide by zero. Every other number works, including numbers less than 3, so is too strict.
If , which value of x makes ?
Show answer
Answer:
Test it: . The trap answer 70 is : it treats 10 as the input instead of the output. (The equation also has a second solution, , which is not listed.)
What is the range of ?
- all real numbers
Show answer
Answer:
is never negative, so the smallest output is , reached at . Every larger value is reached too. wrongly leaves out 1 itself.
Frequently asked questions
What does f(x) mean?
It means "the output of the function f when the input is x." The letter f names the function, and whatever is in the parentheses is the input. So is the output when you put in 4. It is a label, not multiplication.
How do I find the domain of a function?
Start with all real numbers, then remove anything that breaks a rule. Remove inputs that make a denominator zero. Keep only inputs that make the expression under a square root zero or positive. In a word problem, also remove values that make no sense, like negative times.
What is the difference between domain and range?
The domain is the set of inputs, the x values. The range is the set of outputs, the y values. A memory trick: d comes before r in the alphabet, just as x comes before y in the pair .
How do I know if a graph is a function?
Use the vertical line test. If any vertical line touches the graph more than once, some input has two outputs, so it is not a function. If every vertical line touches it at most once, it is a function.