How to Find the Domain and Range of a Function, Step by Step
A student guide to domain and range: spot restrictions in a formula, write answers in interval notation and pin down the range with an inverse check.

How to Find the Domain and Range of a Function, Step by Step
Domain and range questions look short on an exam paper, yet they cost students marks every year, usually through a missed restriction, a wrong bracket or a range copied from the domain. This guide gives you a routine you can apply to almost any function you meet before calculus, works through three examples in full, and then shows how to confirm your answers.
What the two words mean
Think of a function as a machine. The domain is the set of x values you are allowed to feed into it without breaking anything. The range is the set of y values that actually come out. The domain is about the formula; the range is about the behaviour of the outputs. That difference is why the domain is normally the easier half.
Step 1: hunt for trouble spots
Read the formula from left to right and ask four questions.
- Is there a fraction? Its denominator must not equal zero.
- Is there a square root (or any even root)? Its inside must be zero or more. If the root sits in a denominator, the inside must be strictly positive.
- Is there a logarithm? Its argument must be greater than zero.
- Is there an inverse sine or inverse cosine? Its input must lie from -1 to 1.
Each yes gives you an inequality or an exclusion. Solve them all and keep only the x values that pass every test. If nothing on the list appears, as with polynomials, exponentials, sin and cos, the domain is every real number.
Step 2: write the domain in interval notation
Use a square bracket when an end value is included and a round bracket when it is left out. Infinity never gets a square bracket, because it is not a number you can reach. Gaps are stitched together with the union symbol, which you can type as U. So "every real number except -4" becomes (-inf, -4) U (-4, inf).
Step 3: work out the range
For the range, picture the graph or reason about outputs. Three tactics cover most school questions:
- Find the smallest or largest value. A square is never negative, a square root is never negative, and a positive number to a power stays positive.
- Look for horizontal asymptotes. A rational function often approaches a value it never reaches.
- Rearrange y = f(x) to make x the subject. Any y value that breaks the rearranged formula is missing from the range.
Worked example 1: a rational function
Take f(x) = (2x - 3)/(x + 4).
Domain: the denominator is zero at x = -4, so the domain is (-inf, -4) U (-4, inf).
Range: write y = (2x - 3)/(x + 4) and multiply up: y(x + 4) = 2x - 3. Collect the x terms: xy - 2x = -3 - 4y, so x(y - 2) = -3 - 4y and x = (-3 - 4y)/(y - 2). This fails only when y = 2. The range is therefore (-inf, 2) U (2, inf), and y = 2 is the horizontal asymptote, matching the ratio of the leading coefficients 2/1. The vertical asymptote is x = -4.
Quick check: f(0) = -3/4, which is not 2, so nothing contradicts the answer.
Worked example 2: a shifted root
g(x) = √(x + 5) - 1. The inside needs x + 5 ≥ 0, so x ≥ -5 and the domain is [-5, inf). The root itself starts at 0 when x = -5 and grows without limit, so after subtracting 1 the outputs start at -1. The range is [-1, inf), with a square bracket because the value -1 is actually produced.
Worked example 3: a logarithm
h(x) = ln(6 - 2x). The argument must be positive: 6 - 2x > 0 gives x < 3, so the domain is (-inf, 3). A logarithm can produce every real number as its argument runs from tiny positive values to huge ones, so the range is all real numbers, (-inf, inf).
Common mistakes
- Writing [3, inf) for a logarithm that needs x > 3. Logs need strictly positive inputs, so the bracket must be round.
- Treating the range as the same as the domain. They match in example 1 only by shape, not by value.
- Forgetting a root in the denominator, which turns "greater than or equal to" into "greater than".
- Using a square bracket next to infinity.
Checking your answer
Pick a value just inside each end of your domain and make sure the formula works, then pick one just outside and make sure it breaks. For the range, sketch or plot the graph and look along the y-axis: every height the curve touches should be in your answer, and every missing height should be excluded.
Doing it with the tool
The Domain and Range Finder automates this routine. Type the formula, for example (2x - 3)/(x + 4), and the result boxes show the domain, the range and the set-builder version. Below them the reasoning lists each restriction it found in words, so you can compare it with your own list. The graph shades the allowed x values and marks asymptotes with dashed lines. When you feel confident, open Practice, which asks for intervals typed as text such as [-5,inf).
Limits
The finder searches a fixed window numerically and estimates behaviour far away, so a strange function could fool it. It does not handle functions of two variables or relations that are not written as y = f(x). Rounded end values may hide an exact fraction you are expected to give. It is a study aid for checking your reasoning, not a substitute for writing the restrictions out yourself.


