# 1.2: Relations and Functions

**At Grade**Created by: CK-12

## Learning Objectives

A student will be able to:

- Identify functions from various relationships.
- Review function notation.
- Determine domains and ranges of particular functions.
- Identify key properties of some basic functions.
- Sketch graphs of basic functions.
- Sketch variations of basic functions using transformations.
- Compose functions.

## Introduction

In our last lesson we examined a variety of mathematical equations that expressed mathematical relationships. In this lesson we will focus on a particular class of relationships called functions, and examine their key properties. We will then review how to sketch graphs of some basic functions that we will revisit later in this class. Finally, we will examine a way to combine functions that will be important as we develop the key concepts of calculus.

Let’s begin our discussion by reviewing four types of equations we examined in our last lesson.

**Example 1:**

\begin{align*}y = x^2\end{align*}

\begin{align*}y = 2x + 3\end{align*}

\begin{align*}x^2 + y^2 = 4\end{align*}

\begin{align*}y = x^3 - 9x\end{align*}

Of these, the circle has a quality that the other graphs do not share. Do you know what it is?

**Solution:**

The circle’s graph includes points where a particular \begin{align*}x-\end{align*}value has two points associated with it; for example, the points \begin{align*}(1,\sqrt{3})\end{align*} and \begin{align*}(1,-\sqrt{3})\end{align*} are both solutions to the equation \begin{align*}x^2 + y^2 = 4.\end{align*} For each of the other relationships, a particular \begin{align*}x-\end{align*}value has exactly one \begin{align*}y-\end{align*}value associated with it.

The relationships that satisfy the condition that for each \begin{align*}x-\end{align*}value there is a unique \begin{align*}y-\end{align*}value are called **functions**. Note that we could have determined whether the relationship satisfied this condition by a graphical test, the vertical line test. Recall the relationships of the circle, which is not a function. Let’s compare it with the parabola, which is a function.

If we draw vertical lines through the graphs as indicated, we see that the condition of a particular \begin{align*}x-\end{align*}value having exactly one \begin{align*}y-\end{align*}value associated with it is equivalent to having at most one point of intersection with any vertical line. The lines on the circle intersect the graph in more than one point, while the lines drawn on the parabola intersect the graph in exactly one point. So this vertical line test is a quick and easy way to check whether or not a graph describes a function.

We want to examine properties of functions such as function notation, their domain and range (the sets of \begin{align*}x\end{align*} and \begin{align*}y\end{align*} values that define the function), graph sketching techniques, how we can combine functions to get new functions, and also survey some of the basic functions that we will deal with throughout the rest of this book.

Let’s start with the notation we use to describe functions. Consider the example of the linear function \begin{align*}y = 2x + 3.\end{align*} We could also describe the function using the symbol \begin{align*}f(x)\end{align*} and read as "\begin{align*}f\end{align*} *of* \begin{align*}x\end{align*}" to indicate the \begin{align*}y-\end{align*}value of the function for a particular \begin{align*}x-\end{align*}value. In particular, for this function we would write \begin{align*}f(x) = 2x + 3\end{align*} and indicate the value of the function at a particular value, say \begin{align*}x = 4\end{align*} as \begin{align*}f(4)\end{align*} and find its value as follows: \begin{align*}f(4) = 2(4) + 3 = 11.\end{align*} This statement corresponds to the solution \begin{align*}(4, 11)\end{align*} as a point on the graph of the function. It is read, "\begin{align*}f\end{align*} *of* \begin{align*}4\end{align*} *is* \begin{align*}11\end{align*}."

We can now begin to discuss the properties of functions, starting with the ** domain** and the

**of a function. The**

*range***refers to the set of \begin{align*}x-\end{align*}values that are inputs in the function, while the**

*domain***refers to the set of \begin{align*}y-\end{align*}values that the function takes on. Recall our examples of functions:**

*range*
** Linear Function** \begin{align*}g(x) = 2x + 3\end{align*}

** Quadratic Function** \begin{align*}f(x) = x^2\end{align*}

** Polynomial Function** \begin{align*}p(x) = x^3 - 9x\end{align*}

We first note that we could insert any real number for an \begin{align*}x-\end{align*}value and a well-defined \begin{align*}y-\end{align*}value would come out. Hence each function has the set of all real numbers as a domain and we indicate this in interval form as \begin{align*}D: (-\infty,\infty)\end{align*}. Likewise we see that our graphs could extend up in a positive direction and down in a negative direction without end in either direction. Hence we see that the set of \begin{align*}y-\end{align*}values, or the range, is the set of all real numbers \begin{align*}R: (-\infty,\infty).\end{align*}

**Example 2:**

Determine the domain and range of the function.

