Learn
Lesson · Lines, Functions and Graphs · Functions

Function Notation

f(x) names the output that the function f produces from the input x. It is one number, not f multiplied by x, and once that is settled the notation distinguishes two different questions: evaluate a given input, and solve for the inputs that produce a given output.

f(x) the output of f at x NOT f times x f(3) EVALUATE: put 3 where x is f(x) = 3 SOLVE: which inputs give 3 f(a + b) is not f(a) + f(b)
Four lines that prevent most of the errors

Core ideas

What this lesson establishes

“What a Function Is” established that an input has exactly one output. This lesson gives that output a name, which is what makes every later lesson writable.

1

The whole symbol names one number

f(3) is a single value. The letter f is the name of the rule, the brackets are not multiplication, and x is a slot. Read f(3) as "f of 3", never as "f times 3", because the second reading makes f(a + b) = fa + fb look like the distributive law.

2

Evaluating is substitution, with brackets

To find f(−2) for f(x) = x² − 4x + 5, write (−2)² − 4(−2) + 5. Every occurrence of x becomes (−2), brackets and all. The brackets are what stop (−2)² from collapsing to −4.

3

Evaluate and solve are opposite questions

f(3) hands you an input and asks for the output; there is exactly one answer. g(x) = 5 for g(x) = 3x − 7 hands you an output and asks which input produced it; Linear Equations and Inequalities's linear method gives x = 4. On a table or graph there may be none, one or several such inputs. Confusing the two questions is the most common error in this lesson.

The material

Reading and using the notation

What the symbol means, how to substitute safely, and the two questions it can pose.

Definition · Function notation

If f is a function and x is an input in its domain, f(x) denotes the output that f assigns to x. The letter naming the function and the letter naming the input are both arbitrary: f(x) = 2x + 1, g(t) = 2t + 1 and h(u) = 2u + 1 are three names for one function.

The brackets are borrowed from the brackets of multiplication, and that is an accident of history, not a hint. Nothing in f(x) is being multiplied. The notation is roughly three hundred years old and predates any convention that would have made it unambiguous, so the ambiguity is permanent and the only defence is reading the whole symbol as one name.

Evaluating at a number

Take f(x) = x² − 4x + 5. Substituting means replacing every x with the input, wrapped in brackets, and only then simplifying.

f(x) = x^2 - 4x + 5 f(3) = (3)^2 - 4(3) + 5 = 9 - 12 + 5 = 2 f(0) = (0)^2 - 4(0) + 5 = 0 - 0 + 5 = 5 f(-2) = (-2)^2 - 4(-2) + 5 = 4 + 8 + 5 = 17

The third line is where brackets earn their place. Without them the first term reads −2², which is −4, and the second reads −4·2, which is −8; the total comes out −7 instead of 17. Both slips are silent, because −7 is a perfectly ordinary number and nothing in the working looks wrong.

Evaluating at an expression

The slot accepts anything, including another expression. The procedure does not change: replace every x by the whole expression in brackets, expand, collect.

f(a + 1) = (a + 1)^2 - 4(a + 1) + 5 = a^2 + 2a + 1 - 4a - 4 + 5 = a^2 - 2a + 2 check at a = 2: f(3) = 2 and 2^2 - 2(2) + 2 = 2

Compare that with f(a) + f(1), which is a² − 4a + 5 plus 2, or a² − 4a + 7. The two differ at every value of a except where a² − 2a + 2 = a² − 4a + 7, that is 2a = 5, so they agree only at a = 5/2. A function does not distribute over addition, and a single accidental agreement is not evidence that it does.

Theorem · Functions do not distribute

For a general function f, f(a + b) and f(a) + f(b) are different numbers. The error survives because it is correct for f(x) = cx, the family met first: c(a + b) = ca + cb really is the distributive law. A constant term is enough to break it. For f(x) = 2x + 1, f(1 + 1) = 5 while f(1) + f(1) = 6.

The two questions

  • Evaluate. f(3) is a command: substitute 3. The answer is one number, guaranteed by the definition of a function.
  • Solve. g(x) = 5 for g(x) = 3x − 7 is the linear equation 3x − 7 = 5, so 3x = 12 and x = 4. The answer is an input, not the displayed output 5.
  • A graph or table may give several inputs or none. Solving means collect every input paired with the requested output. The definition of a function limits outputs per input; it does not limit how many inputs may share one output.
