Skip to main content

BASIC MATHEMATICS FOR NATURAL SCIENCES UNDERGRADUATE STUDENT TEXTBOOK

Section 3.3 Types of functions and inverse of a function

After completing this section, the student should be able to:
In this section we shall study some important types of functions.
One to One functions

Definition 3.3.1.

A function \(f:A \rightarrow B\) is called one to one, often written 1 - 1, if and only if for all \(x_{1},x_{2} \in A\text{,}\) \(f(x_{1}) = f(x_{2})\) implies \(x_{1} = x_{2}\text{.}\) In words, no two elements of \(A\) are mapped to one element of \(B\text{.}\)

Example 3.3.2.

  1. If we consider the sets \(A = \left\{ 1,2,3,\cdots,6 \right\}\) and \(B = \left\{ 7,a,b,c,d,8,e \right\}\) and if \(f =\)\((2,a),\)\((3,b)\text{,}\) \((4,b),(5,c),(6,8)\) and \(g = \left\{ (1,7),(2,a),(3,b),(4,c),(5,8),(6,d) \right\}\text{,}\) then both \(f\) and \(g\) are functions from \(A\) into \(B\text{.}\) Observe that \(f\) is not a \(1 - 1\) function because \(f(3) = f(4)\) but \(3 \neq 4\text{.}\) However, \(g\) is a \(1 - 1\) function.
  2. Let \(A = \left\{ 1,2,3,4 \right\}\) and \(B = \left\{ 1,4,7,8 \right\}\text{.}\) Consider the functions
    1. \(f:A \rightarrow B\) defined as \(f(1) = 1,\ f(2) = 4,\ f(3) = 4,\ f(4) = 8\)
    2. \(g:A \rightarrow B\) defined as \(f(1) = 4,\ f(2) = 7,\ f(3) = 1,\ f(4) = 8\)
    Then, \(f\) is not 1 - 1, but \(g\) is a 1 - 1 function.
Onto functions

Definition 3.3.3.

Let \(f\) be a function from a set \(A\) into a set \(B\text{.}\) Then \(f\) is called an onto function(or \(f\)maps onto \(B)\) if every element of \(B\) is an image of some element in \(A\text{,}\) i.e, \(\text{Range}(f) = B\text{.}\)

