Function notation becomes much easier when each task has a repeatable process. This guide shows how to evaluate functions, find domain restrictions, compose functions, determine an inverse, and verify the result step by step. Use the examples and practice sets as a reliable form of function notation practice, whether you are reviewing algebra, preparing for precalculus, or checking a homework solution.
Overview
A function assigns exactly one output to each allowed input. The notation f(x) means “the output of function f when the input is x.” It does not mean f multiplied by x. For example, if f(x) = 3x - 2, then evaluating f(5) means replacing every x with 5:
f(5) = 3(5) - 2 = 13
Three common function tasks look similar but require different actions:
| Task | What you do | Main question |
|---|---|---|
| Evaluation | Substitute an input into one function | What is the output? |
| Composition | Use one function as the input of another | What is f(g(x))? |
| Inverse | Reverse the input-output relationship | What function undoes f? |
Keep the order visible. In (f ∘ g)(x) = f(g(x)), apply g first and then apply f. An inverse is written f-1(x); this notation means the inverse function, not the reciprocal 1/f(x).
Function notation reference
- f(a): the value of f when the input is a.
- f(x + 2): replace x with the entire expression x + 2, using parentheses.
- (f + g)(x): add outputs, so (f + g)(x) = f(x) + g(x).
- (f ∘ g)(x): compose functions, so (f ∘ g)(x) = f(g(x)).
- f-1(x): the inverse of f, if f has an inverse function on the stated domain.
How to estimate
For function problems, “estimate” usually means predict or calculate an output from a given input, rather than estimate a cost. A dependable workflow is to identify the task, write the substitution clearly, simplify in order, and check restrictions before accepting the answer.
1. Evaluate a function
- Copy the function rule.
- Replace every x with the given input, placing the input in parentheses.
- Simplify powers, multiplication, addition, and subtraction in the correct order.
- Check whether the input is in the domain.
Suppose p(x) = x2 - 4x + 1. To find p(-2):
p(-2) = (-2)2 - 4(-2) + 1 = 4 + 8 + 1 = 13
The parentheses matter. Writing -22 without parentheses could be interpreted as -(22) = -4, which changes the answer.
2. Evaluate an expression such as f(x + h)
When the input is an expression, substitute the entire expression wherever x appears. If f(x) = 2x2 - 3x, then:
f(x + h) = 2(x + h)2 - 3(x + h)
Expand only after the substitution is complete:
f(x + h) = 2(x2 + 2xh + h2) - 3x - 3h
f(x + h) = 2x2 + 4xh + 2h2 - 3x - 3h
3. Compose functions
To calculate f(g(x)), substitute the complete rule for g into f. Let:
f(x) = 2x + 5
g(x) = x2 - 1
Then:
f(g(x)) = 2(g(x)) + 5
f(g(x)) = 2(x2 - 1) + 5
f(g(x)) = 2x2 + 3
The reverse composition is different:
g(f(x)) = (2x + 5)2 - 1
In general, f(g(x)) and g(f(x)) are not equal. Do not assume that composition is commutative.
4. Find an inverse function
For a function that is one-to-one on its domain, use this process:
- Write the function as y = f(x).
- Interchange x and y.
- Solve the new equation for y.
- Rename the result f-1(x).
For f(x) = 4x - 7:
y = 4x - 7
x = 4y - 7
x + 7 = 4y
y = (x + 7)/4
Therefore, f-1(x) = (x + 7)/4. A horizontal-line test or a one-to-one check can help determine whether an inverse is a function. For example, a quadratic such as f(x) = x2 does not have an inverse function on all real numbers because different inputs can produce the same output. Restricting its domain to x ≥ 0 makes the inverse f-1(x) = √x.
Inputs and assumptions
Before calculating, identify the allowed inputs. Domain restrictions are part of the answer, especially for rational and radical functions.
- For a rational function, a denominator cannot equal zero. In r(x) = 1/(x - 3), x cannot be 3.
- For a real-valued square-root function, the radicand must be at least zero. In s(x) = √(x + 2), x must be at least -2.
- For an inverse, the original function may need a restricted domain to be one-to-one.
- For composition, the output of the inner function must be an allowed input for the outer function.
For example, let f(x) = 1/(x - 2) and g(x) = x + 1. Then:
f(g(x)) = 1/((x + 1) - 2) = 1/(x - 1)
The composition is undefined when x = 1. That restriction is easy to miss if you simplify without checking the denominator.
When using an equation calculator or graphing calculator, enter parentheses around substituted expressions and confirm whether the calculator is displaying exact or decimal values. A decimal approximation can be useful, but keep the exact form when the problem asks for it.
Worked examples
Example 1: Evaluate a rational function
Let q(x) = (x + 4)/(x - 1). Find q(3).
q(3) = (3 + 4)/(3 - 1) = 7/2
Because 3 is not 1, the input is allowed. The result is 7/2, or 3.5.
Example 2: Compose a quadratic and a linear function
Let f(x) = x2 + 1 and g(x) = 3x - 2. Find (f ∘ g)(x).
f(g(x)) = (3x - 2)2 + 1
= 9x2 - 12x + 4 + 1
= 9x2 - 12x + 5
Example 3: Verify an inverse by composition
For f(x) = 4x - 7 and f-1(x) = (x + 7)/4, verify one direction:
f(f-1(x)) = 4((x + 7)/4) - 7
= x + 7 - 7
= x
Check the other direction as well:
f-1(f(x)) = ((4x - 7) + 7)/4 = 4x/4 = x
Both compositions return x, so the functions undo one another.
Graduated practice sets
Set A: Evaluation
- If f(x) = 5x - 6, find f(4).
- If g(x) = x2 + 2x, find g(-3).
- If h(x) = √(x - 1), find h(10).
Answers: 14, 3, and 3.
Set B: Composition
- For f(x) = x + 4 and g(x) = 2x, find f(g(x)).
- For f(x) = x2 and g(x) = x - 3, find g(f(x)).
- For f(x) = 1/x and g(x) = x + 2, state the restriction for f(g(x)).
Answers: 2x + 4; x2 - 3; x cannot equal -2.
Set C: Inverses
- Find the inverse of f(x) = 3x + 8.
- Find the inverse of g(x) = (x - 5)/2.
- Explain why h(x) = x2 needs a domain restriction before it can have an inverse function.
Answers: f-1(x) = (x - 8)/3; g-1(x) = 2x + 5; x2 is not one-to-one over all real numbers, so a restriction such as x ≥ 0 is needed.
When to recalculate
Revisit a function solution whenever an input, domain, function rule, or restriction changes. Recalculate if the problem gives a new value, if a composition is reversed, or if a graph suggests that the stated inverse may not be one-to-one.
Use this verification checklist:
- Did you substitute the entire input, including negative signs and parentheses?
- Did you simplify exponents and products before combining terms?
- Did you check denominators and square-root restrictions?
- For composition, did you apply the inner function first?
- For an inverse, did you interchange x and y and solve completely for y?
- Did both compositions simplify to x when verifying an inverse?
For additional practice with related equation skills, review the math answer-checking workflow, the guide to solving linear equations step by step, and the exponential and logarithmic equation method guide. Return to this page when your function rules or inputs change, and use the practice sets to confirm that you can evaluate, compose, and verify without skipping domain checks.