\begin{align*}f(x) = 1/(x^2 - 4).\end{align*}

**Solution:**

We note that the condition for each \begin{align*}y-\end{align*}value is a fraction that includes an \begin{align*}x\end{align*} term in the denominator. In deciding what set of \begin{align*}x-\end{align*}values we can use, we need to exclude those values that make the denominator equal to Why? **(Answer: division by** **is not defined for real numbers.)** Hence the set of all permissible \begin{align*}x-\end{align*}values, is all real numbers except for the numbers \begin{align*}(2, -2),\end{align*} which yield division by zero. So on our graph we will not see any points that correspond to these \begin{align*}x-\end{align*}values. It is more difficult to find the range, so let’s find it by using the graphing calculator to produce the graph.

From the graph, we see that every \begin{align*}y \neq 0\end{align*} value in \begin{align*}(-\infty,\infty)\end{align*} (or "All real numbers") is represented; hence the range of the function is \begin{align*}\{-\infty, 0\} \cup \{0, \infty\}.\end{align*} This is because a fraction with a non-zero numerator never equals zero.

*Eight Basic Functions*

We now present some basic functions that we will work with throughout the course. We will provide a list of eight basic functions with their graphs and domains and ranges. We will then show some techniques that you can use to graph variations of these functions.

*Linear*

\begin{align*}f(x) = x\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}=\end{align*}

*All reals*

*Square (Quadratic)*

\begin{align*}f(x) = x^2\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}= \left \{ y \ge 0 \right \}\end{align*}

*Cube (Polynomial)*

\begin{align*}f(x)=x^3\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}=\end{align*}

*All reals*

*Square Root*

\begin{align*}f(x) = \sqrt{x}\end{align*}

** Domain** \begin{align*}=\left \{ x \ge 0 \right \}\end{align*}

** Range** \begin{align*}= \left \{ y \ge 0 \right \}\end{align*}

*Absolute Value*

\begin{align*}f(x) = |x|\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}=\left \{ y \ge 0 \right \}\end{align*}

*Reciprocal*

\begin{align*}f(x) = 1/x\end{align*}

** Domain** \begin{align*}=\left \{ x \neq 0 \right \}\end{align*}

** Range** \begin{align*}=\left \{ y \neq 0 \right \}\end{align*}

*Sine*

\begin{align*}f(x) = \sin x\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}= \left \{ -1 \le y \le 1 \right \}\end{align*}

*Cosine*

\begin{align*}f(x) = \cos x\end{align*}

** Domain** \begin{align*}=\end{align*}

*All reals*
** Range** \begin{align*}= \left \{ -1 \le y \le 1 \right \}\end{align*}

*Graphing by Transformations*

Once we have the basic functions and each graph in our memory, we can easily sketch variations of these. In general, if we have \begin{align*}f(x),\end{align*} and \begin{align*}c\end{align*} is some constant value, then the graph of \begin{align*}f(x - c)\end{align*} is just the graph of \begin{align*}f(x)\end{align*} shifted \begin{align*}c\;\mathrm{units}\end{align*} to the right. Similarly, the graph of \begin{align*}f(x + c)\end{align*} is just the graph of \begin{align*}f(x)\end{align*} shifted \begin{align*}c\;\mathrm{units}\end{align*} to the left.

**Example 3:**

\begin{align*}f(x) = x^2\end{align*}

\begin{align*}f(x) = (x - 2)^2\end{align*}

In addition, we can shift graphs up and down. In general, if we have \begin{align*}f(x),\end{align*} and \begin{align*}c\end{align*} is some constant value, then the graph of \begin{align*}f(x)+ c\end{align*} is just the graph of \begin{align*}f(x)\end{align*} shifted \begin{align*}c\;\mathrm{units}\end{align*} up on the \begin{align*}y-\end{align*}axis. Similarly, the graph of \begin{align*}f(x)-c\end{align*} is just the graph of \begin{align*}f(x)\end{align*} shifted \begin{align*}c\;\mathrm{units}\end{align*} down on the \begin{align*}y-\end{align*}axis.

**Example 4:**

\begin{align*}f(x) = \sqrt{x}\end{align*}

\begin{align*}f(x) = \sqrt{x} + 3\end{align*}

We can also flip graphs in the \begin{align*}x-\end{align*}axis by multiplying by a negative coefficient.

\begin{align*}f(x) = x^2\end{align*}

\begin{align*}f(x) = - x^2\end{align*}

Finally, we can combine these transformations into a single example as follows.

**Example 5:**

\begin{align*}f(x) = -(x-2)^2 + 3.\end{align*} The graph will be generated by taking \begin{align*}f(x) = x^2,\end{align*} flipping in the \begin{align*}y-\end{align*}axis, and moving it two units to the right and up three units.

