Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Domain of a Function






Where Functions Live

Every function has boundaries. Some inputs work, others do not. The square root function refuses negative numbers. The reciprocal function cannot accept zero. A function modeling time accepts no moments before the clock starts.

The domain is the complete set of inputs for which the function produces valid output. It answers the question: what values can this function actually process? Finding the domain means identifying every restriction — every value that causes division by zero, every radicand that turns negative, every argument that falls outside the reach of the rule.

Key Terms

Domain— the set of all valid inputs for a function
Range— the set of all outputs; domain and range together frame the complete picture
Function— a rule together with a domain; the function is incomplete without it
Inverse Function— restricting the domain can create an inverse where none existed


See All Function Definitions →


What is Domain

Feed some numbers into f(x) = 1/x: they all look like reasonable inputs.
Negative, fractional, zero, small, large — nothing about these five numbers suggests that any of them should be refused.
input xwhat f(x) = 1/x asks for
−21 ÷ (−2)
0.51 ÷ 0.5
01 ÷ 0
31 ÷ 3
1001 ÷ 100
Four of them come back with an output; one does not.
input xf(x)gets an output?
−2−0.5yes
0.52yes
0undefinedno
30.333…yes
1000.01yes
0 fails because 1 ÷ 0 has no answer; the others pass because division by anything else is fine.
1÷01 \div 0 would have to be a number that gives 11 when multiplied by 00, and every number times 00 is 00. Nothing about the size or sign of an input matters here: −2-2 and 100100 pass just as easily as 0.50.5. The only thing 1x\frac{1}{x} cannot survive is a zero in its denominator.
The rule: an input is allowed exactly when the formula can be carried out on it.
Think of a ticket barrier: it does not care who you are, only whether your ticket works. For 1x\frac{1}{x} every ticket works except 00.
For f(x)=1/xf(x) = 1/x, the input x=0x = 0 fails because division by zero is undefined. Every other real number works. The domain is all real numbers except zero: (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty).
Domain of 1/x: every real number except 0−3−2−10123Dom f(x) = 1/xx ≠ 0allowed inputleft outThe whole line with one point removed
The definition
The domain of a function is the set of all inputs for which it produces a valid output.
So the domain of f(x)=1xf(x) = \frac{1}{x} is every real number except 00: (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty).
A domain is a set of numbers, and it is part of the function itself.
The domain of a function is the set of all inputs for which the function produces a valid output. It includes every value that can be substituted into the function and yield a real number result.
A function is not just a rule — it is a rule together with a domain. The expression f(x)=x2f(x) = x^2 describes a rule, but the function is not complete until the domain is specified. Often the domain is implicit: all real numbers for which the formula makes sense. Sometimes it is explicitly restricted to match a context or application.
The domain answers a simple question: what can go in? For f(x)=2x+5f(x) = 2x + 5, any real number works — there are no divisions, no roots, no restrictions. The domain is all real numbers, written (−∞,∞)(-\infty, \infty) in interval notation or R\mathbb{R} in set notation.
-10-5510-55f(x) = 2x
Nothing to rule out

A line like f(x) = 2x has no division, no root and no logarithm, so no input can fail: the graph runs on forever in both directions and every real number on the x-axis has a point above or below it. The domain is (−∞, ∞). Compare functions with real restrictions on the domain visualizer.

For f(x) = 1/x the picture changes: a single gap at x = 0 is all that is missing.
The rejected input is not lost for good: a different function can take it in.
00 is outside the domain of 1x\frac{1}{x}, but nothing stops a new function from using the same formula for x≠0x \neq 0 and a separate value at 00 — it is simply a different function, with a different domain. Domains can also be cut down on purpose, as the next sections on natural and restricted domains show.
The domain is distinct from the range, which describes outputs rather than inputs. Together they frame the complete input-output picture of a function.
The rest of the page covers domain notation, natural and restricted domains, finding the domain of rational, radical, logarithmic, trigonometric and combined functions, and reading the domain from a graph or a context.

Domain Notation

Notation

Domain Notation

