Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Domain of a Function

The domain is the set of inputs the formula accepts. Start from all real numbers, remove what each operation forbids, and keep only the inputs that pass every test at once.

Recognize the task

The question asks "for which xx is ff defined?", "state the domain", or needs the domain before graphing, composing or inverting. The formula contains an operation that can fail: a fraction such as 1x−2\frac{1}{x - 2}, an even root such as 6−2x\sqrt{6 - 2x}, a logarithm such as ln⁡(x2−4)\ln(x^2 - 4), or a tangent. Test: scan the formula for denominators, even roots and logs. If there are none, the domain is R\mathbb{R}.
Domain and its notation are defined in the domain lesson.

Ways to do it

From the formulausual
Dom(f)={x∈R:every operation in f is defined}\text{Dom}(f) = \{x \in \mathbb{R} : \text{every operation in } f \text{ is defined}\}
Write one condition per risky operation and intersect them (combined functions).
From the graphgraph
Dom(f)=shadow of the graph on the x-axis\text{Dom}(f) = \text{shadow of the graph on the } x\text{-axis}
Read how far the graph reaches left and right, with open and solid endpoints (domain from a graph).
From the contextword problem
0≤t≤100 \leq t \leq 10
Keep only inputs that make sense: no negative lengths, whole numbers for counts (domain from context).

Steps

StepOn f(x)=x+1x−3f(x) = \dfrac{\sqrt{x + 1}}{x - 3}
1List the operations that can fail. Mark every denominator, even root and logarithm. Polynomials, odd roots, sine and cosine accept every real number.root x+1\sqrt{x + 1}, denominator x−3x - 3
2Write one condition for each. Denominator ≠0\neq 0 (rational functions), radicand ≥0\geq 0 (radical functions), log argument >0> 0 (logarithms).x+1≥0x + 1 \geq 0 and x−3≠0x - 3 \neq 0
3Solve each condition. Linear conditions take one line. A quadratic condition needs a sign chart, as in solving quadratic inequalities.x≥−1x \geq -1 and x≠3x \neq 3
4Intersect the conditions. Every condition must hold at the same time, so keep only the overlap and write it in interval notation.[−1,3)∪(3,∞)[-1, 3) \cup (3, \infty)
5Check a boundary and a point outside. An included endpoint must give a real output; a value just outside must fail.f(−1)=0−4=0f(-1) = \frac{0}{-4} = 0 ✓, f(−2)f(-2) needs −1\sqrt{-1} ✗

Worked examples

Example 1 · a rational function

denominator
g(x)=5x2−9g(x) = \dfrac{5}{x^2 - 9}: set x2−9=0x^2 - 9 = 0
denominator must not be zero
(x−3)(x+3)=0⇒x=±3(x - 3)(x + 3) = 0 \Rightarrow x = \pm 3
factor and solve
(−∞,−3)∪(−3,3)∪(3,∞)(-\infty, -3) \cup (-3, 3) \cup (3, \infty)
remove both values

Example 2 · a square root with a negative coefficient

radical
f(x)=6−2xf(x) = \sqrt{6 - 2x}: need 6−2x≥06 - 2x \geq 0
radicand not negative
−2x≥−6⇒x≤3-2x \geq -6 \Rightarrow x \leq 3
divide by −2-2, flip the sign
(−∞,3](-\infty, 3]
0=0\sqrt{0} = 0 is allowed

Example 3 · a log plus a root

combined
g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x}
two restrictions
x−1>0⇒x>1x - 1 > 0 \Rightarrow x > 1
log argument positive
5−x≥0⇒x≤55 - x \geq 0 \Rightarrow x \leq 5
radicand not negative
(1,5](1, 5]
both conditions at once
Watch the excluded inputs drop out of the graph in the domain visualizer.

See it happen

Think of each risky operation as a gate on the number line. A denominator closes single points, an even root closes everything on one side of a boundary, and a logarithm does the same but also closes the boundary itself. The domain is what is left open after every gate has acted, which is why the conditions are joined with "and", never "or". On the graph, the domain is the shadow the curve casts on the xx-axis.

Common mistakes

Cancelling before finding the domain

✗ x2−4x−2=x+2\frac{x^2 - 4}{x - 2} = x + 2, so the domain is R\mathbb{R}
✓ read the original denominator: x≠2x \neq 2, domain (−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty)

Not flipping the inequality

✗ −2x≥−6⇒x≥3-2x \geq -6 \Rightarrow x \geq 3
✓ −2x≥−6⇒x≤3-2x \geq -6 \Rightarrow x \leq 3; at x=4x = 4 the radicand is −2-2

Joining the conditions with "or"

✗ x>1x > 1 or x≤5x \leq 5: every real number
✓ x>1x > 1 and x≤5x \leq 5: (1,5](1, 5]

Excluding the zeros of the numerator

✗ xx−1\frac{x}{x - 1}: remove x=0x = 0 and x=1x = 1
✓ remove only x=1x = 1; f(0)=0f(0) = 0 is a valid output