**Function Composition**

The last topic for this lesson involves a way to combine functions called **function composition**. Composition of functions enables us to consider the effects of one function followed by another. Our last example of graphing by transformations provides a nice illustration. We can think of the final graph as the effect of taking the following steps:

\begin{align*} x \rightarrow -(x-2)^2 \rightarrow -(x-2)^2 + 3\end{align*}

We can think of it as the application of two functions. First, \begin{align*}g(x)\end{align*} takes \begin{align*}x\end{align*} to \begin{align*}-(x-2)^2\end{align*} and then we apply a second function, \begin{align*}f(x)\end{align*} to those \begin{align*}y-\end{align*}values, with the second function adding \begin{align*}+3\end{align*} to each output. We would write the functions as

\begin{align*}f(g(x)) = -(x -2)^2+3\end{align*} where \begin{align*}g(x) = -(x -2)^2\end{align*} and \begin{align*}f(x)= x + 3.\end{align*} We call this operation the composing of \begin{align*}f\end{align*} with \begin{align*}g\end{align*} and use notation \begin{align*}f \circ g.\end{align*} Note that in this example, \begin{align*}f \circ g \neq g \circ f.\end{align*} Verify this fact by computing \begin{align*}g \circ f\end{align*} right now. (Note: this fact can be verified algebraically, by showing that the expressions \begin{align*}f \circ g\end{align*} and \begin{align*}g \circ f\end{align*} differ, or by showing that the different function decompositions are not equal for a specific value.)

## Lesson Summary

- Learned to identify functions from various relationships.
- Reviewed the use of function notation.
- Determined domains and ranges of particular functions.
- Identified key properties of basic functions.
- Sketched graphs of basic functions.
- Sketched variations of basic functions using transformations.
- Learned to compose functions.

## Review Questions

In problems 1 - 2, determine if the relationship is a function. If it is a function, give the domain and range of the function.

In problems 3 - 5, determine the domain and range of the function and sketch the graph if no graph is provided.

- \begin{align*}f(x)= \frac {3x^2}{x^2 - 1}\end{align*}
- \begin{align*}y = \sqrt{-x + 3}\end{align*}
- \begin{align*}f(x) = |2x -3|-2\end{align*}

In problems 6 - 8, sketch the graph using transformations of the graphs of basic functions.

- \begin{align*}f(x) = -(x + 2)^2 + 5\end{align*}
- \begin{align*}f(x) = -\frac {1}{x - 2} +3\end{align*}
- \begin{align*}y = -\sqrt {-x - 2} +3\end{align*}
- Find the composites, \begin{align*}f \circ g\end{align*} and \begin{align*}g \circ f\end{align*} for the following functions. \begin{align*}f(x) = -3x + 2, g(x)=\sqrt{x}\end{align*}
- Find the composites, \begin{align*}f \circ g\end{align*} and \begin{align*}g \circ f\end{align*} for the following functions. \begin{align*}f(x) = x^2, g(x) = \sqrt {x}\end{align*}

## Review Answers

- The relationship is a function. Domain is All Real Numbers and range \begin{align*}= \{-2 \le y \le 2\}.\end{align*}
- The relationship is not a function.
- The domain is \begin{align*}\{x \neq -1,1\}.\end{align*} Use the graph and view the table of solutions to determine the range. Using your graphing calculator, enter the relationship on the
**Y=**menu. Viewing the table shows that range \begin{align*}\{y > 3\} \cup \{y \le 0\}.\end{align*} - \begin{align*}\mathrm{Domain} = \{x \le 3\}\end{align*}, \begin{align*}\mathrm{range} = \{y \ge 0\}.\end{align*}
- This is the basic absolute value function shifted \begin{align*}3/2\;\mathrm{units}\end{align*} to the right and down two units. Domain is All Reals and range is \begin{align*}\{y \ge -2\}.\end{align*}
- Reflect and shift the general quadratic function as indicated here:
- Reflect and shift the general reciprocal function as indicated here:
- Reflect and shift the general radical function as indicated here:
- \begin{align*}f \circ g=-3\sqrt{x}+2,\end{align*} \begin{align*}g \circ f=\sqrt{-3x + 2}.\end{align*}
- \begin{align*}f \circ g = x,\end{align*} \begin{align*}g \circ f=x;\end{align*} any functions where \begin{align*}f \circ g = g \circ f = x;\end{align*} are called inverses; in this problem \begin{align*}f\end{align*} and \begin{align*}g\end{align*} are inverses of one another. Note that the domain for \begin{align*}f \circ g\end{align*} is restricted to only positive numbers and zero.

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Show More |