On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Function Notation

Function notation f(x) names a function and shows its input; f(3)=10 means input 3 yields output 10.

f:A→B,x↦f(x)

Quick Answer

Function notation f(x) names a function and shows its input; f(3)=10 means input 3 yields output 10. Use it to evaluate a rule at a number or an expression, to keep several functions apart (C for cost, R for revenue), and to state a fact like h(2)=31 that pairs an input with its output in a few symbols. The parentheses hold the input, so f(x+2) means putting x+2 in for every x, while f(x)+2 means adding 2 to the output.

Why This Matters

Function notation says exactly which input goes with which output and which rule is in use, so C(50)=1200 can mean "50 shirts cost $1,200" in a few symbols. It is the language of graphs, transformations, composition and calculus. Misreading f(x) as f times x, or f(x+2) as f(x)+2, produces answers to a different question.

Intuitive Explanation

Treat f as a machine with its rule printed on the side, say f(x)=x2+1. Whatever goes into the slot is squared and then has 1 added. f(3) means "drop 3 into the slot": 32+1=10. f(−2) gives (−2)2+1=5. The letter x only marks the slot; writing f(t)=t2+1 describes exactly the same machine.

The slot can hold an expression, not just a number. f(a+1) means replacing every x with (a+1): (a+1)2+1=a2+2a+2. Compare f(a)+1=a2+2: the first changes the input, the second changes the output, and they differ by 2a. The same distinction drives graph transformations later on: f(x−3) shifts a graph sideways, while f(x)−3 shifts it down.

Parentheses after a number still mean multiplication: 3(x+1)=3x+3. Parentheses after a letter that names a function mean input: f(x+1) is the machine's output for x+1. And a pair such as (3,10) is a point, not a function call; f(3)=10 states the same fact in function language, that the point (3,10) lies on the graph of f.

Think of it like this. A function is a vending machine: press button 3 and out comes the item assigned to button 3. f(3) names that item, not the button times the machine. Unlike a vending machine that can jam or run empty, a function always gives exactly one output for every allowed input.

Core idea. f(x) names a machine f and the input x you feed it, returning the output.


When to Use

Function notation is in play whenever a letter is followed by parentheses holding an input: f(4), g(t), h(x+2), C(n). Evaluate by substituting the whole input for every copy of the variable. Read word problems the same way: P(10)=500 means the input 10 gives the output 500, so work out what each quantity stands for before computing. If a number sits in front of the parentheses, as in 5(x−2), it is multiplication. If you know the output and need the input, solve f(x)=value instead.

Tip. Ask: Are the parentheses holding an input to a named function (not a multiplication)?

How to Recognize It

Before evaluating, look at what sits in front of the parentheses and what sits inside them, and check whether you are given the input or the output.

  1. Is the input inside the parentheses an expression, such as f(x+2) or f(2a), rather than a single number?

    If yes, put the whole expression in place of every x: with f(x)=x2−1, f(x+2)=(x+2)2−1=x2+4x+3. For a change outside, as in f(x)+2, evaluate first, then add 2.

  2. Is the output given and the input unknown, as in f(x)=7?

    If yes, you solve an equation rather than evaluate: with f(x)=2x+1, f(x)=7 gives x=3. If the input is given, as in f(7), substitute and compute instead, which gives 15.

  3. Does the problem pair an input with an output in a story, such as C(10)=45 for a cost?

    If yes, read it as a sentence with units: 10 items cost $45. The same fact is the point (10,45) on the graph of C, which links it to ordered pairs: input first, output second.

  4. Is one function applied to the output of another, as in g(f(2))?

    If yes, work from the inside out: find f(2) first, then feed that output into g. This is composition of functions, and g(f(2)) usually differs from f(g(2)), so the order matters.

Function Notation compared with Multiplication, Coordinate / ordered pair, and Function definition

All four rows use parentheses, so f(3), 3(x+1) and (3,10) can blur together on the page. Ask what the parentheses are doing: feeding an input to a named rule, grouping something to multiply, listing two coordinates, or stating the rule itself.

