Function notation names a rule and its input. If f(x) = 3x - 2, then f(4) means substitute 4 for every x and calculate the output; it does not mean multiply f by 4.
Printable function notation practice: PDF set 1, PDF set 2, PDF set 3, and additional practice PDF. The short practice below has worked solutions.
How to evaluate a function
- Read the input inside the parentheses.
- Replace every occurrence of the variable with that entire input, using parentheses.
- Apply exponents, multiplication or division, then addition or subtraction.
- Check that the input is in the function's domain.
The function's name can be \(f\), \(g\), or \(h\); it is just a label. In \(f(t)=2t+1\), using the letter \(t\) instead of \(x\) does not change the substitution process. An output can be a number or an expression.
Worked examples: numbers and expressions
Example 1: negative input. For \(f(x)=x^2-3x\), find \(f(-2)\).
Substitute with parentheses: \(f(-2)=(-2)^2-3(-2)=4+6=10\). The square applies to the whole negative input. Writing \(-2^2\) instead would change the calculation.
Example 2: fractional input. For \(g(t)=4t+3\), \(g(1/2)=4(1/2)+3=2+3=5\). Multiply before adding.
Example 3: expression input. If \(f(x)=x^2-3x\), then \(f(a+1)=(a+1)^2-3(a+1)=a^2+2a+1-3a-3=a^2-a-2\). Replace both x's, not just the first one.
Function values, equations, and domain restrictions
Finding \(f(4)\) is different from solving \(f(x)=4\). For \(f(x)=3x-2\), the first gives \(f(4)=10\); the second asks which input gives 4, so \(3x-2=4\) and \(x=2\).
For \(h(x)=1/(x-5)\), \(h(5)\) is undefined because division by zero is not allowed. For \(p(x)=\sqrt{x+2}\) over the real numbers, inputs must satisfy \(x\ge-2\). A calculator error is not an output to round.
Try these before opening the answers
- If \(f(x)=2x^2+1\), find \(f(-3)\).
- If \(g(x)=5-2x\), find \(g(a-1)\).
- If \(h(x)=6/(x+1)\), find \(h(2)\) and identify the excluded input.
- For \(f(x)=4x+3\), solve \(f(x)=19\).
Show step-by-step answers
- Square the input: \((-3)^2=9\). Then \(2(9)+1=\boxed{19}\).
- Replace x with the entire expression: \(5-2(a-1)=5-2a+2=\boxed{7-2a}\).
- \(h(2)=6/(2+1)=\boxed{2}\). The denominator is zero at \(x=\boxed{-1}\), which is excluded.
- \(4x+3=19\). Subtract 3 and divide by 4: \(x=\boxed{4}\). Check: \(4(4)+3=19\).
Ready to put one function inside another? Continue with composition of functions.

