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)=−2x2+4xf\left(x\right) = -2x^{2} + 4x

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

Domain in set-builder notation

{x∣x∈R}\displaystyle \left\{ x \mid x \in \mathbb{R} \right\}

Range in set-builder notation

{y∣y≤2}\displaystyle \left\{ y \mid y \le 2 \right\}
Show the work
  1. A polynomial is defined for every x

    A polynomial only adds and multiplies, and those can be done for every real number, so every real number can be used as an input.

  2. Vertex of a parabola

    The graph of y=ax2+bx+cy = ax^2 + bx + c is a parabola. Here a=−2a = -2, b=4b = 4 and c=0c = 0. Its vertex, at height kk, is the highest point because aa is negative, so every output is at most kk.

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

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