A function cheat sheet should give you the core rules for evaluating, graphing, and transforming functions, plus the shapes of the most common ones. Most people forget that a function must pass the vertical line test—each input has exactly one output. Keep this page handy for quick reference while studying or coding.
Know the Definition and Notation
A function maps each input to exactly one output. You write it as f(x) = expression, where x is the input and f(x) is the output. The set of all possible inputs is the domain; the set of all outputs is the range.
To check if a graph is a function, use the vertical line test: if any vertical line crosses the graph more than once, it is not a function. For example, a circle fails the test, but a parabola opens upward passes it.
Evaluate Functions Step by Step
To evaluate f(2) for f(x) = 3x + 1, substitute 2 for x everywhere: f(2) = 3(2) + 1 = 7. The order matters: replace every x, then simplify using the standard order of operations.
When the input is another expression, like f(a + 1), substitute the whole expression: f(a + 1) = 3(a + 1) + 1 = 3a + 4. Keep parentheses around the substituted expression to avoid sign errors.
Worked Example: Piecewise Function
For a piecewise function, choose the rule that matches the input’s interval. For example:
f(x) = { 2x if x < 0; x² if x ≥ 0 }
To find f(-3), use the first rule because -3 < 0: f(-3) = 2(-3) = -6. To find f(4), use the second rule: f(4) = 4² = 16.
Find the Domain and Range
Domain restrictions come from two main sources: division by zero and even roots of negative numbers. For rational functions like f(x) = 1/(x – 2), the domain is all real numbers except x = 2. For square roots like f(x) = √(x – 3), the domain is x ≥ 3 because the radicand must be non-negative.
Range is the set of possible outputs. For a quadratic that opens upward, the range starts at the vertex’s y-value and goes to infinity. For example, f(x) = x² has range [0, ∞).
Quick Domain Rules
- Polynomials: domain is all real numbers.
- Rational functions: exclude values that make the denominator zero.
- Even roots: the radicand must be ≥ 0.
- Logarithms: the argument must be > 0.
Graph Common Functions by Shape
Memorize the basic shapes to recognize them quickly. A linear function f(x) = mx + b is a straight line with slope m and y-intercept b. A quadratic f(x) = ax² + bx + c is a parabola that opens upward if a > 0, downward if a < 0.
The absolute value function f(x) = |x| makes a V shape. The square root function f(x) = √x starts at the origin and curves upward to the right. The cubic f(x) = x³ has an S-like curve through the origin.
Exponential and Logarithmic Shapes
An exponential function f(x) = aˣ (with a > 1) rises rapidly, passing through (0,1). If 0 < a < 1, it falls rapidly. The logarithmic function f(x) = loga(x) is the inverse, passing through (1,0) and rising slowly.
Apply Transformations Systematically
Transformations change the graph in predictable ways. Start with the parent function, then apply shifts, stretches, and reflections in order.
- Vertical shifts: f(x) + k moves up k units; f(x) – k moves down k units.
- Horizontal shifts: f(x – h) moves right h units; f(x + h) moves left h units. Note the sign flips.
- Stretch/compress: a·f(x) stretches vertically if |a| > 1, compresses if 0 < |a| < 1. f(b·x) compresses horizontally if |b| > 1, stretches if 0 < |b| < 1.
- Reflections: –f(x) flips over the x-axis; f(-x) flips over the y-axis.
Example: Transform f(x) = x² into g(x) = 2(x – 1)² + 3
Start with y = x². Shift right 1 (because x – 1). Stretch vertically by a factor of 2. Shift up 3. The vertex moves from (0,0) to (1,3).
Combine Functions and Find Inverses
You can add, subtract, multiply, or divide functions: (f + g)(x) = f(x) + g(x). For division, the domain excludes values where the denominator is zero. Composition is (f ∘ g)(x) = f(g(x)), meaning you apply g first, then f.
To find the inverse of a one-to-one function, swap x and y in the equation, then solve for y. For example, for f(x) = 2x + 3, write y = 2x + 3, swap to x = 2y + 3, solve to get y = (x – 3)/2. The inverse is f⁻¹(x) = (x – 3)/2.
Check Your Work
Verify an inverse by composing: f(f⁻¹(x)) should equal x. For the example above, f(f⁻¹(x)) = 2((x – 3)/2) + 3 = x – 3 + 3 = x.
Function Cheat Sheet for Common Mistakes
Misconception: Many think f(x + 1) shifts the graph right. Actually, it shifts left because you subtract 1 from x to get the original input. Remember: inside the function, the shift is opposite to the sign.
Another error: Confusing domain and range. Domain is inputs, range is outputs. For f(x) = √x, the domain is [0, ∞) and the range is also [0, ∞), but that is not always the case; for f(x) = x², the domain is all real numbers but the range is [0, ∞).
Practice with These Quick Checks
Try these to test your understanding:
- What is the domain of f(x) = 1/(x² – 4)? (Answer: all real numbers except x = ±2)
- If f(x) = x³ – 1, find f(-2). (Answer: -9)
- Describe the transformation from f(x) = √x to g(x) = √(x + 2) – 5. (Answer: shift left 2 and down 5)
For more practice, graph each function on paper or with a graphing tool and compare shapes. The more you sketch, the faster you recognize patterns.
Related
- Chess for Beginners Cheat Sheet: Rules and Moves
- Meditation Bell: Meaning and Functions
- Flat Sheet Under or Over Blanket: Which Way Works
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).