Example · Reading values off a graph

A point (3, 2) on the graph of f says f(3) = 2, because the graph is the set of pairs (input, output). Finding f(3) means reading up from 3 on the horizontal axis; solving f(x) = 2 means reading across from 2 on the vertical axis and collecting every x beneath. One vertical sweep, one horizontal sweep, and they can return different numbers of answers.

Interactive

f(x) as a machine

One input in, one output out, substituted in full

A function
fthe second curvedashed: y = x, or a discarded halfwhere it fails

Method

Evaluating without losing a sign

Four moves. The third is the one that goes wrong.

1

Decide which question is being asked

An input inside the brackets means evaluate. An equals sign after the brackets means solve. Answering the wrong one produces a confident, irrelevant number.

2

Rewrite the rule with the slot empty

For f(x) = x² − 4x + 5, write ( )² − 4( ) + 5. This takes five seconds and makes it impossible to substitute into some occurrences of x and not others.

3

Drop the input into every slot, brackets included

(−2)², not −2². −4(−2), not −4−2. When the input is negative or is itself an expression, the brackets are carrying the arithmetic, not decorating it.

4

Simplify, then check with a number

For a symbolic answer such as f(a + 1) = a² − 2a + 2, put a = 2 in both the original and the result. If f(3) and the new expression disagree, the expansion is wrong and you have found it in one line.

Notation, evaluated and solved

Score 0 / 0

Two functions, four different requests

Use f(x) = x² − 4x + 5 for substitution and g(x) = 3x − 7 for a solve that needs only Linear Equations and Inequalities.

1. f(3) (3)^2 - 4(3) + 5 = 2 2. f(-2) (-2)^2 - 4(-2) + 5 = 4 + 8 + 5 = 17 careless: -2^2 - 4*2 + 5 = -4 - 8 + 5 = -7 WRONG 3. g(x) = 5 3x - 7 = 5 3x = 12 x = 4 check: g(4) = 3(4) - 7 = 5 4. f(a + 1) (a + 1)^2 - 4(a + 1) + 5 a^2 + 2a + 1 - 4a - 4 + 5 = a^2 - 2a + 2 check a = 2: f(3) = 2 4 - 4 + 2 = 2 agrees

Questions 1 and 3 are the pair to keep apart. Both mention f, x and a number; one starts with an input and returns its output, while the other starts with an output and recovers its input.

Question 4 is worth comparing with f(a) + f(1) = a² − 4a + 7. The two expressions agree only at a = 5/2, so a spot check at that one value would wrongly suggest the shortcut works — which is why the check above uses a = 2.

For a faded pass, let p(t) = t² + 3t − 1. The bracketed substitution for p(−2) is supplied as (−2)² + 3(−2) − 1; simplify it and check the sign of each term. Then form p(a − 1) by replacing every slot before expanding. Separately solve 4x + 3 = 19 as the function equation q(x) = 19 for q(x) = 4x + 3.

Common mistakes

1
Reading f(x) as f times xIt is the single most productive error in the subject: it makes f(a + b) = f(a) + f(b) look like distribution and f(2x) = 2f(x) look like factoring. Neither holds for a general f. The brackets attach a name to an input; they never multiply.
2
Substituting a negative without bracketsf(−2) with f(x) = x² is (−2)² = 4, not −2² = −4. The written form −2² means the square is taken first and then negated, so leaving the brackets out silently changes the question.
3
Answering the other questionAsked for f(3), some readers solve f(x) = 3; asked to solve f(x) = 5, some evaluate f(5). The giveaway is the shape of the answer: evaluating returns one number, solving returns a set that may be empty.

Check your understanding

✓
Finish when you can evaluate at a number or an expression without losing a bracket, and can tell an evaluation from an equation on sight.

Given r(x) = x² + 2x − 3 you should evaluate r(−4) and form r(a + 2) from bracketed substitutions, then solve the separate linear function equation s(x) = 11 for s(x) = 2x − 5. For each answer, say whether it is an output or an input and check it in the original rule.

Note: Every lesson from here on is written in this notation, so the habit of reading f(x) as one name rather than two factors is worth forming now. “Domain and Range” asks which inputs the slot is allowed to accept, which is the first question the notation makes it possible to state precisely.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.