Jump to content

Examples for derivatives – "Math for Non-Geeks"

From Wikibooks, open books for an open world

In this chapter, we want to summarise the most important examples of derivatives. The rules for derivatives will allow us for computing derivatives of composite functions.

Table of important derivatives

[edit | edit source]

In the following table n∈ℕ, q∈ℤ and n~∈ℕ0 is given. We also define a,b,c∈ℝ, ak∈ℝ and p∈ℝ+.

function term term of the derivative function domain of definition of the derivative
c 0 ℝ
xn nxn−1 ℝ
ax+b a ℝ
ax2+bx+c 2ax+b ℝ
∑k=0n~akxk ∑k=1n~akkxk−1 ℝ
1x −1x2 ℝ∖{0}
x−n=1xn −nxn+1 ℝ∖{0}
xq qxq−1 {ℝq∈ℤ0+ℝ∖{0}q∈ℤ−
x 12x ℝ+
xn 1nxn−1n ℝ+
xqn qnxq−nn ℝ+
exp⁡(x)=ex exp⁡(x) ℝ
px=exp⁡(xln⁡p) ln⁡(p)⋅px ℝ
xa=exp⁡(aln⁡x) axa−1 {ℝa≥0ℝ∖{0}a<0
ln⁡|x| 1x ℝ∖{0}
logp|x|=ln⁡|x|ln⁡p 1ln⁡(p)⋅x ℝ∖{0}
sin⁡(x) cos⁡(x) ℝ
cos⁡(x) −sin⁡(x) ℝ
tan⁡(x)=sin⁡xcos⁡x 1cos2(x)=1+tan2(x) ℝ∖{π2+kπ|k∈ℤ}
sec⁡(x)=1cos⁡(x) sin⁡(x)cos2(x) ℝ∖{π2+kπ|k∈ℤ}
csc⁡(x)=1sin⁡(x) −cos⁡(x)sin2(x) ℝ∖{kπ|k∈ℤ}
cot⁡(x)=cos⁡xsin⁡x −1sin2(x)=−1−cot2(x) ℝ∖{kπ|k∈ℤ}
arcsin⁡(x) 11−x2 (−1,1)
arccos⁡(x) −11−x2 (−1,1)
arctan⁡(x) 11+x2 ℝ
arcot(x) −11+x2 ℝ
sinh⁡(x)=ex−e−x2 cosh⁡(x) ℝ
cosh⁡(x)=ex+e−x2 sinh⁡(x) ℝ
tanh⁡(x)=sinh⁡xcosh⁡x 1cosh2(x)=1−tanh2(x) ℝ
arsinh⁡(x) 1x2+1 ℝ
arcosh⁡(x) 1x2−1 (1,∞)
artanh⁡(x) 11−x2 (−1,1)

Examples for computing derivatives

[edit | edit source]

Now we will calculate some examples of derivatives from the table above. Often it comes down to determining the differential quotient of the function, i.e. a limit value. But sometimes it is also useful to use the calculation rules from the chapter before.

Constant functions

[edit | edit source]

We start with some simple derivatives:

Theorem (Derivative of a constant function)

Every constant function f≡c is differentiable on all of ℝ with derivative 0.

Proof (Derivative of a constant function)

Let x~∈ℝ. Then there is

f′(x~)=limx→x~f(x)−f(x~)x−x~=limx→x~c−cx−x~=limx→x~0x−x~=limx→x~0=0

Power functions with natural numbers as powers

[edit | edit source]

Now we turn to the derivative of power functions with natural powers. First we will deal with a few special cases:

Example (Derivative of the identity and the square function)

The functions

f:ℝ→ℝ, f(x)=x

and

g:ℝ→ℝ, g(x)=x2

are differentiable on all of ℝ. Further there is for x~∈ℝ:

f′(x~)=limx→x~x−x~x−x~=limx→x~1=1

as well as

g′(x~)=limx→x~x2−x~2x−x~=limx→x~(x+x~)(x−x~)x−x~=limx→x~(x+x~)=2x~

For the derivative of g we used the 3rd binomial formula (x+y)(x−y)=x2−y2.

Exercise (Derivative of a power function)

Compute the derivative of

h:ℝ→ℝ, h(x)=x3

Solution (Derivative of a power function)

For x~∈ℝ there is

h′(x~)=limx→x~x3−x~3x−x~=limx→x~(x2+xx~+x~2)(x−x~)x−x~=limx→x~(x2+xx~+x~2)=3x~2

Instead of using the identity x3−x~3=(x2+xx~+x~2)(x−x~), we could also have calculated x3−x~3x−x~=x2+xx~+x~2 using polynomial division.

Now we turn to the general case, i.e. the derivative of x↦xn for n∈ℕ:

Theorem (Derivative of power functions)

The power function

f:ℝ→ℝ, f(x)=xn

is for n∈ℕ differentiable on all of ℝ. For all x~∈ℝ there is

f′(x)=nx~n−1

Proof (Derivative of power functions)

For x~∈ℝ, so there is

f′(x~)=limx→x~xn−x~nx−x~=limx→x~∑k=0n−1xkx~n−1−k=∑k=0n−1x~kx~n−1−k=∑k=0n−1x~n−1=nx~n−1

We used the geometric sum formula ∑k=0n−1xkx~n−1−k=xn−x~nx−x~ and the continuity of the polynomial function x↦∑k=0n−1xkx~n−1−k.

Polynomials and rational functions

[edit | edit source]

Using the calculation rules for derivatives we can now calculate the derivatives of polynomial functions and rational functions:

Theorem (Derivative of polynomial functions)

Let

p:ℝ→ℝ, p(x)=∑k=0nakxk

with ak∈ℝ and n∈ℕ be a polynomial function of degree n. Then p is differentiable on all of ℝ , and for x~∈ℝ there is

p′(x~)=∑k=1nakkx~k−1

Proof (Derivative of polynomial functions)

Using the derivative rule for the multiple of a function (λf)′=λf′ , every single summand of the polynomial is differentiable on ℝ. With the summation rule we can derive every polynomial function term by term on ℝ and obtain for x~∈ℝ:

p′(x~)=∑k=1nakkx~k−1

with the derivative of the zeroth summand disappearing.

In particular, it follows for n=1 and n=2 that linear and quadratic functions are differentiable on all of ℝ.

Exercise (Derivative of rational functions)

Let

r(x)=∑k=0nakxk∑l=0mblxl

with ak,bl∈ℝ and n,m∈ℕ0 a rational function defined on D=ℝ∖{x∈ℝ:∑l=0mblxl≠0}. Show that r is differentiable on D, and calculate the derivative.

Solution (Derivative of rational functions)

Numerator and denominator of r are polynomials. Since the denominator is non-zero on D and polynomials are differentiable, it follows from the quotient rule that r is differentiable on D.

Further there is for x~∈D:

r′(x~)=(∑k=1nakkx~k−1)⋅(∑l=0mblx~l)−(∑k=0nakx~k)⋅(∑l=1mbllx~l−1)(∑l=0mblx~l)2

Power functions with integer powers

[edit | edit source]

We can already differentiate power functions with natural powers. Now we investigate those with negative integer exponents.

Example (Derivative of the hyperbolic function)

The power function

f:ℝ∖{0}, f(x)=x−1=1x

is differentiable on ℝ∖{0} and there is

f′(x~)=limx→x~1x−1x~x−x~=limx→x~x~−xxx~x−x~=limx→x~x~−xxx~(x−x~)=limx→x~−(x−x~)xx~(x−x~)=limx→x~−1xx~=−1x~2

for x~∈ℝ∖{0}.

Exercise (Derivative of x↦1x2)

Prove that the power function

f:ℝ∖{0}, f(x)=x−2=1x2

is differentiable on ℝ∖{0} and compute its derivative.

Solution (Derivative of x↦1x2)

For x~∈ℝ∖{0} there is

f′(x~)=limx→x~1x2−1x~2x−x~=limx→x~x~2−x2x2x~2x−x~=limx→x~(x~−x)(x~+x)x2x~2(x−x~)=limx→x~−(x−x~)(x+x~)x2x~2(x−x~)=limx→x~−(x+x~)x2x~2=−2x~x~4=−2x~3

In the general case x−n=1xn with n∈ℕ there is

Theorem (Derivative of the power function with negative integer powers)

The power function

f:ℝ∖{0}, f(x)=x−n=1xn

is differentiable on ℝ∖{0}, and for x~∈ℝ∖{0} there is

f′(x~)=−nxn−1

Proof (Derivative of the power function with negative integer powers)

For x~∈ℝ∖{0} there is

f′(x~)=limx→x~1xn−1x~nx−x~=limx→x~x~n−xnxnx~nx−x~=limx→x~1xnx~nx~n−xnx−x~=limx→x~1xnx~n−(x~n−xn)x−x~=limx→x~1xnx~n⋅(−∑k=0n−1xkx~n−1−k)=1x~2n⋅(−∑k=0n−1x~n−1)=−1x~2n⋅nx~n−1=−nx~n−1

Exercise (Derivative of the power function)

Prove (1xn)′=−nxn+1 using the quotient rule

Solution (Derivative of the power function)

For x~∈ℝ∖{0} there is by the quotient rule

(1x~n)′=0⋅x~n−1⋅nx~n−1(x~n)2=−nx~n−1x~2n=−nx~2n−(n−1)=−nx~n+1

Remark: Of course we can also apply the inverse rule directly, and thus get the same result

(1x~n)′=−nx~n−1x~2n=−nx~n+1

Let us look again at the derivatives rule in the last case, i.e. f′(x~)=−nx~n−1=−nx~−n−1 for n∈ℕ. If we put k=−n∈ℤ−, we get f′(x~)=kx~k−1. The derivative rule is hence the same as for xn with n∈ℕ. So we can summarize the two cases and get

Theorem (Derivative of the power function with natural powers)

For k∈ℤ the power function

f:ℝ∖{0}, f(x)=xk

is differentiable on ℝ∖{0}. For x~∈ℝ∖{0} there is then

f′(x~)=kxk−1

In the case of k∈ℕ it is even differentiable on all of ℝ.

Root functions

[edit | edit source]

Now we investigate the derivative of root functions. We start again with the simplest case:

Example (Derivative of the square root function)

The square root function

f:ℝ+→ℝ, f(x)=x

is differentiable on ℝ+ and for x~∈ℝ+ there is

f′(x~)=limx→x~x−x~x−x~=limx→x~x−x~(x)2−(x~)2=limx→x~x−x~(x−x~)(x+x~)=limx→x~1x+x~=12x~

Question: Why is the square root function in x~=0 not differentiable, although it is defined and continuous there?

For the differential quotient there is

limx→0+x−0x−0=limx→0+xx=limx→0+1x=∞

So it does not exist. Hence, we have non-differentiability.

Exercise (Derivative of the cubic root function)

Compute the derivative of the cubic root function

f:ℝ+→ℝ, f(x)=x3

Solution (Derivative of the cubic root function)

For x~∈ℝ+ there is

f′(x~)=limx→x~x3−x~3x−x~=limx→x~x3−x~3(x3)3−(x~3)3=limx→x~x3−x~3(x3−x~3)((x3)2+x3⋅x~3+(x~3)2)=limx→x~1(x3)2+x3⋅x~3+(x~3)2=13(x~3)2

Now let us consider the general case of the k-th root function. Here there is

Theorem (Derivative of the k-th root function)

Let k∈ℕ,k>1. Then the k-th root function

f:ℝ+→ℝ, f(x)=xk

is differentiable on ℝ+, and for x~∈ℝ+ there is

f′(x~)=1kxk−1k

Proof (Derivative of the k-th root function)

For x~∈ℝ+ there is

f′(x~)=limx→x~xk−x~kx−x~=limx→x~xk−x~k(xk)k−(x~k)k=limx→x~1(xk)k−(x~k)kxk−x~k=limx→x~1∑l=0k−1(xk)l(x~k)k−1−l=1∑l=0k−1(x~k)k−1=1k(x~k)k−1=1kx~k−1k

This can now be generalized

Theorem (Derivative of the generalized root function)

For q∈ℕ,q>1 and p∈ℤ, the generalized root function

f:ℝ+→ℝ, f(x)=xqp

is differentiable on ℝ+, and for x~∈ℝ+ there is

f′(x~)=pqxp−qq

Proof (Derivative of the generalized root function)

Since on ℝ+ die functions x↦xp and y↦yq are differentiable, the chain rule implies at x~∈ℝ+ that

f′(x~)=1q(x~p)q−1q⋅px~p−1=pq(x~p−1)qq(x~p)q−1q=pqx~pq−qx~pq−pq=pqx~pq−q−pq+pq=pqx~p−qq

Hint

For p∈ℤ and q∈ℕ and r=pq∈ℚ the power function with rational exponent was defined as

xr=xpq=xpq

So for r∈ℚ we also have the derivative rule

(xr)′=pqx~p−qq=pqxp−qq=pqxpq−1=rxr−1

The (generalized) exponential function and generalized power functions

[edit | edit source]

In this section we prove that the derivative of the exponential function is again the exponential function. So we can determine the derivative of the generalized exponential and power function.

Theorem (Derivative of the exponential function)

The exponential function

f:ℝ→ℝ, f(x)=exp⁡(x)

is differentiable on ℝ, and for x~∈ℝ there is

f′(x~)=exp⁡(x~)

How to get to the proof? (Derivative of the exponential function)

For this derivative it is more useful to use the h method

f′(x~)=limh→0f(x~+h)−f(x~)h

Because in this case we know the limit value

limh→0exp⁡(h)−1h=1

Furthermore, we need the functional equation of the exponential function

exp⁡(x+y)=exp⁡(x)exp⁡(y)

Proof (Derivative of the exponential function)

For x~∈ℝ there is

f′(x~)=limh→0f(x~+h)−f(x~)h=limh→0exp⁡(x~+h)−exp⁡(x~)h=limh→0exp⁡(x~)exp⁡(h)−exp⁡(x~)h=limh→0exp⁡(x~)exp⁡(h)−1h=exp⁡(x~)⋅limh→0exp⁡(h)−1h=exp⁡(x~)⋅1=exp⁡(x~)

Using the chain rule, the derivatives of the generalized exponential function x↦ax for a∈ℝ+ and the generalized power function x↦xr for r∈ℝ can be calculated:

Theorem (Derivative of the generalized exponential function)

For a∈ℝ+ the generalized exponential function

f:ℝ→ℝ, f(x)=ax=exp⁡(xln⁡(a))

is differentiable on ℝ, and for x~∈ℝ there is

f′(x~)=ln⁡(a)ax~

Proof (Derivative of the generalized exponential function)

For x~∈ℝ there is

f′(x~)=exp⁡(x~ln⁡(a))⋅ln⁡(a)=ln⁡(a)ax~

Theorem (Derivative of the generalized exponential function)

For r∈ℝ the generalized exponential function

f:ℝ+→ℝ, f(x)=xr=exp⁡(ln⁡(x)r)

is differentiable on ℝ+, and for x~∈ℝ+ there is

f′(x~)=rx~r−1

Exercise (Derivative of the generalized exponential function)

Prove that the derivative of the generalized power function at x~∈ℝ+ is rx~r−1.

Proof (Derivative of the generalized exponential function)

For x~∈ℝ the chain rule yields

f′(x~)=exp⁡(ln⁡(x~)r)⋅rx~=rx~r1x~=rx~r−1

Logarithmic functions

[edit | edit source]

Now we turn to the derivative of the natural and generalized logarithm function. Since the natural logarithm is the inverse of the exponential function, we can deduce its derivative directly from rule for derivatives of the inverse function:

Theorem (Derivative of the natural logarithm function)

The natural logarithm function

g:ℝ+→ℝ, g(x)=ln⁡x

is differentiable on ℝ+. For x~∈ℝ+ there is

g′(y)=1y

Proof (Derivative of the natural logarithm function)

For the exponential function exp⁡:ℝ→ℝ there is: f′=exp. So the function is differentiable, and because of f′>0 strictly monotonically increasing. Furthermore, f is surjective. The inverse function f−1=g is the (natural) logarithm function

f−1:ℝ+→ℝ, f−1(x)=ln⁡x

From the theorem about the derivative of the inverse function we now have for every y∈ℝ+:

g′(y)=(f−1)′(y)=1f′(f−1(y))=1eln⁡y=1y

The derivative can also be calculated directly using the differential quotient. If you want to try this, we recommend the corresponding exercise.

Using the derivative of the natural logarithm function we can now immediately conclude

Theorem (Derivative of the generalized logarithm function)

For a∈ℝ+ the generalized logarithm function

g:ℝ+→ℝ, g(x)=loga(y)=ln⁡yln⁡a

is differentiable on ℝ+. For y∈ℝ+ there is

g′(y)=1yln⁡a

Proof (Derivative of the generalized logarithm function)

From the derivative rule for the multiple of a function, we get that for all y∈ℝ+:

g′(y)=1ln⁡a1y=1yln⁡a

If the derivative of the natural logarithm is not available, we can calculate it using the theorem of the derivative of the inverse function.

Trigonometric functions

[edit | edit source]
Theorem (Derivative of the sine function)

The sine function is differentiable. For all x~∈ℝ there is:

sin′⁡(x~)=cos⁡(x~)

Proof (Derivative of the sine function)

For x~∈ℝ there is

sin′⁡(x~)=limh→0sin⁡(x~+h)−sin⁡(x~)h↓ sin⁡(x+y)=sin⁡(x)cos⁡(y)+cos⁡(x)sin⁡(y)=limh→0sin⁡(x~)cos⁡(h)+cos⁡(x~)sin⁡(h)−sin⁡(x~)h=sin⁡(x~)⋅limh→0cos⁡(h)−1h⏟=0+cos⁡(x~)⋅limh→0sin⁡(h)h⏟=1=cos⁡(x~)

Cosine

[edit | edit source]
Theorem (Derivative of the cosine function)

The cosine function is differentiable with

cos′⁡(x~)=−sin⁡(x~)

Proof (Derivative of the cosine function)

cos′⁡(x~)=limh→0cos⁡(x~+h)−cos⁡(x~)h↓ cos⁡(x+y)=cos⁡(x)cos⁡(y)−sin⁡(x)sin⁡(y)=limh→0cos⁡(x~)cos⁡(h)−sin⁡(x~)sin⁡(h)−cos⁡(x~)h=cos⁡(x~)⋅limh→0cos⁡(h)−1h⏟=0−sin⁡(x~)⋅limh→0sin⁡(h)h⏟=1=−sin⁡(x~)

Tangent

[edit | edit source]
Theorem (Derivative of the tangent function)

The tangent function

tan⁡:D=ℝ∖{π2+kπ∣k∈ℤ}→ℝ, tan⁡(x)=sin⁡(x)cos⁡(x)

is differentiable on D, and for x~∈D there is

tan′⁡(x~)=1cos2(x~)=1+tan2(x~)

Proof (Derivative of the tangent function)

Since cos⁡(x)≠0 for x≠π2+kπ , the function tan is differentiable by the quotient rule, and for x~∈D there is

tan′⁡(x~)=cos⁡(x~)cos⁡(x~)−sin⁡(x~)(−sin⁡(x~))cos2(x~)=cos2(x~)+sin2(x~)cos2(x~){=trigonometricPythagoras1cos2(x~)=1+sin2(x~)cos2(x~)=1+tan2(x~)

Exercise (Derivative of the cotangent function)

The cotangent function

cot⁡:D=ℝ∖{kπ∣k∈ℤ}→ℝ, cot⁡(x)=1tan⁡(x)=cos⁡(x)sin⁡(x)

is differentiable on D, and for x~∈D there is

cot′⁡(x~)=−1sin2(x~)=−1−cot2(x~)

Solution (Derivative of the cotangent function)

Since sin⁡(x)≠0 for x≠kπ , the function tan is differentiable by the quotient rule, and for x~∈D there is

cot′⁡(x~)=(cos⁡(x)sin⁡(x))′=−sin⁡(x~)sin⁡(x~)−cos⁡(x~)cos⁡(x~)sin2(x~)=−sin2(x~)+cos2(x~)sin2(x~){=trigonometricPythagoras−1sin2(x~)=−1−cos2(x~)sin2(x~)=−1−cot2(x~)

Alternative solution:

cot′⁡(x~)=(1tan⁡(x))′=−1+tan2(x~)tan2(x~){=−1+sin2(x~)cos2(x~)sin2(x~)cos2(x~)=−cos2(x~)+sin2(x~)sin2(x~)=trigonometricPythagoras−1sin2(x~)=−1tan2(x~)−1=−1−cot2(x~)

The derivatives of secant and cosecant can be found in the corresponding exercise.

arc-functions

[edit | edit source]

Using the rule for derivatives of the inverse function we can differentiate the arc-functions (which are inverses of sine, cosine, etc.)

arcsin and arccos

[edit | edit source]
Theorem (Derivative of the arcsin/arccos function)

The inverse functions of the trigonometric functions arcsin, arccos are differentiable with

arcsin′⁡(x~)=11−x~2 for all x~∈(−1,1),arccos′⁡(x~)=−11−x~2 for all x~∈(−1,1),

Note: arcsin and arccos are defined and continuous on [−1,1] , but only differentiable on (−1,1).

Proof (Derivative of the arcsin/arccos function)

Derivative of arcsin:

For the sine function sin⁡:(−π2,π2)→ℝ there is: sin′⁡=cos. So the function is differentiable, and since cos⁡(x)>0 for all x∈(−π2,π2), it is strictly monotonically increasing on this interval. Further, sin⁡((−π2,π2))=(−1,1). So sin⁡:(−π2,π2)→(−1,1) is surjective. The inverse function is the arc sine function

arcsin⁡:(−1,1)→(−π2,π2)→ℝ

From the theorem about the derivative of the inverse we now have for every x~∈(−1,1):

arcsin′⁡(x~)=1sin′⁡(arcsin⁡(x~))=1cos⁡(arcsin⁡(x~))=trigonometricPythagoras11−sin2(arcsin⁡(x~))=11−x~2

Derivative of arccos:

For the cosine function cos⁡:(0.π)→ℝ there is: cos′⁡=−sin. So the function is differentiable, and because of −sin⁡(x)|(0,π)<0, strictly monotonically decreasing. Further, cos⁡((0,π))=(−1,1). So cos⁡:(0,π)→(−1,1) is surjective. The inverse function

arccos⁡:(−1,1)→(0,π)→ℝ

is differentiable according to the theorem about the derivative of the inverse function, and for every x~∈(−1,1) there is:

arccos′⁡(x~)=1cos′⁡(arccos⁡(x~))=1−sin⁡(arcsin⁡(x~))=trigonometricPythagoras−11−cos2(arccos⁡(x~))=−11−x~2

arctan and arccot

[edit | edit source]
Theorem (Derivative of the arctan/ arccot function)

The inverse functions of the trigonometric functions arctan, arccot are differentiable, and there is

arctan′⁡(x~)=11+x~2 for all x~∈ℝarccot′⁡(x~)=−11+x~2 for all x~∈ℝ

Proof (Derivative of the arctan/ arccot function)

For the tangent function tan⁡|(−π2,π2) there is: tan′⁡=1+tan2>0. So the function is differentiable and strictly monotonically increasing. Further, tan⁡((−π2,π2))=ℝ. So tan⁡:(−π2,π2)→ℝ is surjective. The inverse function

arccos⁡:(−1,1)→(0,π)→ℝ

is hence differentiable, and now for x~∈(−1,1) there is:

arctan′⁡(x~)=1tan′⁡(arctan⁡(x~))=11+tan2(arctan⁡(x~))=11+x~2

Hyperbolic functions

[edit | edit source]

And finally, we determine the derivatives of the hyperbolic functions sinh, cosh and tanh:

Theorem (Derivative of hyperbolic functions)

The functions

sinh⁡:ℝ→ℝ, sinh⁡(x)=ex−e−x2cosh⁡:ℝ→ℝ, cosh⁡(x)=ex+e−x2tanh⁡:ℝ→ℝ, tanh⁡(x)=sinh⁡(x)cosh⁡(x)

are differentiable, and there is

sinh′⁡(x)=cosh⁡(x)cosh′⁡(x~)=sinh⁡(x~)tanh′⁡(x~)=1cosh2(x~)=tanh2(x~)−1

Proof (Derivative of hyperbolic functions)

The derivatives follow directly from the calculation rules. We show only the derivative of sinh. The other two are left to you for practice.

According to the factor and difference rule sinh⁡(x)=12ex−12e−x for all x∈ℝ is differentiable, and there is

sinh′⁡(x)=12ex−12e−x(−1)=12ex+12e−x=cosh⁡(x)

Exercise (Derivative of cosh and tanh)

Prove that cosh and tanh are differentiable with

cosh′⁡=sinh and tanh′⁡=1cosh=tanh2−1

Proof (Derivative of cosh and tanh)

Derivative of cosh:

According to the factor and sum rule, cosh⁡(x)=12ex+12e−x is differentiable for all x∈ℝ , and there is

cosh′⁡(x)=12ex+12e−x(−1)=12ex−12e−x=sinh⁡(x)

Derivative of tanh:

tanh⁡=sinhcosh is differentiable on all of ℝ by the quotient rule and there is

tanh′⁡(x)=cosh⁡(x)cosh⁡(x)−sinh⁡(x)sinh⁡(x)cosh2(x)=cosh2(x)−sinh2(x)cosh2(x){=1cosh2(x)=1−sinh2(x)cosh2(x)=1−tanh2(x)