The statement "Pizza restaurants sell pizza" could be thought of as a function. It could be plotted on a graph, with different restaurants across the *x*-axis, and different foods the restaurant specializes in on the *y*-axis. Any time a pizza restaurant was input into the function, it would output "pizza" as the specialized food.

Is this pizza restaurant function a one-to-one function? How can we tell?

### One-to-One Functions and Their Inverses

Consider the function

The graphs of these functions are shown below:

The function *f*(*x*) = *x*^{3} is an example of a **one-to-one function,** which is defined as follows:

A function is **one-to-one** if and only if every element of its range corresponds to at most one element of its domain.

The function *y = x*^{2}, however, is not one-to-one. The graph of this function is shown below.

You may recall that you can identify a relation as a function if you can draw a vertical line anywhere through the graph, and the line touches only one point.

Notice then that if we draw a *horizontal* line through *y = x*^{2}, the line touches more than one point. That indicates that the inverse will *not* be a function, here is why: If we invert the function *y = x*^{2}, the result is a graph that is a reflection over the line *y = x*, effectively rotating the original 90 degrees. Since *x* and *y* have swapped, the new function fails the vertical line test.

The function *y = x*^{2} is therefore *not* a one-to-one function. A function that *is* one-to-one will be invertible.

You can determine an invertible function graphically by drawing a *horizontal line* through the graph of the function, if it touches more than one point, the function is not invertible.

### Examples

#### Example 1

Earlier, you were given a question about a pizza function.

"Pizza restaurants sell pizza" is a function. However, it is NOT a one-to-one function.

In order to be one-to-one, it must be invertible, giving something like: "pizza sellers are pizza restaurants", and that statement must also be a function.

Since grocery stores sell pizza, and would therefore be among the outputs of the new function, but were not among the inputs of the original (which specified "pizza restaurants"), the functions are not invertible.

#### Example 2

Graph the function

The graph below shows that this function is invertible. We can draw a horizontal line at any *y* value, and the line will only cross

In sum, a one-to-one function is invertible. That is, if we invert a one-to-one function, its inverse is also a function. Now that we have established what it means for a function to be invertible, we will focus on the domain and range of inverse functions.

#### Example 3

State the domain and range of the following function and its inverse: *(1, 2), (2, 5), (3, 7).*

The inverse of this function is the set of points *(2, 1), (5, 2), (7, 3).*

The domain of the function is *{1, 2, 3}*. This is also the range of the inverse.

The range of the function is *{2, 5, 7}*. This is also the domain of the inverse.

The linear functions we examined previously, as well as *f*(*x*) = *x*^{3}, all had domain and range both equal to the set of all real numbers. Therefore the inverses also had domain and range equal to the set of all real numbers. Because the domain and range were the same for these functions, switching them maintained that relationship.

Also, as we found above, the function *y = x*^{2} is not one-to-one, and hence it is not invertible. That is, if we invert it, the resulting relation is not a function. We can change this situation if we define the domain of the function in a more limited way. Let *f*(*x*) be a function defined as follows: *f*(*x*) = *x*^{2}, with domain limited to real numbers ≥ 0. Then the inverse of the function is the square root function:

#### Example 4

Define the domain for the function *f*(*x*) = (*x* - 2)^{2} so that *f* is invertible.

The graph of this function is a parabola. We need to limit the domain to one side of the parabola. Conventionally in cases like these we choose the positive side; therefore, the domain is limited to real numbers ≥ 2.

#### Example 5

Is

Algebraic test for one-to-one functions: if *f*(*a*) = *f*(*b*) implies that *a* = *b*, then *f* is one-to-one.

Test:

#### Example 6

Use the horizontal line test to see if

Graph the equation:

This is the parent function of the cubic function family. Each x value has one unique y-value that is not used by any other x-element. Since that is the definition of a one-to-one function, this function is one-to-one.

#### Example 7

Is

Graph the equation:

This absolute value function has y-values that are paired with more than one x-value, such as (4, 2) and (0, 2). This function is not one-to-one. Note that this function also fails the horizontal line test used in Example 6.

### Review

- Describe the one-to-one horizontal line test.
- Describe the one-to-one algebraic test.

Which functions are one-to-one?

(3,28),(4,29),(4,30),(6,31) (4,5),(9,6),(7,8),(23,5) (8,18),(33,4),(5,16),(7,19)

For the following to be a one-to-one function, x cannot be what values?

(9,12),(35,6),(7,18),(12,X) (20,21)(21,14),(110,112),(X,7)

Are the following one-to-one functions?

f(x)=x2 f(x)=x3 f(x)=1x f(x)=xn−x,n>0 x=y2+2

Determine if the relations below are functions, one-to one functions or neither:

### Review (Answers)

To see the Review answers, open this PDF file and look for section 3.2.