Domain and range of a function, with examples
How to find the domain and range of a function from its formula or graph: square roots, fractions, parabolas, with interval notation.
Domain: every input x the function accepts. Range: every output y it can produce.
What can break a function
- Dividing by zero. Exclude x-values that make a denominator 0.
- Square root of a negative. The inside of √ must be ≥ 0 (for real numbers).
Examples
- f(x) = √(x − 3): need x − 3 ≥ 0, so domain x ≥ 3, or [3, ∞). The outputs start at 0 and grow, so range y ≥ 0.
- g(x) = 1/(x − 2): x can't be 2, so domain all reals except 2. The output is never 0 (1 divided by something is never 0), so range all reals except 0.
- h(x) = x² − 4: any x works, so the domain is all real numbers. x² is never below 0, so h is never below −4: range y ≥ −4.
From a graph
Domain: how far the graph stretches left to right. Range: how far it stretches bottom to top. An open circle means that endpoint is not included.
In real life
The domain of a real situation is limited by sense too: the number of tickets sold can't be negative or a fraction.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.