Domain rules by function type
A function's domain collects every input for which its rule produces an output. Each family of functions has one standard restriction, so finding a domain is mostly a matter of recognizing the family and applying its rule. This page lists the rule for each family, then shows how domains combine when functions are added, divided or composed.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first session| Family | Example | Domain rule | Domain of the example |
|---|---|---|---|
| Polynomial | x cubed - 4x | none, any real input works | all real numbers |
| Rational | (x + 1) / (x - 5) | exclude zeros of the denominator | all reals except 5 |
| Square or other even root | square root of (x - 2) | the radicand is 0 or more | [2, infinity) |
| Cube or other odd root | cube root of (x - 2) | the radicand's own domain | all real numbers |
| Logarithm | ln(x + 4) | the argument is above 0 | (-4, infinity) |
| Exponential | 3 to the power x | the exponent's own domain | all real numbers |
| Exponential with a fraction in the exponent | 3 to the power 1/x | the exponent's own domain | all reals except 0 |
| Sine and cosine | sin x | none | all real numbers |
| Tangent and secant | tan x | exclude pi/2 + k x pi | all reals except odd multiples of pi/2 |
| Cotangent and cosecant | cot x | exclude k x pi | all reals except multiples of pi |
In the trigonometric rows k stands for any whole number. Angles are in radians.
Standard results of algebra and trigonometry, as in the open textbook cited above, restated by us
Why do these rules exist?
Each rule matches an operation that has no answer for some inputs. You cannot divide by zero, so rational functions lose the zeros of the denominator. No real number squared is negative, so an even root loses inputs that make the radicand negative. No power of a positive base is zero or negative, so a logarithm needs a positive argument. Tangent is sine over cosine, and cosine is zero at every odd multiple of pi/2, so tangent loses exactly those points. Cotangent is cosine over sine and sine is zero at every multiple of pi, so cotangent loses those.
What is the three-step method?
- Identify every operation in the formula that has a restriction: a denominator, an even root, a logarithm, or a trigonometric quotient.
- Write one condition for each restriction: denominator not 0, radicand at least 0, argument above 0.
- Solve the conditions together and write the set of inputs that satisfy all of them, usually in interval notation.
How do domains combine when functions are combined?
The inputs of a combined function must work for every piece.
| Combination | Domain |
|---|---|
| f + g, f - g, f x g | inputs in the domain of f and in the domain of g |
| f / g | inputs in both domains, and also g(x) not 0 |
| f of g (f composed with g) | inputs x in the domain of g where g(x) lies in the domain of f |
Source: Standard results from the open textbook cited above, restated by us. The domain of f + g, f - g and f times g is the same rule: inputs that both functions accept.
Worked example: Domains of a quotient and of two compositions
Let f(x) = square root of x and g(x) = x - 4. Find the domain of f of g, the domain of g of f, and the domain of h(x) = square root of (x + 1) divided by (x squared - 4).
- For f of g, the formula is square root of (x - 4). The radicand must be at least 0, so x is at least 4. The domain is [4, infinity).
- For g of f, the formula is (square root of x) - 4. The input must be in the domain of f first, so x is at least 0. The domain is [0, infinity).
- The two compositions have different domains, which shows that the order of composition matters.
- For h, the root needs x + 1 at least 0, so x is at least -1. The denominator x squared - 4 is zero at x = 2 and x = -2, but -2 is already outside [-1, infinity), so only x = 2 is removed.
Answer: [4, infinity); [0, infinity); [-1, 2) and (2, infinity).
Source: Original example by George Li Tutoring; each domain was checked by evaluating both functions at test points.
Which questions confuse students most?
The first is whether to simplify before finding a domain. Do not. Find the domain from the original formula, because (x squared - 1) / (x - 1) simplifies to x + 1 but still excludes x = 1. The second is mixing up domain and range. The domain lists the allowed inputs, and the range lists the outputs the function actually reaches. The third is leaving out a restriction hidden in a nested piece, such as a root inside a denominator.
For practice with the same rules on ten problems, see finding the domain of a function. For help moving from these rules to inverses and composition, see high school course tutoring or book a first session.
Common questions
What does the domain of a function mean?
Every input for which the function produces a real-number output.
Which inputs does a polynomial accept?
All real numbers, because a polynomial can be evaluated at any input.
Which inputs does tangent accept?
All real numbers except odd multiples of pi/2, where the cosine in the denominator is zero.
Do you simplify before finding the domain?
No. Find the domain from the original expression. Simplifying can hide an excluded input.