A function is a rule that takes an input, does something to it, and produces exactly one output. Think of it as a machine: you put something in, you get something out — and every time you put the same thing in, you get the same thing out.
The critical word is "exactly one." An input cannot produce two different outputs — that would break the rule. But two different inputs can produce the same output (that's fine).
Functions are everywhere: the square root of a number, the price of a product as a function of quantity, the position of a car as a function of time.
Press button A3 → you always get the same snack. That's a function. Now imagine a broken machine where pressing A3 sometimes gives chips, sometimes gives nothing, sometimes gives two things. That's not a function. Consistency and uniqueness of output are everything.
Draw the graph of any relation. If any vertical line crosses the graph more than once, it's not a function — because one x-value would map to multiple y-values. If every vertical line hits the graph at most once, it passes the test and is a function.
A function \(f\) from a set \(A\) to a set \(B\), written \(f: A \to B\), is a relation such that:
The symbol \(\exists!\) means "there exists exactly one." Set \(A\) is the domain (all valid inputs) and set \(B\) is the codomain (where outputs live). The set of actual outputs is called the range.
| Notation | \(f(x)\) — "f of x", the output when input is \(x\) |
| Composition | \((f \circ g)(x) = f(g(x))\) — apply \(g\) first, then \(f\) |
| Inverse | \(f(f^{-1}(x)) = x\) — inverse undoes the function |
| Even function | \(f(-x) = f(x)\) — symmetric about the y-axis |
| Odd function | \(f(-x) = -f(x)\) — symmetric about the origin |
| One-to-one | Different inputs always give different outputs — passes horizontal line test |
\(f(4) = 2(16) - 3 = 29\)
\(= (x+1)^2 = x^2+2x+1\)
\(f^{-1}(x) = \dfrac{x-6}{3}\)
Ready to test your knowledge?
Functions appear in every quiz on BUders. Start with High School foundations.
Browse All Quizzes →