Look at the graph: the blue stretch along the x-axis is the domain. A filled end belongs to it, a hollow end does not, and a dashed red line marks an x that is left out.
Read How it was found for the reason behind every end point and every x that is left out.
Domain
Domain
[3,∞)
How it was found
f(x)=x−3 is defined wherever every part of its formula is: no division by zero, no even root of a negative number, no logarithm of zero or a negative number.
To the left of x=3 the formula has no real value; the domain starts at3.
Checked on −10≤x≤10; a break further out would not be seen.
Type the function in the f(x) box. The calculator works out the domain as you type, writes it under Domain, and paints it in blue along the x-axis of the graph.
You can use powers (x2), roots (x as sqrt(x), cube roots as cbrt(x)), fractions with a slash, ln, log, ex, the trigonometric functions and their inverses, and ∣x∣ as abs(x). Brackets group as usual: 1/(x - 2) is x−21, while 1/x - 2 is x1−2.
The answer follows every change, so you can alter one number in the formula and watch the blue stretch move.
Reading the answer
DemoEnds, holes and repeats
Step 0 of 4
The Domain box gives the set of allowed inputs in interval notation:
[3,∞) means every x from 3 on, with 3 itself included.
(0,∞) means every x greater than 0; the round bracket says 0 is left out.
R∖{2} means every real number except 2.
R means every real number.
On the graph the same set is the blue stretch on the x-axis. A filled end is in the domain, a hollow end is not. A dashed red vertical line stands at an x where the formula grows without bound.
How it was found names the cause of each restriction: where the formula stops having a real value, where it divides by zero, and whether a missing point is an asymptote or a hole.
What the domain of a function is
The domain of a function is the set of all inputs for which the function gives a value. For a function given by a formula and nothing else, it is taken to be every real number x for which the formula can be worked out as a real number. This is sometimes called the natural domain.
For f(x)=x−1 the formula works exactly when x−1≥0, so the domain is [1,∞). At x=1 it gives 0=0; at x=0 it would need −1, which is not a real number.
The domain is about inputs only. Which outputs come out is a different question, answered by the range.
The domain of x−1 is [1,∞): the blue stretch of the x-axis.
The three things that restrict a domain
Among the functions met in school, only three operations can fail:
Division by zero. A fraction has no value where its denominator is 0. For x−21, leave out x=2.
An even root of a negative number.u needs u≥0. For x−3, solve x−3≥0 to get x≥3.
A logarithm of zero or a negative number.ln(u) needs u>0, strictly. For ln(x), the domain is x>0.
Everything else is safe: polynomials, ex, sin(x), cos(x), ∣x∣ and odd roots such as 3x accept every real number.
To find a domain by hand, look for these three in the formula, write the condition each one needs, and keep the x that satisfy all the conditions at once.
x−21: every x except 2.
ln(x): only x>0, with a hollow end at 0.
Several conditions at once
When a formula contains more than one risky operation, every condition must hold together.
Take f(x)=x−3x−1. The root needs x≥1 and the denominator needs x=3. Together: [1,∞) with 3 taken out, which is [1,3)∪(3,∞).
Take f(x)=4−x2. The condition 4−x2≥0 means x2≤4, so −2≤x≤2. Here one condition gives two ends, and the domain is the closed interval [−2,2].
Take f(x)=ln(4−x2). The same expression now has to be strictly positive, so the ends are left out: (−2,2).
4−x2 is defined from −2 to 2, ends included.
Holes and vertical asymptotes
A number left out of the domain shows on the graph in one of two ways.
At a vertical asymptote the values grow without bound. x−21 shoots down on the left of x=2 and up on the right.
At a hole the graph simply misses one point. x−1x2−1 gives 00 at x=1. Away from 1 the fraction equals x+1, so the graph is a straight line with a single point missing at (1,2).
Cancelling does not give the point back. The function x−1x2−1 and the function x+1 agree everywhere except at x=1, where the first has no value. The domain is decided by the formula as written, before any simplifying.
x−1x2−1 is the line x+1 with one point missing.
Domains with infinitely many gaps
Some functions leave out infinitely many numbers. tan(x)=cos(x)sin(x) has no value wherever cos(x)=0, which happens at 2π, 23π, −2π and so on, one every π.
The calculator recognises a regular pattern like this and writes it once: x=2π+kπ for every whole number k. The graph shows the asymptotes that fit in the picture.
The same happens for sec(x), for cot(x) and csc(x) (left out at the multiples of π), and for fractions such as sin(x)1.
What the calculator checks
The calculator studies the formula numerically for x between −10 and 10. Every break inside that stretch is found and classified; a break further out, such as the one of x−501, is not seen, and the answer says where it looked.
End points and left-out numbers that are whole numbers, simple fractions or simple multiples of π are written exactly. Others are given as decimals.
A domain can also be narrowed by the problem itself: a length cannot be negative, a number of people must be a whole number. Those limits come from the setting, not from the formula, so the calculator does not know about them.
Common mistakes
Simplifying first.x−1x2−1 is not defined at x=1 even though it simplifies to x+1.
Using ≥ for a logarithm.ln(x) needs x>0; ln(0) has no value.
Using > for a square root.0=0 is fine, so x−3 includes x=3.
Restricting odd roots.3x accepts negative numbers; only even roots do not.
Forgetting the root under a fraction bar. In x1 the root needs x≥0 and the division needs x=0, so the domain is x>0.
Mixing up domain and range. The domain is read along the x-axis, the range along the y-axis.
Related tools and lessons
To watch a domain move as a function is shifted and stretched, on prepared examples, open the Domain of a Function visual tool. The theory is in the lesson on the domain of a function.
The outputs are the subject of the Range Calculator, and the lines the graph leans against are found by the Asymptote Calculator. For the domain together with everything else about one function, use the Function Explorer.