Domain and range
The domain of a function is the set of all allowed inputs (x-values); the range is the set of outputs (y-values) it actually produces. To find the domain, exclude inputs that divide by zero, take an even root of a negative number, or take a log of a non-positive number. To find the range, look at the lowest and highest y-values the graph reaches.
y=sqrt(x-2)+1
Domain restrictions to look for
| Fractions | Denominator ≠ 0 |
|---|---|
| Even roots (√) | Inside ≥ 0 |
| Logarithms | Inside > 0 |
| tan x | x ≠ π/2 + kπ |
| Context | Time, length and counts are usually ≥ 0 |
Example
For y = √(x − 2) + 1, the inside must satisfy x − 2 ≥ 0, so the domain is x ≥ 2, or [2, ∞). The square root outputs values ≥ 0, so adding 1 gives the range y ≥ 1, or [1, ∞).
Restricting the domain on a graph
Add a restriction in braces after an expression: y = x^2 {0 < x < 3} draws only the piece between 0 and 3. This is how piecewise and bounded graphs are built.
Frequently asked questions
How do I write domain in interval notation?
Use brackets for included endpoints and parentheses for excluded ones: x ≥ 2 is [2, ∞). Infinity always takes a parenthesis.