Sub topic 2
Domain and Range: Which Inputs Work and Which Outputs Appear
Assume you can solve linear and quadratic equations and inequalities, read the coordinate plane, and use absolute value. These skills help you identify which values a function accepts and which values it produces.
Domain and range
The domain of a function is the set of allowed input values, usually called \(x\). The range is the set of output values, usually written \(f(x)\) or \(y\).
For a function \(f(x)=x^2\):
- The domain is all real numbers because every real number can be squared.
- The range is \(y\geq 0\) because a square cannot be negative.
In interval notation:
- All real numbers: \((-\infty,\infty)\)
- \(x\geq 2\): \([2,\infty)\)
- \(x>2\): \((2,\infty)\)
- \(1\leq x<4\): \([1,4)\)
A square bracket includes an endpoint. A round bracket excludes it. Infinity always uses a round bracket.
Finding the domain from a formula
Start with all real numbers, then remove values that make the formula undefined.
| Expression | Restriction | Reason |
|---|---|---|
| \(\frac{1}{x-3}\) | \(x\neq 3\) | A denominator cannot be zero |
| \(\sqrt{x+2}\) | \(x\geq -2\) | A real square root needs a non-negative radicand |
| \(\log(x-5)\) | \(x>5\) | A logarithm requires a positive argument |
For example, consider
\[ f(x)=\frac{\sqrt{x+1}}{x-2}. \]
The square root requires \(x+1\geq 0\), so \(x\geq -1\). The denominator requires \(x\neq 2\). Therefore,
\[ \text{Domain}=[-1,2)\cup(2,\infty). \]
Do not remove \(x=-1\). The square root is defined there, and the denominator is not zero.
Finding the range
To find the range, ask which output values are possible after applying every allowed input.
For \(f(x)=x^2-6x+5\), complete the square:
\[ f(x)=(x-3)^2-4. \]
Since \((x-3)^2\geq 0\), the smallest output is \(-4\), reached when \(x=3\). Thus,
\[ \text{Range}=[-4,\infty). \]
For a restricted domain, check only the allowed inputs. If \(f(x)=x^2\) with \(1\leq x\leq 4\), then the range is \([1,16]\).
Reading domain and range from a graph
The domain is the graph's horizontal extent. Imagine shining a light vertically onto the graph. Every \(x\)-coordinate touched by the graph belongs to the domain.
The range is the graph's vertical extent. Imagine shining a light horizontally. Every touched \(y\)-coordinate belongs to the range.
Open circles indicate excluded values. Arrows indicate that the graph continues indefinitely.
Common errors
- Treating a zero denominator as an allowed input.
- Using \(x\geq 0\) for \(\sqrt{x-4}\); the correct condition is \(x\geq 4\).
- Forgetting that logarithm arguments must be strictly positive.
- Finding the range from the simplified formula without considering a restricted domain or a missing point.
- Confusing the domain with the range when reading a graph.
Exercise
Find the domain and range of f(x) = sqrt(9 - x^2).
Show answer
The domain requires 9 - x^2 >= 0, so -3 <= x <= 3. The output is a square root, so f(x) >= 0. The maximum is 3 at x = 0. Therefore, the domain is [-3, 3] and the range is [0, 3].