Four spellings for one set: intervals, the set-builder bar, bare inequalities, and the union glue for disconnected pieces — all collected among the function symbols, and compared side by side in the table below. The number-line picture (solid dot in, open dot out) is the graphical twin of the bracket rules.
The inequality signs themselves — <<, ≤\leq and their chains — are owned by inequality notation, which also carries the endpoint fine print (Bourbaki's reversed brackets, the ∞\infty rule's rationale); f(x)f(x) comes from function notation.
[2,5)[2, 5)
the interval from two, included, to five, excluded
Bracket in, parenthesis out: [2,5)[2, 5) holds everything from 22 to 55, keeping 22, dropping 55. One symbol pair per endpoint, each deciding membership independently.
CasesInfinity always takes the parenthesis — (−∞,3](-\infty, 3] — because no set reaches it; half-open intervals like [0,2π)[0, 2\pi) are the standard trick for one-copy-per-cycle work in trigonometry.
Do not confuseA coordinate point. (2,5)(2, 5) is simultaneously an open interval and a point in the plane — and a vector; only context says whether the pair is a set or a location.
{x∣x≥0}\{x \mid x \geq 0\}
the set of all x such that x is at least zero
The set-builder bar: left of ∣\mid names the variable, right of it states the admission test — "such that" is the reading. It handles conditions intervals cannot spell, and the braces are set-theory marks on loan.
CasesThe colon variant {x:x≥0}\{x : x \geq 0\} is the same statement — common where the bar could collide with absolute value; fuller spellings declare the universe first: {x∈R∣x≥0}\{x \in \mathbb{R} \mid x \geq 0\}.
Do not confuseDivisibility's bar. In number theory a∣ba \mid b means "aa divides bb" — the same stroke, an unrelated claim; inside braces it is always "such that".
(−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty)
the union of two intervals
The glue for disconnected domains: ∪\cup joins pieces into one set, reading as "or" — a number qualifies by landing in either interval. Rational functions manufacture these in Finding Domain: Rational Functions below.
CasesEach excluded point splits the line once — two exclusions, three pieces: (−∞,−3)∪(−3,3)∪(3,∞)(-\infty, -3) \cup (-3, 3) \cup (3, \infty); the alternative spelling R∖{2}\mathbb{R} \setminus \{2\} says "all reals except 22" in one stroke.
Do not confuseIntersection. ∪\cup collects, ∩\cap filters — a domain written with ∩\cap by reflex is usually empty; the cup opens upward to "hold everything", the standard memory hook.
DownloadPNG2×PDF
Notation · Cheat sheet
Function Notation at a Glance
The marks from the notation cards across the function pages: how each is read and what it means. Every group links to the full card on its page.
Basics
f(x)f(x)
f of x
ff names the rule, f(x)f(x) its output; never f times x.
g(t),  P(n)g(t), \; P(n)
g of t; P of n
Any letter can name a function; tt hints at time, nn at counting.
f(x+1)f(x + 1)
f of x plus one
Whatever is in the brackets replaces xx everywhere.
DomainThis page
[2,5)[2, 5)
two included, five excluded
Square bracket in, round bracket out.
{x∣x≥0}\{x \mid x \geq 0\}
all x such that
Set-builder: the variable, then the test it must pass.
(a,b)∪(c,d)(a, b) \cup (c, d)
a union of intervals
For domains in separate pieces, as (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty).
Range
{y∣y≥0}\{y \mid y \geq 0\}
all y such that
The same grammar on the output side.
f:R→Rf: \mathbb{R} \to \mathbb{R}
f from R to R
Domain, then codomain; the range may be smaller.
{2,5,7}\{2, 5, 7\}
exactly these outputs
A finite range listed in braces.
Function arithmetic
(f+g)(x)(f + g)(x)
f plus g, of x
Equals f(x)+g(x)f(x) + g(x); the same for f−gf - g.
(fg)(x)(fg)(x)
f times g, of x
Equals f(x) g(x)f(x)\,g(x).
(fg)(x)\left(\frac{f}{g}\right)(x)
f over g, of x
Equals f(x)g(x)\frac{f(x)}{g(x)}, only where g(x)≠0g(x) \neq 0.
Composition
f∘gf \circ g
f after g
Feed the output of gg into ff; read right to left.
f(g(x))f(g(x))
f of g of x
The same thing, evaluated inside out.
fg(x)fg(x)
ambiguous
Could mean a product; avoid it for composition.
Inverse functions
f−1(x)f^{-1}(x)
f inverse of x
The function that undoes ff: f−1(f(x))=xf^{-1}(f(x)) = x.
1f(x),  (f(x))−1\frac{1}{f(x)}, \; (f(x))^{-1}
one over f of x
The reciprocal: a different thing.
Dom(f),  Ran(f)\text{Dom}(f), \; \text{Ran}(f)
domain and range of f
They swap: Dom(f−1)=Ran(f)\text{Dom}(f^{-1}) = \text{Ran}(f).
Piecewise functions
{2xx<05x≥0\begin{cases} 2x & x < 0 \\ 5 & x \geq 0 \end{cases}
defined by cases
Use the row whose condition holds.
x<1,  x≥1x < 1, \; x \geq 1
split at the boundary
Each cut point belongs to exactly one row.
∙,  ∘\bullet, \; \circ
solid dot, open dot
On a graph: endpoint included, endpoint excluded.
Transformations
af(b(x−h))+ka f(b(x - h)) + k
the four-knob form
Outside letters move it vertically, inside letters horizontally.
f(x−h)f(x - h)
f of x minus h
Shifts right by hh: the sign goes the opposite way.
−f(x)-f(x) vs f(−x)f(-x)
two mirrors
Flip across the xx-axis against flip across the yy-axis.
Same marks, different job
f−1f^{-1} vs 1f\frac{1}{f}The inverse function against the reciprocal.
f(x)f(x)The brackets apply ff; they never mean multiplication.
(2,5)(2, 5)An open interval in a domain; a point in the plane on a graph.
the bar ∣\midSuch that, inside set braces; given, inside P(⋅)P(\cdot); divides, between integers.
Function Notation at a Glance·/functions/basicsLearn Math Class
DownloadPNG2×PDF
Layout
NotationFormExampleNote
Intervalparentheses and brackets around endpoints[2, 5), (−∞, 3]bracket includes the endpoint; parenthesis excludes it; ∞ always takes a parenthesis
Set-builder{x | defining condition}{x | x ≥ 0}handles complex conditions intervals cannot easily express
Inequalitycondition stated directly on xx ≥ 0; −3 < x ≤ 7natural form when a restriction is being derived
Union (disconnected)two or more intervals joined with ∪(−∞, −1) ∪ (1, ∞)used when the domain skips a value or interval
Domain NotationLearn Math Class

Natural Domain vs Restricted Domain

The natural domain of a function is the largest set of real numbers for which the formula produces real output. It is determined entirely by the algebraic expression — no external constraints, no contextual limitations.

Did you know: One root or two changes the domain
x−1 x+1\sqrt{x - 1}\,\sqrt{x + 1} needs both radicands non-negative, so its natural domain is [1,∞)[1, \infty). Written as one root, x2−1\sqrt{x^2 - 1}, it needs only the product to be non-negative, and the domain gains the whole ray (−∞,−1](-\infty, -1].

For f(x)=x−3f(x) = \sqrt{x - 3}, the natural domain is [3,∞)[3, \infty) because the radicand x−3x - 3 must be non-negative. For g(x)=ln⁡(x)g(x) = \ln(x), the natural domain is (0,∞)(0, \infty) because logarithms require positive arguments. The natural domain follows from the mathematics alone.

A restricted domain is a deliberate limitation imposed beyond what the formula requires. The function f(x)=x2f(x) = x^2 has natural domain (−∞,∞)(-\infty, \infty), but restricting to [0,∞)[0, \infty) makes the function one-to-one, which is necessary for constructing an inverse.

Context often restricts domain. A function modeling the height of a projectile might be h(t)=−16t2+64th(t) = -16t^2 + 64t, which algebraically accepts any real tt. But if the projectile launches at t=0t = 0 and lands at t=4t = 4, the meaningful domain is [0,4][0, 4]. Negative time and post-landing time carry no physical significance.

The implied domain is the natural domain assumed when no domain is explicitly stated. Unless context or instruction specifies otherwise, assume the domain is as large as the formula allows.
Natural domain of h(t) against the restricted domain [0, 4]natural domain of h(t) = −16t² + 64t(−∞, ∞)−2−101234567restricted by the flight: launch to landing[0, 4]The formula accepts every t; the situation keeps only 0 ≤ t ≤ 4
What the formula allows, what the situation allows

The projectile's height formula h(t) = −16t² + 64t gives an output for every real t, so its natural domain is all real numbers. The situation keeps only the flight itself: from launch at t = 0 to landing at t = 4. The restricted domain [0, 4] is a choice made outside the formula, sitting inside the natural domain.

A restricted domain can never be larger than the natural one: it only removes inputs the formula would otherwise accept.
The two kinds of domain side by side, with the examples from this section.
DownloadPNG2×PDF
domain

Natural and restricted domain, side by side

One comes from the formula alone; the other is a choice made on top of it.

2compared
What it is
Natural domain
the largest set of real inputs giving real output
Restricted domain
a deliberate limitation beyond what the formula requires
Set by
Natural domain
the algebraic expression alone
Restricted domain
a purpose or the context
Example
Natural domain
x−3\sqrt{x - 3}: [3,∞)[3, \infty); ln⁡x\ln x: (0,∞)(0, \infty)
Restricted domain
x2x^2 on [0,∞)[0, \infty), to make it one-to-one
From context
Natural domain
h(t)=−16t2+64th(t) = -16t^2 + 64t accepts any real tt
Restricted domain
launch at t=0t = 0, landing at t=4t = 4: [0,4][0, 4]
When nothing is stated
Natural domain
assumed: the implied domain
Restricted domain
only if context or instruction says so
A restricted domain can never be larger than the natural one: it only removes inputs the formula would otherwise accept.
Natural and restricted domain, side by side·/functions/domainLearn Math Class
Read down the right-hand column and every entry is a choice: one-to-one for an inverse, or a physical time window. The left-hand column involves no choice at all, which is why it is the one assumed when nothing is said.

Finding Domain: Rational Functions

A rational function is a ratio of two polynomials.

RULE
The fundamental restriction is that the denominator cannot equal zero — division by zero is undefined.

To find the domain of a rational function, set the denominator equal to zero and solve. The solutions are the excluded values; everything else is in the domain.

For f(x)=x+3x−2f(x) = \dfrac{x + 3}{x - 2}, set x−2=0x - 2 = 0 to find x=2x = 2. The domain is all real numbers except 22:

Finding Domain: Rational Functions
(−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty)

For g(x)=5x2−9g(x) = \dfrac{5}{x^2 - 9}, factor the denominator: x2−9=(x−3)(x+3)x^2 - 9 = (x-3)(x+3). Setting each factor to zero gives x=3x = 3 and x=−3x = -3. The domain is:

Finding Domain: Rational Functions
(−∞,−3)∪(−3,3)∪(3,∞)(-\infty, -3) \cup (-3, 3) \cup (3, \infty)

For h(x)=xx2+1h(x) = \dfrac{x}{x^2 + 1}, the denominator x2+1x^2 + 1 is always positive — it has no real roots. No value of xx makes it zero. The domain is all real numbers: (−∞,∞)(-\infty, \infty).

Pitfall: Cancelling before finding the domain
Simplifying f(x)=x2−4x−2f(x) = \dfrac{x^2 - 4}{x - 2} to x+2x + 2 first and reading the domain from that gives all real numbers. The original denominator is zero at x=2x = 2, so f(2)f(2) is undefined and the domain is (−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty).

The numerator does not affect domain. A zero in the numerator makes the function equal zero, which is a valid output. Only zeros in the denominator create exclusions.

Some rational functions have a factor shared by the numerator and the denominator. Factoring both parts brings it into view, and cancelling it leaves a simpler formula that is easier to evaluate and to graph. At the value where the shared factor is zero, the graph shows a hole rather than a vertical asymptote.
The second function of this section. Press Next to carry out one step at a time.
DownloadPNG2×PDF
g(x)=5x2−9g(x) = \dfrac{5}{x^2 - 9}Step 1 of 3
Step
g(x)=5x2−9g(x) = \dfrac{5}{x^2 - 9}
1
Set the denominator equal to zero
x2−9=0x^2 - 9 = 0
2
Solve, factoring if needed
(x−3)(x+3)=0(x - 3)(x + 3) = 0: x=3x = 3 and x=−3x = -3
3
Exclude those values; everything else is in the domain
(−∞,−3)∪(−3,3)∪(3,∞)(-\infty, -3) \cup (-3, 3) \cup (3, \infty)
The domain of a rational function, step by step·/functions/domainLearn Math Class
-10-5510-55f(x) = 1/x
f(x) = 1/x: every real except 0

The band on the axis covers the whole line except for one open dot at 0, where the denominator vanishes and the curve breaks into two branches. Everything else is a valid input. Move to a rational function with two excluded points on the domain explorer.

The excluded values are the vertical asymptotes or holes of the graph.

Finding Domain: Radical Functions

Radical functions involve roots — square roots, cube roots, fourth roots, and so on. The domain restrictions depend on whether the root index is even or odd.

RULE
Even roots (square root, fourth root, sixth root) require the radicand to be non-negative.

Negative numbers have no real even roots. For f(x)=x−5f(x) = \sqrt{x - 5}, the radicand x−5x - 5 must satisfy x−5≥0x - 5 \geq 0, giving x≥5x \geq 5. The domain is [5,∞)[5, \infty).

Did you know: xxx^x has a domain full of holes
For negative xx, xxx^x is real only when xx is a fraction whose denominator in lowest terms is odd: (−13)−1/3=−33(-\frac{1}{3})^{-1/3} = -\sqrt[3]{3}, but (−12)−1/2(-\frac{1}{2})^{-1/2} needs the square root of a negative number. Both kinds of input lie between any two negative numbers, so on that side the domain contains no interval at all.

Odd roots (cube root, fifth root) accept any real number. The cube root of −8-8 is −2-2, a perfectly valid real number. For g(x)=x−53g(x) = \sqrt[3]{x - 5}, no restriction applies. The domain is (−∞,∞)(-\infty, \infty).

Fractional exponents follow the same rule, because x1nx^{\frac{1}{n}} is another way to write xn\sqrt[n]{x}. With the fraction in lowest terms, an odd denominator, as in x23x^{\frac{2}{3}}, lets negative inputs through, while an even one, as in x34x^{\frac{3}{4}}, shuts them out. When the exponent itself changes with the input, the denominator has to be checked again for every single xx.

More complex radicands require solving inequalities. For f(x)=6−2xf(x) = \sqrt{6 - 2x}, set 6−2x≥06 - 2x \geq 0:

Finding Domain: Radical Functions
6≥2x6 \geq 2x
Finding Domain: Radical Functions
3≥x3 \geq x

The domain is (−∞,3](-\infty, 3].

Pitfall: Not flipping the inequality
Solving 6−2x≥06 - 2x \geq 0 as −2x≥−6-2x \geq -6 and then x≥3x \geq 3 keeps the sign when dividing by −2-2. At x=4x = 4 the radicand is −2-2; the sign must flip, giving x≤3x \leq 3 and the domain (−∞,3](-\infty, 3].

The direction of the inequality carries the whole answer here: it decides whether the domain runs to the left or to the right of the boundary point x=3x = 3. The boundary point itself is included, because a radicand of 00 gives 0=0\sqrt{0} = 0, a valid output.

Nested radicals compound the restrictions.

Example
For f(x)=x−1f(x) = \sqrt{\sqrt{x} - 1}, both layers impose conditions. The inner radical requires x≥0x \geq 0. The outer radical requires x−1≥0\sqrt{x} - 1 \geq 0, which means x≥1\sqrt{x} \geq 1, so x≥1x \geq 1. The domain is [1,∞)[1, \infty).
-10-5510-55f(x) = √x
f(x) = √x: inputs from 0 onward

Negative inputs have no real square root, so the band starts at 0 with a closed dot, 0 itself being allowed, and runs to the right. An odd root would have no such cut. Compare the square root with the logarithm, whose cut is open, on the domain explorer.

Whether the endpoint is included is the difference between the closed dot here and the open one for the logarithm.
The index decides: even roots refuse negative radicands, odd roots accept every real number.

Finding Domain: Logarithmic Functions

RULE
Logarithmic functions require their argument to be strictly positive.

The logarithm of zero is undefined, and the logarithm of a negative number has no real value.

For f(x)=log⁡(x)f(x) = \log(x) or f(x)=ln⁡(x)f(x) = \ln(x), the domain is (0,∞)(0, \infty) — all positive real numbers.

When the argument is an expression, set that expression greater than zero and solve. For f(x)=ln⁡(x−4)f(x) = \ln(x - 4), require x−4>0x - 4 > 0:

Finding Domain: Logarithmic Functions
x>4x > 4

The domain is (4,∞)(4, \infty).

For g(x)=log⁡(3−x)g(x) = \log(3 - x), require 3−x>03 - x > 0:

Finding Domain: Logarithmic Functions
3>x3 > x

The domain is (−∞,3)(-\infty, 3).

Quadratic or factorable arguments require careful sign analysis. For h(x)=ln⁡(x2−4)h(x) = \ln(x^2 - 4), factor: x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2). This expression is positive when x<−2x < -2 or x>2x > 2. The domain is:

