§ 1. Derivatives of the exponential and circular functions
1. Derivatives of the exponential functions; the number e
We know that every continuous homomorphism of the additive group R into the multiplicative group R∗ of real numbers =0 is a function of the form x↦ax (called an exponential function) where a is a number >0 (TG, V, p.11); it is an isomorphism of R onto the multiplicative group R+∗ of numbers >0 if a=1, and the inverse isomorphism from R+∗ onto R is denoted by logax and is called the logarithm to the base a.
We shall see that the function f(x)=ax has, for every x∈R, a derivative of the form c.ax (where clearly c=f′(0)). This results from the following general theorem:
Theorem 1
Let E be a complete normed algebra over the field R, with a unit element e, and let f be a continuous group homomorphism of the additive group R into the multiplicative group G of invertible elements of E. Then the map f is differentiable at every x∈R, and
f′(x)=f(x)f′(0).
First we note that, E being a complete algebra, G is open in E (Gen. Top., IX, p. 179, prop. 14). Consider the function g(x)=∫0af(x+t)dt, where a>0 is a number which we shall choose later; since f(x+t)=f(x)f(t) by hypothesis, we have g(x)=∫0af(x)f(t)dt=f(x)∫0af(t)dt (I, p. 6, prop. 3). Let α>0 be such that the ball ∥x−e∥≤α is contained in G; since f(0)=e and f is continuous by hypothesis, one can assume that a is small enough so that ∥f(t)−e∥≤α on [0,a]; consequently (II, p. 61, formula (16)) one has
a1∫0af(t)dt−e≤α,
and a1∫0af(t)dt belongs to G; in other words, is invertible; so too is b=∫0af(t)dt and one can write f(x)=g(x)b−1; it is therefore enough to show that g is differentiable; now, by the change of variable x+t=u we have g(x)=∫xx+af(u)du; since f is continuous, g is differentiable for all x∈R (II, p. 56, prop. 3), and
g′(x)=f(x+a)−f(x)=f(x)(f(a)−e).
Hence f′(x)=g′(x)b−1=f(x)c, where c=(f(a)−e)b−1, and clearly f′(0)=c.
Conversely, one can show, either directly (III, p. 115, exerc. 1), or by means of the theory of linear differential equations (IV, p. 188), that every differentiable map f of R into a complete normed algebra E, such that f′(x)=f(x)c and f(0)=e, is a homomorphism of the additive group R into the multiplicative group G.
Proposition 1
For every number a>0 and =1 the exponential function aλ admits at every point x∈R a derivative equal to (logea)aλ where e is a number >1 (independent of a).
Applying th. 1 to the case where E is the field R itself now shows that aλ has a derivative equal to φ(a).aλ at every point, where φ(a) is a real number =0 depending only on a. Let b be a second number >0 and =1; the function bλ has a derivative equal to φ(b).bλ from the above; on the other hand, we have bλ=aλlogab so (I, p. 9, prop. 5) the derivative of bλ is equal to logab.φ(a)bλ; on comparing these two expressions we obtain
φ(b)=φ(a).logab.
(2)
One deduces that there is one unique number b such that φ(b)=1; by (2) this relation is equivalent to b=a1/φ(a). It is conventional to denote the real number so obtained by e; from (2) one has φ(a)=logea, which completes the proof of prop. 1.
One often writes expx instead of ex.
The definition of the number e shows that
D(eλ)=eλ
(3)
which proves that eλ is strictly increasing, hence that e>1.
In §2 (III, p. 105) we shall see how to calculate arbitrarily close approximations to e.
Definition 1
Logarithms to the base e are called Naperian logarithms (or natural logarithms).
We usually omit the base in the notation for the Naperian logarithm. Unless it is stated to the contrary, the notation logx (x>0) will denote the Naperian logarithm of x. With this notation, prop. 1 can be written as the identity
D(aλ)=(loga)aλ
(4)
valid for any a>0 (loga=0 when a=1).
This relation shows that ax has derivatives of every order, and that
Dn(ax)=(loga)nax.
(5)
In particular, for a>0 and =1 one has D2(ax)>0 for all x∈R, and hence ax is strictly convex on R (I, p. 31, corollary). From this one deduces the following proposition:
Proposition 2 ("geometric mean inequality")
For any numbers* zi>0 (1≤i≤n) and numberspi>0such that∑i=1npi=1, one has
z1p1z2p2⋯znpn≤p1z1+p2z2+⋯+pnzn.
(6) Moreover, the two sides of (6) are equal only if thezi *are equal.
Let us put zi=exi; then the inequality (6) can be written
(7) The proposition thus follows from prop. 1 of I, p. 26 applied to the function ex, which is strictly convex on R.
One says that the left- (resp. right-) hand side of (6) is the weighted geometric mean (resp. weighted arithmetic mean) of the n numbers zi relative to the weightspi (1≤i≤n). If pi=1/n for 1≤i≤n, one calls the corresponding arithmetic and geometric means the ordinary arithmetic and geometric means of the zi. Then the inequality (6) can be written
(z1z2⋯zn)1/n≤n1(z1+z2+⋯+zn).
(8)
2. Derivative of logax
Since ax is strictly monotone on R for a=1, applying the rule for differentiating inverse functions (I, p. 17, prop. 6) gives, for all x>0
D(logax)=xloga1
(9) and in particular
D(logx)=x1.
(10)
If u is a real function admitting a derivative at the point x0 and such that u(x0)>0, then the function logu admits a derivative equal to u′(x0)/u(x0) at the point x0. In particular, we have D(log∣x∣)=1/∣x∣=1/x if x>0, and
D(log∣x∣)=−∣x∣1=x1
if x<0; in other words, D(log∣x∣)=1/x for any x=0. One concludes that if, on an interval I, the real function u is not zero and admits a finite derivative, then log∣u(x)∣ admits a derivative equal to u′/u on I; this derivative is called the logarithmic derivative of u. It is clear that the logarithmic derivative of ∣u∣α is αu′/u, and that the logarithmic derivative of a product is equal to the sum of the logarithmic derivatives of the factors; these rules often provide the fastest way to calculate the derivative of a function. They give again, in particular, the formula
D(xα)=αxα−1(α an arbitrary real number, x>0)
which has already been shown by another method (II, p. 69).
Example
If u is a function =0 on an interval I, and v is any real function, then log(∣u∣v)=v⋅log∣u∣, so if u and v are differentiable
∣u∣v1D(∣u∣v)=v′log∣u∣+vuu′.
3. Derivatives of the circular functions; the number π
We have defined, in General Topology (Gen. Top., VIII, p. 106), the continuous homomorphism x↦e(x) of the additive group R onto the multiplicative group U of complex numbers of absolute value 1; this is a periodic function with principal period 1, and e(41)=i. One knows (loc. cit.) that every continuous homomorphism of R onto U is of the form x↦e(x/a), and one puts cosax=R(e(x/a)),sinax=I(e(x/a)) (trigonometric functions, or circular functions, to base a); these last functions are continuous maps from R into [−1,+1] having principal period a. We have sina(x+a/4)=cosax,cosa(x+a/4)=−sinax, and the function sinax is increasing on the interval [−a/4,a/4].
Proposition 3
The function* e(x)has a derivative equal to2πie(x)at every point ofR, whereπis a constant>0.
Now, th. 1 of III, p. 51, applied to the case where E is the field C of complex numbers, yields the relation e′(x)=e′(0)e(x); moreover, since e(x) has constant euclidean norm, e′(x) is orthogonal to e(x) (I, p. 7, Example 3); one thus has e′(0)=αi, with α real. Since sin1x is increasing on [−41,41] its derivative for x=0 is ⩾0, so α⩾0, and since e(x) is not constant, α>0; it is conventional to denote the number α so obtained by 2π.
In §2 (III, p. 23) we shall show how one can calculate arbitrarily close approximations to the number π.
We thus have the formula
D(e(ax))=a2πie(ax).
One sees that this formula simplifies when a=2π; this is why one uses the circular functions relative to base 2π exclusively in Analysis; we agree to omit the base in the notation for these functions; unless mentioned expressly to the contrary, the notations cosx, sinx and tanx denote cos2πx, sin2πx and tan2πx respectively.
With these conventions, and a=2π, formula (12) can be written
D(cosx+isinx)=cos(x+2π)+isin(x+2π),
which is equivalent to
D(cosx)=−sinx,D(sinx)=cosx,
from which one deduces
D(tanx)=1+tan2x=cos2x1.
Besides the three circular functions cosx, sinx and tanx one also uses, in numerical work, the three auxiliary functions: cotangent, secant and cosecant, defined by the formulae
cotx=tanx1,secx=cosx1,cosecx=sinx1.
Recall (Gen. Top., VIII, p. 109) that the angle corresponding to the base 2π is called the radian.
4. Inverse circular functions
The restriction of the function sinx to the interval [−π/2,+π/2] is strictly increasing; one denotes its inverse by Arcsinx, which is thus a strictly increasing continuous map of the interval [−1,+1] onto [−π/2,+π/2] (fig. 6). The formula for differentiating inverse functions (I, p. 9, prop. 6) gives the derivative of this function
D(Arcsinx)=cos(Arcsinx)1.
Since −π/2≤Arcsinx≤π/2 we have cos(Arcsinx)≥0, and since
sin(Arcsinx)=x,
we have cos(Arcsinx)=1−x2, from which
D(Arcsinx)=1−x21.
Likewise the restriction of cosx to the interval [0,π] is strictly decreasing; one denotes its inverse function by Arccosx, and this a strictly decreasing map of [−1,+1] onto [0,π] (fig. 6). Moreover
Finally, the restriction of tan x to the interval ]−π/2, +π/2[ is strictly increasing; one denotes its inverse by Arc tan x, and this is a strictly increasing map from \mathbf{R} onto ]−π/2, +π/2[ (fig. 7); we have
x→−∞limArctanx=−2π,x→+∞limArctanx=2π,
and, by applying the formula for differentiating inverse functions and formula (15) of III, p. 95, we have
We have determined (Gen. Top., VIII, p. 106) all the continuous homomorphisms of the (additive) topological group \mathbf{C} of complex numbers onto the (multiplicative) topological group \mathbf{C}^* of complex numbers ≠ 0; these are the maps
x+iy↦eαx+βye(γx+δy)
where α,β,γ,δ are four real numbers subject to the single condition αδ−βγ=0. We now propose to determine which of these homomorphisms z↦f(z) are differentiable on \mathbf{C}. First we remark that it is enough for f to be differentiable at the point z=0; indeed, for every point z∈C one has
hf(z+h)−f(z)=f(z)hf(h)−1
if f′(0) exists, then so does f′(z), and f′(z)=af(z), with a=f′(0). On the other hand, if g is a second differentiable homomorphism, such that g′(z)=bg(z), then g(az/b)=f(z), for one notes immediately that the quotient g(az/b)/f(z) has an everywhere zero derivative and is equal to 1 for z=0; all the differentiable homomorphisms are thus of the form z↦f(λz), where f is one of them (assuming they exist) and λ is any (complex) constant.
This being so, if f is differentiable at the point z=0 then each of the maps x↦f(x),y↦f(iy) of R into C is necessarily differentiable at the point 0, the first having derivative f′(0), the second if′(0). Now the derivatives of the maps x↦eαxe(γx),y↦eβye(δy) at the point 0 are respectively equal to α+2πiγ and β+2πiδ, from which β=−2πγ and α=2πδ; these conditions are, in particular, satisfied by the homomorphism x+iy↦eze(y/2π), which we shall denote provisionally by f0. We shall now show that f0 is actually differentiable at the point z=0.
It is clear that x↦f0(x) and y↦f0(iy) have derivatives of every order; in particular, Taylor's formula of order 1 applied to these functions shows that for every ε>0 there is an r>0 such that, if one puts
f0(x)=1+x+φ(x)x,f0(iy)=1+iy+ψ(y)y,
then the conditions ∣x∣≤r,∣y∣≤r imply that ∣φ(x)∣≤ε and ∣ψ(y)∣≤ε; this being so, we have f0(x+iy)=f0(x)f0(iy)=1+(x+iy)+θ(x,y) with
θ(x,y)=(i+φ(x)ψ(y))xy+(1+x)yψ(y)+(1+iy)xφ(x);
for ∣z∣≤r we have ∣x∣≤r and ∣y∣≤r, whence
∣θ(x,y)∣≤(1+ε2)∣z∣2+2ε∣z∣(1+∣z∣)
which proves that the quotient zf0(z)−1−z tends to 0 with z, that is to say, the function f0 admits a derivative equal to 1 at the point z=0. The above thus proves that, for all z∈C,
D(f0(z))=f0(z).
This property establishes the connection between f0 and the function ez, which is moreover the restriction of f0 to the real axis; for this reason we make the following definition:
Definition 2The homomorphismx+iy↦eze(y/2π)ofContoC∗is called the complex exponential; its value at an arbitrary complex numberzis denoted byezorexpz.
6. Properties of the function ez
The fact that z↦ez is a homomorphism of C onto C∗ may be expressed by the identities
ez+z′=ezez′,e0=1.e−z=1/ez.
By definition, one has, for every z=x+iy,
ex+iy=ex(cosy+isiny)
and since eλ>0 one sees that ez has absolute valueeλ and amplitudey (modulo 2π).
In particular, def. 2 (III, p. 98) gives
e(x)=e2πix
which permits us to write the formulae defining cosx and sinx in the form
cosx=21(eix+e−ix),sinx=2i1(eix−e−ix)
(Euler’s formulae).
Since 2π is the principal period of e(y/2π), 2πi is the principal period of ez; in other words, the group of periods of ez is the set of numbers 2nπi, where n runs through Z.
Finally, formula (21) of III, p. 98 can be written
D(ez)=ez
whence, for every complex number a
D(eaz)=aeaz.
Remark
If, in formula (27), one restricts the function eaz (a complex) to the real axis, one again obtains, for x real,
D(eax)=aeax.
This formula allows us to calculate a primitive for each of the functions eαxcosβx, eαxsinβx (α and β real); indeed we have e(α+iβ)x=eαxcosβx+ieαxsinβx, so, by (28)
D(R(α+iβ1e(α+iβ)x))=eαxcosβx
D(I(α+iβ1e(α+iβ)x))=eαxsinβx.
In the same way one reduces the evaluation of a primitive of xneαxcosβx, or of xneαxsinβx (nan integer>0) to that of a primitive of xne(α+iβ)x; now, the formula for integration by parts of order n+1 (II, p. 60, formula (11)) shows that a primitive of this last function is
By Euler’s formulae one can on the other hand express every positive integral power of cosx or of sinx as a linear combination of exponentials eipx (p a positive or negative integer). By formula (28) one can thus express a primitive of a function of the form xneαx(cosβx)′(sinγx)s as a linear combination of functions of the form xpeαxcosλx and xpeαxsinμx and (n,p,r,s integers, α,β,γ,λ,μ real).
Let B be the "strip" formed by the points z=x+iy such that −π≤y<π; the function ez takes each of its values once and only once on B; in other words, z↦ez is a bijective continuous map of B onto C∗; the image under this map of the (half-open) segment x=x0,−π≤y<π is the circle ∣z∣=ex0; the image of the line y=y0 is the (open) half-line defined by Am(z)=y0 (mod. 2π). The image under z↦ez of the interior B˙ of B, that is, of the set of z∈C such that ∣I(z)∣<π, is the complement F of the (closed) negative real half-axis in C; if one agrees to denote by Am(z) the measure of the amplitude of z which belongs to [−π,π[, then the set F can be defined by the relations −π<Am(z)<π. Since z↦ez is a strict homomorphism of C onto C∗ the image under this map of any open subset of B (so of C) is an open set in C∗ (so in F); in other words, the restriction of z↦ez to B is a homeomorphism of B˙ onto F. We denote by z↦logz the homeomorphism of F onto B which is the inverse of the latter; for a complex number z∈F, logz is called the principal value of the logarithm of z. If z=x+iy and logz=u+iv then x+iy=eu+iv, whence eu=∣z∣, and since −π<v<π, we have v=Am(z). Moreover, we have tan(v+π/2)=−x/y if y=0; thus we can write
It is clear that logz is the extension to F of the function logx defined on the positive open real half-axis R+∗. If z,z′ are two points of F such that zz′ is not real negative, we have log(zz′)=logz+logz′+2επi, where ε=+1,−1 or 0 depending on the values of Am(z) and Am(z′).
We note that at the points of the negative real half-axis the function logz has no limit; to be precise, if x tends to x0<0 and if y tends to 0 remaining > 0 (resp. < 0), then logz tends to log∣x0∣+πi (resp. log∣x0∣−πi); when z tends to 0, ∣logz∣ increases indefinitely.
We shall see later how the theory of analytic functions allows us to extend the function logz, and to define the complex logarithm in full generality.
Since logz is the inverse homeomorphism of ez, the formula for differentiating inverse functions (I, p. 9, prop. 6) shows that logz is differentiable at every point z∈F, and that
D(logz)=elogz1=z1
a formula which generalizes formula (10) of III, p. 93.
8. Primitives of rational functions
Formula (31) allows us to evaluate the primitive of an arbitrary rational function r(x) of a real variable x, with real or complex coefficients. We know (A.VII.7) that such a function can be written (in unique manner) as a finite sum of terms, which are:
a) either of the form axp (p an integer ⩾0, a a complex number); b) or of the form a/(x−b)m (m an integer ⩾0, a and b complex numbers).
Now it is easy to obtain a primitive of each of these terms: a) a primitive of axp is ap+1xp+1; b) if m>1 a primitive of a/(x−b)m is (1−m)(x−b)m−1a; c) finally, from formulae (10) (III, p. 93) and (31) (III, p. 101), a primitive of x−ba is alog∣x−b∣ if b is real, alog(x−b) if b is complex. In the last case, if b=p+iq, one has furthermore (III, p. 100, formulae (30))
log(x−b)=log(x−p)2+q2+iArctanqx−p±i2π.
We postpone the examination of more practical methods for explicitly determining a primitive of a rational function given explicitly to the part of this work dedicated to Numerical Calculus.
One can reduce to the evaluation of a primitive of a rational function:
1° the evaluation of a primitive of a function of the form r(eax), where r is a rational function and a a real number; indeed by the change of variable u=eax one reduces to finding a primitive for r(u)/u;
2° the evaluation of a primitive of a function of the form f(sinax,cosax), where f is a rational function of two variables and a is a real number; the change of variables u=tan(ax/2) reduces this to finding a primitive for
Euler’s formulae (25) (III, p. 99) and the definition of ez for every complex z allow us to extend to C the functions cosx and sinx defined on R, by putting, for all z∈C
cosz=21(eiz+e−iz),sinz=2i1(eiz−e−iz)
(cf. III, p. 119, exerc. 19).
These functions are periodic with principal period 2π; that is, one has cos(z+π/2)=−sinz,sin(z+π/2)=cosz; one may also verify the identities
More generally, every algebraic identity between circular functions for real variables remains true when one gives these variables arbitrary complex values (III, p. 119, exerc. 18).
One puts tanz=sinz/cosz if z=(2k+1)π/2 and cotz=cosz/sinz if z=kπ; these are periodic functions with principal period π.
Formula (27) (III, p. 99) shows that cosz and sinz are differentiable on C, and that
D(cosz)=−sinz,D(sinz)=cosz.
For z=ix (x real), the formulae (32) give
cosix=21(ei+e−i),sinix=2i(ei−e−i).
It is convenient to have a specific notation for the real functions thus introduced; we put
⎩⎨⎧coshx=21(ex+e−x)sinhx=21(ex−e−x)tanhx=coshxsinhx=ex+e−xex−e−x(hyperbolic cosine of x)(hyperbolic sine of x)(hyperbolic tangent of x)
One thus has, for every real x
cosix=coshx,sinix=isinhx.
From every identity between circular functions in a certain number of complex numbers zk (1≤k≤n) one can deduce an identity for the hyperbolic functions, by replacing zk by ixk (xk real, 1≤k≤n) and using the formulae (34); for instance one has
cosh2x−sinh2x=1
cosh(x+x′)=coshxcoshx′+sinhxsinhx′
sinh(x+x′)=sinhxcoshx′−coshxsinhx′.
The hyperbolic functions allow us to express the real and imaginary parts of cosz and sinz for z=x+iy, since
Since coshx>0 for all x one deduces that sinhx is strictly increasing on R; since sinh0=0, it follows that sinhx has the same sign as x. In consequence coshx is strictly decreasing for x≤0, strictly increasing for x≥0, finally, tanhx is strictly increasing on R. Moreover
x→−∞limsinhx=−∞,x→+∞limsinhx=+∞
x→−∞limcoshx=x→+∞limcoshx=+∞
x→−∞limtanhx=−1,x→+∞limtanhx=+1(fig. 8 and 9).
Sometimes we write Argsinhx for the inverse function of sinhx, which is a strictly increasing map from R onto R: this function can also be expressed in terms of the logarithm, since from the relation x=sinhy=21(ey−e−y) we deduce that e2y−2xey−1=0, and since ey>0, we have ey=x+x2+1, that is to say
Argsinhx=log(x+x2+1).
Similarly, we denote by Argcoshx the inverse of the restriction of coshx to [0,+∞[; this map is strictly increasing from ]1,+∞[ onto ]0,+∞[; one shows as above that
Argcoshx=log(x+x2−1).
Finally, we denote by Arg tanh x the inverse function of tanh x, which is a strictly increasing map from ]−1,+1 [ onto R; one has, moreover,
Argtanhx=21log1−x1+x.
Remark
For complex z one sometimes writes
coshz=21(ez+e−z)=cosizsinhz=21(ez−e−z)=−isiniz.
These functions thus extend to C the hyperbolic functions defined on R.