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.
- → Setting gives
- Domain: or
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).
- → Set , so
- Domain: or
Logarithms. The argument of any logarithm (the expression inside) must be strictly positive.
- → Set , so
- Domain: or
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 or interval notation like . Parentheses mean the endpoint is excluded; brackets mean it's included.

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:
- Identify each piece and the interval where it applies.
- Find the domain of each piece by looking at its interval and any algebraic restrictions within that piece.
- Combine the intervals to get the overall domain. Check for gaps or overlaps.
Consider this example:
- The first piece, , covers .
- The second piece, , covers .
- Together, the domain is 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 ( or ) and an open circle (○) if it's excluded ( or ).
- In the example above, the point at gets an open circle on the parabola and a closed circle on the line, since the second piece uses .
To find the range of a piecewise function, look at the output values each piece produces over its interval, then combine them.

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 .
- Domain: because miles driven can't be negative.
- Range: because the minimum cost is the $50 base fee (when ).
Example 2: Garden dimensions. A rectangular garden has a fixed perimeter of 60 feet. If the width is , then the length is .
- Domain: because the width must be positive and less than 30 (otherwise the length would be zero or negative).
- Range: 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 , the domain is limited to inputs where is defined and where falls within the domain of .
- Inverse functions reverse the input-output relationship. If , then . The domain of becomes the range of , 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.