Function notation: f(x) is just substitution
How to evaluate f(x), plug an expression into a function, work out compositions like f(g(2)), and solve f(x) = k, with five original problems.
is a rule with a blank in it. The marks where the input goes. When a question asks for , it is asking you to erase every , write 3 in its place, and simplify. Nearly every function-notation question is a version of that one move, done carefully.
One warning before the problems: is not times . The parentheses hold the input, the way a blank on a form holds your name. Read as "the output of rule when the input is 3." Most of the traps below come from losing track of where the input goes.
Evaluating: replace every x, with parentheses
The safest habit is to replace each with the input wrapped in parentheses, even when the input is a plain number. Parentheses keep negative signs and exponents honest.
Problem 1
If , what is ?
- A
- B3
- C15
- D23
Worked solution
Write the rule with in each blank:
Exponents first: , so the first term is . Next, . Then . The answer is C.
Each wrong choice comes from one slip. Choice D squares the 2 along with the input, as if the rule said : that gives . Choice B gets wrong as : . Choice A treats as , which happens when the parentheses are left off and is read as .
Problem 2
If , which expression is equal to ?
- A
- B
- C
- D
Worked solution
The input is now an expression, but the move is the same. Replace with :
Expand the square: . Add 1: . The answer is B.
Choice A squares each piece separately, , and drops the middle term. A square of a sum always has a middle term: means , and the two cross products give . Choice C computes , which adds 3 to the output instead of the input. Choice D expands correctly but forgets the from the rule.
You can check an answer like this by picking a number. Let . Then , and choice B gives . Choice A gives 11, and choice D gives 16, so neither can be right.
Composition: work from the inside out
means: find first, then use that answer as the input to . Read it from the inside out, the way you would work through nested parentheses in arithmetic.
Problem 3
If and , what is ?
- A9
- B11
- C20
- D25
Worked solution
Inside first: . Then the outside: . The answer is B.
Choice D does the functions in the other order: , then . Order matters, and and are usually different. Choice C multiplies , and choice A adds them. Composition is neither: the output of one function becomes the input of the other.
Problem 4
The table gives some values of the functions and .
Scroll for more columns
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 2 | 3 | 4 | 1 | |
| 3 | 1 | 4 | 2 |
What is the value of ?
- A1
- B2
- C3
- D4
Worked solution
There is no formula here, so substitution becomes looking up. Inside first: find 2 in the row and read down to the row: . Now that 3 is the input for . Find 3 in the row and read down to the row: . The answer is D.
Choice B does the composition in the wrong order: , then . Choice C stops after the first step, and choice A reads without ever using . With tables, saying each step aloud in your head helps: "f of 2 is 3, so I need g of 3."
Solving f(x) = k: the output is given
Sometimes the question runs backward. It gives you the output and asks for the input. means "which input makes the rule produce 15?" Set the rule equal to 15 and solve.
Problem 5
If , which of the following values of satisfies ?
- A
- B3
- C5
- D15
Worked solution
Set the rule equal to the output: . Move everything to one side: . Factor by finding two numbers that multiply to and add to : those are and . So , and or .
Only 5 is listed. Check it: . The answer is C.
Choice A has the right size but the wrong sign; . Choice D confuses the output with the input: it computes as if the question asked for , which is 195. Choice B comes from mixing up the signs in the factors. Notice that also solves the equation. It is not a choice here, but a different version of this question could ask for it, so read which value the question wants.
Since this question offers four specific values, plugging each one into the rule is also a fair method.
The pattern in all five
- Replace every with the input, inside parentheses.
- For , start with the innermost function and work out.
- For a table, read the input row, then the output row.
- For , the is an output: set the rule equal to it and solve.
Try it
Make up a function of your own, such as . Write out , and by hand, putting parentheses around every input. Then solve and check both answers by substituting them back. If both checks work, you have used every move from the five problems. For more math practice with worked explanations, see the math section of our question library.
Practice for free: the Skill Scan is 20 questions, about 12 minutes, with no account needed, and every question in the question library comes with a worked explanation.