Get in touch

Contact Form Demo

Domain and Range Calculator

Instantly find the domain and range of any mathematical function with comprehensive step-by-step algebraic solutions and interactive graphical visualization.

Function $f(x)$
x
^
(
)
+
sin
cos
tan
*
/
csc
sec
cot
ln
$\pi$
e
|x|
log
CLR
Input
Domain
Range
Visual Graph
Step-by-Step Analysis
👨‍🏫
By Prof. David Anderson
Professor of Mathematics | 20+ Years Teaching Experience
"Understanding functions is like learning the grammar of the universe. In my classroom, I tell students that the Domain is asking 'What inputs are allowed?' and the Range is 'What outputs can we get?'. I built this comprehensive Domain and Range Calculator to not just give you the answer, but to teach you the algebraic logic behind every graph—from simple lines to complex rational functions."

The Complete Guide to Finding Domain and Range: Rational, Radical, and Trigonometric Functions

From Algebra to Calculus: How to Use a Domain and Range Calculator for Any Function

In Algebra and Pre-Calculus, finding the Domain and Range of a function is critical for understanding its behavior. A function is like a machine: you put an input ($x$) in, and get an output ($y$) out. But like any machine, it has limitations. Not all inputs work, and not all outputs are possible.

Whether you are struggling with the domain of a rational function (watch out for division by zero!) or determining the range of a quadratic function (find that vertex!), this guide covers it all. Below, we break down specific function types with detailed examples, followed by the rigorous Calculus definitions you'll need for advanced coursework.

1. Understanding Interval Notation (The Basics)

Before we dive into specific functions, you must master Interval Notation. This is the standard language used by every domain and range calculator.

Cheat Sheet: Interval Notation
  • ( ... ) Parentheses: Exclusive. Use for $\infty$ or "holes".
    Example: $(2, \infty)$ means $x > 2$.
  • [ ... ] Brackets: Inclusive. Use for solid dots or valid endpoints.
    Example: $[0, 5]$ means $0 \le x \le 5$.
  • $\cup$ Union Symbol: "And also". Use to skip over gaps.
    Example: $(-\infty, 2) \cup (2, \infty)$ means everything except 2.

2. Master Class: Domain and Range by Function Type

Different functions follow different rules. Here is how to find the domain and range for the most common specific function types you will encounter in exams.

Type A: Rational Functions (Fractions) Division by Zero

To find the domain of a rational function, you must ensure the denominator is never zero. These forbidden points create vertical asymptotes or holes.

$$ f(x) = \frac{x+1}{x-2} $$

Find Domain: Set denominator $\neq 0$.
$x - 2 \neq 0 \implies x \neq 2$.
Domain: $(-\infty, 2) \cup (2, \infty)$.

Find Range: Look for the horizontal asymptote. Since the degrees of the numerator and denominator are equal (both are 1), divide the leading coefficients: $y = 1/1 = 1$.
Range: $(-\infty, 1) \cup (1, \infty)$.

Type B: Square Root (Radical) Functions Non-Negative Rule

When calculating the domain of a square root function, remember that you cannot take the square root of a negative number in the real system.

$$ f(x) = \sqrt{2x - 5} $$

Find Domain: Set the inside expression $\ge 0$.
$2x - 5 \ge 0 \implies 2x \ge 5 \implies x \ge 2.5$.
Domain: $[2.5, \infty)$.

Find Range: A principal square root always outputs non-negative values.
Range: $[0, \infty)$.

Type C: Quadratic Functions (Parabolas) Vertex Formula

The domain and range of a quadratic function depend on its vertex. The domain is always all real numbers, but the range is limited by the minimum or maximum point.

$$ f(x) = x^2 - 4x + 3 $$

Find Domain: Polynomials have no restrictions.
Domain: $(-\infty, \infty)$.

Find Range: Find the vertex $x = -b/(2a) = -(-4)/2 = 2$.
Plug $x=2$ back in: $f(2) = 2^2 - 4(2) + 3 = -1$.
Since the parabola opens UP ($a > 0$), the vertex is a minimum.
Range: $[-1, \infty)$.

Type D: Logarithmic Functions Positive Argument

For the domain of a logarithmic function, the argument must be strictly positive (greater than zero).

$$ f(x) = \ln(x - 3) $$

Find Domain: Argument $> 0$.
$x - 3 > 0 \implies x > 3$.
Domain: $(3, \infty)$.

Find Range: Logarithmic functions grow slowly but cover all possible y-values.
Range: $(-\infty, \infty)$.

Type E: Exponential Functions Horizontal Asymptote

An exponential function domain and range analysis is the inverse of a logarithm. The domain is everything, but the range is restricted by the horizontal asymptote.