Finding Domain: Logarithmic Functions
(−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty)

Pitfall: Losing the negative interval
Treating x2−4>0x^2 - 4 > 0 like an equation, x2>4x^2 > 4 so x>2x > 2, drops half the domain. At x=−3x = -3 the argument is 55 and ln⁡(5)\ln(5) is defined; the domain is (−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty).

Sign analysis works with the roots of the argument, here x=−2x = -2 and x=2x = 2. They split the number line into three intervals, and on each one x2−4x^2 - 4 keeps a single sign: positive on the two outer intervals, negative between the roots. Only the intervals where the argument is positive enter the domain.

Note the strict inequality: unlike square roots, logarithms exclude the boundary where the argument equals zero.
-10-5510-55f(x) = ln(x)
f(x) = ln x: inputs strictly greater than 0

The band covers only the positive half of the axis and the dot at 0 is open: the logarithm of 0 is undefined and the curve plunges toward the vertical asymptote there without ever reaching it. This is the one restriction with a strict inequality. See the asymptote and the open endpoint together on the domain explorer.

Combined functions intersect all such restrictions, which the next section takes up.
The sign analysis for h(x)=ln⁡(x2−4)h(x) = \ln(x^2 - 4), interval by interval.
DownloadPNG2×PDF
Inequality
(x−2)(x+2)>0(x - 2)(x + 2) > 0
Critical pointsx<−2x < -2−2-2−2<x<2-2 < x < 222x>2x > 2
test value−303
sign of x−2x - 2−−0+
sign of x+2x + 2−0++
sign of (x−2)(x+2)(x - 2)(x + 2)+0−0+
in the solution?yesnononoyes
Solution(−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty)
−5−4−3−2−1012345openopen
The domainThe argument is positive on the two outer intervals, so the domain is (−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty). The roots stay out: a logarithm needs a strictly positive argument.
Where the argument is positiveLearn Math Class

