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)=x+1x−2f\left(x\right) = \frac{x + 1}{x - 2}

Domain (−∞,2)∪(2,∞), Range (−∞,1)∪(1,∞)\displaystyle \text{Domain } \left(-\infty, 2\right) \cup \left(2, \infty\right),\ \text{Range } \left(-\infty, 1\right) \cup \left(1, \infty\right)

Domain in set-builder notation

{x∣x≠2}\displaystyle \left\{ x \mid x \ne 2 \right\}

Range in set-builder notation

{y∣y≠1}\displaystyle \left\{ y \mid y \ne 1 \right\}
Show the work
  1. Division by zero is undefined

    A fraction is undefined when its denominator is 0, so the values of xx that make x−2=0x - 2 = 0 cannot be used.

    x−2=0⇒x=2\begin{gathered} x - 2 = 0 \\ \Rightarrow \\ x = 2 \end{gathered}
  2. Horizontal asymptote

    For f(x)=ax+bcx+df(x) = \frac{ax + b}{cx + d} here a=1a = 1 and c=1c = 1. When xx is very large the numbers bb and dd stop mattering, so the outputs get close to ac\frac{a}{c} but never equal it, and every other value is reached.

    y=ac=11=1\begin{aligned} y &= \frac{a}{c} \\ &= \frac{1}{1} \\ &= 1 \end{aligned}
  3. Result

    So the domain is (−∞,2)∪(2,∞)\left(-\infty, 2\right) \cup \left(2, \infty\right) and the range is (−∞,1)∪(1,∞)\left(-\infty, 1\right) \cup \left(1, \infty\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