Notes 4
Notes 4
Notes 4
One-to-One Functions
Let’s recall that for any x in the domain of a function f , only one function value f (x) can be assigned
to x. However, it is possible that two different numbers x1 6= x2 in the domain of f have the same function
value, i.e. f (x1 ) = f (x2 ). By ruling out this possibility, we have the concept of a one-to-one function:
A function f is said to be one-to-one if f (x1 ) 6= f (x2 ) for any two numbers x1 6= x2 in the
domain of f .
In other words, f (x) never takes on the same function value twice or more times when x runs through
the domain of f ; or equivalently, the equation
f (x) = b
has exactly one solution for any b in the range of f . In particular, f is a one-to-one function if x1 = x2
whenever f (x1 ) = f (x2 ).
Graphically speaking, we have the Horizontal Line Test which says that f is a one-to-one function if
every horizontal line hits the graph of f at most once.
y y
y = f(x)
y = g(x)
x x
f is not one-to-one : several x-values g is one-to-one : different x-values
can produce the same y-value can not produce the same y-value
Example 1. Let y = g(x) = 2x + 3, whose graph is a line with slope 2 and y-intercept 3.
g is clearly a one-to-one function since 2x1 + 3 6= 2x2 + 3 whenever x1 6= x3 .
Example 2. Let f be defined by f (x) = x2 . It is obviously that f takes on every positive number b 6= 0
√
exactly two times, since x2 = b has exactly two roots x = ± b for any b > 0; e.g.,
20
MATH1013 Calculus IB
7 y 7 y y
4
6 6
3 y=b
5 y=b 5 y=b
2
4 4 y=x3
1
3 3 x
2 −4 −3 −2 −1 1 2 3 4
2 2 y=x
y=x2 domain: 0≤x<∞ −1
1 1
−2
x x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4 −3
−1 −1
−4
y=x3 y=x6
2 4
1 3
x
2 y=x2
−2 −1 1 2
−1 1
x
−2
−1 1 2 3
−3 −1
1
Example 5. y = |x| and y = are not a one-to-one functions.
x2
1 1
Just note that | − 2| = 2 = |2|, while 2 6= −2, and (−2)2 = 22 .
1 1
Example 6. f (x) = is and g(x) = 3 are one-to-one functions.
x x
1 1
For example, if f (x1 ) = = = f (x2 ), we must have x1 = x2 . Note that f and g are neither
x1 x2
21
4.1. INVERSE FUNCTIONS ARISING FROM ONE-TO-ONE FUNCTIONS MATH1013 Calculus IB
7 y y y
4 4
6
5 y=2 y= x12
2 2
4 y=|x|
1 1
y= x y= x
3 x x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
2
y=2
1
−2 −2
x
−4 −3 −2 −1 1 2 3 4 y= x13
−1
−4 −4
1
Remark Note that for any positive integer n, the function n can also be expressed in the form of power
x
1
function as n = x−n . The following exponent laws for integer powers (or exponents) then follow easily.
x
xn
(i) x0 = 1 ((By convention) (ii) xn+m = xn xm (iii) xn−m = m
x
x n xn
(iv) (xn )m = xnm (v) (xy)n = xn y n (vi) = n
y y
where n, m are any integers. For example, if n, m are positive integers with n < m, then
xn xm = ( x
| · x {z
· · · · · x} ) · ( x
| · x {z
· · · · · x} ) = x
| · x {z
· · · · · x} = xn+m
n many factors m many factors n + m many factors
n many factors
z }| {
xn x · x ····· x 1 1
= = = = xn−m
xm x
| · x {z
· · · · · x} x
| · x {z
· · · · · x} xm−n
m many factors m − n many factors
22
4.1. INVERSE FUNCTIONS ARISING FROM ONE-TO-ONE FUNCTIONS MATH1013 Calculus IB
Suppose we use an arrow diagram to represent a function f , which assigns to any given number x in the
domain of f a unique number y (i.e., f (x)) in the range of f .
Then, defining f −1 is just like “reversing the arrow” of f :
A one-to-one function f
Domain of f Range of f
Roughly speaking, a one-to-one function y = f (x) gives rise to a one-to-one matching of the numbers in
two sets. Depending on which variable you take as the independent variable, you have either the original
function f (x), or the inverse function f −1 (y).
Remark The following properties of f and f −1 follow easily from chasing the arrows:
Example 7. As given above, the linear function y = g(x) = 2x + 3 has its inverse function defined by
y−3
x= = g −1 (y)
2
If one insists on using x as the domain variable of g −1 rather than y, just replace every y by x to express
the inverse function in the form
x−3
g −1 (x) =
2
Note that x in g −1 (x) actually represents numbers in the range of g, although the domain and range of g in
this example are both the set of all real numbers.
9 y x y
8 8
y=2x+3
6 6 6
4 4
3
2 x= y−3
2 2 y= x−3
2
x y x
−8 −6 −4 −2 2 4 6 8 −6 −3 3 6 −6 −3 3 6
−2 −2
−3
−4 −4
−6 −6 −6
1 1
Remark Note that for the identity function f (x) = x, we have f −1 (x) = x, which is not = .
x f (x)
1
Exercise Find h−1 (x) where h(x) = .
x
3x + 2
Example 8. Find the inverse function f −1 (x) for the function f (x) = .
2x − 1
23
4.2. GRAPHS OF THE INVERSE FUNCTIONS MATH1013 Calculus IB
3x + 2
Let y = . Then
2x − 1
y(2x − 1) = 3x + 2 ⇐⇒ (2y − 3)x = y + 2 .
Hence
y+2 x+2
x= = f −1 (y) and f −1 (x) = .
2y − 3 2x − 3
The domain of f −1 , which is the range of f , is given by x 6= 23 ; i.e., (−∞, 32 ) ∪ ( 32 , ∞).
The range of f −1 , which is the domain of f , is given by x 6= 12 ; i.e., (−∞, 12 ) ∪ ( 12 , ∞)
Exercise Find the inverses of the following functions, and their domains and ranges.
x
(a) y = 4x3 + 5 (b) y = √
2
x +1
Example 9. Boyle’s Law says that the pressure P of an ideal gas at constant temperature is a function of
the volume V of the gas as follows:
k
P =
V
where k is certain constant. P
k
V = .
P
The graph of x = f −1 (y) is the same as the graph of y = f (x), except that the y-axis is now viewed as
the domain axis.
In particular, the graph of the inverse function y = f −1 (x) can be obtained by reflecting the graph of
the one-to-one function y = f (x) across the line y = x, or simply by renaming the x-axis as the y-axis, and
y-axis as the x-axis.
y x -1 y -1
y = f (x) x = f (y) y = f (x)
y
x
x x y y x
y=x y=x
√
Example 10. For any integer n ≥ 2, the n-th root function n x is defined as follows:
√ the inverse function of y = xn with domain restricted to [0, ∞) if n is even
n
x=
the inverse function of y = xn if n is odd
24
4.3. EXPONENTIAL AND LOGARITHMIC FUNCTIONS MATH1013 Calculus IB
y 5 y
4 4 y=x3
y=x2
3
3
√
3 x
2 y=
√
y= x 1
2
x
−4 −3 −2 −1 1 2 3 4 5
1 −1
x −2
1 2 3 4 5 −3
−1 −4
(−∞, ∞) if n is odd
√ 1
Using exponent notation, an n-th root function can be written as n x = x n .
n
More generally, a power function of the form x m , where n is an integer and m is a positive integer, is
defined by
n √
x m = m xn .
1 1 1 1
Exercise Extend the law of exponents to rational powers. For example, why do we have x 2 + 3 = x 2 x 3 ?
(Hint: What is (x1/2 x1/3 )6 ?)
12 12
10 10
8 8
6 6
4 4
2 2
0 0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2
y = 2x , y = 3x , y = 4x y = ( 12 )x , y = ( 31 )x , y = ( 14 )x
(a > 1) (0 < a < 1)
25
4.3. EXPONENTIAL AND LOGARITHMIC FUNCTIONS MATH1013 Calculus IB
1
y y = log10x
0.5
0
x
-0.5
-1
-1.5
-1 0 1 2 3 4 5 6
Note that to find the value of c = log10 1000 is just a problem of solving the equation 10c = 1000 = 103 ,
and hence obviously c = 3 = log10 1000.
Not so easy to find the value c = log10 8 though, which means 10c = 8. A rough estimate is
1
<c<1
2
since 101/2 < 8 = 10c < 101 .
Exercise Plot the graphs of a few of those exp and log functions, such as
26
MATH1013 Calculus IB
4.4. THE NATURAL EXPONENTIAL FUNCTION AND THE NATURAL LOGARITHMIC FUNCTION
Example 12. Figure out the property loga (xy) = loga x + loga y from the Laws of Exponents.
Let A = loga x, and B = loga y. Hence we have aA = x and aB = y. What if you multiplying the two
together?
aA aB = xy ⇐⇒ aA+B = xy
Now, convert it to:
loga (xy) = A + B = loga x + loga y
All other log properties on the right-hand-side of the table above can be checked by similar arguments.
(Exercise !)
y = ex , y = loge x as
= ln x
y = Aax ,
Example 1. Find the domain and range of the function y = f (x) = 2 ln(5 − x) + 1. What is its inverse
function?
Solution Recall that loga (⋆) is well-defined if and only if ⋆ > 0. Hence the domain of f (x) is given by:
5 − x > 0, i.e., x < 5.
y = 2 ln(5 − x) + 1
y−1
2 = ln(5 − x)
y−1
5−x=e 2
y−1
x=5−e 2
y−1
i.e., the inverse function x = f −1 (y) = 5 − e 2 .
Range of f (x) = domain of f −1 (y), which is the set of all real numbers.
Example 2. Solve the following equations: (a) 24(1 − e−t/2 ) = 16; (b) 22x−3 = 3x+1
27
4.5. A FEW MORE EXAMPLES ON USING EXP-LOG MATH1013 Calculus IB
Solution
(a) 24(1 − e−t/2 ) = 16. (b)22x−3 = 3x+1
1 − e−t/2 = 16 2
24 = 3 ln 22x−3 = ln 3x+1
e−t/2 = 31 (2x − 3) ln 2 = (x + 1) ln 3
− 2t = ln 31 (2 ln 2 − ln 3)x = ln 3 + 3 ln 2
ln 3 + 3 ln 2
t = −2 ln 13 = ln 9 (≈ 2.1792) x=
2 ln 2 − ln 3
Example 3. In a chemical reaction starting with 2.5 mol/cm3 of reactant, the amount of product, say y
mol/cm3 , is given by the following formula
y = 2.5(1 − e−4t )
where t is the time, in minutes. Find the amount of product produced after 2 min. How long will it take to
produce 2 mol/cm3 of the product?
Solution
When t = 2 min, y = 2.5(1 − e−8 ) mol/cm3 is the amount of the product produced.
To produce 2 mol/cm3 , the reaction time needed is given by the equation 2 = 2.5(1 − e−4t ), i.e.,
1 − e−4t = 0.8, e−4t = 0.2. Therefore −4t = ln 0.2, and t = − 41 ln 0.2 minutes.
Example/Exercise 4.
1
1. Change the following into logarithmic form: (a) 43 = 64 (b) 3−4 = 81 (c) st = d
28