Finding Domain: Trigonometric Functions

The basic trigonometric functions sine and cosine accept all real numbers — they have no domain restrictions. But tangent, cotangent, secant, and cosecant are defined as ratios, and ratios fail when the denominator is zero.

Tangent is defined as tan⁡(x)=sin⁡(x)/cos⁡(x)\tan(x) = \sin(x)/\cos(x). It is undefined where cos⁡(x)=0\cos(x) = 0, which occurs at x=π2+nπx = \dfrac{\pi}{2} + n\pi for any integer nn. The domain excludes these points.

Secant is sec⁡(x)=1/cos⁡(x)\sec(x) = 1/\cos(x), undefined at the same points as tangent.

Cotangent is cot⁡(x)=cos⁡(x)/sin⁡(x)\cot(x) = \cos(x)/\sin(x), undefined where sin⁡(x)=0\sin(x) = 0: at x=nπx = n\pi for any integer nn.

Cosecant is csc⁡(x)=1/sin⁡(x)\csc(x) = 1/\sin(x), undefined at the same points as cotangent.

Inverse trigonometric functions have restricted domains matching the ranges of the original functions. The function arcsin⁡(x)\arcsin(x) requires −1≤x≤1-1 \leq x \leq 1. The function arccos⁡(x)\arccos(x) has the same restriction. The function arctan⁡(x)\arctan(x) accepts all real numbers.

