Kahibaro
Discord Login Register

Domain and range

In the broader chapter on function analysis, you already met the idea of a function as a rule pairing each input with exactly one output. In this chapter we focus on two central descriptors of a function:

These ideas turn up constantly throughout precalculus and calculus, so it is worth learning how to think about them carefully and how to determine them from different kinds of information (formulas, graphs, and context).

Domain: What Inputs Are Allowed

The domain of a function is the set of all input values $x$ for which the function’s rule actually makes sense (in the mathematical or real-world context).

A function may be presented:

The idea of domain is the same in all cases: which $x$ are allowed?

Domain from a formula: common restrictions

When a function is given by a formula, you often start by thinking “all real numbers” and then exclude any values that cause problems.

Typical reasons an $x$ is not allowed in real-valued functions:

  1. Division by zero

Expressions like $\dfrac{1}{x-3}$ are undefined when the denominator is zero.

Using interval notation:
$$
(-\infty, 3) \cup (3, \infty).
$$

  1. Even roots of negative numbers

In real-valued functions, $\sqrt{\text{(negative number)}}$ is not allowed.

(Odd roots, like $\sqrt[3]{x}$, do not have this restriction in the reals.)

  1. Logarithms

For real logarithms (like $\ln x$ or $\log_{10} x$), the argument must be strictly positive.

  1. Piecewise definitions

Some functions specify their own domain piece by piece.

  1. Application-based restrictions

In many real-world settings, the domain is restricted by the meaning of the variables, even if the formula itself would work for all real $x$.

When reading a problem, pay close attention to whether the domain is:

Domain from a graph

For a function shown by a graph in the $xy$-plane, the domain is the set of all $x$-coordinates where the graph has a point.

To find it:

Typical visual cues:

Examples (described verbally):

  1. A segment from $x = -2$ to $x = 3$ including both endpoints:
    Domain: $[-2, 3]$.
  2. A curve starting with an open circle at $x = -1$ and extending to the right forever:
    Domain: $(-1, \infty)$.
  3. Two separate pieces: one from $x \le -2$ and another from $x > 1$:
    Domain: $(-\infty, -2] \cup (1, \infty)$.

Stated domains and implicit domains

Sometimes a function is defined with an explicit domain, even if algebra would allow more values.

Whenever the domain is explicitly given, that is the domain you must use, even if the formula itself would work on a bigger set.

Range: What Outputs Actually Occur

The range of a function is the set of all values $f(x)$ produced when $x$ runs over the domain.

The range depends on the domain. Changing the domain usually changes the range.

Range from a simple formula

Sometimes you can reason about the outputs by understanding how the formula behaves.

  1. Linear functions $f(x) = mx + b$, $m \ne 0$

For domain $(-\infty, \infty)$, a nonconstant linear function can produce all real numbers as outputs.

But if you restrict the domain, the range may no longer be all real numbers.

  1. Squares and even powers
    • Example: $f(x) = x^2$ with domain all real numbers.
      Any square is $\ge 0$, and for any $y \ge 0$ we can find $x = \pm \sqrt{y}$ so that $x^2 = y$.
      Range: $[0,\infty)$.
    • Example: $g(x) = x^2$ with domain $[0,\infty)$.
      Negative outputs are still impossible. Every nonnegative $y$ still has at least one $x \ge 0$ with $x^2 = y$.
      Range: $[0,\infty)$ again.
    • Example: $h(x) = x^2$ with domain $[-1,2]$.
      Compute $h(-1) = 1$, $h(0) = 0$, $h(2) = 4$.
      The lowest output is
    • $ (at $x=0$), the highest is $ (at $x=2$).
      Range: $[0,4]$.
  2. Square root functions
    • Example: $f(x) = \sqrt{x}$ with domain $[0,\infty)$.
      The square root is never negative, and can be arbitrarily large as $x$ grows.
      Range: $[0,\infty)$.
    • Example: $g(x) = \sqrt{4 - x}$ with domain $(-\infty, 4]$.
      The largest value of -x$ occurs when $x$ is as small as possible. As $x \to -\infty$, -x \to \infty$, so $g(x)$ can be arbitrarily large.
      Also, when $x=4$, $g(4)=0$.
      Range: $[0,\infty)$.
  3. Rational functions

Finding the range of rational functions like $\dfrac{1}{x}$ or $\dfrac{x+1}{x-2}$ often involves more subtle reasoning.

Algebraic method for finding range

Sometimes you can find the range by solving $y = f(x)$ for $x$ in terms of $y$, and then seeing which $y$ produce valid $x$ in the domain.

Example: $f(x) = x^2 + 4$, domain all real.

  1. Start with $y = x^2 + 4$.
  2. Solve for $x$:
    $$
    x^2 = y - 4.
    $$
  3. For real $x$, we need $y - 4 \ge 0 \Rightarrow y \ge 4$.

So the range is $[4, \infty)$.

This technique is especially useful when dealing with quadratic or rational functions whose graphs you understand only partially.

Range from a graph

To find the range of a graphed function:

As with domain:

Examples (described verbally):

  1. A continuous curve from $(0,1)$ to $(4,5)$, including endpoints:
    Domain: $[0,4]$.
    Range: $[1,5]$.
  2. A horizontal line at $y = -2$ for all $x$:
    Domain: $(-\infty,\infty)$.
    Range: $\{-2\}$ (a single value).
  3. A graph consisting of only three solid points: $(1,2)$, $(2,4)$, $(3,1)$.
    Domain: $\{1, 2, 3\}$.
    Range: $\{2, 4, 1\}$.

The role of the domain in determining the range

The same formula can give very different ranges depending on the domain.

Any time you are asked for the range, check the domain first.

Interval Notation and Set Notation

In precalculus, domains and ranges are usually written as subsets of the real numbers using interval notation or set-builder descriptions.

Interval notation

Set-builder notation

Sometimes you want to emphasize the condition on the variable:

Both interval notation and set-builder notation describe the same sets in different styles.

Typical Patterns for Common Function Types

Certain standard forms have “typical” domains and ranges (for real-valued functions):

Recognizing these patterns can speed up your reasoning about domain and range, especially in more complex problems later in the course.

Summary

Getting comfortable with domain and range prepares you for deeper questions about functions, such as invertibility and function composition, which are treated in other chapters.

Views: 12

Comments

Please login to add a comment.

Don't have an account? Register now!