$$ f(x) = 3e^x + 1 $$

Find Domain: No restrictions on exponents.
Domain: $(-\infty, \infty)$.

Find Range: The term $e^x$ is always positive ($>0$).
So $3e^x + 1 > 0 + 1 \implies y > 1$.
Range: $(1, \infty)$.

Type F: Trigonometric Functions Oscillation

The trigonometric functions domain and range (specifically Sine and Cosine) are defined by their amplitude (wave height) and vertical shift.

$$ f(x) = 2\sin(x) + 1 $$

Find Domain: Sine is defined everywhere.
Domain: $(-\infty, \infty)$.

Find Range: Standard $\sin(x)$ is between $[-1, 1]$.
Multiply by 2: $[-2, 2]$.
Shift up 1: $[-2+1, 2+1] = [-1, 3]$.
Range: $[-1, 3]$.

4. Advanced Calculus: The Epsilon-Delta Definition

While most online domain calculators focus on algebraic solutions, understanding the rigorous definition of a limit (which underpins domain analysis near holes) is required for advanced math majors. This is known as the $\epsilon-\delta$ (Epsilon-Delta) definition.

Definition:
$\lim_{x \to c} f(x) = L$ means that for every $\epsilon > 0$, there exists a $\delta > 0$ such that:
$$ \text{if } 0 < |x - c| < \delta \text{ then } |f(x) - L| < \epsilon $$

In plain English: To guarantee the function output stays within a target error range ($\epsilon$) of the limit $L$, you must restrict the input $x$ to be within a certain distance ($\delta$) of $c$.

5. Continuity and Types of Discontinuity

Domains are closely linked to continuity. A function is continuous at $c$ if $f(c)$ exists and equals the limit. If a point is excluded from the domain, it creates a discontinuity.

  • Removable Discontinuity (Hole): The limit exists, but $f(c)$ is undefined or different. (e.g., $f(x) = \frac{x^2-4}{x-2}$ at $x=2$).
  • Jump Discontinuity: The Left-Hand Limit $\neq$ Right-Hand Limit. Common in piecewise functions.
  • Infinite Discontinuity: The limit is $\pm\infty$ (Vertical Asymptote, common in rational functions).

6. The Squeeze Theorem (Sandwich Theorem)

Sometimes finding the behavior of a function near a domain boundary is tricky. The Squeeze Theorem helps by bounding a difficult function between two simpler ones.

If $g(x) \le f(x) \le h(x)$ near $c$, and: $$ \lim_{x \to c} g(x) = \lim_{x \to c} h(x) = L $$ Then the limit of the trapped function $f(x)$ must also be $L$. This is famously used to prove limits involving oscillation like $\lim_{x \to 0} x^2 \sin(\frac{1}{x}) = 0$.

7. Professor's FAQ: Common Pitfalls

What is the Vertical Line Test?
The Vertical Line Test is a visual way to check if a graph represents a function. If any vertical line intersects the graph more than once, it is NOT a function (and thus domain/range definitions change). Our domain and range grapher helps you visualize this instantly.
Can the range be all real numbers?
Yes! Odd-degree polynomials (like lines $y=x$ or cubics $y=x^3$) and logarithmic functions usually have a range of $(-\infty, \infty)$. Even-degree functions (like $x^2$) and exponentials usually do not.
How do I find the domain of a composite function?
For a composite function $f(g(x))$, you must first find the domain of the inner function $g(x)$. Then, you must ensure that the outputs of $g(x)$ are within the domain of the outer function $f(x)$. The final domain is the intersection of these conditions.
What is the difference between Codomain and Range?
The Codomain is the set of all *possible* outputs (usually all real numbers), whereas the Range is the set of *actual* outputs the function produces. For example, for $f(x)=x^2$, the codomain is $\mathbb{R}$, but the range is $[0, \infty)$.
How do I handle "holes" in the graph?
If a function simplifies (e.g., $\frac{x^2-4}{x-2} = x+2$), there is a "hole" at the cancelled value ($x=2$). You must exclude this single point from the domain using a union symbol: $(-\infty, 2) \cup (2, \infty)$.

References & Further Reading

  • Stewart, J. (2020). Calculus: Early Transcendentals (9th ed.). Cengage Learning. (Chapter 1: Functions and Models).
  • Larson, R., & Edwards, B. H. (2022). Precalculus with Limits (5th ed.). Cengage Learning. (Section 1.2: Functions).
  • Weisstein, Eric W. "Domain." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/Domain.html

Check Your Homework Instantly

Stop guessing. Use our free Domain and Range Calculator to visualize rational, radical, and quadratic functions, identify asymptotes, and get the exact interval notation for your answers.

Calculate Domain & Range