Example 3.3.4.

  1. Let \(A = \left\{ 1,2,3 \right\}\)and \(B = \left\{ 1,4,5 \right\}\text{.}\) The function \(f:A \rightarrow B\) defined by \(f(1) = 1\text{,}\) \(f(2) = 5\text{,}\) \(f(3) = 1\) is not onto because there is no element in \(A\text{,}\) whose image under \(f\) is 4. The function \(g:A \rightarrow B\) given by \(g = \left\{ (1,4),(2,5),(3,1) \right\}\) is onto because each element of \(B\) is an image of at least one element of \(A\) .
    Note that if \(A\) is a non-empty set, the function \(i_{A}:A \rightarrow A\) defined by \(i_{A}(x) = x\) for all \(x \in A\) is a 1 – 1 function from \(A\) onto \(A\text{.}\) \(i_{A}\) is called the identity map on \(A\text{.}\)
  2. TODO{Check out the apostrophes here}
    Consider the relation \(f\) from \(Z\) into \(Z\) defined by \(f(n) = n^{2}\) for all \(n \in Z\text{.}\) Now, domain of \(f\) is \(Z\text{.}\) Also, if \(n = n^{'}\text{,}\) then \(n^{2} = (n^{'})^{2}\text{,}\) i.e. \(f(n) = f(n^{'})\text{.}\) Hence, \(f\) is well defined and is a function. However, \(f(1) = 1 = f( - 1)\) and \(1 \neq - 1\text{,}\) which implies that \(f\) is not 1 – 1. For all \(n \in Z\text{,}\) \(f(n)\) is a non-negative integer. This shows that a negative integer has no preimage. Hence, \(f\) is not onto. Note that \(f\) is onto \(\left\{ 0,1,4,9,\cdots \right\}\text{.}\)
  3. Consider the relation \(f\) from \(Z\) into \(Z\) defined by \(f(n) = 2n\) for all \(n \in Z\text{.}\) As in the previous example, we can show that \(f\) is a function. Let \(n,n^{'} \in Z\) and suppose that \(f(n) = f(n^{'})\text{.}\) Then \(2n = 2n^{'}\) and thus \(n = n^{'}\text{.}\) Hence, \(f\) is 1 – 1. Since for all \(n \in Z\text{,}\) \(f(n)\) is an even integer; we see that an odd integer has no preimage. Therefore, \(f\) is not onto.
1 - 1 Correspondence

Definition 3.3.5.

A function \(f:A \rightarrow B\) is said to be a 1 - 1 correspondence if \(f\) is both 1 - 1 and onto.

Example 3.3.6.

  1. Let \(A = \left\{ 0,\ 1,\ 2,\ 3,\ 4,\ 5 \right\}\) and \(B = \left\{ 0,\ 5,\ \text{10},\ \text{15},\ \text{20},\ \text{25} \right\}\text{.}\) Suppose \(f:A \rightarrow B\) given by \(f(x) = 5x\) for all \(x \in A\text{.}\) One can easily see that every element of \(B\) has a preimage in \(A\) and hence \(f\) is onto. Moreover, if \(f(x) = f(y)\text{,}\) then \(5x = 5y\text{,}\) i.e. \(x = y\text{.}\) Hence, \(f\) is 1 - 1. Therefore, \(f\) is a 1 - 1 correspondence between \(A\) and \(B\text{.}\)
  2. Let \(A\) be a finite set. If \(f:A \rightarrow A\) is onto, then it is one to one.
Solution.
Let \(A = \left\{ a_{1},a_{2},\cdots,a_{n} \right\}\text{.}\) Then \(\text{Range}(f) = \left\{ f(a_{1}),f(a_{2}),\cdots,f(a_{n}) \right\}\text{.}\) Since \(f\) is onto we have \(\text{Range}(f) = A\text{.}\)Thus, \(A = \left\{ f(a_{1}),f(a_{2}),\cdots,f(a_{n}) \right\}\text{,}\) which implies that \(f(a_{1})\text{,}\) \(f(a_{2})\text{,}\) \(\cdots\text{,}\) \(f(a_{n})\) are all distinct. Hence, \(a_{i} \neq a_{j}\) implies \(f(a_{i}) \neq f(a_{j})\) for all \(1 \leq i,j \leq n\text{.}\) Therefore, \(f\) is 1 - 1.
Inverse of a function
Since a function is a relation , the inverse of a function \(f\) is denoted by \(f^{- 1}\) and is defined by:
\(f^{- 1} = \left\{ (y,x):(x,y) \in f \right\}\)
For instance, if \(f = \left\{ (2,4),(3,6),(1,7) \right\}\text{,}\) then \(f^{- 1} = \left\{ (4,2),(6,3),(7,1) \right\}\text{.}\) Note that the inverse of a function is not always a function. To see this consider the function \(f =\)\((5,4)\text{.}\) Then, \(f^{- 1} = \left\{ (4,2),(6,3),(4,5) \right\}\text{,}\) which is not a function.
As we have seen above not all functions have an inverse, so it is important to determine whether or not a function has an inverse before we try to find the inverse. If the function does not have an inverse, then we need to realize that it does not have an inverse so that we do not waste our time trying to find something that does not exist.
A one to one function is special because only one to one functions have inverse. If a function is one to one, to find the inverse we will follow the steps below:
  1. Interchange \(x\) and \(y\) in the equation \(y = f(x)\)
  2. Solving the resulting equation for \(y\text{,}\) we will obtaining the inverse function.
Note that the domain of the inverse function is the range of the original function and the range of the inverse function is the domain of the original function.

Example 3.3.7.

  1. Given \(y = f(x) = x^{3}\text{.}\) Find \(f^{- 1}\) and its domain.
  2. Let \(y = f(x) = \frac{x}{x + 2}\text{.}\) Find \(f^{- 1}(x)\text{.}\)
Solution.
  1. We begin by interchanging \(x\) and \(y\text{,}\) and we solve for \(y\text{.}\)
    \(y = x^3\) \(\qquad \qquad\) Interchange \(x\) and \(y\)
    \(x = y^3\) \(\qquad \qquad\) Take the cube root of both sides
    \(\sqrt[3]{x} = y\) \(\qquad \qquad\) This is the inverse of the function
    Thus, \(f^{- 1}(x) = \sqrt[3]{x}\text{.}\) The domain of \(f^{- 1}\) is the set of all real numbers.
  2. Again we begin by interchanging \(x\) and \(y\text{,}\) and then we solve for \(y\text{.}\)
    \(y = \frac{x}{x + 2}\) \(\qquad \qquad\) Interchange \(x\) and \(y\)
    \(x = \frac{y}{y + 2}\) \(\qquad \qquad\) Solving for \(y\)
    \(x(y + 2) = y\ \Leftrightarrow \ \text{xy} + 2x = y\ \Leftrightarrow \ 2x = y(1 - x)\ \Leftrightarrow y = \frac{2x}{1 - x}\)
    Thus, \(f^{- 1}(x) = \frac{2x}{1 - x}\text{.}\)

Remark 3.3.8.

Even though, in general, we use an exponent of \(- 1\) to indicate a reciprocal, inverse function notation is an exception to this rule. Please be aware that \(f^{- 1}(x)\) is not the reciprocal of \(f\text{.}\) That is,
\begin{equation*} f^{- 1}(x) \neq \frac{1}{f(x)} \end{equation*}
If we want to write the reciprocal of the function \(f(x)\) by using a negative exponent, we must write
\begin{equation*} \frac{1}{f(x)} = \left\lbrack f(x) \right\rbrack^{- 1} \end{equation*}

Exercises Exercises

1.

Consider the function \(f = \left\{ (x,x^{2}):x \in S \right\}\) from \(S = \left\{ - 3, - 2, - 1,0,1,2,3 \right\}\) into \(Z\text{.}\) Is \(f\) one to one? Is it onto?

2.

Let \(A = \left\{ 1,2,3 \right\}\text{.}\) List all one to one functions from \(A\) onto \(A\text{.}\)

3.

Let \(f:A \rightarrow B\text{.}\) Let \(f^{*}\) be the inverse relation, i.e. \(f^{*} = \left\{ (y,x) \in B \times A:f(x) = y \right\}\text{.}\)
  1. Show by an example that \(f^{*}\) need not be a function.
  2. Show that \(f^{*}\) is a function from \(\text{Range}(f)\) into \(A\) if and only if \(f\) is 1 - 1.
  3. Show that \(f^{*}\) is a function from \(B\) into \(A\) if and only if \(f\) is 1 - 1 and onto.
  4. Show that if \(f^{*}\) is a function from \(B\) into \(A\text{,}\) then \(f^{- 1} = f^{*}\text{.}\)

4.

Let \(A = \left\{ x \in \Re:0 \leq x \leq 1 \right\}\) and \(B = \left\{ x \in \Re:5 \leq x \leq 8 \right\}\text{.}\) Show that \(f:A \rightarrow B\) defined by \(f(x) = 5 + (8 - 5)x\) is a 1 - 1 function from \(A\) onto \(B\text{.}\)

5.

Which of the following functions are one to one?
  1. \(f:\Re \rightarrow \Re\) defined by \(f(x) = 4,\ x \in \Re\)
  2. \(f:\Re \rightarrow \Re\) defined by \(f(x) = 6x - 1,\ x \in \Re\)
  3. \(f:\Re \rightarrow \Re\) defined by \(f(x) = x^{2} + 7,\ x \in \Re\)
  4. \(f:\Re \rightarrow \Re\) defined by \(f(x) = x^{3},\ x \in \Re\)
  5. \(f:\Re\{ 7 } \rightarrow \Re\) defined by \(f(x) = \frac{2x + 1}{x - 7},\ x \in \Re\{ 7 }\)

7.

Find \(f^{- 1}(x)\) if
  1. \(\displaystyle f(x) = 7x - 6\)
  2. \(\displaystyle f(x) = \frac{2x - 9}{4}\)
  3. \(\displaystyle f(x) = 1 - \frac{3}{x}\)
  4. \(\displaystyle f(x) = \frac{4 - x}{3x}\)
  5. \(\displaystyle f(x) = \frac{5x + 3}{1 - 2x}\)
  6. \(\displaystyle f(x) = \sqrt[3]{x + 1}\)
  7. \(\displaystyle f(x)\text{==} - (x + 2)^{2} - 1\)
  8. \(\displaystyle f(x) = \frac{2x}{1 + x}\)

Checkpoint 3.3.9.

Add review
 1 
docs.google.com/forms/d/e/1FAIpQLSfSNI6CXkmgeSZJh6v0WKkeD9MJ9g4pEQ9r0JaowD4ovNxj5w/viewform?usp=pp_url&entry.699375810=questions%2Ftop%2FMathematics-for-NS-%26-SS-23-24-Question-Bank%2FFunctions-%28NS-and-SS%29%2FTypes-of-functions-and-inverse-of-a-function%2FGraphs-of-many-to-one-functions.xml&entry.2077830997=source%2Ffunctions%2Fsections%2Fsec-types-of-functions-and-inverse.ptx

Checkpoint 3.3.10.

Add review
 2 
docs.google.com/forms/d/e/1FAIpQLSfSNI6CXkmgeSZJh6v0WKkeD9MJ9g4pEQ9r0JaowD4ovNxj5w/viewform?usp=pp_url&entry.699375810=questions%2Ftop%2FMathematics-for-NS-%26-SS-23-24-Question-Bank%2FFunctions-%28NS-and-SS%29%2FTypes-of-functions-and-inverse-of-a-function%2FInverse-Function-Computation.xml&entry.2077830997=source%2Ffunctions%2Fsections%2Fsec-types-of-functions-and-inverse.ptx