What does f(x) actually mean?

When you see f(x)f(x) in algebra, it is simply a way of naming a mathematical rule and showing exactly what number you are plugging into that rule. It is pronounced "f of x." If you are used to seeing equations written like y=2x+3y = 2x + 3, function notation just swaps out the yy for f(x)f(x).

Think of f(x)f(x) as a label on a box. The ff tells you the name of the box, and the xx inside the parentheses tells you what you are dropping into the box. The whole expression f(x)f(x) represents the final output that pops out after the math is done.

The Function Machine

A great way to understand functions is to think of a factory machine. You put raw materials in, the machine does a specific job, and a finished product comes out. In algebra, the input is your xx value, the machine's rule is the equation, and the output is f(x)f(x).

If the machine's rule is to double the input, putting in a 33 means a 66 comes out. In function notation, we write this as f(3)=6f(3) = 6. It compactly tells us "when I put 33 into machine ff, I got 66."

Decoding the Notation

Let us break down the symbols. The letter on the outside, usually ff, gg, or hh, is just the name of the function. We use different letters so we can tell multiple functions apart on the same page.

The variable inside the parentheses, usually xx, is a placeholder for your input. When you see f(2)f(2), it means "take the rule for ff, and everywhere you see an xx, replace it with a 22."

Why use f(x) instead of y?

You might wonder why we complicate things by replacing a simple yy with f(x)f(x). The answer is that function notation gives us a lot more information at a glance.

If you have y=2xy = 2x and y=3x1y = 3x - 1, and someone says "evaluate for x=4x=4," it can get confusing. If you name them f(x)=2xf(x) = 2x and g(x)=3x1g(x) = 3x - 1, you can just say "find g(4)g(4)." It tells you exactly which equation to use and exactly what to plug in.

Where Students Slip Up

The single most common mistake students make is thinking that f(x)f(x) means "ff multiplied by xx." In almost all of algebra, two things next to each other mean multiplication. Function notation is the major exception.

The parentheses here do not mean multiply. They are holding the input value. You cannot "divide both sides by ff" to get xx by itself, because ff is not a number; it is just a name.

Worked through

Given the function f(x)=3x24f(x) = 3x^2 - 4, find f(5)f(5).

First, recognize that f(5)f(5) is asking you to take the function f(x)f(x) and replace every xx with the number 55.

Write down the original function: f(x)=3x24f(x) = 3x^2 - 4

Substitute 55 for xx: f(5)=3(5)24f(5) = 3(5)^2 - 4

Follow the order of operations (PEMDAS). Do the exponent first: f(5)=3(25)4f(5) = 3(25) - 4

Next, multiply: f(5)=754f(5) = 75 - 4

Finally, subtract: f(5)=71f(5) = 71

So, the output is 7171 when the input is 55.

Questions students ask

Ask about this topic

Where this comes from: OpenStax College Algebra, Chapter 1: Functions · Khan Academy, Algebra 1: Functions unit

See also