Functions: 4.1 Definition of Functions As Mappings
Functions: 4.1 Definition of Functions As Mappings
Functions
f : A −→ B
47
48 CHAPTER 4. FUNCTIONS
f1 (x) = x + 1,
1
f2 (x) = ,
x
f3 (x) = x2 .
One possible way to define a function is by describing its graph. Let f be a function,
we say that the graph of f is the set Gf = {(x, y) : f (x) = y}.
Remark : Here we use the notion of a set, and also the notion of a pair. The
difference is small, but very essential.
Set: let us have the objects a, b, and c. Then, we may form the set {a, b, c}
containing those objects. The order of the elements in a set is irrelevant and also
duplicating elements is ignored. For example, {a, b, c} is the same as {c, a, b} and
also {a, b, b, c, c, c, a, b, c, b}.
Pair : let us have the objects a and b. Then, we may form the various different
pairs (a, b), (b, a), (a, a), (b, b). The order of the elements is relevant and therefore,
two pairs (x, y) and (z, t) are equal if and only if x = z and y = t.
y
f2 f1
As we can see in the graphs, for f1 and f2 , for any argument value x0 , we
may have exactly one (in general, at most one) functional value for f1 (x0 ) and also
f2 (x0 ). This guaranties us that f1 and f2 are indeed functions.
In contrast to that, we consider now the relationship as y 2 = x.
y
This is not a function, because for many concrete argument values, x0 , we get
√
different “functional” values corresponding to ± x0 .
50 CHAPTER 4. FUNCTIONS
1. y = 5x
2. y = 5
3. x = 5
4. x + y = 5
5. x = y
6. x2 = y
7. x = y 2
8. x2 = y 2
9. 3x2 − y = 5
10. y 2 − x = 5
11. y = |x|
12. x = |y|
1. y = 5x
2. y = 5
3. y = 15 x
1
4. y = 5x
x
5. y = 5x
6. y = 5x2 + 5
4.4. COMPOSITION OF FUNCTIONS 51
√
7. y = 5x2 + 5
√
8. y = 5x2 − 5
it possible to define more than one pair of f and g? If yes, provide such
examples:
1. h(x) = 2x2
2. h(x) = 5x + 5
1
3. f (x) = 2x
4. f (x) = sin(log(5x)
y
f : R −→ R
f (x) = x
1.
y
f : R −→ R
f (x) = x3
2.
54 CHAPTER 4. FUNCTIONS
y
f : R −→ R
f (x) = x2
3.
y
f : R −→ R
1
f (x) = 1 − x+1
4.
function will be named f −1 (x) (read “f inverse of x”). The negative one is not an
exponent, but mearly a symbol to let us know that this function is the inverse of f .
For example, if f (x) = x + 5, we could deduce that the inverse function would
−1
be f (x) = x − 5. If we had an input of 3, we could calculate f (3) = (3) + 5 = 8.
Our output is 8. If we plug this output into the inverse function we get f −1 (8) =
(8) − 5 = 3, which is the original input.
Often the functions are much more complicated than those described above.
It may be difficult to determine just by looking at the functions if they are inverses.
In order to test if two functions, f (x) and g(x) are inverses we will calculate the
composition of the two functions at x. If f changes the variable x in some way, then
g undoes whatever f did, then we will be back at x again for our final solution. In
other words, if we simplify (f ◦ g)(x) the solution will be x. If it is anything but x
the functions are not inverses.
However, there is also the question whether a given function is invertible or
not. If for example, we consider the constant function f (x) = 1, then any output is
equal to one and we may not get from which input is was generated.
Therefore, as a criterion for having inverse function, we require being injective.
While the composition is useful to show two functions are inverses, a more
common problem is to find the inverse of a function. If we think of x as our input
and y as our output from a function, then the inverse will take y as an input and
give x as the output. This means if we switch x and y in our function we will find
the inverse! This process is called the switch and solve strategy.
Switch and solve strategy to find an inverse:
2. Switch x and y
3. Solve for y
3. If the answer to the previous question is yes, compute f −1 (1) and f −1 (3).
3. If the answer to the previous question is yes, define the inverses explicitly.
1. f (x) = −2x + 3
2. f (x) = 2x − 1
x
3. f (x) = 5
+1
3x−4
4. f (x) = x+2
x−1
5. f (x) = x−2