Intuition The one core idea
A function is a machine with a name : you drop a number in one end, it follows a fixed rule, and exactly one number comes out the other end. Everything about function notation — f , x , f ( x ) , g ( f ( x )) — is just a careful way of writing which machine , what went in , and what came out .
Before you can trust the parent note on Function notation — f(x), g(x) , you need every piece of its alphabet built from nothing. This page collects each symbol and idea it uses or silently assumes , and defines them one at a time, each resting on the one before.
Definition What a number "is" here (the picture)
A number is a position on a straight line. The line stretches left (negative) and right (positive), with 0 in the middle. Bigger numbers sit further right.
This is the very first picture we need, because a function machine eats a number (a position on the line ) and produces another number (another position ).
Why the topic needs it: when we later write f ( 2 ) or f ( − 1 ) , the 2 and the − 1 are just marked spots on this line — the raw material the machine transforms.
A variable is a named empty box that will hold a number later. We usually call it x . The letter x is not a special number — it is a placeholder that says "put any number you like here."
Intuition Why a letter instead of a number?
If I want to describe a rule that works for every input, I can't write it out for 1 , then 2 , then 3 , forever. Instead I write the rule once using the box x , and you fill the box with whatever number you have.
Why the topic needs it: function notation separates the rule from the specific number . The variable x is exactly that separation — the "any-number" stand-in.
An expression is a recipe built from numbers, the box x , and operations (+ , − , × , powers). Example: 2 x + 1 means "take whatever is in the box, multiply by 2 , then add 1 ."
Why the topic needs it: the parent note's rules like f ( x ) = 2 x + 1 are expressions. The expression is the "recipe card" hanging inside the machine.
This is the single most important action in the whole topic, so it gets its own picture.
Substitution means: erase the box x everywhere it appears and write the same chosen number in its place , then compute.
Intuition Why "everywhere"?
If the recipe mentions the box three times, all three copies are the same box, so they all get the same number. Miss one, and you've mixed two different inputs — that's a broken machine.
Common mistake The classic slip
With f ( x ) = 3 x 2 − 2 x + 5 , computing f ( − 1 ) you must replace both x 's: 3 ( − 1 ) 2 − 2 ( − 1 ) + 5 . Forgetting the sign on the second x gives the wrong answer. Substitute the whole value, brackets and all.
Why the topic needs it: every evaluation (f ( 2 ) , g ( a + 1 ) , f ( g ( 2 )) ) in the parent note is a substitution. Master this and the rest is bookkeeping.
Definition Two meanings of
=
Defining: f ( x ) = 2 x + 1 sets up the machine — it announces the rule. Read it "f is defined to be 2 x + 1 ."
Computing: f ( 2 ) = 5 reports a result — it states what came out.
Same symbol, two jobs: making the machine vs. reading its output.
Why the topic needs it: confusing these two is the root of the parent's "Common Mistake 2" (writing f = x 2 + 1 ). Keeping the jobs separate keeps rule and number separate.
Now we can assemble the star of the show.
Definition Function (as a machine)
A function is a machine that takes one input number and returns exactly one output number, always following the same rule.
Name — a letter like f , g , h that labels which machine.
Input — the number you feed in (lives in the box x ).
Rule — the expression inside (e.g. 2 x + 1 ).
Output — the number produced, written f ( x ) .
Intuition "Exactly one output"
One input, one output — no menus, no maybes. Feed in 3 and you always get the same answer back. This is what makes it a function and not just a vague "some result."
Why the topic needs it: this machine picture is the mental model behind literally every callout in the parent note.
f ( x )
The symbols f ( x ) read "f of x " and mean "the output when machine f is given input x ".
f — the machine's name (left of the bracket).
( ) — the mouth of the machine; whatever sits inside is the input.
x — what we dropped in.
So f ( 2 ) is "the output of machine f when fed 2 " — a single number.
f ( x ) is not f times x
The bracket here does not mean multiply. f ( 3 ) is "f applied to 3 ," never "f × 3 ." The letter directly before a bracket, when it's a function name, means "feed this in."
Why the topic needs it: this is the topic. Everything else is what you can do once you can read f ( x ) .
Definition Why more than one letter?
We use different names (f , g , h ) for different machines . Then f ( 5 ) and g ( 5 ) can differ even though the input is identical — because the rules differ.
Worked example Same input, different machines
With f ( x ) = 2 x − 3 and g ( x ) = x 2 + 1 :
f ( 5 ) = 2 ( 5 ) − 3 = 7 , g ( 5 ) = 5 2 + 1 = 26.
Same 5 in, different numbers out — because f and g are different machines.
Why the topic needs it: comparing and combining functions (the parent's whole "power of notation" section) is impossible without distinct names.
Definition Composition (inside-out)
Writing f ( g ( x )) means: run g first, take its output, then feed that into f . You always work from the innermost bracket outward.
Intuition Why inside-out?
f can only start once it has an input. That input is g ( x ) , which doesn't exist until g has finished. So g must run first — like you can't wrap a gift before it's built.
Worked example Order matters
With f ( x ) = 2 x and g ( x ) = x + 3 :
f ( g ( 5 )) = f ( 8 ) = 16 , g ( f ( 5 )) = g ( 10 ) = 13.
16 = 13 : swapping the order swaps the answer. This links straight to Composite functions .
Why the topic needs it: composition is the reason notation exists — it lets us stack machines unambiguously.
Substitution put a value in
Function machine name rule output
Read it downward: each idea only makes sense once the ones feeding into it are solid.
Functions: Domain and Range — which inputs the box is allowed to hold.
Composite functions — the full machinery of f ( g ( x )) .
Inverse functions — the machine that undoes f .
Graphing functions — drawing f ( x ) as a picture on the line's 2D cousin.
Piecewise functions — machines with more than one rule.
Give an out-loud answer, then reveal.
Where does a number "live" in our picture? As a marked position on a straight number line.
What is the variable x ? A named empty box that will hold any number you choose later.
What is an expression like 2 x + 1 ? A recipe of operations on the box — instructions, not yet a number.
What does "substitute" mean? Erase x everywhere and write the chosen number in its place, then compute.
The two jobs of the = sign? Defining the machine (f ( x ) = 2 x + 1 ) vs. reporting a result (f ( 2 ) = 5 ).
What are the four parts of a function machine? Name, input, rule, output.
How do you read f ( 3 ) ? "f of 3 " — the output when machine f is fed the input 3 .
Does f ( 3 ) mean f × 3 ? No — the bracket means "feed in," not multiply.
Why use different letters f and g ? They name different machines, so the same input can give different outputs.
In f ( g ( x )) , which runs first? g runs first (innermost bracket); its output is then fed to f .
Is f ( g ( x )) = g ( f ( x )) always true? No — order matters; composition is generally not commutative.