derivatives of special functions

Euler's number

Before getting into the derivatives of other special functions, we must first learn about Euler's number.

Euler's number is a mathematical constant that has special properties when regarding the derivative of functions involving it.

Take a look at the following graphs of y=2x y = 2^x and y=4x y = 4^x :

Graph of $ y = 2^x $ and its derivative
Graph of y=2x y = 2^x and its derivative
Graph of $ y = 4^x $ and its derivative
Graph of y=4x y = 4^x and its derivative

observation

As you can see, the derivative of y=2x y = 2^x is below the original function, while the derivative of y=4x y = 4^x is above the original function.

This means that there must be a value for the base of the exponent such that its derivative is the exact same function as itself!

This base has the symbol ee and it is known as Euler's Number and it is special because its derivative is the exact same function.

The approximate value for Euler's Number is e2.718281... e \approx 2.718281...

The natural exponential function

The function has the following form:

f(x)=ex f(x) = e^x

Take a look at the following graph of the function y=ex y = e^x and its derivative:

Graph of $ y = e^x $ and its derivative
Graph of y=ex y = e^x and its derivative

This illustrates that the graph of f(x)=ex f(x) = e^x is the same as its derivative f(x) f'(x) . In fact,

f(x)=ex=f(x)=f(x)=f(x)=...=f()(x) f(x) = e^x = f'(x) = f''(x) = f'''(x) = ... = f^{(\infty)}(x)

No matter how many times you differentiate the natural exponential function, it will always be the same!

The natural logarithm function

The natural logarithm is the inverse of the natural exponential function. It's base is Euler's Number, however, since it is such a common function used in math, it has a special notation shown below along with its derivative:

f(x)=logex=lnx f(x) = log_{e} x = \ln x

ddx[lnx]=1x \frac {d} {dx} [ \ln x ] = \frac {1} {x}

Graph of $ f(x) = \ln x $ and $ f'(x) = \frac{1}{x} $
Graph of f(x)=lnx f(x) = \ln x and f(x)=1x f'(x) = \frac{1}{x}

Special functions and their derivatives

We will now explore the derivatives of the following functions:

  • Exponential functions of the form y=ax y = a^x

  • Logarithmic functions of the form y=lognx y = log_{n} x

  • Trigonometric functions: y=sinx y = \sin x , y=cosx y = \cos x and y=tanx y = \tan x

Derivative of exponential functions

The derivative of any exponential function follows this formula:

ddx[ax]=axlna \frac {d} {dx} [ a^x ] = a^x \ln a

Graph of $ f(x) = 2^x $ and $ f'(x) = 2^x \ln 2 $
Graph of f(x)=2x f(x) = 2^x and f(x)=2xln2 f'(x) = 2^x \ln 2

For example, the derivative of f(x)=5x f(x) = 5^x is f(x)=5xln5 f'(x) = 5^x \ln 5

Derivative of logarithmic functions

The derivative of any logarithmic function follows this formula:

ddx[logax]=1xlna \frac {d} {dx} [ \log_{a} x ] = \frac {1} {x \ln a }

Graph of $ f(x) = \log_{10} x $ and $ f'(x) = \frac {1} {x \ln x} $
Graph of f(x)=log10x f(x) = \log_{10} x and f(x)=1xlnx f'(x) = \frac {1} {x \ln x}

For example, the derivative of f(x)=log10x f(x) = \log_{10} x is f(x)=1xln10 f'(x) = \frac {1} {x \ln 10}

Derivatives of sinosoidal functions

The derivatives of sinx \sin x and cosx \cos x are as follows:

ddx[sinx]=cosx \frac {d} {dx} [ \sin x ] = \cos x

Graph of $ f(x) = \sin x $ and $ f'(x) = \cos x $
Graph of f(x)=sinx f(x) = \sin x and f(x)=cosx f'(x) = \cos x

ddx[cosx]=sinx \frac {d} {dx} [ \cos x ] = -\sin x

Graph of $ f(x) = \cos x $ and $ f'(x) = -\sin x $
Graph of f(x)=cosx f(x) = \cos x and f(x)=sinx f'(x) = -\sin x

So, for f(x)=sinx f(x) = \sin x :

f(x)=cosx f'(x) = \cos x

f(x)=sinx f''(x) = -\sin x

f(x)=cosx f'''(x) = -\cos x

f(4)(x)=(sinx)=sinx f^{(4)}(x) = -(-\sin x) = \sin x

Note that f(x)=f(4)(x) f(x) = f^{(4)}(x) . This applies to both sinx \sin x and cosx \cos x .

Derivative of the tangent function

We can use the fact that tanx=sinxcosx \tan x = \frac {\sin x} {\cos x} , as well as the derivatives of sinx \sin x and cosx \cos x to find the derivative of tanx \tan x .

ddx[tanx]=ddx[sinxcosx] \frac {d} {dx} [ \tan x ] = \frac {d} {dx} [ \frac {\sin x} {\cos x} ]

=(cosx)ddx(sinx)  (sinx)ddx(cosx)(cosx)2 \quad \quad \quad \quad = \frac {(\cos x) \frac {d} {dx}(\sin x) \ - \ (\sin x) \frac {d} {dx} (\cos x)} {(\cos x)^2}

=(cosx)(cosx)  (sinx)(sinx)cos2x \quad \quad \quad \quad = \frac {(\cos x)(\cos x) \ - \ (\sin x)(-\sin x)} {\cos^2 x}

=cos2x + sin2xcos2x \quad \quad \quad \quad = \frac {\cos^2 x \ + \ \sin^2 x} {\cos^2 x}

=1cos2x \quad \quad \quad \quad = \frac {1} {\cos^2 x}

=sec2x \quad \quad \quad \quad = \sec^2 x


So, the derivative of tanx \tan x is:

ddx[tanx]=sec2x \frac {d} {dx} [\tan x] = \sec^2 x

Graph of $ f(x) = \tan x $ and $ f'(x) = \sec^2 x $
Graph of f(x)=tanx f(x) = \tan x and f(x)=sec2x f'(x) = \sec^2 x