Skip to main content
K12 LibreTexts

3.1.1: One-to-One Functions and Their Inverses

  • Page ID
    14368
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    One-to-One Functions and Their Inverses

    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 \(\ f(x)=x^{3}\), and its inverse \(\ f^{-1}(x)=\sqrt[3]{x}\).

    The graphs of these functions are shown below:

    f-d_57f4dd1898cd8ab13fc46efcf78c1a4b934df8e976bee614181bed38+IMAGE_TINY+IMAGE_TINY.jpg

    The function f(x) = x3 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 = x2, however, is not one-to-one. The graph of this function is shown below.

    f-d_3b5901a437b8a368ebe971d1b5423130c8353a84881a6a4e971151f3+IMAGE_TINY+IMAGE_TINY.jpg

    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 = x2, 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 = x2, 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.

    f-d_efe57545ab279d5d2efda8e78d30ba171c33cca4bd7406fdf06978ec+IMAGE_TINY+IMAGE_TINY.jpg

    The function y = x2 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.

    Solution

    "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 \(\ f(x)=\frac{1}{3} x+2\). Use a horizontal line test to verify that the function is invertible.

    Solution

    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 \(\ f(x)=\frac{1}{3} x+2\).

    f-d_d9bab3cc9a91249e74102d7d6d70a6a3b9c634ee6faa930c0d10d949+IMAGE_TINY+IMAGE_TINY.jpg

    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).

    Solution

    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) = x3, 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 = x2 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) = x2, with domain limited to real numbers ≥ 0. Then the inverse of the function is the square root function: \(\ f^{-1}(x)=\sqrt{x}\).

    f-d_359cbfab5e04c0b32d3cb75434d0f1f6e94b474b3fd07864a1f7a944+IMAGE_TINY+IMAGE_TINY.jpg

    Example 4

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

    Solution

    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 g(x)=3x−2 a one-to-one function?

    Solution

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

    ∴ if g(x)=3x−2 is one-to-one, then g(a)=g(b)→a=b

    Test: g(a)=g(b)

    3a−2=3b−2

    3a=3b

    a=b

    ∴3x−2 is one-to-one.

    Example 6

    Use the horizontal line test to see if f(x)=x3 is one-to-one.

    Solution

    Graph the equation:

    f-d_6a9d8ea00696f0895bd96b6752c5f5247668efe788cf7e803b7fde8f+IMAGE_TINY+IMAGE_TINY.png

    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 g(x)=|x−2| one-to-one?

    Solution

    Graph the equation:

    f-d_24f537ab601cc37bc53421c75e621b4502f13d60541fe672ec1f6653+IMAGE_TINY+IMAGE_TINY.png

    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

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

    Which functions are one-to-one?

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

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

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

    Are the following one-to-one functions?

    1. f(x)=x2
    2. f(x)=x3
    3. f(x)=\(\ \frac{1}{x}\)
    4. f(x)=xn−x,n>0
    5. x=y2+2

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

    f-d_a0c316727ab02db8575d231a0ba2ba8bd69071e98a651a29cb6ce858+IMAGE_TINY+IMAGE_TINY.png

    1. f-d_a0c316727ab02db8575d231a0ba2ba8bd69071e98a651a29cb6ce858+IMAGE_TINY+IMAGE_TINY.png
    2. f-d_7e339675765d8aa3438a350c9e7e16eeadce092f4fd7b79435441ac0+IMAGE_TINY+IMAGE_TINY.png
    3. f-d_d96418d04a5331c44ed362129035fc02385b0fda35721f051c0ed158+IMAGE_TINY+IMAGE_TINY.png

    Review (Answers)

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


    Vocabulary

    Term Definition
    1-1 function A function is 1-1 if its inverse is also a function.
    Horizontal Line Test The horizontal line test says that if a horizontal line drawn anywhere through the graph of a function intersects the function in more than one location, then the function is not one-to-one and not invertible.
    inverse Inverse functions are functions that 'undo' each other. Formally: f(x) and g(x) are inverse functions if f(g(x))=g(f(x))=x.
    inverse function Inverse functions are functions that 'undo' each other. Formally f(x) and g(x) are inverse functions if f(g(x))=g(f(x))=x.
    invertible A function is invertible if it has an inverse.
    One-to-one A function is one-to-one if its inverse is also a function.
    Vertical Line Test The vertical line test says that if a vertical line drawn anywhere through the graph of a relation intersects the relation in more than one location, then the relation is not a function.

    This page titled 3.1.1: One-to-One Functions and Their Inverses is shared under a CK-12 license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    CK-12 Foundation
    LICENSED UNDER
    CK-12 Foundation is licensed under CK-12 Curriculum Materials License
    • Was this article helpful?