Functions

Function Notation: What f(x) Means and How to Use It

In function notation, f(x)f(x) is read “f of x” and means the output of the function ff when the input is xx. So f(3)f(3) means “put 3 into the rule ff and report what comes out.”

f(a)=the output of f when the input is af(a) = \text{the output of } f \text{ when the input is } a

Try it with your numbers

Show every step

The symbol looks like multiplication, which is the first habit to drop. The parentheses are a handoff: they hold whatever you are feeding the function, and the letter in front is the name of the rule doing the work.

What does f(x) mean in function notation?

Take f(x)=2x+3f(x)=2x+3. It has three parts: the name ff, the input slot xx, and the rule 2x+32x+3 that says what to do with the input. Writing f(4)=11f(4)=11 records two facts at once: the input was 4 and the output was 11. A bare y=11y=11 keeps only the output, which is why the notation earns its place in any problem with more than one input.

If you already know slope-intercept form, you have used this idea without the name. The line y=mx+by=mx+b becomes f(x)=mx+bf(x)=mx+b, and nothing about the line changes. The new symbol just lets you ask about specific inputs, such as f(5)f(5), without inventing a new variable each time.

The notation is legal because of what a function is: every input produces exactly one output (see relations and functions for how that differs from a general relation). That is why f(3)f(3) can be a single number and never two. Letters other than ff are fine, and you need them when two rules appear in the same problem, as in f(2)=g(2)f(2)=g(2).

Quick check

If f(4)=9f(4)=9, which point is on the graph of ff?

How do you evaluate a function with negatives and fractions?

Evaluating means replacing every xx with the input and simplifying. The reliable method has three moves:

  1. Copy the rule, leaving an empty pair of parentheses where each xx was.
  2. Place the input inside every pair.
  3. Simplify in order: exponents, then multiplication, then addition and subtraction.

The parentheses are what protect you with negatives. Let f(x)=2x2−3x+1f(x)=2x^2-3x+1 and find f(−2)f(-2):

f(−2)=2(−2)2−3(−2)+1=2(4)+6+1=15f(-2)=2(-2)^2-3(-2)+1=2(4)+6+1=15

Without the parentheses, −22-2^2 reads as −4-4, and you would get 2(−4)+6+1=−12(-4)+6+1=-1. That single slip is the most common lost point in this topic. The same care applies when the function itself starts with a minus sign: for g(x)=−x2+5xg(x)=-x^2+5x, g(−3)=−(−3)2+5(−3)=−9−15=−24g(-3)=-(-3)^2+5(-3)=-9-15=-24.

Fractions work the same way. For the same ff:

f(12)=2(14)−32+1=12−32+1=0f\left(\tfrac{1}{2}\right)=2\left(\tfrac{1}{4}\right)-\tfrac{3}{2}+1=\tfrac{1}{2}-\tfrac{3}{2}+1=0

The output 00 tells you x=12x=\frac{1}{2} is a zero of this function, a useful fact you got for free. When a function is defined by different rules on different intervals, as in piecewise functions, first decide which interval your input belongs to, then substitute into that rule only.

How do you find x when f(x) equals a number?

Evaluating goes from input to output. Many problems run the other way: f(x)=10f(x)=10 asks “which inputs produce output 10?” You set the rule equal to the number and solve. The number on the right of the equals sign is always an output, never an input.

Example: let f(x)=x2−2xf(x)=x^2-2x and solve f(x)=8f(x)=8.

x2−2x=8⇒x2−2x−8=0⇒(x−4)(x+2)=0x^2-2x=8 \quad\Rightarrow\quad x^2-2x-8=0 \quad\Rightarrow\quad (x-4)(x+2)=0

So x=4x=4 or x=−2x=-2. Check both: f(4)=16−8=8f(4)=16-8=8 and f(−2)=4+4=8f(-2)=4+4=8. Two inputs sharing one output is perfectly legal. The one-output rule only forbids the reverse, one input giving two outputs. If the quadratic does not factor, the quadratic formula practice problems cover the next step.

Say the equation aloud

f(x)=8f(x)=8 means "which inputs give output 8?" while f(8)f(8) means "what output does input 8 give?" Mixing these up is the root of most notation errors.

After solving, confirm each answer is an allowed input. For f(x)=1x−2f(x)=\frac{1}{x-2}, the value x=2x=2 can never be used, and domain and range explains how to list these exclusions before you start.

Does function notation distribute like multiplication?