Function Notation

Meaning
Use this when you need to name a function and specify which input you are feeding it to read off the output.
Key test
Are the parentheses holding an input to a named function (not a multiplication)?
Formula
f:A→B,x↦f(x)
Example
Given f(x)=x2−4x+1, find f(3).

Multiplication

Meaning
Two quantities multiplied — a(x) as 'a times x' only when a is a number, not a function name.
Key test
Use when the symbol before parentheses is a numeric coefficient, like 3(x+1).
Formula
a⋅b
Example
3(x+1)=3x+3

Coordinate / ordered pair

Meaning
(x,y) lists two coordinates; f(x) names one input to a function.
Key test
Use when writing a point on a graph, not evaluating a function.
Formula
(x,y)
Example
The point (3,10)

Function definition

Meaning
States the rule/mapping that exists; notation is how you REFER to and evaluate it.
Key test
Use when establishing what the function is, not plugging in a value.
Formula
f:A→B
Example
Defining f(x)=2x+1

Formula & Notation

f:A→B,x↦f(x)
A function is a relation assigning each x∈A exactly one value f(x)∈B.

How to read it: f(x), g(t), and mapping notation x↦f(x).

Worked Examples

Example 1 — Evaluate a function at a value

Easy

Given f(x)=x2−4x+1, find f(3).
Show the steps and the answer
  1. Replace every x with (3): f(3)=(3)2−4(3)+1.

    The 3 in the parentheses is the input, so it goes wherever the rule has an x.

  2. Evaluate in order: (3)2=9 and 4(3)=12, so f(3)=9−12+1.

    Powers come first, then multiplication, then adding and subtracting from left to right.

  3. Simplify: 9−12+1=−2.

    The output can be negative even when the input is positive.

  4. Read the result as a point: (3,−2) is on the graph of f.

    f(3)=−2 says the input 3 produces the output −2.

Answer: f(3)=−2

Takeaway: Substitute the input for every x, in parentheses, then evaluate; f(3)=−2 means the point (3,−2) is on the graph.

Example 2 — Looks like notation but is multiplication

Standard

Simplify 3(x+1).
Show the steps and the answer
  1. Look at what sits in front of the parentheses: the number 3.

    A number is not a function name, so these parentheses mean multiplication.

  2. Distribute: 3⋅x+3⋅1=3x+3.

    Multiplication spreads over each term inside the brackets.

  3. Contrast with a function: for g(x)=x2, g(x+1)=(x+1)2=x2+2x+1.

    When the letter names a function, the parentheses hold an input and nothing is distributed.

Answer: 3x+3

Takeaway: A number before parentheses means multiply; a function name before parentheses means evaluate.

Example 3 — Find the mistake: changing the output instead of the input

Application

For f(x)=x2−3x, find f(x+2). Mia writes: "f(x+2)=x2−3x+2." Find the mistake and correct it.
Show the steps and the answer
  1. Notice that Mia's answer is f(x)+2: she added 2 to the output.

    f(x+2) changes the input, so the +2 belongs inside every copy of x.

  2. Substitute the whole input: f(x+2)=(x+2)2−3(x+2).

    Brackets around x+2 keep the square and the −3 acting on all of it.

  3. Expand: x2+4x+4−3x−6=x2+x−2.

    (x+2)2=x2+4x+4 and −3(x+2)=−3x−6.

  4. Check at x=2: f(4)=16−12=4 and 22+2−2=4, while Mia's version gives 4−6+2=0.

    The corrected expression matches the function's real output for the input 4.

Answer: f(x+2)=x2+x−2

Takeaway: Put the whole input, in brackets, wherever the rule has x; f(x+2) and f(x)+2 are different.

