Math Domain- Understanding Functions
What a Function Actually Is
A function is a rule that takes an input and gives you exactly one output. That's it. No ambiguity, no exceptions. If you put in a number and get back more than one result, it's not a function.
Think of it like a vending machine. You press a button (input), you get exactly one snack (output). Press the same button again, you get the same snack. That's how functions work.
Mathematically, we write f(x) = ... where f is the function name and x is the input. The output is whatever the formula produces when you plug in x.
The Domain: Your Input Playground
The domain is simply all the values you can legally plug into a function. Some functions accept any number. Others blow up if you feed them certain values.
Common Domain Restrictions
- Division by zero — If your function has a denominator, values making it zero are banned
- Square roots of negatives — You can't take the square root of a negative number (unless you're doing complex numbers, but that's a different game)
- Logarithms of non-positive numbers — Logs only work with positive inputs
For example, f(x) = 1/x has a domain of all real numbers except zero. You cannot put zero in there. The function explodes.
The Range: What Comes Out
The range is the set of all possible outputs. Even if a value is allowed as input, it doesn't mean every output is possible.
Take f(x) = x². The domain is all real numbers. But the range? Only non-negative numbers. Negative inputs give positive outputs. You can never get a negative result from squaring a real number.
Types of Functions You Need to Know
Linear Functions
Straight lines. Form: f(x) = mx + b
These are the simplest. The graph is a straight line, and the rate of change is constant. Slope of 2 means output increases by 2 for every 1 you increase the input.
Quadratic Functions
Parabolas. Form: f(x) = ax² + bx + c
The graph curves. Opens upward if a is positive, downward if a is negative. These show up constantly in physics (projectile motion) and optimization problems.
Polynomial Functions
Sums of terms with powers of x. The degree tells you the highest power. Higher degree = more complex curves, more potential turning points.
Rational Functions
One polynomial divided by another. Watch out for holes and asymptotes where the denominator hits zero.
Exponential Functions
Form: f(x) = aˣ
Growth or decay that multiplies rather than adds. These blow up fast. Population growth, radioactive decay, compound interest—all exponential.
Logarithmic Functions
The inverse of exponentials. If y = aˣ, then x = logₐ(y). Useful for solving exponential equations and measuring things on logarithmic scales (earthquake magnitude, sound in decibels).
How to Tell If Something Is a Function
Vertical line test: If you can draw a vertical line anywhere on the graph and it only touches the curve once, it's a function. Two intersections? Not a function.
From a set of ordered pairs: Each input should appear only once. If you see (2, 5) and (2, 7), that's not a function—same input, two different outputs.
Function Notation in Action
When you see f(3) = 7, it means: "When I put 3 into this function, I get 7 out."
You can evaluate functions by substitution. If f(x) = 2x + 1, then:
- f(0) = 2(0) + 1 = 1
- f(2) = 2(2) + 1 = 5
- f(-3) = 2(-3) + 1 = -5
You can also compose functions: f(g(x)) means you put the output of g into f. This is called a composite function.
Comparing Function Types
| Type | Form | Graph Shape | Domain Usually |
|---|---|---|---|
| Linear | f(x) = mx + b | Straight line | All real numbers |
| Quadratic | f(x) = ax² + bx + c | Parabola | All real numbers |
| Cubic | f(x) = ax³ + bx² + cx + d | S-curve | All real numbers |
| Square root | f(x) = √x | Half-parabola | x ≥ 0 |
| Exponential | f(x) = aˣ | J-curve | All real numbers |
| Logarithmic | f(x) = logₐ(x) | Slow rise | x > 0 |
| Rational | f(x) = P(x)/Q(x) | Hyperbolas, curves with holes | Except where Q(x) = 0 |
Getting Started: How to Work with Functions
Step 1: Identify the domain first. Before you do anything else, ask yourself what x values would break the function. Write those down as excluded.
Step 2: Evaluate at key points. Plug in 0, 1, -1, and any number that makes denominators zero. This gives you anchor points for the graph.
Step 3: Find intercepts. Set x = 0 to find the y-intercept. Set f(x) = 0 to find x-intercepts (roots/zeros).
Step 4: Check the shape. Is it linear? Quadratic? Exponential? Knowing the type tells you what the graph looks like without plotting every point.
Step 5: Sketch it. Plot your key points, connect them following the function type's typical shape, and note any asymptotes or holes.
Example: f(x) = (x² - 4)/(x - 2)
- Domain: x ≠ 2 (division by zero)
- Simplify: (x-2)(x+2)/(x-2) = x + 2, but there's a hole at x = 2
- f(0) = -2, f(3) = 5, f(-1) = -3
- Graph looks like the line y = x + 2 with a hole at (2, 4)
Inverse Functions
An inverse function f⁻¹(x) undoes what f(x) does. If f takes you from 3 to 7, f⁻¹ takes you from 7 back to 3.
To find an inverse:
- Replace f(x) with y
- Swap x and y
- Solve for y
- Replace y with f⁻¹(x)
Example: f(x) = 3x + 5
- y = 3x + 5
- x = 3y + 5
- x - 5 = 3y
- y = (x - 5)/3
- f⁻¹(x) = (x - 5)/3
The domain of f is the range of f⁻¹, and vice versa. They're mirror images across the line y = x.
Common Mistakes to Avoid
- Confusing domain with range — Domain is input, range is output. Don't mix them up.
- Forgetting restrictions — Always check for division by zero, negative square roots, and logarithm arguments before you start graphing.
- Assuming all functions are defined everywhere — They're not. Read the function first.
- Ignoring holes and asymptotes — These are real features of rational functions, not just graphing artifacts.
Why Functions Matter
Functions aren't abstract math theater. Every calculator, every computer program, every piece of software you've ever used runs on functions. Data fitting, predictions, optimization—all functions.
You use functions every day without thinking about it. The relationship between hours worked and your paycheck is a function. The distance traveled based on speed and time is a function. Temperature conversion from Celsius to Fahrenheit is a function.
Master the basics here and calculus, statistics, and computer science become readable instead of mystical. Skip them and you're building on sand.