Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
PrecalculusPrecalculusHigh school

Domain and Range

Find allowed inputs and possible outputs of a function.

The domain of a function is the set of inputs it accepts; the range is the set of outputs it actually produces. When a function is given by a formula with no stated restriction, the domain is every real number that does not break the formula.

Only a few things break formulas: dividing by zero, taking an even root of a negative number, and taking the logarithm of zero or a negative number. Range is often found from the graph or by solving y=f(x)y = f(x) for xx and asking which yy values give a valid xx.

Key ideas

  • Denominator: exclude values that make it zero.
  • Square root: the inside must be ≥0\ge 0.
  • Logarithm: the inside must be >0> 0.
  • Write answers in interval notation, using round brackets for excluded endpoints.

Worked example

Find the domain of f(x)=x+3x−2f(x) = \frac{\sqrt{x + 3}}{x - 2}.

  1. Root: x+3≥0x + 3 \ge 0, so x≥−3x \ge -3.
  2. Denominator: x≠2x \ne 2.
  3. Combine: x≥−3x \ge -3 and x≠2x \ne 2.
  4. Interval notation: [−3,2)∪(2,∞)[-3, 2) \cup (2, \infty).

Answer: [−3,2)∪(2,∞)[-3, 2) \cup (2, \infty)

Common mistakes

  • Excluding values that make the numerator zero.
  • Using a strict inequality for a square root, which wrongly drops the endpoint.
  • Confusing the range of x2x^2 (all y≥0y \ge 0) with its domain (all reals).

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.What is the smallest xx in the domain of 2x−8\sqrt{2x - 8}?

    Show answer

    44

  2. 2.What value is excluded from the domain of 53x+6\frac{5}{3x + 6}?

    Show answer

    −2-2

  3. 3.What is the minimum value in the range of f(x)=x2+4f(x) = x^2 + 4?

    Show answer

    44

Keep practising

More in Precalculus