Domain and Range Calculator

Enter a function of x to find the inputs it accepts and the outputs it gives.

Use x, + − × ÷ ^, brackets, sqrt, abs, ln, log and e.

Try

Result

You enteredf(x)=4−x2f\left(x\right) = \sqrt{4 - x^{2}}

Domain [−2,2], Range [0,2]\displaystyle \text{Domain } \left[-2, 2\right],\ \text{Range } \left[0, 2\right]

Domain in set-builder notation

{x∣−2≤x≤2}\displaystyle \left\{ x \mid -2 \le x \le 2 \right\}

Range in set-builder notation

{y∣0≤y≤2}\displaystyle \left\{ y \mid 0 \le y \le 2 \right\}
Show the work
  1. Domain of a square root

    The square root of a negative number is not real, so the expression under the root must be 0 or more: −x2+4≥0-x^{2} + 4 \ge 0.

    −x2+4≥0⇒x∈[−2,2]\begin{gathered} -x^{2} + 4 \ge 0 \\ \Rightarrow \\ x \in \left[-2, 2\right] \end{gathered}
  2. Largest value under a square root

    The expression under the root is a downward parabola, so its largest value is MM. The root part therefore runs from 0 up to M\sqrt{M}, which is the largest output of the root.

    M=c−b24a=4−024⋅(−1)=4\begin{aligned} M &= c - \frac{b^2}{4a} \\ &= 4 - \frac{0^2}{4\cdot \left(-1\right)} \\ &= 4 \end{aligned}
  3. Result

    So the domain is [−2,2]\left[-2, 2\right] and the range is [0,2]\left[0, 2\right].

Worked examples

f(x)=x+1x−2f\left(x\right) = \frac{x + 1}{x - 2}
Domain (−∞,2)∪(2,∞), Range (−∞,1)∪(1,∞)\text{Domain } \left(-\infty, 2\right) \cup \left(2, \infty\right),\ \text{Range } \left(-\infty, 1\right) \cup \left(1, \infty\right)

Division by zero is undefined, Horizontal asymptote

f(x)=x−3f\left(x\right) = \sqrt{x - 3}
Domain [3,∞), Range [0,∞)\text{Domain } \left[3, \infty\right),\ \text{Range } \left[0, \infty\right)

Domain of a square root, Smallest value of a square root

f(x)=x2−4x+1f\left(x\right) = x^{2} - 4x + 1
Domain (−∞,∞), Range [−3,∞)\text{Domain } \left(-\infty, \infty\right),\ \text{Range } \left[-3, \infty\right)

A polynomial is defined for every x, Vertex of a parabola

f(x)=−2x2+4xf\left(x\right) = -2x^{2} + 4x
Domain (−∞,∞), Range (−∞,2]\text{Domain } \left(-\infty, \infty\right),\ \text{Range } \left(-\infty, 2\right]

A polynomial is defined for every x, Vertex of a parabola

f(x)=ln⁡(x+2)f\left(x\right) = \ln\left(x + 2\right)
Domain (−2,∞), Range (−∞,∞)\text{Domain } \left(-2, \infty\right),\ \text{Range } \left(-\infty, \infty\right)

Domain of a logarithm, Range of a logarithm

f(x)=2x−3f\left(x\right) = 2^{x} - 3
Domain (−∞,∞), Range (−3,∞)\text{Domain } \left(-\infty, \infty\right),\ \text{Range } \left(-3, \infty\right)

No restriction on the input, An exponential is always positive

f(x)=4−x2f\left(x\right) = \sqrt{4 - x^{2}}
Domain [−2,2], Range [0,2]\text{Domain } \left[-2, 2\right],\ \text{Range } \left[0, 2\right]

Domain of a square root, Largest value under a square root

f(x)=∣x−1∣+2f\left(x\right) = \left|x - 1\right| + 2
Domain (−∞,∞), Range [2,∞)\text{Domain } \left(-\infty, \infty\right),\ \text{Range } \left[2, \infty\right)

No restriction on the input, An absolute value is never negative

f(x)=1x2−9f\left(x\right) = \frac{1}{x^{2} - 9}
Domain (−∞,−3)∪(−3,3)∪(3,∞)\text{Domain } \left(-\infty, -3\right) \cup \left(-3, 3\right) \cup \left(3, \infty\right)

Division by zero is undefined, Result