Beginning Activity Beginning Activity 1: Functions and Sets of Ordered Pairs
When we graph a real function, we plot ordered pairs in the Cartesian plane where the first coordinate is the input of the function and the second coordinate is the output of the function. For example, if \(g\x \mathbb{R} \to \mathbb{R}\text{,}\) then every point on the graph of \(g\) is an ordered pair \(( {x, y} )\) of real numbers where \(y = g( x )\text{.}\) This shows how we can generate ordered pairs from a function. It happens that we can do this with any function. For example, let
Define the function \(F\x A \to B\) by
We can convert each of these to an ordered pair in \(A \times B\) by using the input as the first coordinate and the output as the second coordinate. For example, \(F( 1 ) = a\) is converted to \(( 1, a )\text{,}\) \(F( 2 ) = b\) is converted to \(( 2, b )\text{,}\) and \(F( 3 ) = b\) is converted to \(( 3, b )\text{.}\) So we can think of this function as a set of ordered pairs, which is a subset of \(A \times B\text{,}\) and write
Note: Since \(F\) is the name of the function, it is customary to use \(F\) as the name for the set of ordered pairs.
1.
Let \(A = \left\{ {1, 2, 3} \right\}\) and let \(C = \left\{ {a, b, c, d} \right\}\text{.}\) Define the function \(g\x A \to C\) by \(g( 1 ) = a\text{,}\) \(g( 2 ) = b\text{,}\) and \(g( 3 ) = d\text{.}\) Write the function \(g\) as a set of ordered pairs in \(A \times C\text{.}\)
For another example, if we have a real function, such as \(g\x \mathbb{R} \to \mathbb{R}\) by \(g( x ) = x^2 - 2\text{,}\) then we can think of \(g\) as the following infinite subset of \(\mathbb{R} \times \mathbb{R}\text{:}\)
We can also write this as \(g = \left\{ {( {x, x^2 - 2} )} \mid x \in \mathbb{R} \right\}\text{.}\)
2.
Let \(f\x \Z \to \Z\) be defined by \(f(m) = 3m +5\text{,}\) for all \(m \in \Z\text{.}\) Use set builder notation to write the function \(f\) as a set of ordered pairs, and then use the roster method to write the function \(f\) as a set of ordered pairs.
So any function \(f\x A \to B\) can be thought of as a set of ordered pairs that is a subset of \(A \times B\text{.}\) This subset is
On the other hand, if we started with \(A = \left\{ {1, 2, 3} \right\}\text{,}\) \(B = \left\{ {a, b} \right\}\text{,}\) and
then we could think of \(G\) as a function from \(A\) to \(B\) with \(G( 1 ) = a\text{,}\) \(G( 2 ) = a\text{,}\) and \(G( 3 ) = b\text{.}\) The idea is to use the first coordinate of each ordered pair as the input, and the second coordinate as the output. However, not every subset of \(A \times B\) can be used to define a function from \(A\) to \(B\text{.}\) This is explored in the following questions.
3.
Let \(f = \left\{ {( {1, a} ), ( {2, a} ), ( {3, a} ), ( {1, b} )} \right\}\text{.}\) Could this set of ordered pairs be used to define a function from \(A\) to \(B\text{?}\) Explain.
4.
Let \(g = \left\{ {( {1, a} ), ( {2, b} ), ( {3, a} )} \right\}\text{.}\) Could this set of ordered pairs be used to define a function from \(A\) to \(B\text{?}\) Explain.
5.
Let \(h = \left\{ {( {1, a} ), ( {2, b} )} \right\}\text{.}\) Could this set of ordered pairs be used to define a function from \(A\) to \(B\text{?}\) Explain.