Domain and Range Finder

Lists the restrictions in a formula, gives the domain and range in interval and set-builder notation, finds asymptotes and shades the domain on a graph.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Type the function

    Enter f(x), for example (x + 1)/(x - 1), or press an example.

  2. 2
    Read the results

    The boxes show the domain, the range and the domain in set-builder form.

  3. 3
    Read the reasoning

    The steps list each restriction, then the domain, range and asymptotes.

  4. 4
    Check the graph

    The green strip marks the domain; dashed lines are asymptotes.

  5. 5
    Practise

    Practice asks for the domain or the range of new functions.

  6. 6
    Save or print

    Save keeps the function; Print / PDF gives the reasoning.

เกี่ยวกับเครื่องมือนี้

The domain of a function is the set of inputs it accepts and the range is the set of outputs it can produce. Finding the domain is mostly a search for trouble spots: a denominator that could be zero, an even root of a negative number, a logarithm of zero or a negative, or an inverse sine of a number bigger than 1. This tool reads the formula, lists every such restriction in plain words, and solves them to give the domain in interval notation and in set-builder form. The range is harder because it depends on how the function behaves, so the tool follows the outputs across the whole domain, checks what happens near excluded points and as x grows without bound, and decides whether each end value is reached (a square bracket) or only approached (a round bracket). Vertical and horizontal asymptotes are reported, and the graph shades the domain on the x-axis so the answer can be seen as well as read.

The four common restrictions

A fraction cannot have a zero denominator, so 1/(x - 2) excludes x = 2. An even root needs a non-negative inside, so √(x - 3) needs x ≥ 3, and a root in a denominator needs a strictly positive inside. A logarithm needs a positive argument, so ln(x + 1) needs x > -1. Inverse sine and cosine need an input between -1 and 1. Polynomials, exponentials, sine and cosine have no restriction at all.

Interval notation

Square brackets include the end value and round brackets exclude it; infinity always takes a round bracket. Pieces are joined with the union sign ∪. So all real numbers except 2 is (-∞, 2) ∪ (2, ∞), and x ≥ 3 is [3, ∞).

Finding the range

For simple functions you can reason directly: x² + 1 is never below 1 and reaches 1 at x = 0, so the range is [1, ∞). For a rational function, a horizontal asymptote marks a value the outputs approach but may never reach, as with (x + 1)/(x - 1), which never equals 1. The tool combines the smallest and largest outputs on each part of the domain with these limits.

Worked example

f(x) = (x + 1)/(x - 1). The denominator is zero at x = 1, so the domain is (-∞, 1) ∪ (1, ∞). As x → ±∞ the function approaches 1, and solving y = (x + 1)/(x - 1) for x gives x = (y + 1)/(y - 1), which fails only at y = 1. So the range is (-∞, 1) ∪ (1, ∞), with a vertical asymptote x = 1 and a horizontal asymptote y = 1.

Limits

The domain is searched numerically between -50 and 50 and the behaviour beyond that is estimated from very large inputs, so unusual functions can mislead it. End values are rounded to six decimals and shown as fractions or multiples of π when they match. Functions of several variables and implicit relations are not handled. Treat the result as a check on your own reasoning, not a replacement for it.

ตัวอย่างพร้อมวิธีทำ

(x + 1)/(x - 1): domain (-∞, 1) ∪ (1, ∞), range (-∞, 1) ∪ (1, ∞); asymptotes x = 1 and y = 1.

สรุปสั้น ๆ

คำถามที่พบบ่อย

What is the difference between domain and range?

The domain is every input x the formula allows; the range is every output y the function actually produces for those inputs.

How does the tool find restrictions?

It looks for denominators, even roots, logarithms, inverse sine and cosine, and tangent, and states the condition each one needs.

Why is the range of 1/x not all real numbers?

1/x can be any number except 0, because no input gives exactly 0. That missing value is the horizontal asymptote y = 0.

When do I use a square bracket?

When the end value is included, such as 3 in [3, ∞) for √(x - 3). Infinity and excluded values take round brackets.

What do the dashed lines on the graph mean?

Red dashed lines are vertical asymptotes where the function is undefined; orange dashed lines are horizontal asymptotes it approaches.

Can I practise?

Yes. Practice asks for domains and ranges of common functions; type intervals such as [3,inf) or (-inf,2)U(2,inf).

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา