Kid-friendly explanation

Imagine a vending machine. The buttons you are allowed to press are like the domain. The snacks that can come out are like the range. In math, the domain is the x-values you are allowed to use, and the range is the y-values you can get.

Worked examples

Example 1 (middle school level): Linear function

Consider the linear function, which is a straight-line function, given by y = 2x + 3.

If this function is used to predict the total cost y (in dollars) for x tickets, and you cannot buy a negative number of tickets, then:

  • The domain is all x-values that make sense: x ≥ 0. In interval notation, this is [0, ∞).
  • When x = 0, y = 2(0) + 3 = 3, so the smallest possible y is 3. As x gets larger, y gets larger without bound.
  • The range is all y-values that can occur: y ≥ 3. In interval notation, this is [3, ∞).

This is an example of a practical domain, which means the domain is limited by the real situation, not just by the algebra.

Example 2 (high school level): Rational function with restrictions

Consider the rational function, which is a function with a variable in the denominator, f(x) = (x + 1) / (x − 2).

  • The denominator x − 2 cannot be 0, because division by 0 is undefined. So x ≠ 2.
  • The domain is all real numbers except 2. In set notation: {x | x is a real number and x ≠ 2}. In interval notation: (−∞, 2) ∪ (2, ∞).

To understand the range, think about what y-values the function can take.

  • Rewrite y = (x + 1) / (x − 2) and solve for x in terms of y:
  • y(x − 2) = x + 1
  • yx − 2y = x + 1
  • yx − x = 2y + 1
  • x(y − 1) = 2y + 1
  • x = (2y + 1) / (y − 1)
  • This expression is undefined when y − 1 = 0, so y ≠ 1.
  • The range is all real numbers except 1. In set notation: {y | y is a real number and y ≠ 1}. In interval notation: (−∞, 1) ∪ (1, ∞).

Here, the excluded x-value (x = 2) creates a vertical asymptote, and the excluded y-value (y = 1) creates a horizontal asymptote. Both are directly related to the domain and range.

Going deeper with domain and range

As your child moves through algebra, domain and range become a standard way to describe and compare functions. For linear functions, the domain is often all real numbers, and the range is also all real numbers, unless the real-world situation limits them.

For quadratic functions, which have U-shaped graphs called parabolas, the domain is usually all real numbers, but the range starts at the vertex (the lowest or highest point) and goes up or down from there. For exponential and logarithmic functions, the domain and range often involve inequalities and interval notation, and sometimes include restrictions like x > 0.

In more advanced work, domain and range are essential when talking about inverse functions. The domain of a function becomes the range of its inverse, and the range of the function becomes the domain of its inverse. Sometimes the domain of a function must be restricted, especially for trigonometric functions, so that an inverse function exists and is itself a function.

Common mistakes with domain and range

  • Mistake: Treating the graph you see as the whole function, even when the context limits it. A student might say the domain of y = 2x + 3 is all real numbers, even if x represents the number of people in a room.
    Correction: Always check the real-world meaning of x and y to find the practical domain and range.
  • Mistake: Forgetting to exclude values that make a denominator 0, such as saying the domain of f(x) = 5 / (x − 4) is all real numbers.
    Correction: For rational functions, find values that make the denominator 0 and remove them from the domain.
  • Mistake: Mixing up domain and range and listing x-values as the range or y-values as the domain. For example, reading a graph and writing the vertical values as the domain.
    Correction: Remember: domain is the set of x-values (inputs), and range is the set of y-values (outputs).

How domain and range show up in everyday life

Domain and range ideas appear whenever a rule connects one quantity to another. If a game score can only be between 0 and 100, that is a range. If a store only sells whole numbers of items, that is a domain made of whole numbers. When a recipe only makes sense for positive amounts of ingredients, that is another example of a restricted domain.

Related terms to explore