When trigonometric functions appear inside other operations, combine the restrictions. For f(x)=sin⁡(x)f(x) = \sqrt{\sin(x)}, the domain consists of all xx where sin⁡(x)≥0\sin(x) \geq 0 — the intervals where the sine function is non-negative.

The table below collects the six basic trigonometric functions with where each becomes undefined and the resulting domain exclusion.
DownloadPNG2×PDF
Layout
FunctionDefined asWhere undefinedDomain
sin(x)—neverall real numbers
cos(x)—neverall real numbers
tan(x)sin(x) ⁄ cos(x)where cos(x) = 0x ≠ π⁄2 + nπ
cot(x)cos(x) ⁄ sin(x)where sin(x) = 0x ≠ nπ
sec(x)1 ⁄ cos(x)where cos(x) = 0x ≠ π⁄2 + nπ
csc(x)1 ⁄ sin(x)where sin(x) = 0x ≠ nπ
Finding Domain: Trigonometric FunctionsLearn Math Class
Sine and cosine take every input; the other four fail exactly where the sine or cosine they divide by is zero.

Finding Domain: Combined Functions

RULE
When multiple operations appear in a single function, every restriction applies simultaneously. The domain is the intersection of all individual requirements.

Example
For f(x)=xx−3f(x) = \dfrac{\sqrt{x}}{x - 3}, two restrictions arise. The square root requires x≥0x \geq 0. The denominator requires x≠3x \neq 3. Both must hold, so the domain is [0,3)∪(3,∞)[0, 3) \cup (3, \infty).

Example
For g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x}, the logarithm requires x−1>0x - 1 > 0, giving x>1x > 1. The square root requires 5−x≥05 - x \geq 0, giving x≤5x \leq 5. The intersection is (1,5](1, 5].

Example
For h(x)=1x−2h(x) = \dfrac{1}{\sqrt{x - 2}}, the square root requires x−2≥0x - 2 \geq 0, and the denominator requires x−2≠0\sqrt{x-2} \neq 0. Together these demand x−2>0x - 2 > 0, so x>2x > 2. The domain is (2,∞)(2, \infty).

