Menu

Function Notation

The one misreading that derails this whole topic is f(x) as f times x. A machine with a slot in it cannot be multiplied by anything, which is why the picture beats the explanation.

By Nethanel Bar, Co-founder & CEO

Last updated

Almost everyone meets f(x) and reads it as f times x. That is not carelessness - in every other place in algebra, two things written next to each other are being multiplied. 2x is. a(b+c) is.

So the fix is not a warning. It is a different picture: a machine you drop a number into.

Input x3
3inRULE2x + 12(3) + 17out
f(3) = 2(3) + 1 = 7as a point(3, 7)

Notice the brackets round the input. f(x) is not f times x - it is the name of the machine followed by whatever you dropped into it.

The name, then the thing you fed it

Read f(3) out loud as "f of 3", not "f three". The f is the machine's name and the brackets hold what went in. Nothing is being multiplied, because a machine is not a quantity.

Once that is the picture, the notation earns its keep. It records two facts in one symbol - what went in and what came out - which plain y cannot do. Writing y = 7 tells you an output; writing f(2) = 7 tells you the output and the input that produced it.

It also lets several functions share a page without collision. If f and g are both around, f(2) and g(2) are unambiguous where two y's would not be.

Evaluating: substitute, in brackets

To work out f(3), replace every x in the rule with 3 - and put it in brackets while you do.

With f(x) = 2x + 1:

f(3) = 2(3) + 1 = 7

The brackets look fussy for a positive number. They stop being fussy the moment the input is negative:

f(-2) = 2(-2) + 1 = -3

Without them you write 2 - 2 + 1 and get 1, which is not the answer to anything. That single habit removes most sign errors in this topic.

The input does not have to be a number, either. Feeding the machine a + 1 gives f(a+1) = 2(a+1) + 1 = 2a + 3 - the same substitution, done with a lump instead of a digit.

Every value is a point

Feed the machine a few inputs and write down the pairs:

xf(x)as a point
-2-3(-2, -3)
01(0, 1)
37(3, 7)

Those pairs are coordinates, so a function's outputs are a picture.

Graph-5-4-3-2-11234-6-4-2246xy
Three inputs, three outputs, three points - and every other input the machine could take lies on the same line.

This is why f(x) = 2x + 1 and y = 2x + 1 draw the same line. They are the same rule; function notation simply keeps the input's name attached.

f(7) and f(x) = 7 are opposite questions

This is the distinction worth slowing down for.

f(7) hands the machine a 7 and asks what comes out. It is a substitution, and it takes one line.

f(x) = 7 says something came out as 7 and asks what went in. That is an equation to solve:

So f(4) = 9. Going forwards is arithmetic; going backwards is algebra, and the notation looks nearly identical either way - which is exactly why it is worth naming the difference once.

Try one

If f(x) = 2x + 1, what is f(-4)?

If you got -3 or 9, the brackets are where to look: the input has to be multiplied by the 2, not added to it or subtracted from it.

Two words you will meet next

The set of inputs a machine will accept is its domain; the set of outputs it can produce is its range. Both are usually written in interval notation, and both are questions about the machine rather than about any one number you put through it.

Common questions

What does f(x) mean?
It is the output of the function named f when you feed it x. The f is a name, like a label on a machine, and the brackets hold whatever you are putting in. It is not f multiplied by x - the brackets here mean 'applied to', not 'times'.
How do you evaluate f(3)?
Replace every x in the rule with 3, in brackets, then work it out. If f(x) = 2x + 1 then f(3) = 2(3) + 1 = 7. Keeping the brackets round the number is what stops a negative input going wrong: f(-2) = 2(-2) + 1 = -3, whereas dropping the brackets invites 2 - 2 + 1.
Why write f(x) instead of y?
Because it says which input produced the output. With y you can write y = 5 but not that the 5 came from x = 2; with function notation, f(2) = 5 carries both facts in one symbol. It also lets several functions share a page - f, g and h - without their outputs being confused.
What is the difference between f(x) = 7 and f(7)?
They are opposite questions. f(7) hands the machine a 7 and asks what comes out. f(x) = 7 says something came out as 7 and asks what went in - which means solving an equation rather than substituting. Mixing these two up is the second most common error in this topic.
Can I use letters other than f and x?
Yes, and you will. f, g and h are conventional for functions and x for the input, but nothing depends on the letters: g(t) = 3t names a function g with input t and behaves identically. Applied problems usually pick letters that mean something, like h(t) for a height after t seconds.

Now do it yourself, properly

Reading someone else's working is not the same as being able to do it. The Coddy math course puts you on a board that checks every move you make, so you find out where you actually stand.

Start the math course

Related ideas

Coddy programming languages illustration

Learn math with Coddy

GET STARTED