Fiveable

📈College Algebra Unit 3 Review

QR code for College Algebra practice questions

3.2 Domain and Range

3.2 Domain and Range

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📈College Algebra
Unit & Topic Study Guides

Domain and Range of Functions

The domain of a function is the set of all inputs you can plug in. The range is the set of all outputs the function can produce. Knowing how to find both is essential for graphing, solving equations, and working with functions in applied problems.

Domain Restrictions on Functions

The domain of a function includes every real number unless something in the function's structure forces you to exclude certain values. There are three main situations that create restrictions.

Division by zero. If a function has a variable in the denominator, any input that makes the denominator equal zero must be excluded.

  • f(x)=1x2f(x) = \frac{1}{x - 2} → Setting x2=0x - 2 = 0 gives x=2x = 2
  • Domain: {xx2}\{x \mid x \neq 2\} or (,2)(2,)(-\infty, 2) \cup (2, \infty)

Even roots. Square roots, fourth roots, and other even roots require the expression underneath to be greater than or equal to zero (you can't take the square root of a negative number in the reals).

  • f(x)=x+1f(x) = \sqrt{x + 1} → Set x+10x + 1 \geq 0, so x1x \geq -1
  • Domain: {xx1}\{x \mid x \geq -1\} or [1,)[-1, \infty)

Logarithms. The argument of any logarithm (the expression inside) must be strictly positive.

  • f(x)=ln(x3)f(x) = \ln(x - 3) → Set x3>0x - 3 > 0, so x>3x > 3
  • Domain: {xx>3}\{x \mid x > 3\} or (3,)(3, \infty)

When a function combines more than one of these features, find each restriction separately, then take the intersection of the allowed values.

You can express domains using set-builder notation like {xxR}\{x \mid x \in \mathbb{R}\} or interval notation like (,)(-\infty, \infty). Parentheses mean the endpoint is excluded; brackets mean it's included.

Domain restrictions on functions, Domain Restrictions | Intermediate Algebra

Analysis of Piecewise Functions

A piecewise function is built from two or more sub-functions, each applying on a different interval of the domain. Here's how to work with them:

  1. Identify each piece and the interval where it applies.
  2. Find the domain of each piece by looking at its interval and any algebraic restrictions within that piece.
  3. Combine the intervals to get the overall domain. Check for gaps or overlaps.

Consider this example:

f(x)={x2if x<12x1if x1f(x) = \begin{cases} x^2 & \text{if } x < 1 \\ 2x - 1 & \text{if } x \geq 1 \end{cases}

  • The first piece, x2x^2, covers (,1)(-\infty, 1).
  • The second piece, 2x12x - 1, covers [1,)[1, \infty).
  • Together, the domain is (,)(-\infty, \infty) with no gaps.

Graphing tips:

  • Graph each sub-function only within its stated interval.
  • At boundary points, use a closed circle (●) if the endpoint is included (\leq or \geq) and an open circle (○) if it's excluded (<< or >>).
  • In the example above, the point at x=1x = 1 gets an open circle on the parabola and a closed circle on the line, since the second piece uses \geq.

To find the range of a piecewise function, look at the output values each piece produces over its interval, then combine them.

Domain restrictions on functions, Domain and Its Effect on Vertical Asymptotes | College Algebra Corequisite

Real-World Applications of Domain and Range

In applied problems, the context itself often restricts the domain and range to values that make physical sense.

Example 1: Car rental cost. A company charges a $50 base fee plus $0.25 per mile driven. The cost function is C(m)=50+0.25mC(m) = 50 + 0.25m.

  • Domain: [0,)[0, \infty) because miles driven can't be negative.
  • Range: [50,)[50, \infty) because the minimum cost is the $50 base fee (when m=0m = 0).

Example 2: Garden dimensions. A rectangular garden has a fixed perimeter of 60 feet. If the width is ww, then the length is 602w2=30w\frac{60 - 2w}{2} = 30 - w.

  • Domain: (0,30)(0, 30) because the width must be positive and less than 30 (otherwise the length would be zero or negative).
  • Range: (0,30)(0, 30) for the same reason, since length and width are symmetric here.

Notice how both examples use interval notation. In context problems, always ask: What input values are physically meaningful? and What output values can the function actually produce?

Advanced Function Concepts

These ideas build directly on domain and range and will come up in later sections:

  • Function composition combines two functions by using the output of one as the input of the other. Written f(g(x))f(g(x)), the domain is limited to inputs where g(x)g(x) is defined and where g(x)g(x) falls within the domain of ff.
  • Inverse functions reverse the input-output relationship. If f(a)=bf(a) = b, then f1(b)=af^{-1}(b) = a. The domain of ff becomes the range of f1f^{-1}, and vice versa.
  • One-to-one functions pass the horizontal line test: every output corresponds to exactly one input. Only one-to-one functions have inverses that are also functions.