Pitfall: Joining restrictions with or
Combining x>1x > 1 and x≤5x \leq 5 for g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x} with "or" gives all real numbers. At x=6x = 6, 5−6=−1\sqrt{5 - 6} = \sqrt{-1} is not real; both conditions must hold, so the domain is (1,5](1, 5].

A systematic approach prevents errors: list each operation that imposes a restriction, solve each restriction separately, then intersect all the resulting conditions. Overlapping constraints narrow the domain; contradictory constraints can eliminate it entirely.

To see every restriction of your own formula found and intersected step by step, use the domain calculator on Functions Explorer.
Domain of sqrt(x)/(x - 3): [0, 3) union (3, inf)the root needs x ≥ 0[0, ∞)the denominator needs x − 3 ≠ 0x ≠ 3−2−101234567Dom f(x) = √x / (x − 3)[0, 3) ∪ (3, ∞)includedexcludedAll restrictions at once: keep only inputs that pass every one
Two restrictions, one domain

f(x) = √x / (x − 3), the section's first example. The square root keeps x ≥ 0; the denominator removes the single point x = 3. Writing each restriction on its own line and keeping only what survives both gives [0, 3) ∪ (3, ∞): 0 is included (filled dot), 3 is excluded (hollow dot).

The same line-by-line method handles any number of restrictions: one line per requirement, then the overlap.
The systematic approach on the second example of this section. Press Next to carry out one step at a time.
DownloadPNG2×PDF
g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x}Step 1 of 4
Step
g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x}
1
List each operation that imposes a restriction
The logarithm ln⁡(x−1)\ln(x - 1) and the square root 5−x\sqrt{5 - x}
2
Solve the first restrictionThe logarithm needs a positive argument
x−1>0x - 1 > 0, giving x>1x > 1
3
Solve the second restrictionThe square root needs a non-negative radicand
5−x≥05 - x \geq 0, giving x≤5x \leq 5
4
Intersect all the resulting conditions
(1,5](1, 5]
List, solve, intersectLearn Math Class

Domain from Graph

When a function is given as a graph rather than a formula, the domain is read as the horizontal extent — the set of xx-values for which the graph exists.

Pitfall: Reading the vertical extent
For a curve rising from a solid dot at (−2,1)(-2, 1) to one at (4,7)(4, 7), reading the heights gives [1,7][1, 7], which is the range. The domain is read along the xx-axis: [−2,4][-2, 4].

Trace the graph from left to right. Where does it start? Where does it end? Does it continue indefinitely in either direction? The answers define the domain.

Solid dots indicate included endpoints. If the graph ends at a solid dot at x=3x = 3, then 33 is in the domain, and the interval is closed at that end: use a bracket.

Open dots indicate excluded endpoints. If the graph ends at an open dot at x=3x = 3, then 33 is not in the domain, and the interval is open at that end: use a parenthesis.

Vertical asymptotes signal domain exclusions. If the graph approaches but never touches a vertical line at x=2x = 2, then 22 is not in the domain. The domain splits into separate intervals on either side of the asymptote.

Gaps in the graph appear as breaks — intervals where no curve exists. A graph defined for x<−1x < -1 and x>1x > 1 but missing in between has domain (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty).

Arrows at the ends of a graph indicate indefinite continuation. An arrow pointing right means the graph extends toward +∞+\infty; an arrow pointing left means it extends toward −∞-\infty.

The table below collects the visual cues that signal domain features on a graph and the notation each implies.
DownloadPNG2×PDF
Layout
Visual cueWhat it means for the domainNotation impact
Solid dot at endpointendpoint is includeduse bracket — [ or ]
Open dot at endpointendpoint is excludeduse parenthesis — ( or )
Vertical asymptote at x = avalue a is excluded; graph approaches but never reachesdomain splits at a using ∪
Gap in the graphinterval missing — no curve exists theretwo or more disjoint intervals joined by ∪
Arrow at end of curvegraph continues indefinitely in that directionextend to −∞ or +∞ with a parenthesis
Domain from GraphLearn Math Class
On a graph, the domain is the shadow the curve casts on the x-axis.

Domain from Context

When a function models a real-world situation, the context imposes restrictions that pure algebra does not.

Time is typically non-negative. A function h(t)h(t) giving the height of a ball after tt seconds has no meaning for t<0t < 0. The domain starts at t=0t = 0, regardless of whether the formula accepts negative values.

Quantities like length, area, population, and count must be non-negative. A function A(r)=πr2A(r) = \pi r^2 giving the area of a circle requires r≥0r \geq 0, even though the formula works for negative rr.

Physical upper bounds also restrict domain. A function modeling the number of items produced in a day has a maximum determined by capacity. A function for temperature in a specific experiment operates within measured bounds.

Discrete quantities may restrict the domain to integers. A function P(n)P(n) giving profit based on nn units sold makes sense only for whole numbers n=0,1,2,3,…n = 0, 1, 2, 3, \ldots

Contextual domain is a modeling decision, not a calculation. It requires understanding what the variables represent and what values are meaningful in the situation. A formula may allow x=−5x = -5, but if xx represents the number of employees, that value is nonsense.
DownloadPNG2×PDF
Time is non-negative
  • A function h(t)h(t) giving the height of a ball after tt seconds has no meaning for t<0t < 0.
  • The domain starts at t=0t = 0, whether or not the formula accepts negative values.
Quantities are non-negative
  • Length, area, population, and count must be non-negative.
  • A(r)=πr2A(r) = \pi r^2 requires r≥0r \geq 0.even though the formula works for negative rr
