CalcHub

Free calculator tools. Fast, simple, no sign up.

Domain and Range of a Function: Algebraic Rules and Graph Examples

The domain of a function is the set of input values it accepts, and the range is the set of output values it can produce. Finding them is mostly a...

The domain of a function is the set of input values it accepts, and the range is the set of output values it can produce. Finding them is mostly a matter of spotting what is banned.

How it works

Three things ban inputs. You cannot divide by zero, so in f(x) = 1 over (x - 2), x cannot be 2. You cannot take the square root of a negative number, so in f(x) = the square root of (x - 2), x must be at least 2. And a logarithm needs a positive input. For a plain polynomial like f(x) = x squared + 1, every real number is allowed, so the domain is all real numbers, and the range is y >= 1, because x squared is never negative.

Graphs help: the domain is how far the graph stretches left and right, and the range is how far it stretches up and down. Interval notation writes these compactly: [2, infinity) means 2 up to endless, with 2 included.

Worked example

F(x) = the square root of (x - 2). The inside must be 0 or more, so x >= 2, which is the domain. The square root is never negative, so the range is y >= 0.

Common mistakes

The most common error is forgetting the range. After finding the domain, always ask what outputs are possible.

Try it yourself

Find the domain of g(x) = 1 over (x + 3). (Answer: all real numbers except x = -3.)

Putting it together

This topic connects to the guides around it. The same steps appear again in harder problems, so a solid grasp here saves time later. When you meet this idea inside a longer question, pause and name it before you start. That pause keeps the method clear and stops small slips from turning into wrong answers. A calculator can check your arithmetic, but only understanding can check your method.

A question to ask yourself

What if the numbers change? The method stays the same, so try the practice question with different numbers and check that the steps still work. That is how you know you have learned the method rather than memorised one answer.