Side by side comparison showing f(2+3) equals 26 while f(2) plus f(3) equals 15 for x squared plus 1
For f(x) = x² + 1, feeding the whole sum 2 + 3 into f gives 26, but adding separate outputs gives only 15.

No, and this is the trap that separates smooth algebra from painful algebra. f(a+b)f(a+b) means “put the entire sum into the slot.” It does not mean f(a)+f(b)f(a)+f(b). Test it with f(x)=x2+1f(x)=x^2+1: f(2)=5f(2)=5, f(3)=10f(3)=10, but f(2+3)=f(5)=26f(2+3)=f(5)=26, not 1515.

The split does work for functions like f(x)=4xf(x)=4x, because multiplying by a constant distributes over a sum. Add even a constant and it breaks: for f(x)=4x+1f(x)=4x+1, f(2+3)=21f(2+3)=21 but f(2)+f(3)=9+13=22f(2)+f(3)=9+13=22.

The correct move is substitution of the whole expression. Let f(x)=x2−3xf(x)=x^2-3x and find f(x+2)f(x+2):

f(x+2)=(x+2)2−3(x+2)=x2+4x+4−3x−6=x2+x−2f(x+2)=(x+2)^2-3(x+2)=x^2+4x+4-3x-6=x^2+x-2

Quick check with x=1x=1: f(3)=9−9=0f(3)=9-9=0, and 1+1−2=01+1-2=0. It matches. Watch two lookalikes too. For f(x)=x+1f(x)=x+1, f(x2)=x2+1f(x^2)=x^2+1 but [f(x)]2=x2+2x+1[f(x)]^2=x^2+2x+1. Where the square sits decides everything.

This skill is not just an exercise. Replacing xx with x+2x+2 shifts a graph 2 units left, while adding 2 outside, f(x)+2f(x)+2, lifts it up, which is the core of transformations of functions. The expression f(x+h)f(x+h) also drives the difference quotient in calculus, so it pays to be fluent now.

Quick check

If f(x)=2x+1f(x)=2x+1, find f(x+3)f(x+3).

How do you read function notation from a graph or table?

Every point on a graph is a pair (a,f(a))(a,f(a)). To find f(2)f(2), go to x=2x=2 on the horizontal axis, move up or down to the curve, and read the height. To solve f(x)=3f(x)=3, draw a horizontal line at height 3 and read the xx-values where it meets the curve.

Written Means Point
f(3)=7f(3)=7 input 3, output 7 (3,7)(3,7)
f(0)=−2f(0)=-2 input 0, output −2-2 (0,−2)(0,-2)
f(a)=bf(a)=b input aa, output bb (a,b)(a,b)

The mistake to avoid: when asked for f(2)f(2), students look for where y=2y=2. A good mental rule is that the number inside the parentheses is always a left-and-right instruction, while the answer is always up-and-down.

The vertical line test is the same idea drawn as a picture: if a vertical line hits the curve twice, one input has two outputs, so the notation f(x)f(x) would not make sense. On a graph with an open circle and a filled dot at the same xx, f(x)f(x) is the height of the filled dot, because that is where the function actually lands.

How is function notation used in word problems and real life?

In context, the letters are chosen to remind you what is being measured. C(n)C(n) is the cost of nn items, s(t)s(t) is position at time tt, and P(r)P(r) might be profit at price rr. The input and output both carry units, and a good answer states them.

Example: a taxi charges a $3 base fare plus $2.50 per mile, so F(m)=3+2.5mF(m)=3+2.5m gives the fare in dollars for mm miles.

F(8)=3+2.5(8)=3+20=23F(8)=3+2.5(8)=3+20=23

This means an 8-mile ride costs 23.Nowrunitbackwards:ifthefarewas23. Now run it backwards: if the fare was 28, solve F(m)=28F(m)=28. Then 2.5m=252.5m=25, so m=10m=10, a 10-mile ride.

Try this: Pick a real bill you pay (a phone plan, a delivery fee, a gym). Write it as C(n)C(n), compute C(5)C(5), then solve C(n)=50C(n)=50. Say aloud in one sentence what each answer means, including units.

Most real functions are variations on a short list of shapes, which is why learning the parent functions pays off. The notation also carries into programming and spreadsheets: a function in code takes inputs and returns one output, exactly as f(x)f(x) does, and a spreadsheet formula built from cell references behaves the same way.

Why the inverse function notation is not a reciprocal