Physical upper bounds
  • The number of items produced in a day has a maximum determined by capacity.
  • Temperature in a specific experiment operates within measured bounds.
Discrete quantities
  • May restrict the domain to integers.
  • Profit P(n)P(n) from nn units sold makes sense only for whole numbers.n=0,1,2,3,…n = 0, 1, 2, 3, \ldots
Domain from contextrestrictions that pure algebra does not impose
A modeling decision, not a calculationA formula may allow x=−5x = -5, but if xx represents the number of employees, that value is nonsense.
Domain from ContextLearn Math Class

Common Pitfalls

Five mistakes come up again and again when finding a domain. Each is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Cancelling before finding the domain
A rational function is simplified first, by cancelling a factor shared by the numerator and the denominator, and the domain is then read from the simplified formula. The cancelled factor takes its zero with it, so a value the original function excludes slips back in.
Wrong turn
Error here
f(x)=x2−4x−2=(x−2)(x+2)x−2=x+2f(x) = \dfrac{x^2 - 4}{x - 2} = \dfrac{(x - 2)(x + 2)}{x - 2} = x + 2, a line, so the domain is (−∞,∞)(-\infty, \infty).
Right path
The domain comes from the original denominator. x−2=0x - 2 = 0 gives x=2x = 2, so the domain is (−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty). On that domain f(x)=x+2f(x) = x + 2, and the graph is the line y=x+2y = x + 2 with a hole at (2,4)(2, 4).
Why it happensThe simplified formula looks like the same function and is easier to work with, and the cancellation hides the step where x=2x = 2 was lost.
How to checkSubstitute each candidate exclusion into the formula as given. f(2)=4−42−2=00f(2) = \dfrac{4 - 4}{2 - 2} = \dfrac{0}{0}, which is undefined, so 22 cannot be in the domain.
2Not flipping the inequality
The radicand condition is solved by dividing by a negative number, and the inequality sign is kept as it was. The domain then lands on the wrong side of the boundary point.
Wrong turn
Error here
6−2x≥06 - 2x \geq 0, so −2x≥−6-2x \geq -6, so x≥3x \geq 3, and the domain is given as [3,∞)[3, \infty).
Right path
Dividing by −2-2 reverses the sign, so −2x≥−6-2x \geq -6 gives x≤3x \leq 3 and the domain is (−∞,3](-\infty, 3]. Moving 2x2x to the other side, as in the section above, avoids the division altogether: 6≥2x6 \geq 2x, so 3≥x3 \geq x.
Why it happensIn equations, dividing both sides by a negative number needs no extra care, and the habit is carried over to inequalities.
How to checkTest a value from the claimed domain. x=4x = 4 gives 6−8=−2\sqrt{6 - 8} = \sqrt{-2}, which is not real, so [3,∞)[3, \infty) cannot be right; x=0x = 0 gives 6\sqrt{6}, which is real.
3Losing the negative interval
A quadratic condition on a logarithm's argument is solved like an equation: the square root of both sides is taken and only the positive root is kept. The interval to the left of the negative root disappears.
Wrong turn
Error here
x2−4>0x^2 - 4 > 0, so x2>4x^2 > 4, so x>2x > 2, and the domain is given as (2,∞)(2, \infty).
Right path
x2>4x^2 > 4 means ∣x∣>2|x| > 2, that is x<−2x < -2 or x>2x > 2. Sign analysis of (x−2)(x+2)(x - 2)(x + 2) agrees: positive for x<−2x < -2, negative for −2<x<2-2 < x < 2, positive for x>2x > 2. The domain is (−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty).
Why it happensSquare roots are usually taken as positive, and for an inequality the square root step really produces an absolute value, which splits into two pieces.
How to checkTest a negative value. x=−3x = -3 gives x2−4=9−4=5>0x^2 - 4 = 9 - 4 = 5 > 0, so ln⁡(5)\ln(5) exists and −3-3 belongs to the domain.
4Joining restrictions with or
Each restriction of a combined function is solved correctly, but the results are joined as a union, as if meeting any one condition were enough.
Start
For g(x)=ln⁡(x−1)+5−xg(x) = \ln(x - 1) + \sqrt{5 - x},
Wrong turn
Error here
The conditions are x>1x > 1 or x≤5x \leq 5. Every real number satisfies at least one of them, so the domain is given as (−∞,∞)(-\infty, \infty).
Right path
Both parts must be defined at the same input, so both conditions must hold at once: x>1x > 1 and x≤5x \leq 5. The domain is the intersection, (1,5](1, 5].
Why it happensEach condition reads like a list of allowed values, and lists are merged by collecting. Domains of a single restriction are also often written with ∪\cup, which makes the union feel like the normal way to join pieces.
How to checkTest a value outside the intersection. At x=6x = 6, ln⁡(5)\ln(5) exists but −1\sqrt{-1} does not; at x=0x = 0, 5\sqrt{5} exists but ln⁡(−1)\ln(-1) does not. In both cases gg is undefined.
5Reading the vertical extent
On a graph, the domain is read off the vertical axis, from the heights the curve covers. That set is the range, not the domain.
Start
A curve rises from a solid dot at (−2,1)(-2, 1) to a solid dot at (4,7)(4, 7).
Wrong turn
Error here
It covers heights from 11 to 77, so the domain is given as [1,7][1, 7].
Right path
The domain is the horizontal extent. The curve starts at x=−2x = -2 and ends at x=4x = 4, both endpoints included, so the domain is [−2,4][-2, 4]. The interval [1,7][1, 7] is the range.
Why it happensDomain and range are learned together, and on a graph both are intervals read off an axis, so the axes are easily swapped.
How to checkThe domain is a set of inputs, and inputs sit on the horizontal axis. A vertical line at x=−2x = -2 touches the graph; one at x=−3x = -3 misses it, so −3-3 is outside the domain.
Common pitfalls in finding a domain·/functions/domainLearn Math Class
Each slip loses or adds inputs while the conditions are solved. The domain comes from the original formula before any cancelling, dividing by a negative number reverses the inequality, x2>4x^2 > 4 has a negative part as well, several restrictions must all hold at once, and a domain is read along the horizontal axis. Testing one value inside and one outside the claimed domain catches each slip.

