03 - Elementary Functions
03 - Elementary Functions
eNote 3
Elementary Functions
In this eNote we will both repeat some of the basic properties for a selection of the (from high
school) well-known functions f ( x ) of one real variable x, and introduce some new functions,
which typically occur in a variety of applications. The basic questions concerning any function
are usually the following: How, and for which values of x, is the function defined? Which
values for f ( x ) do we get when we apply the functions to the x-elements in the domain? Is the
function continuous? What is the derivative f 0 ( x ) of the function – if it exists? As a new
concept, we will introduce a vast class of functions, the epsilon functions, which are denoted
by the common symbol ε( x ) and which we will use generally in order to describe continuity and
differentiability – also of functions of more variables, which we introduce in the following
eNotes.
In the description of a real function f ( x ) both the real numbers x where the function is
defined and the values that are obtained by applying the function on the domain are
stated. The Domain we denote D ( f ) and the range, or image, we denote R( f ).
Here are domains and the corresponding ranges for some well-known functions.
Figure 3.1: The well-known exponential function e x = exp( x ) and the natural loga-
rithmic function ln( x ). The red circles on the negative x-axis and at 0 indicate that the
logarithmic function is not defined on ] − ∞, 0].
eNote 3 3.1 DOMAIN AND RANGE 3
The function f 8 ( x ) in Example 3.1 is defined using | x |, which denotes the ab-
solute value of x, i.e.
x>0, for x > 0
|x| = 0, for x = 0 (3-2)
− x > 0 , for x < 0 .
The function
sin( x )
f ( x ) = tan( x ) = (3-3)
cos( x )
has the domain D ( f ) = R \ A, A denoting those real numbers x for which cos( x ) = 0, cos( x )
being the denominator, i.e.
Figure 3.2: The graphs for the functions tan( x ) and cot( x ).
eNote 3 3.1 DOMAIN AND RANGE 4
Exercise 3.3
cos( x )
g( x ) = cot( x ) = (3-5)
sin( x )
Determine the domain for g( x ) and state it in the same way as above for tan( x ), see Figure
3.2.
A function f ( x ) that is not defined for all real numbers can easily be extended to a func-
tion fb( x ), which has D ( fb) = R. One way of doing this is by the use of a curly bracket
in the following way:
Definition 3.4
Given a function f ( x ) with D ( f ) 6= R. We then define the 0-extension of f ( x ) by:
f ( x ) , for x ∈ D ( f )
f (x) = (3-6)
for x ∈ R \ D ( f ) .
b
0,
It is evident that depending on the application one can seal and extend the do-
main for f ( x ) in many other ways than choosing the constant 0 as the value for
the extended function at the points where the original function is not defined.
Naturally, the Range R( fb) for the 0-extended function is the original range for
f ( x ) united with 0, i.e. R( fb) = R( f ) ∪ {0} .
Hereafter we will assume – unless otherwise stated – that the functions we consider are
defined for all R possibly by extension as above.
eNote 3 3.2 EPSILON FUNCTIONS 5
We introduce a special class of functions, which we will use in order to define the im-
portant concept of continuity.
ε 1 (x) = x
ε 2 (x) = |x|
(3-8)
ε 3 ( x ) = ln(1 + x )
ε 4 ( x ) = sin( x ) .
The quality ’to be an epsilon function’ is rather stable: The product of an ep-
silon function and an arbitrary other function that only has to be bounded is
also an epsilon function. The sum and the product of two epsilon functions are
again epsilon functions. The absolute value of an epsilon function is an epsilon
function.
eNote 3 3.3 CONTINUOUS FUNCTIONS 6
Functions that are 0 in other places than x = 0 can also be epsilon functions:
Exercise 3.7
Show that the 0-extension fb8 ( x ) of the function f 8 ( x ) = | x |/x is not an epsilon function. Hint:
If we choose k = 10 then clearly there does not exist a value of K such that
1 1
| f 8 ( x )| = | | x |/x | = 1 < , for all x with |x| < . (3-9)
10 K
Draw the graph for fb8 ( x ). This cannot be drawn without ’lifting the pencil from the paper’!
Exercise 3.8
Show that the 0-extension of the function f ( x ) = sin(1/x ) is not an epsilon function.
f ( x ) = f ( x0 ) + ε f ( x − x0 ) . (3-10)
Note that even though it is clear what the epsilon function precisely is in the
definition 3.9, viz. f ( x ) − f ( x0 ), then the only property in which we are in-
terested is the following: ε f ( x − x0 ) → 0 for x → x0 such that f ( x ) → f ( x0 )
for x → x0 , that is precisely as we know the concept of continuity from high
school!
Exercise 3.10
According to the above, all epsilon functions are continuous at x0 = 0 (with the value 0 at
x0 = 0). Construct an epsilon function that is not continuous at any of the points x0 = 1/n
where n = 1, 2, 3, 4, · · · .
Exercise 3.11
Show that the 0-extension fb( x ) of the function f ( x ) = | x − 7|/( x − 7) is not continuous on
R.
f ( x ) = f ( x0 ) + a · ( x − x0 ) + ( x − x0 ) · ε f ( x − x0 ) . (3-11)
f ( x ) = f ( x0 ) + f 0 ( x0 ) · ( x − x0 ) + ( x − x0 ) · ε f ( x − x0 ) . (3-12)
d
f 0 (x) = f (x) . (3-13)
dx
We will show that there is only one value of a that fulfills Equation (3-11). Assume
that two different values, a1 and a2 both fulfill (3-11) possibly with two different
epsilon functions:
f ( x ) = f ( x0 ) + a1 · ( x − x0 ) + ( x − x0 ) · ε 1 ( x − x0 )
(3-14)
f ( x ) = f ( x0 ) + a2 · ( x − x0 ) + ( x − x0 ) · ε 2 ( x − x0 ) .
By subtracting (3-14) from the uppermost equation we get:
0 = 0 + ( a1 − a2 ) · ( x − x0 ) + ( x − x0 ) · (ε 1 ( x − x0 ) − ε 2 ( x − x0 )) , (3-15)
such that
a2 − a1 = ε 1 ( x − x0 ) − ε 2 ( x − x0 ) (3-16)
for all x 6= x0 – and clearly this cannot be true; the right hand side tends towards
0 when x tends towards x0 ! Therefore the above assumption, i.e. that a1 6= a2 , is
eNote 3 3.4 DIFFERENTIABLE FUNCTIONS 9
wrong. The two constants a1 and a2 must be equal, and this is what we should
realize.
The definition above is quite equivalent to the one we know from high school.
If we first subtract f ( x0 ) from both sides of the equality sign in Equation (3-12)
and then divide by ( x − x0 ) we get
f ( x ) − f ( x0 )
= f 0 ( x0 ) + ε f ( x − x0 ) → f 0 ( x0 ) for x → x0 , (3-17)
x − x0
i.e. the well-known limit value for the quotient between the increment in the
function f ( x ) − f ( x0 ) and the x-increment x − x0 . The reason why we do not
apply this known definition of f 0 ( x0 ) is simply that for functions of more vari-
ables the quotient does not make sense – but more about this in a later eNote.
Proof
We have that
f ( x ) = f ( x0 ) + f 0 ( x0 ) · ( x − x0 ) + ( x − x0 ) ε f ( x − x0 )
(3-18)
= f ( x0 ) + f 0 ( x0 ) · ( x − x0 ) + ( x − x0 ) ε f ( x − x0 ) ,
and since the function in the square brackets on the right hand side is an epsilon function of
( x − x0 ) then f ( x ) is continuous at x0 .
But the opposite is not valid – here is an example that shows this:
eNote 3 3.4 DIFFERENTIABLE FUNCTIONS 10
f ( x ) = f ( x0 ) + a · ( x − x0 ) + ( x − x0 ) ε f ( x − x0 ). (3-19)
Definition 3.16
The first degree approximating polynomial for f ( x ) expanded about the point x0 is
defined by:
P1,x0 ( x ) = f ( x0 ) + f 0 ( x0 ) · ( x − x0 ) . (3-22)
Note that P1,x0 ( x ) really is a first degree polynomial in x. The graph for the
function P1,x0 ( x ) is the tangent to the graph for f ( x ) at the point ( x0 , f ( x0 )),
see Figure 3.3. The equation for the tangent is y = P1,x0 ( x ), thus y =
f ( x0 ) + f 0 ( x0 ) · ( x − x0 ). The slope of the tangent is clearly α = f 0 ( x0 ) and
the tangent intersects the y-axis at the point (0, f ( x0 ) − x0 · f 0 ( x0 )). Later we
will find out how we can approximate with polynomials of higher degree n,
i.e. polynomials that are then denoted Pn,x0 ( x ).
Even though this formula is rather well known from high school we shall give a short
sketch of a proof – to illustrate the use of epsilon functions.
eNote 3 3.4 DIFFERENTIABLE FUNCTIONS 12
Proof
f ( x ) = f ( x0 ) + f 0 ( x0 ) · ( x − x0 ) + ( x − x0 ) ε f ( x − x0 )
(3-24)
g ( x ) = g ( x0 ) + g 0 ( x0 ) · ( x − x0 ) + ( x − x0 ) ε g ( x − x0 ) ,
h( x ) = f ( x ) · g( x )
(3-25)
= f ( x0 ) · g( x0 ) + ( f 0 ( x0 ) · g( x0 ) + f ( x0 ) · g0 ( x0 )) · ( x − x0 ) + ( x − x0 )ε h ( x − x0 ) ,
where we have used ( x − x0 )ε h ( x − x0 ) as short for the remaining part of the product sum.
Furthermore any of the addends in the remaining part contains the factor ( x − x0 )2 or the
product of ( x − x0 ) with an epsilon function and therefore can be written in the stated form.
But then the product formula follows directly from the factor in front of ( x − x0 ) in Equation
(3-25):
h 0 ( x0 ) = f 0 ( x0 ) · g ( x0 ) + f ( x0 ) · g 0 ( x0 ) . (3-26)
The following differentiation rule is also well known from high school:
Exercise 3.19
Use the epsilon function argument in the same way as in the differentiation rule for a product
to show Equation 3.18.
h0 ( x0 ) = f 0 ( g( x0 )) · g0 ( x0 ) (3-28)
Proof
We exploit that the two functions f ( x ) and g( x ) are differentiable. In particular g( x ) is dif-
ferentiable at x0 :
g( x ) = g( x0 ) + g0 ( x0 )( x − x0 ) + ( x − x0 ) · ε g ( x − x0 ) , (3-29)
and the function f (u) is differentiable at u0 = g( x0 ):
f (u) = f (u0 ) + f 0 (u0 )(u − u0 ) + (u − u0 ) · ε f (u − u0 ) . (3-30)
From this we get, setting u = g( x ) and u0 = g( x0 ):
h( x ) = f ( g( x ))
= f ( g( x0 )) + f 0 ( g( x0 ))( g( x ) − g( x0 ) + ( g( x ) − g( x0 ) · ε f ( g( x ) − g( x0 )
= h( x0 ) + f 0 ( g( x0 ))( g0 ( x0 )( x − x0 ) + ( x − x0 ) · ε g ( x − x0 )) (3-31)
0
+ ( g ( x0 )( x − x0 ) + ( x − x0 ) · ε g ( x − x0 )) · ε f ( g( x ) − g( x0 )
= h( x0 ) + f 0 ( g( x0 )) g0 ( x0 ) · ( x − x0 ) + ( x − x0 ) · ε h ( x − x0 ) ,
from which we directly read that h0 ( x0 ) = f 0 ( g( x0 )) g0 ( x0 ) – because this is exactly the unique
coefficient of ( x − x0 ) in the above expression.
eNote 3 3.5 INVERSE FUNCTIONS 14
Exercise 3.21
f 0 ( g( x0 )) · ε g ( x − x0 ) + ( g0 ( x0 ) + ·ε g ( x − x0 )) · ε f ( g( x ) − g( x0 )) (3-32)
is an epsilon function, which we accordingly can call (and have called) ε h ( x − x0 ). Consider
why this is entirely OK.
Exercise 3.22
Find the derivatives of the following functions for every x-value in their respective domains:
f 1 ( x ) = ( x2 + 1) · sin( x )
f 2 ( x ) = sin( x )/( x2 + 1) (3-33)
2
f 3 ( x ) = sin( x + 1) .
The exponential function exp( x ) and the logarithmic function ln( x ) are inverse func-
tions to each other – as is well known the following is valid:
Note that even though exp( x ) is defined for all x, the inverse function ln( x ) is
only defined for x > 0 – and vice versa (!).
inverse function g( x ) maps the interval B one-to-one onto the interval A such that:
√
f ( g( x )) = ( x )2 = x for x ∈ B = [0, ∞[
√ (3-35)
g( f ( x )) = x2 = x for x ∈ A = [0, ∞[ .
f ◦−1 ( f ( x )) = x for x ∈ A ⊂ D( f )
(3-37)
f ( f ◦−1 ( x )) = x for x ∈ B ⊂ D ( f ◦−1 ) .
We use here the symbol f ◦−1 ( x ) in order to avoid confusion with ( f ( x ))−1 =
1/ f ( x ). However the reader should note that the standard notation is simply
f −1 for the inverse function. The graph for the inverse function g( x ) = f ◦−1 ( x )
to a function f ( x ) can be obtained by mirroring the graph for f ( x ) in the diag-
onal in the first quadrant in the ( x, y)-coordinate system – i.e. the line with the
equation y = x – see Figure 3.4.
eNote 3 3.5 INVERSE FUNCTIONS 16
Figure 3.4: The graph for a function f ( x ) and the graph for the inverse function g( x ).
It is valid that g( x ) = f ◦−1 ( x ) and f ( x ) = g◦−1 ( x ), but they each have their own
definition intervals.
1
( f ◦−1 )0 ( x0 ) = (3-38)
f 0 ( f ◦−1 ( x 0 ))
eNote 3 3.6 HYPERBOLIC FUNCTIONS 17
Proof
h( x ) = f ( f ◦−1 ( x )) = x , (3-39)
The names cosh( x ) and sinh( x ) (often spoken as “cosh” and “sinsh”) look like cos( x )
and sin( x ), but the functions are very different, as we shall demonstrate below.
Yet there are also fundamental structural similarities between the two pairs of functions
and this is what motivates the names. In the system of differential equations for cos( x )
eNote 3 3.6 HYPERBOLIC FUNCTIONS 18
and sin( x ) only a single minus sign separates this from (3-41):
In addition (again with the decisive minus sign as the only difference) the following
simple analogy to the well-known and often used relation cos2 ( x ) + sin2 ( x ) = 1 applies:
Proof
Make the derivative with respect to x on both sides of the equation (3-43) and conclude that
cosh2 ( x ) − sinh2 ( x ) is a constant. Finally use the initial conditions.
Exercise 3.27
Show directly from the system of differential equations (3-41) that the two ”new” functions
are in fact not so new:
e x + e− x
cosh( x ) = , D (cosh) = R , R(cosh) = [1, ∞[
2 (3-44)
e x − e− x
sinh( x ) = , D (sinh) = R , R(sinh) = ] − ∞, ∞[
2
eNote 3 3.6 HYPERBOLIC FUNCTIONS 19
Exercise 3.28
Exercise 3.29
The graph for the function f ( x ) = cosh( x ) looks a lot like a parabola, viz. the graph for the
function g( x ) = 1 + ( x2 /2) when we plot both functions on a suitably small interval around
x0 = 0. Try this! If we instead plot the two graphs in very large x-interval, we learn that
the two functions have very different graphical behaviours. Try this, i.e. try to plot both
functions on the interval [−50, 50]. Comment upon and explain the qualitative differences.
Similarly compare the two functions sinh( x ) and x + ( x3 /6) in the same way.
It is natural and useful to define hyperbolic analogies to tan( x ) and cot( x ). This is done
as follows:
eNote 3 3.6 HYPERBOLIC FUNCTIONS 20
sinh( x ) e2x − 1
tanh( x ) = = 2x , D (tanh) = R , R(tanh) = ] − 1, 1[
cosh( x ) e +1
(3-46)
cosh( x ) e2x + 1
coth( x ) = = 2x , D (coth) = R − {0} ,
sinh( x ) e −1
R(coth) = ] − ∞, −1[ ∪ ]1, ∞[ .
The derivatives of cosh( x ) and of sinh( x ) are already given by the defining system in
(3-41).
d
cosh( x ) = sinh( x )
dx
d
sinh( x ) = cosh( x )
dx
d 1 (3-47)
tanh( x ) = = 1 − tanh2 ( x )
dx cosh2 ( x )
d −1
coth( x ) = 2
= 1 − coth2 ( x ) .
dx sinh ( x )
eNote 3 3.7 THE AREA FUNCTIONS 21
Exercise 3.31
Show the last two expressions for the derivatives for tanh( x ) and coth( x ) in (3-47) by the use
of the differentiation rule in Theorem 3.18.
The inverse functions to the hyperbolic functions are called area functions and are
named cosh◦−1 ( x ) = arcosh( x ), sinh◦−1 ( x ) = arsinh( x ), tanh◦−1 ( x ) = artanh( x ), and
coth◦−1 ( x ) = arcoth( x ), respectively.
Since the functions cosh( x ), sinh( x ), tanh( x ), and coth( x ) all can be expressed in terms
of exponential functions it is no surprise that the inverse functions and their derivatives
can be expressed by logarithmic functions. We gather the information here:
p
arcosh( x ) = ln( x + x2 − 1) for x ∈ [1, ∞[
p
arsinh( x ) = ln( x + x2 + 1) for x ∈ R
1 1+x (3-48)
artanh( x ) = ln for x ∈ ] − 1, 1[
2 1−x
x−1
1
arcoth( x ) = ln for x ∈ ] − ∞, 1[ ∪ ]1, ∞[ .
2 x+1
d 1
arcosh( x ) =√ for x ∈]1, ∞[
dx x2 −1
d 1
arsinh( x ) =√ for x∈R
dx x2 +1 (3-49)
d 1
artanh( x ) = for x ∈ ] − 1, 1[
dx 1 − x2
d 1
arcoth( x ) = for x ∈ ] − ∞ 1[ ∪ ]1, ∞[ .
dx 1 − x2
The inverse functions to the trigonometric functions are a bit more complicated. As
mentioned earlier here we must choose for each trigonometric function an interval
eNote 3 3.8 THE ARC FUNCTIONS 22
where the function in question is monotonic. In return, once we have chosen such an
interval, it is clear how the inverse function should be defined and how it should then
be differentiated. The inverse functions to cos( x ), sin( x ), tan( x ), and cot( x ) are usu-
ally written arccos( x ), arcsin( x ), arctan( x ), and arccot( x ), respectively; their names are
arccosine, arcsine, arctangent, and arccotangent. As above we gather the results here:
Note that the derivatives for arccos( x ) and arcsin( x ) are not defined at x0 = 1
or at x0 = −1. This is partly because, if the function we consider is only defined
on a bounded interval then we cannot say that the function is differentiable
at the end-points of the interval. Moreover the formulas for arccos0 ( x ) and
arcsin0 ( x ) show that they are not defined at x0 = 1 or x0 = −1; these values
give 0 in the denominators.
eNote 3 3.8 THE ARC FUNCTIONS 23
Exercise 3.32
Use a suitable modification of arctan( x ) in order to determine a new differentiable (and hence
continuous) function f ( x ) that looks like the 0-extension of | x |/x (which is neither continuous
nor differentiable), i.e. we want a function f ( x ) with the following properties: 1 > f ( x ) >
0.999 for x > 0.001 while −0.999 > f ( x ) > −1 for x < −0.001. See Figure 3.10. Hint: Try to
plot arctan(1000x ).
eNote 3 3.8 THE ARC FUNCTIONS 24
Figure 3.9: Arccosine and arcsine. Again the red circles indicate that the arc-functions
are not defined outside the interval [−1, 1]. Similarly the green circular disks indicate
that the arc-functions are defined at the end-points x = 1 and x = −1.
3.9 Summary
We have treated some of the fundamental properties of some well-known and some
not so well-known functions. How are they defined, what are their domains, are they
continuous, are they differentiable, and if so what are their derivatives?
f ( x ) = f ( x0 ) + f 0 ( x0 )( x − x0 ) + ( x − x0 )ε f ( x − x0 ) .
d
( f ( x ) · g( x )) = f 0 ( x ) · g( x ) + f ( x ) · g0 ( x ) . (3-53)
dx
f 0 (x) f ( x ) · g0 ( x ) f 0 ( x ) · g( x ) − f ( x ) · g0 ( x )
d f (x)
= − = . (3-54)
dx g( x ) g( x ) g2 ( x ) g2 ( x )
d
f ( g( x )) = f 0 ( g( x )) · g0 ( x ) . (3-55)
dx