Sub topic 2
Reading Function Notation f(x)
This chapter assumes you can do integer, fraction, and decimal arithmetic, apply the order of operations, handle exponents, and solve a one-variable linear equation. The previous chapter covered order of operations, and every evaluation below depends on it. Here you will learn how to read the notation f(x) so that GRE questions written with it become routine substitution.
What f(x) Means
A function is a rule that takes an input and produces exactly one output. The notation f(x) names that rule and shows what is being fed into it.
Take the definition f(x) = 3x - 5. It has three parts:
fis the name of the rule. It is a label, not a number.xis the input slot, called the variable or argument.3x - 5is the recipe that turns the input into the output.
The expression f(x) is read "f of x." It does not mean f times x. The parentheses mark an input, not a multiplication. This is the most common misreading, and the GRE relies on it. Seeing f(4) should make you think "run the rule on 4," not "f times 4."
Evaluating f(a): Replace Every x
To evaluate f(4), replace every x in the rule with 4, then simplify with the usual order of operations.
For f(x) = 3x - 5:
- Write the rule with a placeholder:
3( ) - 5. - Put the input in the parentheses:
3(4) - 5. - Simplify:
12 - 5 = 7.
So f(4) = 7. The output is a single number, and it is the value of f(4). You can write it as f(4) = 7, and any later mention of f(4) means 7.
The placeholder habit protects you whenever the rule has exponents or subtraction. Always put the input in parentheses when you substitute it. Parentheses cost nothing when the input is positive and prevent most errors when it is negative.
def f(x):
# f(x) = 3x - 5
return 3 * x - 5
print(f(4)) # 3*4 - 5 = 7
print(f(-2)) # 3*(-2) - 5 = -11
print(f(0.5)) # 3*0.5 - 5 = -3.5The input -2 produces 3(-2) - 5 = -6 - 5 = -11. A common slip is writing 3 - 2 - 5, which treats the minus sign as subtraction instead of part of the input.
The Variable Name Is Only a Placeholder
f(x) = 3x - 5 and f(t) = 3t - 5 describe the same function. The letter inside the definition is a stand-in, and it only has to match the letter used in the recipe. The GRE sometimes uses other letters, for example g(n) = n² + 1, to make you think about the pattern instead of the symbol.
This matters when a question asks for something like f(a) or f(k). You replace the placeholder with a or k. The result is an expression in that new letter, not a number. For f(x) = 3x - 5, f(k) = 3k - 5.
Inputs That Are Expressions
An input does not have to be a plain number. It can be a variable or a whole expression. The rule is the same: put the entire input in place of every x, in parentheses.
Let f(x) = x² + x.
| Expression | Substitution | Result |
|---|---|---|
| `f(3)` | `3² + 3` | 12 |
| `f(-3)` | `(-3)² + (-3)` | 6 |
| `f(a)` | `a² + a` | `a² + a` |
| `f(x + 1)` | `(x + 1)² + (x + 1)` | `x² + 3x + 2` |
| `f(2x)` | `(2x)² + 2x` | `4x² + 2x` |
In the fourth row the whole input x + 1 is squared. Writing x + 1² or x² + 1 would be wrong, because the parentheses are what tell you the input travels as one block.
f(2x), 2f(x), and f(x) + 1 Are Different Things
The GRE likes to test whether you can tell these apart. Each one changes a different part of the process:
f(2x)changes the input before the rule runs.2f(x)changes the output after the rule runs.f(x) + 1also changes the output after the rule runs, by adding 1.f(x + 1)changes the input tox + 1before the rule runs.
A function does not distribute over addition in general. f(a + b) is usually not f(a) + f(b). The following code checks these with f(x) = x² + x.
def f(x):
return x ** 2 + x
x = 3
print(f(2 * x), 2 * f(x)) # f(6) = 42, 2*f(3) = 24
print(f(x + 1), f(x) + 1) # f(4) = 20, f(3) + 1 = 13
a, b = 2, 3
print(f(a + b), f(a) + f(b)) # f(5) = 30, f(2) + f(3) = 6 + 12 = 18Each pair differs. If you ever want to confirm that two expressions are not equal, one numeric test like this is enough. It will not prove two expressions are equal, because a single test value can match by accident.
Functions With More Than One Input
A function can take two or more inputs, separated by commas: f(x, y) = x² - y. Position matters. The first input goes where x is, and the second goes where y is.
For f(x, y) = x² - y:
f(3, 2) = 3² - 2 = 7f(2, 3) = 2² - 3 = 1
Swapping the inputs gave a different output. The next chapters build on this point.
Made-Up Symbols Are Functions in Disguise
A GRE question may introduce a new symbol: "For all numbers a and b, let a ★ b = 2a + b²." This is function notation with different punctuation. If you named the rule star, the definition would be star(a, b) = 2a + b². The first number goes in the a slot, and the second goes in the b slot.
That connection is why this chapter comes first. Once you are comfortable with f(x), a symbol like ★, ♦, or @ is only another way to write "apply this rule to these inputs." The following chapters cover those symbols in detail, including negative inputs, nesting, and composition. For now, remember that composition means feeding one function's output into another, as in f(g(x)), which you evaluate from the inside out.
Reading the Definition Before You Start
Before you substitute anything, read the definition for three things:
- Which letters are inputs. In
f(x) = 3x - 5, onlyxis an input. If the rule contains other letters, as inf(x) = ax + 2, the extra letter is a constant that the question will define elsewhere. - What the rule does in order. Note any exponent, root, or fraction. Decide what is squared and what is not.
- The domain, if one is given. Some questions say "for all positive x" or "for x ≠ 0." Division by zero is not allowed, so a rule such as
f(x) = 1/(x - 2)has no output atx = 2.
Common Errors
| Error | What goes wrong | Fix |
|---|---|---|
| Reading `f(4)` as `f × 4` | You multiply by an unknown instead of running the rule | Treat `f(4)` as "the rule applied to 4" |
| Substituting into only one `x` | The rule has several `x`s, and you leave one unchanged | Replace every `x`, using a placeholder like `( )` |
| Dropping parentheses on a negative input | `f(-3)` for `x²` becomes `-3²`, which is -9 | Write `(-3)²`, which is 9 |
| Squaring only part of an expression input | `f(x + 1)` becomes `x² + 1` | Put the whole input in parentheses before squaring |
| Assuming `f(a + b) = f(a) + f(b)` | You distribute a function that does not distribute | Test with numbers before using the claim |
| Mixing up `f(2x)` and `2f(x)` | You change the input when the question changed the output, or the reverse | Ask whether the change happens inside or outside the parentheses |
Solving for an Input: A First Look
Questions also run the machine backward: "If f(x) = 4x - 1 and f(k) = 15, what is k?" The statement f(k) = 15 means "the output is 15 when the input is k." Substitute k into the rule and set the result equal to 15:
def f(x):
return 4 * x - 1
# f(k) = 15 means 4k - 1 = 15, so 4k = 16 and k = 4
k = 4
print(f(k)) # 15Substituting your answer back into the function and getting the stated output is a fast, reliable check. A later chapter covers this technique in full, including cases with more than one solution.
How These Questions Appear on the GRE
You will see function notation in several forms, and each reduces to the same substitution step:
- Direct evaluation: "If
f(x) = x² - 3x, what isf(-2)?" Substitute and simplify. - Expression inputs: "What is
f(a + 1) - f(a)forf(x) = 2x + 1?" Substitute each, then simplify the difference. - Quantitative comparison: Column A is
f(3)and Column B isf(-3). Compute both and compare, rather than guessing from the look of the rule. - Numeric entry: The answer is a single number you type in, so check arithmetic and signs carefully.
A short routine keeps you accurate: write the rule, put the input into a placeholder with parentheses, simplify one operation at a time, and plug your result back in when the question asks for an unknown.
Exercise
If f(x) = x² - 3x, what is f(-2)?
Show answer
Substitute -2 in parentheses: (-2)² - 3(-2) = 4 + 6 = 10. So f(-2) = 10.
Exercise
Let g(x) = 2x + 1. Find g(a + 1) - g(a) in terms of a.
Show answer
g(a + 1) = 2(a + 1) + 1 = 2a + 3, and g(a) = 2a + 1. The difference is (2a + 3) - (2a + 1) = 2.
Exercise
If f(x) = x² + x, are f(2x) and 2f(x) equal for every x? Use x = 1 to test.
Show answer
No. f(2·1) = f(2) = 4 + 2 = 6, but 2f(1) = 2(1 + 1) = 4. The values differ, so the two expressions are not equal in general.