Derivatives of Elementary Functions

Related Calculator: Online Derivative Calculator with Steps

Let's start with the simplest function, namely, constant polynomial `f(x)=c`.

Derivative of a Constant Function `d/(dx)(c)=0`.

Indeed, `f'(x)=lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)(c-c)/h=lim_(h->0)0=0`.

Now, let's look at the power function `f(x)=x^n`.

Let's find a couple of derivatives for different values of `n`.

`n=1`: `f(x)=x` and `f'(x)=lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)(x+h-x)/h=lim_(h->0)1=1`.

`n=2`: `f(x)=x^2` and `f'(x)=lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)((x+h)^2-x^2)/h=`


`n=3`: `f(x)=x^3` and `f'(x)=lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)((x+h)^3-x^3)/h=lim_(h->0)1=`



There is pattern. It seems that `(x^n)'=nx^(n-1)` for positive `n`. It is true. And in general it can be proved using binomial theorem. But that's not all. We know that `(sqrt(x))'=1/(2sqrt(x))` and it can be rewritten as `(x^(1/2))'=1/2 x^(1/2-1)` . So, above rule holds even when `n` is fraction.

It can also be proved when `n` is negative or irrational.

Derivative of Power Function. If `n` is any real number then `(x^n)'=nx^(n-1)`.

Example 1. Differentiate `f(x)=1/x^3`.

Since `1/x^3=x^(-3)` then `f'(x)=-3x^(-3-1)=-3x^(-4)=3/x^4`.

Example 2. Find equation of tangent line to `f(x)=root(3)(x^5)` at (1,1).

Since `root(3)(x^5)=x^(5/3)` then `f'(x)=5/3x^(5/3-1)=5/3x^(2/3)=5/3root(3)(x^2)`.

Thus, `f'(1)=5/3root(3)(1^2)=5/3`.

Therefore, equation of tangent line is `y-1=5/3(x-1)` or `y=5/3x-2/3`.

Now, let's try to find derivative of exponential function `f(x)=a^x`.

By definition, `f'(x)=lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)(a^(x+h)-a^x)/h=lim_(h->0)a^x(a^h-1)/h=`

` `

`=a^x lim_(h->0)(a^h-1)/h=a^x ln(a)`. (See example 11 in Indeterminate Forms note for proof that `lim_(h->0)(a^h-1)/h=ln(a)`).

Derivative of an Exponential Function. `(a^x)'=a^xln(a)`.

In particular if `a=e`, then `color(blue)((e^x)'=e^x)`.

Also note that for `f(x)=a^x` we have that `lim_(h->0)(a^h-1)/h=lim_(h->0)(a^(0+h)-a^0)/h=f'(0)`.

So, `f'(x)=f'(0)a^x`. This means that the rate of change of any exponential function is proportional to the function itself (the slope is proportional to the height).

Example 3. Find first derivative of `f(x)=5e^x-2*3^x`.

Using constant multiple and difference rules we obtain that


Now, it is time to find derivative of logarithmic function `f(x)=log_a(x)`.

By definition, `lim_(h->0)(f(x+h)-f(x))/h=lim_(h->0)(log_a(x+h)-log_a(x))/h=lim_(h->0)(log_a((x+h)/x))/h=lim_(h->0)(log_a(1+h/x))/h=`

`=lim_(h->0)1/x x/h log_a(1+h/x)=lim_(h->0)1/x log_a((1+h/x)^(x/h))`.

Now, if we denote `x/h` as `t` then for fixed `x` we have that `t->oo` as `h->0`.

So, `lim_(h->0)1/x log_a((1+h/x)^(x/h))=lim_(t->oo)1/x log_a((1+1/t)^t)=1/x log_a(lim_(t->oo)(1+1/t)^t)=1/x log_a(e)=`

`=1/x (ln(e))/ln(a)=1/(xln(a))`.

Derivative of Logarithmic function. `log_a(x)=1/(xln(a))`.

In particular if `a=e` then `(ln(x))'=1/x`.

Now let's find derivative of trigonometric functions.

Let `y=sin(x)`.

By definition `f'(x)=lim_(h->0)(sin(x+h)-sin(x))/h`.

Here we need to convert difference of sines into product: `sin(x+h)-sin(x)=2sin((x+h-x)/2)cos((x+h+x)/2)=2sin(h/2)cos(x+h/2)`.

Now, limit can be rewritten as `lim_(h->0)(2sin(h/2)cos(x+h/2))/h=lim_(h->0)(sin(h/2))/(h/2)cos(x+h/2)=`

`=lim_(h->0)(sin(h/2))/(h/2) lim_(h->0)cos(x+h/2)=1*cos(x+0/2)=cos(x).`

Derivative of Sine. `(sin(x))'=cos(x)`.

Similarly can be found that `(cos(x))'=-sin(x)`.

Derivative of Cosine. `(cos(x))'=-sin(x)`.

We can find derivative of tangent using definition, but it is simpler to use Quotient Rule:



Derivative of Tangent. `(tan(x))'=1/(cos^2(x))=sec^2(x)`.

Similarly, we can find that derivative of cotangent is `(cot(x))'=-csc^2(x)`.

Using quotient rule we can find derivatives of secant and cosecant.

For example. `(sec(x))'=(1/cos(x))'=((1)'cos(x)-1*(cos(x))')/(cos^2(x))=(0*cos(x)+sin(x))/(cos^2(x))=(sin(x))/(cos^2(x))=`


Derivative of Secant. `(sec(x))'=tan(x)sec(x)`.

Derivative of Cosecant. `(csc(x))'=-cot(x)csc(x)`.

To find derivative of inverse trigonometric functions it is simpler to use implicit differentiation.

By definition if `y=arcsin(x)` then `sin(y)=x` for `-pi/2<=y<=pi/2`.

Now differentiate `sin(y)=x` with respect to `x`: `cos(y)*y'=x'` or `cos(y)y'=1`.

From this we have that `y'=1/(cos(y))`. Now we need to express this in terms of `x`.

From identity `cos^2(y)+sin^2(y)=1` we have that `cos^2(y)=1-sin^2(y)=1-x^2`. Since `y` is changing in interval `[-pi/2,pi/2]` then cosine should pe positive. This means that `cos(y)=sqrt(1-x^2)`.

Derivative of Inverse Sine. `(arcsin(x))'=1/(sqrt(1-x^2))`.

Similarly can be found other derivatives of inverse trigonometric functions.

Derivatives of Hyperbolic Functions can be easily found using constant multiply, sum, quotient and chain rules, because they are rationally expresses through exponent.

For example, `(sinh(x))'=((e^x-e^(-x))/2)'=1/2(e^x-e^(-x))'=1/2((e^x)'-(e^(-x))')=1/2(e^x-e^(-x)*(-x)')=`


Derivative of Hyperbolic Sine. `(sinh(x))'=cosh(x)`.

Inverse Hyperbolic Functions can be found using standard differentiation rules.

For example, inverse hyperbolic cosine can be found using chain and sum rules.



Derivative of Inverse Hyperbolic Cosine. `(text(arccosh)(x))'=1/(sqrt(x^2+1))`.

Derivatives of elementary functions can be found in table of derivatives.