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

Domain (−∞,∞), Range [−3,∞)\displaystyle \text{Domain } \left(-\infty, \infty\right),\ \text{Range } \left[-3, \infty\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≥−3}\displaystyle \left\{ y \mid y \ge -3 \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=1a = 1, b=−4b = -4 and c=1c = 1. Its vertex, at height kk, is the lowest point because aa is positive, so every output is at least kk.

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

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