Sub topic 1
Quick review: functions, domain and range
A function is a rule that assigns exactly one output to each allowed input. We usually call the input \(x\) and write the output as \(f(x)\). For example:
\[ f(x)=2x+3 \]
If \(x=4\), then \(f(4)=2(4)+3=11\).
The domain is the set of allowed input values. The range is the set of output values produced by those inputs. To work with later topics such as composition and inverse functions, keep these sets separate: a function takes values from its domain and produces values in its range.
Prerequisites
Assume that you can use function notation such as \(f(x)\), solve basic equations and inequalities, and read points and curves on a coordinate graph. You should also recognize common algebraic restrictions, such as division by zero and the square root of a negative number in the real number system.
Domain: allowed inputs
Start with the formula and identify values that make it invalid.
For
\[ p(x)=\frac{1}{x-5}, \]
the denominator cannot equal zero. Therefore:
\[ x-5\ne 0,\qquad x\ne 5. \]
The domain is all real numbers except \(5\). In interval notation, it is
\[ (-\infty,5)\cup(5,\infty). \]
For
\[ q(x)=\sqrt{x+2}, \]
the expression inside a real square root must be nonnegative:
\[ x+2\ge 0,\qquad x\ge -2. \]
Thus, the domain is \([-2,\infty)\).
Range: possible outputs
The range describes the outputs after the domain restrictions have been applied.
For \(q(x)=\sqrt{x+2}\), the smallest allowed input is \(-2\), and
\[ q(-2)=0. \]
A square root cannot produce a negative result, so the range is \([0,\infty)\).
For \(p(x)=1/(x-5)\), the output can never be zero. A fraction with numerator \(1\) cannot equal \(0\). The range is therefore all real numbers except \(0\):
\[ (-\infty,0)\cup(0,\infty). \]
| Function | Domain restriction | Range |
|---|---|---|
| \(p(x)=1/(x-5)\) | \(x\ne5\) | \(y\ne0\) |
| \(q(x)=\sqrt{x+2}\) | \(x\ge-2\) | \(y\ge0\) |
Reading functions from graphs
A graph represents a function when every vertical line intersects it at most once. This is the vertical line test. It checks whether one input has more than one output.
The graph also helps identify domain and range:
- The domain is the set of horizontal, or \(x\)-axis, values covered by the graph.
- The range is the set of vertical, or \(y\)-axis, values covered by the graph.
- An open endpoint means that value is excluded.
- An arrow usually means the graph continues without bound.
A common error is to list values that appear possible before checking the formula. For example, \(x=-2\) is not in the domain of \(\sqrt{x+2}\) if the expression were instead \(\sqrt{x+2}\)? It is allowed because the radicand equals zero. Always substitute the boundary value and check the inequality carefully.
Exercise
Find the domain and range of r(x) = sqrt(7 - x).
Show answer
The radicand must satisfy 7 - x >= 0, so x <= 7. The domain is (-infinity, 7]. Square roots are nonnegative, and r(7) = 0, so the range is [0, infinity).