Domain Rules at a Glance

Finding the domain reduces to a small set of restriction rules — one or two per function type. The table below collects the rule for each function type covered above with a representative example and the resulting domain. It works as a study card and as a checklist when analyzing an unfamiliar expression: identify the operations involved, look up each restriction, then intersect the results.
DownloadPNG2×PDF
Layout
Function typeRestriction ruleExampleResulting domain
Polynomialnonef(x) = 2x + 5(−∞, ∞)
Rationaldenominator ≠ 0f(x) = 1 ⁄ (x − 2)(−∞, 2) ∪ (2, ∞)
Even radicalradicand ≥ 0f(x) = √(x − 5)[5, ∞)
Odd radicalnonef(x) = ∛(x − 5)(−∞, ∞)
Logarithmicargument > 0f(x) = ln(x − 4)(4, ∞)
Trigonometric (tan, cot, sec, csc)underlying sin or cos ≠ 0tan(x)x ≠ π⁄2 + nπ
Combinedintersect every individual restrictionf(x) = √x ⁄ (x − 3)[0, 3) ∪ (3, ∞)
Contextual / modeledconstrained by physical meaning of the variableh(t) = −16t² + 64t (projectile)[0, 4]
Domain Rules at a GlanceLearn Math Class

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More functions methods
  • Find the range of a functionFind the lowest and highest outputs from the vertex, the endpoints and the end behavior, or solve y=f(x)y = f(x) for xx.
  • Compose two functionsFeed the inner function into the outer one: substitute the whole formula, simplify, then check the domain.
Inequality methods

Domain FAQ

Why can't the denominator be zero when finding a domain?

+
Because division by zero produces no number at all, so the function has no output there. Finding the domain of a fraction therefore means solving for the values that make the bottom vanish and excluding exactly those. Every other real number stays in, however awkward the expression looks.Read more →

Why does the domain of a logarithm exclude zero and negative numbers?

+
Because a logarithm asks what power produces a given value, and raising a positive base to any real power always yields a positive result. No exponent produces zero or a negative number, so the question has no answer there. The argument of the log must therefore be strictly greater than zero.Read more →

What is the difference between interval notation and set-builder notation?

+
Interval notation lists the endpoints with brackets, using square brackets when the endpoint is included and round ones when it is not. Set-builder states a condition instead, as the set of all x satisfying some inequality. Both describe the same collection; interval notation is more compact, set-builder more flexible for scattered exclusions.Read more →

Is x−1 x+1\sqrt{x - 1}\,\sqrt{x + 1} the same function as x2−1\sqrt{x^2 - 1}?

+
No, they agree only where both are defined. The product of two roots needs each radicand non-negative, x≥1x \geq 1 and x≥−1x \geq -1, so its domain is [1,∞)[1, \infty). The single root needs only x2−1≥0x^2 - 1 \geq 0, which also holds for x≤−1x \leq -1, giving (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty). At x=−2x = -2 the single root is 3\sqrt{3}, while the product would need −3\sqrt{-3} and −1\sqrt{-1}.Read more →

Do fractional exponents restrict the domain?

+
It depends on the denominator, with the fraction in lowest terms. Since x1nx^{\frac{1}{n}} is xn\sqrt[n]{x}, an odd denominator, as in x23x^{\frac{2}{3}}, lets negative inputs through: (−8)23=(−83)2=4(-8)^{\frac{2}{3}} = (\sqrt[3]{-8})^2 = 4. An even denominator, as in x34x^{\frac{3}{4}}, needs x≥0x \geq 0. Some calculators and programming languages still give an error or a complex number for a negative base, so it is worth stating the convention.Read more →

Is xxx^x defined for negative xx?

+
Only at some of them. For negative xx, xxx^x is real exactly when xx is a fraction whose denominator in lowest terms is odd: (−13)−1/3=−33(-\frac{1}{3})^{-1/3} = -\sqrt[3]{3}, but (−12)−1/2(-\frac{1}{2})^{-1/2} needs the square root of a negative number. Both kinds of number lie between any two negatives, so on that side the domain contains no interval at all, which is why the graph is usually drawn for x>0x > 0 only.Read more →

Can the domain of a function be empty?

+
Yes, when the restrictions contradict each other. In x−5+1−x\sqrt{x - 5} + \sqrt{1 - x} the first root needs x≥5x \geq 5 and the second needs x≤1x \leq 1. Both must hold at the same input, and no number does both, so the intersection is empty and the formula gives a real output nowhere. Joining the two conditions with or would wrongly give (−∞,1]∪[5,∞)(-\infty, 1] \cup [5, \infty), where one of the roots always fails.Read more →