The symbol f−1(x)f^{-1}(x) looks like it should mean 1f(x)\frac{1}{f(x)}. It does not. It names the inverse function, the rule that undoes ff. Take f(x)=2x+3f(x)=2x+3. Then f(5)=13f(5)=13, and the inverse is f−1(x)=x−32f^{-1}(x)=\frac{x-3}{2}, so f−1(13)=5f^{-1}(13)=5. The reciprocal 1f(5)\frac{1}{f(5)} is 113\frac{1}{13}, a completely different number. Building the inverse step by step is covered in inverse of a linear function.

Inverse versus reciprocal

An inverse undoes: f−1(f(x))=xf^{-1}(f(x))=x. A reciprocal flips: f(x)⋅1f(x)=1f(x)\cdot\frac{1}{f(x)}=1. Only the first one sends 13 back to 5.

An inverse that is itself a function exists only when each output comes from a single input, which is the idea behind one-to-one functions. Exponents add to the confusion: sin⁡2x\sin^2 x means (sin⁡x)2(\sin x)^2, yet sin⁡−1x\sin^{-1}x means inverse sine. When a notation could be read two ways, write the parentheses.

Nesting is another place the slot idea helps. In f(g(x))f(g(x)), the output of gg goes into the slot of ff. With f(x)=2x+3f(x)=2x+3 and g(x)=x2g(x)=x^2: f(g(2))=f(4)=11f(g(2))=f(4)=11, while g(f(2))=g(7)=49g(f(2))=g(7)=49. Order matters, and the full rules are in composition of functions.

Quick check

If f(x)=3x−6f(x)=3x-6, find f−1(9)f^{-1}(9).

How do you check a function notation answer?

Four quick checks catch nearly every error:

  1. Substitute your answer back into the original rule and see whether it reproduces the target.
  2. Test a simple input such as 00 or 11 in both the original and your simplified expression.
  3. Sanity-check the sign and size. An upward-opening parabola cannot give a negative output below its vertex.
  4. Use symmetry when it applies.

The last one is underused. For an even function such as f(x)=x2−4f(x)=x^2-4, f(3)f(3) and f(−3)f(-3) must match: both equal 55. For an odd function such as f(x)=x3f(x)=x^3, they are opposites: f(−2)=−8f(-2)=-8 and f(2)=8f(2)=8. If your two answers break the pattern, a sign slipped. Even and odd functions shows how to tell which kind you have.

Finally, finish in the same language the question used. If asked for f(3)f(3), write f(3)=8f(3)=8, not just 8. It shows you answered the question that was asked, and it keeps your input and output attached to each other, which is the whole point of the notation.

Practice problems

0 of 5 solved

  1. If f(x)=5x−7f(x)=5x-7, find f(3)f(3).

  2. If g(x)=x2−4x+1g(x)=x^2-4x+1, find g(−2)g(-2).

  3. If f(x)=2x+13f(x)=\frac{2x+1}{3}, find xx so that f(x)=5f(x)=5.

  4. If f(x)=2x2−xf(x)=2x^2-x, find all xx with f(x)=6f(x)=6.

  5. If f(x)=x2−3xf(x)=x^2-3x, simplify f(a+h)−f(a)h\frac{f(a+h)-f(a)}{h} for h≠0h\neq 0.

Common questions

What does f(x) mean?

It is read "f of x" and means the output of the function named f when the input is x. The parentheses hold the input, and nothing is being multiplied.

Is f(x) the same as y?

For a single function, yes: y=f(x)y=f(x) means the same output. The difference is that f(x)f(x) also names the function and keeps the input visible, so f(4)=11f(4)=11 tells you both the input and the output.

How do you read f(3) out loud?

Say "f of 3". It means substitute 3 for every xx in the rule of ff and simplify to get one number.

Can a function have a name other than f?

Yes. Any letter works, and letters are often chosen to hint at the meaning, such as C(n)C(n) for cost of nn items or s(t)s(t) for position at time tt. The input variable can be any letter too.

What does f(2) = 5 mean on a graph?

It means the point (2,5)(2,5) lies on the graph. The graph is 5 units high when x=2x=2.

How do you find f(x + 1)?

Replace every xx in the rule with the whole expression x+1x+1, in parentheses, then simplify. For f(x)=x2f(x)=x^2, that gives f(x+1)=(x+1)2=x2+2x+1f(x+1)=(x+1)^2=x^2+2x+1.

Up next