Advanced derivative examples
A few examples of derivatives that are harder than the basic work with formulae. If you need the definition of the derivative explained, go to the article on the derivative of a function.
First example
We start with something that is not too hard yet.
From the derivative formulae we know that the derivative of ex is again ex. Unfortunately we cannot use this simple rule directly in this example, because the exponent is not just x but −x, so we have to treat the function as a composite function. In the first step, though, we still start by splitting it up using the product formula.
We differentiate the polynomial on the left using the standard formula and leave the rest the same:
Now we have to differentiate the last function. As we said, it is a composite function, so we have to differentiate it using the rule for composite functions:
So the derivative of our function looks like this:
The expression e−x stays the same, because the derivative of ex is again ex, and in the first part of the formula we differentiate the outer function and leave the inner function undifferentiated. In the second part we multiply our intermediate result by the derivative of the input of the function, which is the function −x. The derivative of −x is −1. Now we just substitute our result into the previous expression:
Second example
The second example:
Here we have a fraction, with one function in the numerator and another in the denominator. So in the first step we differentiate using the quotient formula. After applying the formula we get:
We will work from the end and differentiate the tangent first, because we can do that simply using the basic formula. We have
After applying this formula in the numerator of the fraction we get
Now we need to differentiate the logarithm. Unfortunately there is another function nested inside the logarithm, so we have a composite function and must differentiate the logarithm the harder way, as a composite function. The derivative of the logarithm on its own is 1/x, but here we substitute the input of the logarithm for x, that is, the cosine. Then we also have to multiply by the derivative of the input, that is, the derivative of the cosine. So the derivative of the logarithm looks like this:
We got quite a nice fraction. If you remember your trigonometry well, you know that this fraction is equal to the tangent. So we can write that the whole thing is equal to minus the tangent:
We substitute this into the previous result:
In the numerator we have the tangent twice, so we can simply write it squared. The logarithm can be moved into the numerator of the following fraction.
Now we can split the numerator and get two fractions
In the first fraction the numerator is equal to the denominator, so we get one. In the second fraction we can get rid of the fraction in the numerator by multiplying the top and bottom by cos2x.
Now we can write the tangent as the quotient sin(x)/cos(x). Because the tangent is squared, the numerator and denominator of that fraction are squared too. Then we can cancel cos2x straight away.
That is the final result of the derivative.
Third example
Differentiate the function
In case it is not clear – these are all powers, that is, “x to the power x to the power one half”. In the first step we rewrite the function using the identity:
Using this identity we rewrite the first x in our example:
Now we apply the rule for working with powers:
We remove the brackets and multiply the top exponent by the logarithm:
Now we have the function in a form that is easier to differentiate. It is a composite function, and we will differentiate it as one. The first function is ex, where we substitute the whole exponent for x, and the second function is in the exponent. Splitting it up, we get:
We will differentiate the bracket as a product, so we apply the product formula.
The derivative of the logarithm is 1/x:
Now we differentiate the second expression using the standard formula for differentiating power functions. So we have:
We substitute this result into our working:
We can also simplify the first product, again using the rules for powers:
We rewrite the previous expression using the calculation we have just done:
And finally we move the logarithm into the numerator of the fraction:
We can multiply the top and bottom of the first fraction by two, and then the fractions can be added:
Now we can return to the whole derivative:
We replace eln x back with x:
That gives us the final result.