note_function
note_function
f:
3 → 2
−4 → 1
5 → −1
7 → 2
In this example, the domain of f is the set {3, −4, 5, 7}, and the range
of f is the set {−1, 1, 2}.
In order for an operation to be a valid function, each input must pro-
duces one and only one output. However, it is valid for a function
to produce the same output with different input. Notice in the above
example that f gives 2 as output for both the inputs 3 and 7, which
still makes f a function.
r:
11 → 7
6 → 0
11 → 4
−2 → 0
f:
2 → 4
−1 → 5
0 → 1
6 → 2
f −1 :
4 → 2
5 → −1
1 → 0
2 → 6
x−6 x−6
! !
f (g(x)) = f =4 + 6 = (x − 6) + 6 = x
4 4
(4x + 6) − 6 4x
g(f (x)) = g(4x + 6) = = =x
4 4
So f and g are inverse functions of each other.
A One-to-One Function is a function f that produces different out-
put (y) with different input (x). I.e. f is one-to-one if f (a) = f (b),
then a = b.
Examples of one-to-one functions:
f (x) = x + 5
f (x) = 4x − 3
f (x) = 3x
Examples of functions that are not one-to-one:
f (x) = x2
Notice that f (−2) = (−2)2 = 4 and f (2) = (2)2 = 4. This function f
produces the same output 4 for different input, 2 and −2, therefore it
is NOT a one-to-one function.
f (x) = |x + 5|
Notice that f (−3) = | − 3 + 5| = |2| = 2 and f (−7) = | − 7 + 5| =
| − 2| = 2. Since f produces the same output 2 for different input, −3
and −7, f is NOT a ont-to-one function.
If a function is NOT one-to-one, it is harder to define its inverse. For
example, for f (x) = x2 , since f : −2 → 4 and f : 2 → 4, we would like
the inverse of f to produce both −2 and 2 if the input is 4. But this
violates the fact that f −1 is a function.
So what can we do about the inverse of f if f is not a one-to-one
function? For example, if we have:
f:
1 → 7
0 → 0
π → 0
2 → 4
f −1 :
7 → 1
0 → 0
4 → 2
It would be equally valid if we choose to define f −1 (0) = π, in which
case we have another inverse of f :
f −1 :
7 → 1
0 → π
4 → 2