FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Graphs & Functions
Graphs & Functions

Domain and Range of a Function: How to Find Them

What domain and range mean, the two restrictions that cause almost every limited domain (dividing by zero and square roots of negatives), and how to read both from a graph.

3 min read Supports 4 lessons
In short

The domain of a function is the set of inputs it accepts. The range is the set of outputs it actually produces.

Every function has two lists attached. The domain lists every input you are allowed to use. The range lists every output that actually comes out.

For f(x)=2x+1f(x) = 2x + 1f(x)=2x+1, any number can go in and any number can come out, so both are all real numbers. Many functions are pickier.

The two usual restrictions

Usual restrictions
1x−a:  x≠ax−a:  x≥a\frac{1}{x - a}:\; x \neq a \qquad\qquad \sqrt{x - a}:\; x \ge ax−a1​:x=ax−a​:x≥a

You cannot divide by zero, and you cannot take the square root of a negative number.

Worked example

Find the domain of f(x)=3x+4f(x) = \dfrac{3}{x + 4}f(x)=x+43​.

  1. 1

    The denominator cannot be zero: x+4≠0x + 4 \neq 0x+4=0.

Worked example

Find the domain of g(x)=x−1g(x) = \sqrt{x - 1}g(x)=x−1​.

  1. 1

    The inside of the root must not be negative: x−1≥0x - 1 \ge 0x−1≥0.

Reading them from a graph

On a graph, the domain is how far the curve stretches left to right. The range is how far it stretches up and down. Imagine squashing the graph flat onto each axis: the shadow on the xxx-axis is the domain, and the shadow on the yyy-axis is the range.

Domain x≥1x \ge 1x≥1; range y≥0y \ge 0y≥0.

Finding the range

The range is usually harder. Think about what outputs are possible. A square is never negative, so x2x^2x2 has range y≥0y \ge 0y≥0. Adding 333 shifts every output up, so x2+3x^2 + 3x2+3 has range y≥3y \ge 3y≥3.

  1. f(x)=(x−2)2−5f(x) = (x - 2)^2 - 5f(x)=(x−2)2−5

    Find the range.

1/4

Domains from real life

Context can limit a domain too. If A(r)=πr2A(r) = \pi r^2A(r)=πr2 is the area of a circle, negative radii make no sense, so the domain is r≥0r \ge 0r≥0 even though the formula would accept anything.

Tip

Write domains and ranges in interval notation: "all reals except −4-4−4" is (−∞,−4)∪(−4,∞)(-\infty, -4) \cup (-4, \infty)(−∞,−4)∪(−4,∞).

Watch out

Do not confuse the two. The domain is about xxx (inputs); the range is about yyy (outputs).

Common questions

How do you find the domain of a function?

Start with all real numbers, then remove any input that would divide by zero or take an even root of a negative number. Also consider any limits the real situation imposes.

What is the range of a function?

It is the set of all outputs the function actually produces. For f(x)=x2f(x) = x^2f(x)=x2 the range is y≥0y \ge 0y≥0, since a square is never negative.

Practise domain and range

The Domain & Range lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. The two usual restrictions
  2. Reading them from a graph
  3. Finding the range
  4. Domains from real life
  5. Common questions
Lessons on this
  • Domain & RangeFunctions
  • What Is a Function?Functions
  • Compound Inequalities & Interval NotationAlgebra Foundations
  • Rational Functions & AsymptotesPolynomials, Quadratics & Rational Functions
Related reading9
Ideas this article builds on or leads to.
  • Graphs & Functions
    What Is a Function? Inputs, Outputs, f(x) and the Vertical Line Test

    A function is a rule that gives exactly one output for each input. Writing f(x)f(x)f(x) means "the output of the function fff when the input is xxx".

  • Algebra
    Interval Notation Explained: Brackets, Infinity and Unions

    Interval notation writes a range of numbers using its endpoints: a square bracket includes an endpoint and a round bracket excludes it. So −2<x≤5-2 < x \le 5−2<x≤5 is written (−2,5](-2, 5](−2,5].

  • Polynomials & Quadratics
    Rational Functions: Asymptotes, Holes and Algebraic Fractions

    A rational function is one polynomial divided by another, like f(x)=1x−2f(x) = \frac{1}{x - 2}f(x)=x−21​. Its graph can have asymptotes, lines it approaches but never reaches, and holes, single missing points.

  • Powers & Roots
    Square Roots and Surds: Simplifying Radicals Step by Step

    The square root n\sqrt{n}n​ is the non-negative number that squares to nnn: 49=7\sqrt{49} = 749​=7. A root that cannot be written as a whole number or fraction, like 2\sqrt{2}2​, is called a surd (or radical).

  • Number & Arithmetic
    Negative Numbers: Adding, Subtracting, Multiplying and Dividing

    Negative numbers are numbers less than zero, written with a minus sign and placed to the left of zero on the number line. Together with zero and the positive whole numbers they form the integers.

  • Fractions, Decimals & Percentages
    What Is a Fraction? Numerators, Denominators and Mixed Numbers

    A fraction ab\frac{a}{b}ba​ means aaa parts of a whole that has been cut into bbb equal parts. The bottom number is the denominator; the top is the numerator.

  • Ready for Calculus
    What Is a Limit in Maths? Limits Explained for Beginners

    A limit describes the value a function approaches as its input gets closer and closer to some number, whether or not the function is defined there. We write lim⁡x→af(x)=L\lim_{x \to a} f(x) = Llimx→a​f(x)=L.

  • Geometry
    Area and Perimeter: Formulas for Rectangles, Triangles and Trapeziums

    Perimeter is the distance around the edge of a shape, measured in units. Area is the amount of surface it covers, measured in square units.

  • Geometry
    Circles and Pi: Circumference and Area of a Circle

    For every circle, the circumference divided by the diameter is the same number, pi (π≈3.14159\pi \approx 3.14159π≈3.14159). So the circumference is C=2πrC = 2\pi rC=2πr and the area is A=πr2A = \pi r^2A=πr2.