9.4: The Domain and Range of a Function
- Page ID
- 174216
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Videos
Lecture: A Detailed Overview of the Concept of Domain
Lecture: Domains of Graphs of Functions
Example: Finding the Domain and Range of a Given Graph
Examples: Finding the Domain of a Rational Function
Example #1
Example #2
Example: The General Idea of How to Determine the Domain of a Radical Function
Example: Finding the Domain of a Function that is a Ratio of Square Roots
Definitions and Theorems
The domain of a function \(f\) is the set of all input values \(x\) for which \(f(x)\) is defined.
The range (or image) of a function \(f\) is the set of all output values the function attains—that is, the set of all values \(f(x)\) as \(x\) varies over the domain.
The domain of the function \( y = f(x) \) is the set of all values of \( x \) for which the function is defined and can be evaluated. The range of the function is the set of all outputs of the function corresponding to the values of \( x \) in the domain.
Throughout the Codex, range means the set of output values a function actually attains. Some sources reserve the word for a larger set of allowable outputs; read it here only in the sense given above.
When a function is specified only by a formula, with no domain stated, its natural domain (or implied domain) is the set of all real numbers for which the formula produces a real-number output.
Let \(f\) be a real-valued function graphed in the Cartesian plane. The domain of \(f\) is the set of all \(x\)-coordinates of points on the graph—the projection of the graph onto the \(x\)-axis. The range of \(f\) is the set of all \(y\)-coordinates of points on the graph—the projection of the graph onto the \(y\)-axis.
To determine the natural domain of a real-valued function given by a formula, exclude every input that produces division by zero in a denominator, and every input that produces a negative number beneath a radical of even index. Every remaining real number belongs to the natural domain.
When a formula carries more than one restriction, the natural domain is the set of inputs that satisfy every restriction at once; take the intersection of the individual requirements. In particular, an even radical that appears in a denominator must have a strictly positive radicand, since the expression can be neither negative (undefined) nor zero (division by zero).
Examples
Find the domain of \(f(x)=2x^2-3x+1\).
- Solution
- The formula is a polynomial: it contains no denominator and no radical, so no input can produce division by zero or an even root of a negative number. Every real number yields a real output. The domain is \(\mathbb{R}\), written in interval notation as \((-\infty,\infty)\).
Find the domain of \(f(x)=\dfrac{2x-1}{x^2-x-6}\).
- Solution
-
Only division by zero can restrict the domain, so locate the inputs that make the denominator zero. Factoring the denominator,\[x^2-x-6=(x-3)(x+2).\nonumber\]The denominator is zero at \(x=3\) and \(x=-2\), so both values are excluded; every other real number is permitted. The domain is\[(-\infty,-2)\cup(-2,3)\cup(3,\infty).\nonumber\]
Find the domain of \(f(x)=\sqrt{2x-8}\).
- Solution
-
The radical has even index, so its radicand must be nonnegative:\[2x-8\geq 0.\nonumber\]Solving gives \(x\geq 4\). The domain is \([4,\infty)\).
Find the domain of \(f(x)=\dfrac{\sqrt{x+5}}{x-2}\).
- Solution
-
Two restrictions apply. The even radical requires a nonnegative radicand,\[x+5\geq 0,\nonumber\]so \(x\geq -5\). The denominator requires \(x-2\neq 0\), so \(x\neq 2\). Take the intersection: begin with \([-5,\infty)\) and remove the single value \(x=2\), which lies inside that interval. The domain is\[[-5,2)\cup(2,\infty).\nonumber\]
Find the range of \(f(x)=3-(x-1)^2\).
- Solution
-
For every real \(x\), the square \((x-1)^2\) is nonnegative, so \((x-1)^2\geq 0\). Multiplying by \(-1\) reverses the inequality, giving \(-(x-1)^2\leq 0\), and adding \(3\) yields\[f(x)=3-(x-1)^2\leq 3.\nonumber\]The value \(3\) is attained at \(x=1\), and \(f(x)\) decreases without bound as \(x\) moves away from \(1\). Hence the outputs fill every value up to and including \(3\), and the range is \((-\infty,3]\).
The graph of a function \(f\) is shown in Figure \(\PageIndex{1}\). Determine the domain and range of \(f\).
- Solution
-
Project the graph onto the \(x\)-axis. The curve spans horizontally from \(x=-2\) to \(x=2\), and both endpoints are included, so the domain is \([-2,2]\).
Project the graph onto the \(y\)-axis. The outputs run from \(y=0\) at the two endpoints up to \(y=2\) at the top of the curve, with every value in between attained, so the range is \([0,2]\).
MyOpenMath Practice
Sources
Several parts of this text use modifications from the following sources:
- Wikipedia article: "Domain of a function"
- Wikipedia article: "Range of a function"
All of these sources are released under the Creative Commons Attribution-Share-Alike License 4.0.


