What is the difference between domain and range
The domain of a function is the set of all input values (x) for which the function is defined, while the range is the set of all possible output values (y) the function can produce. In symbols, domain = { x | f(x) exists } and range = { f(x) | x in domain }.
Algebra · Functions
The domain tells you which x‑values you are allowed to plug into a formula without breaking mathematical rules such as division by zero, taking an even root of a negative number, or applying a logarithm to a non‑positive argument. The range tells you what y‑values actually appear after the function processes every allowed x. Knowing both sets lets you sketch accurate graphs, solve equations, and avoid illegal operations.
Visualizing Domain and Range
On a Cartesian graph the domain appears as the horizontal stretch of the curve, while the range appears as the vertical stretch. For the parabola f(x)= the curve extends infinitely left and right, so the domain is all real numbers, but it never dips below the x‑axis, giving a range of non‑negative numbers. If a graph stops at a vertical line, that line marks the boundary of the domain; if it stops at a horizontal line, that marks the boundary of the range.
Remember these facts:
- Domain is read left‑to‑right on the x‑axis.
- Range is read bottom‑to‑top on the y‑axis.
- Vertical‑line test checks if a relation is a function, horizontal‑line test checks the range.
- Endpoints may be included or excluded depending on inequalities.
To determine domain and range:
- 1Identify any restrictions on x such as division by zero, even roots, or logarithms.
- 2Solve the restrictions and write the domain in interval notation.
- 3Sketch or analyze the graph to locate the smallest and largest y‑values.
- 4Write the range in interval notation, noting open or closed ends.
Example: f(x)=. Step 1: the square‑root requires its argument to be non‑negative, so x-2\ge0, giving x\ge2. Thus the domain is [2,\infty). Step 2: for every x in the domain, the output is a non‑negative square root, so y\ge0. The smallest output occurs at x=2, where y=0, and y grows without bound as x increases. Therefore the range is [0,\infty). This concrete walk‑through shows how the domain and range are derived from the same expression but are not identical.
Domain and range for common functions:
| Function | Domain | Range |
|---|---|---|
| f(x)= | (-,\infty) | [0,\infty) |
| g(x)=1/x | (-,0)(0,\infty) | (-,\infty) |
| h(x)= | [2,\infty) | [0,\infty) |
Check yourself
If f(x)=, what is the correct range?
Get this as a lesson built for you
Describe what you are studying and Lernex writes the lesson and the questions around it. Free, and it takes about a minute.
Try itNo account needed to try it.
What people ask next
- how do I find the domain of a rational function
- why is the range of a quadratic not all real numbersAsk
- can a function have an empty domainAsk
- how to find the inverse of a function
- why does the horizontal line test tell you a function has an inverse
- what is an extraneous solution and why does it happen
- why can't you divide by zero
