Skip to main content

Section 2.1 Functions

Definition 2.1.1.

A function is a rule from a set, called the domain of the function, to another set, called the range of the function, such that each member of the domain is assigned to one and only one member of the range.
A function will often be given by an equation such as \(y=2x+3\text{.}\) Notice that by the way this equation is written, \(y\) depends on \(x\text{.}\) In this case \(y\) is called the dependent, or output variable, and \(x\) is called the independent, or input variable. We can express this using function notation where we replace the output variable with some other letter representing the function, like \(f\text{,}\) and express its dependency on the input variable using parentheses. In this case we replace \(y\) with \(f(x)\) (read \(f\) of \(x\)) and we have
\begin{equation*} y = f(x) = 2x+3. \end{equation*}
This makes evaluation easy to express. In this case, for domain (or input) values \(x=1\) and \(x=2\) we have the corresponding range (or output) values
  • \(\displaystyle f(1)=2(1)+3=5\)
  • \(\displaystyle f(2)=2(2)+3=7\)
So, for input value \(x=1\text{,}\) we have an output value \(y=f(1)=5\text{,}\) and for input value \(x=2\text{,}\) we have an output value \(y=f(2)=7\text{.}\)
Let \(f(x) = x^2 -x +5\text{.}\) For homework find the following. The last two parts will involve \(a\)'s and \(h\)'s. In other words, your answers will be symbolic and not numbers.
  1. \(f(0)\) Solution.
    \(f(0) = 0^2 - 0 +5 = 5 \)
  2. \(f(-2)\) Solution.
    \(f(-2) = (-2)^2 - (-2) +5 = 4+2+5 = 11 \)
  3. \(f(5a)\) Solution.
    \(f(5a) = (5a)^2 - (5a) +5 = 25a^2 -5a + 5\)
  4. \(f(a+h)\) Solution.
    \(f(a+5) = (a+h)^2 - (a+h) +5 = a^2 + 2ah + h^2 -a - h +5\)
We will use the following notation. For a funciton \(f(x)\text{,}\)
  • dom(\(f\)) = the domain of the function \(f\)
  • rng(\(f\)) = the range of the function \(f\)
Typcially, we will express these sets using interval notation. Note that the set of all real numbers can expressed using the notation \(\mathbb{R} = (-\infty, \infty)\text{.}\)
Find the domain of the following functions. Write your answer in interval notation.
  1. \(f(x) = -5x + 2 \) Solution.
    Because all real numbers are permissible as input values,
    \begin{equation*} \textrm{dom}(f) = \mathbb{R} = (-\infty, \infty) \end{equation*}
  2. \(g(x) = 6x^2 - \dfrac{x}{2} + 71.4\) Solution.
    Because all real numbers are permissible as input values,
    \begin{equation*} \textrm{dom}(g) = \mathbb{R} = (-\infty, \infty) \end{equation*}
  3. \(p(t) = \dfrac{1}{t+3}\) Solution.
    Here, it is easier to think about what values of \(t\) are NOT permissible as input values. Since division by 0 is NOT allowed, \(t=-3\) is the only value NOT permitted as an input value and we have
    \begin{equation*} \textrm{dom}(p) =(-\infty,-3) \cup (-3,\infty) \end{equation*}
    where the symbol \(\cup\) is called union and means join the sets together.
  4. \(q(r) = \dfrac{r}{r^2 + 5r + 6} \) Solution.
    Try this one on your own.
  5. \(r(x) = \sqrt{x+1} + 2 \) Solution.
    Here, again, it easier to think about values of \(x\) that are NOT allowed. Since we cannot take the sqaure root of a negative number (and get another real number), we must solve
    \begin{align*} x+1 \amp \geq 0 \\ x \geq -1 \end{align*}
    so that
    \begin{equation*} \textrm{dom}(r) = [-1, \infty) \end{equation*}