Where You'll See It

  • Reading a phone plan

    A plan charging $15 a month plus 10 cents a minute has cost C(m)=15+0.10m. C(300)=15+30=45 means 300 minutes cost $45, and solving C(m)=40 gives m=250, the minutes you can use for $40.

  • Converting temperatures

    The rule F(c)=1.8c+32 converts a Celsius reading to Fahrenheit. F(25)=77 says a 25°C day is 77°F, and F(−40)=−40 shows the one temperature where both scales agree.

  • Timing a stone dropped down a well

    A dropped stone falls d(t)=4.9t2 meters in t seconds. If the splash comes after 3 seconds, d(3)=4.9(9)=44.1, so the water is about 44 m down (a little less, since the sound takes time to come back up).

Common Mistakes

  1. The slip: Reading f(x) as f times x

    Instead: the parentheses hold the input; multiplication never happens here.

  2. The slip: Substituting only part of a compound input

    Instead: in f(x+2) replace every x in the rule with the whole expression (x+2).

  3. The slip: Confusing the input with the output

    Instead: in f(3)=10, the 3 goes in (input) and the 10 comes out (output), not the reverse.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. If g(x)=5x−7, find g(4) and g(−2).

    Hint: Put the number in wherever x appears.

  2. If f(x)=x2+3, find f(a+1) and simplify.

    Hint: Substitute (a+1) for x, then expand the square.

  3. If h(x)=2x+1, solve h(x)=15.

    Hint: Is 15 an input or an output here?

  4. A taxi fare is C(m)=3+2.5m dollars for a ride of m miles. Find C(8) and say what it means.

    Hint: The input is the number of miles.

  5. In k(x+2), k is a number; in f(x+2), f is a function. In which one do you multiply?

    Hint: Ask whether the letter in front is a value or a rule.

  6. Given f(x)=x2−x, a student writes: "f(x+1)=x2+1−x." Correct the mistake.

    Hint: Every x in the rule gets replaced, not just one of them.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is a function usually called f, and can it have another name?

ff stands for function, and gg and hh are simply the next letters; Leonhard Euler made writing f(x)f(x) popular in the 1730s. Any name works, and good names help: C(n)C(n) for the cost of nn items or h(t)h(t) for height at time tt tells you what goes in and what comes out. Spreadsheets and programs use whole words, as in SUM(A1:A5), which is the same notation.

Is f−1(x) the same as 1f(x)?

No, and the notation misleads many students. f−1f^{-1} names the inverse function, the rule that undoes ff: if f(x)=2x+1f(x)=2x+1, then f−1(x)=x−12f^{-1}(x)=\frac{x-1}{2}, so f−1(7)=3f^{-1}(7)=3. The reciprocal 1f(7)\frac{1}{f(7)} is 115\frac{1}{15}. To add to the confusion, sin⁡2x\sin^2 x does mean (sin⁡x)2(\sin x)^2, so an exponent of −1-1 on a function name is a special case.

Can two different inputs give the same output?

Yes. With f(x)=x2f(x)=x^2, both f(3)f(3) and f(−3)f(-3) equal 9, and that is allowed. What a function forbids is the reverse, one input with two outputs, so f(3)=9f(3)=9 and f(3)=10f(3)=10 cannot both be true. When no two inputs share an output, the function is called one-to-one, and only then does it have an inverse on its whole domain.

Does f(a+b) equal f(a)+f(b)?

Only for special functions. With f(x)=x2f(x)=x^2, f(2+3)=25f(2+3)=25 but f(2)+f(3)=13f(2)+f(3)=13. With f(x)=3x+1f(x)=3x+1, f(2+3)=16f(2+3)=16 but f(2)+f(3)=17f(2)+f(3)=17, off by the constant. Among the functions you meet in school, it holds for every input only when f(x)=kxf(x)=kx, a line through the origin. Splitting f(…)f(\ldots) apart like a bracket is a distributing mistake in disguise.

Learning Path

Function Notation

You are here

Next →

Nothing after this yet
You need Function (a rule giving exactly one output for each input), Variables, and Evaluation (substituting and computing in the right order). Function notation adds a way to name rules and to write inputs and outputs together. It opens up composition such as f(g(x)), inverse functions f−1, transformations like f(x−3)+2, and later the derivative notation f′(x) in calculus.

See Also