In algebra 2, the domain of a function is the complete set of input values-typically x-values-for which the function produces a valid output. It defines the range of allowable inputs based on mathematical rules, such as avoiding division by zero or taking the square root of a negative number.
For example, the function f(x) = √(x − 3) has a domain restricted to x ≥ 3 because the expression under the square root must be non-negative. If x = 2, then √(−1) is undefined in real numbers. The domain ensures only real-number outputs are produced.
Understanding the domain is essential when graphing functions, solving equations, or modeling real situations. Without correctly identifying the domain, calculations may produce invalid results or misrepresent relationships between variables.
A function maps each input from its domain to exactly one output. The domain is determined by the structure of the function's rule. For rational expressions, such as f(x) = 1/(x − 2), the denominator cannot equal zero. So x ≠ 2. The domain excludes 2 because division by zero is undefined.
Polynomial functions like f(x) = x² + 4x − 5 have domains that include all real numbers. There are no restrictions-no square roots of negatives, no divisions by zero. The domain is (−∞, ∞).
When working with piecewise functions, the domain is split into intervals based on different rules. For instance, f(x) = { x + 1 if x ≤ 0; x² if x > 0 }. The domain is all real numbers, but the behavior changes at x = 0.
Domains fall into three main categories depending on the function type:
| Type | Domain Rule | Example |
|---|---|---|
| Polynomial | All real numbers | f(x) = 3x³ − 2x + 1 → domain: (−∞, ∞) |
| Rational | Exclude values making denominator zero | f(x) = 1/(x − 4) → domain: x ≠ 4 |
| Radical (even root) | Expression under root must be ≥ 0 | f(x) = √(2x + 6) → domain: x ≥ −3 |
To find the domain algebraically, solve inequalities derived from restrictions. For f(x) = √(5 − 2x), set 5 − 2x ≥ 0. Solving gives x ≤ 2.5. So the domain is (−∞, 2.5].
Graphically, the domain corresponds to the horizontal span of the function's curve. If a graph ends at x = −1 and continues to the right, the domain includes all x-values from −1 onward. A gap or discontinuity at a point means that x-value is excluded.
Many students assume the domain is always all real numbers unless told otherwise. This is incorrect. Even simple-looking functions like f(x) = 1/x have a domain excluding zero. The function is undefined at x = 0, so 0 is not part of the domain.
Another misconception is confusing domain with range. The domain is about inputs (x-values); the range is about outputs (y-values). For f(x) = x², the domain is all real numbers, but the range is y ≥ 0 because squaring any real number yields a non-negative result.
Real-world problems often impose practical limits. For example, if f(t) models the height of a ball thrown upward over time, t represents seconds. Negative time doesn't make sense. So even if the equation allows t = −1, the domain is restricted to t ≥ 0.
I once taught a lesson where students graphed f(x) = √(x² − 9). They initially assumed the domain was all real numbers. After testing x = 0, they saw √(−9), which is imaginary. That moment clarified why domain restrictions exist-not just for math, but for logic.
The domain differs from the range, as noted above. It also differs from the codomain-a set that includes all possible outputs, which may be larger than the actual range. For example, if f(x) = x² with domain [−2, 2], the range is [0, 4], but the codomain could be all real numbers.
Some confuse domain with the solution set of an equation. The domain applies to functions, not equations. Solving 2x + 3 = 7 finds a single x-value. But defining f(x) = 2x + 3 requires specifying the domain-such as all real numbers-before evaluating.
Also, domain is not the same as the independent variable. While x is typically the independent variable, the domain specifies which values x can take. You can define a function with x as the variable but restrict its domain to integers only, such as f(n) = n² for n ∈ ℤ.
Consider f(x) = (x² − 4)/(x − 2). At first glance, it appears to be a rational function. But factor the numerator: (x − 2)(x + 2)/(x − 2).
For x ≠ 2, this simplifies to x + 2. However, at x = 2, the original expression becomes 0/0-undefined. So even though the simplified form is defined at x = 2, the original function is not. The domain is all real numbers except x = 2.
This example shows why you must analyze the original function, not just simplify it. The domain is determined by the function's definition, not its equivalent form.
Understanding the domain in algebra 2 strengthens your ability to interpret functions accurately. It prevents errors in graphing, modeling, and problem-solving. Always ask: "What inputs are allowed?" before evaluating a function.
For further practice with function notation and input-output relationships, explore how x functions as a variable in algebraic expressions.
While "domain" in e-commerce refers to web addresses like example.com, in algebra 2 it refers strictly to the set of valid inputs for a function. The term shares a name but not meaning across fields.