Skip to main content

Precalculus Review Materials

Section 2.1 Functions

Let \(D\) be a set of real numbers. Any way of associating exactly one real number with each element of \(D\) is called a function. The set \(D\) is called the function’s domain. For any \(x\) in \(D\text{,}\) we call \(f(x)\) the value of \(f\) at \(x\). The set \(\{f(x) : x \mbox{ is in } D\} = \{y: y = f(x) \mbox{ for some }\)x\(\mbox{ in } D\}\) is called the function’s range — that is, the range of \(f\) is the set of all numbers that occur as values of \(f\text{.}\)
When the function \(f\) is described by giving a formula, then for any number in the domain the value of \(f\) at that number is obtained by substituting that number for the variable in the formula.
For example, if the function \(f\) is described by \(f(x) = 5x^2 - x +1\) and the domain is the set of all real numbers, \(\mathbb{R}\text{,}\) then to find \(f(2)\) we substitute 2 into the formula for \(x\text{,}\) as in:
\begin{equation*} f(2) = 5(2)^2 - (2) + 1 = 5 \cdot 4 - 2 + 1 = 20 - 2 + 1 = 19 \end{equation*}
Therefore, \(f(2) = 19\text{.}\)
Assumed domains. When the domain \(D\) is not explicitly given in the description of the function, we assume it is the largest collection of numbers for which the function makes sense (is defined).
Finding the range. When finding the range of a function that’s described by an expression, there are usually two steps involved. The first step is to determine a set of possible values the function could take. The second step is to verify that each one of these is actually achieved for at least one \(x\) in the domain.
For each function, find the assumed domain \(D\text{,}\) that is, the largest collection of numbers for which the function is defined. In addition, find the range of the function.
  1. \(\displaystyle f(x) = x^2 -5\)
  2. \(\displaystyle f(x) = \sqrt{x-5} + 3\)
Solution 1.
The expression \(x^2 - 5\) is defined for all real numbers, so assumed domain is the set of all real numbers, \(\mathbb{R}\text{.}\) Since, for every real number \(x\text{,}\) the quantity \(x^2\) is at least zero, \(x^2-5\) is at least \(0-5 = -5\text{.}\) Therefore the possible numbers that can be in the range are the real numbers which are at least \(-5\text{.}\) Take any \(y \geq -5\text{.}\) Then \(y = x^2 - 5\) if and only if \(y+5 = x^2\text{,}\) and \(y + 5 \geq 0\) so \(x = \pm \sqrt{y + 5}\text{.}\) Hence there is always at least one number \(x\) the domain such that \(f(x) = y\text{,}\) so the range is \(\{ y : y \geq -5 \}\text{.}\)
Solution 2.
The expression \(\sqrt{x-5} + 3\) involves a square root, and the square root function only makes sense for non-negative numbers (it is only defined for non-negative numbers). That means we need to have \(x -5 \geq 0\text{,}\) or equivalently \(x \geq 5\text{.}\) There are no other restrictions on the values of \(x\) that can be used. Therefore, the domain is \(\{ x : x \geq 5\}\text{.}\) Since for every \(x \geq 5\) the quantity \(\sqrt{x-5} \geq 0\text{,}\) we know that \(\sqrt{x-5} + 3 \geq 0+3 = 3\text{.}\) Therefore the possible numbers that can be in the range are the real numbers which are at least \(3\text{.}\) Take any \(y \geq 3\text{.}\) Then \(y = \sqrt{x-5} + 3\) if and only if \(y - 3 = \sqrt{x-5}\text{,}\) which implies \((y-3)^2 = x-5\text{.}\) Thus, if \(f(x) = y\) then \(x = (y-3)^2 + 5\text{.}\) Since \(y \geq 3\text{,}\) the quantity \((y-3)^2 + 5\) is in the domain. Furthermore, if \(x = (y-3)^2 + 5\text{,}\) then
\begin{equation*} \begin{aligned} f(x) &= f((y-3)^2 + 5) \\ &= \sqrt{(y-3)^2 + 5 -5} + 3 \\ &= \sqrt{(y-3)^2} + 3 \\ &= |y-3| + 3 \\ &= (y-3) + 3\\ &= y \end{aligned}\text{.} \end{equation*}
We’ve used \(|y-3| = y-3\) because \(y - 3 \geq 0\text{.}\) Therefore, the range is \(\{ y : y \geq 3 \}\text{.}\)
A function can be defined by an equation. For example, for the equation \(y = 10x - 7\text{,}\) once we choose a value for \(x\text{,}\) then \(y\) is uniquely determined: as in the definition of a function, the equation \(y = 10x - 7\) associates exactly one number \(y\) with each number \(x\text{.}\)
Does the equation \(x=y^2+5\) define \(y\) as a function of \(x\text{?}\)
Solution.
No. For example, when \(x=6\text{,}\) the statements \(6 = (-1)^2 + 5\) and \(6 = 1^2 + 5\) are both true. Thus this equation associates two values of \(y\text{,}\) namely \(\pm 1\text{,}\) with \(x = 6\text{,}\) and so it does not define \(y\) as a function of \(x\text{.}\)

Exercises Practice Problems

1.

Using \(f(x) = 2x^2 - x +1\text{,}\) find:
  1. \(\displaystyle f(3)\)
  2. \(f(x)\) when \(x = 4\)
  3. \(\displaystyle f(-3)\)
Answer.
  1. \(\displaystyle 16\)
  2. \(\displaystyle 29\)
  3. \(\displaystyle 22\)

2.

Using \(f(x) = x^3 - 3x^2 +5\text{,}\) find:
  1. \(\displaystyle f(0)\)
  2. \(\displaystyle f(3)\)
  3. \(\displaystyle f(-3)\)
Answer.
  1. \(\displaystyle 5\)
  2. \(\displaystyle 5\)
  3. \(\displaystyle -49\)

3.

Let \(f(x) = 10-x^2\text{.}\) Find:
  1. The (assumed) domain of \(f\text{.}\)
  2. The range of \(f\text{.}\)
Answer.
  1. \(\displaystyle \mathbb{R}\)
  2. \(\displaystyle \{y: y \leq 10\}\)

4.

Let \(f(x) = 2 - \sqrt{x^2 - 25}\text{.}\) Find:
  1. The (assumed) domain of \(f\text{.}\)
  2. The range of \(f\text{.}\)
Answer.
  1. \(\displaystyle (-\infty, -5] \cup [5, \infty)\)
  2. \(\displaystyle \{y: y \leq 2\}\)

5.

Which of the following equations define \(y\) as a function of \(x\text{?}\)
  1. \(\displaystyle y=x^2+8\)
  2. \(\displaystyle x^2-y^2=16\)
  3. \(\displaystyle y=5\)
Answer.
  1. This equation does define \(y\) as a function of \(x\text{.}\)
  2. This equation does not define \(y\) as a function of \(x\text{.}\)
  3. This equation does define \(y\) as a function of \(x\text{.}\)