Calculus/More Differentiation Rules
Chain Rule
We know how to differentiate regular polynomial functions. For example:
However, we've not yet explored the derivative of an unexpanded expression. If we are given the function , we currently have no choice but to expand it and find the derivative of each part and then add the parts back together:
However, there is a useful rule known as the chain rule. The function above () can be consolidated into two nested parts , where . Therefore:
- if
- and
Then:
Then
The chain rule states that if we have a function of the form (i.e. can be written as a function of and can be written as a function of ) then:
|
If a function F(x) is composed to two differentiable functions g(x) and m(x), so that F(X)=g(m(x)), then F(x) is differentiable and,
|
We can now investigate the original function:
Therefore
This can be performed for more complicated equations. If we consider:
and let y=√u and u=1+x2, so that dy/du=1/2√u and du/dx=2x, then, by applying the chain rule, we find that
Product and Quotient Rules
When we wish to differentiate a more complicated expression such as:
our only way (up to this point) to differentiate the expression is to expand it and get a polynomial, and then differentiate that polynomial. This method becomes very complicated and is particularly error prone when doing calculations by hand. It is advantageous to find the derivative of h(x) using just the functions f(x) = (x2+5)5 and g(x) = (x3 + 2)3 and their derivatives.
|
|
What this rule basically means is that if one has a function that is the product of two functions, then all one has to do is differentiate the first function, multiply it by the other un- differentiated function, add that to the first function undifferentiated multiplied by the differentiated second function. For Example: If one were to take the function
,
its derivative would not be
.
Instead it would be
Another way of approaching this is if one were to have a function that was a product of the two functions A and B
Its derivative would be
Proving this rule is relatively straightforward, first let us state the equation for the derivative:
We will then apply one of the oldest tricks in the book--adding a term that cancels itself out to the middle:
Notice that those terms sum to zero, and so all we have done is add 0 to the equation.
Now we can split the equation up into forms that we already know how to solve:
Looking at this, we see that we can separate the common terms out of the numerators to get:
Which, when we take the limit, becomes:
- , or the mnemonic "one D-two plus two D-one"
This can be extended to 3 functions:
For any number of functions, the derivative of their product is the sum, for each function, of its derivative times each other function.
For quotients, where one function is divided by another function, the equation is more complicated but it is simply a special case of the product rule.
Then we can just use the product rule and the chain rule:
We can then multiply through by 1, or more precisely: g(x)2 / g(x)2, which cancels out into 1, to get:
This leads us to the so-called "quotient rule":
|
|
Which some people remember with the mnemonic "low D-high minus high D-low over the square of what's below."
Remember: the derivative of a product/quotient is not the product/quotient of the derivatives. (That is, differentiation does not distribute over multiplication or division.) However one can distribute before taking the derivative. That is
Implicit Differentiation
Generally, one will encounter functions expressed in explicit form, that is, y = f(x) form. You might encounter a function that contains a mixture of different variables. Many times it is inconvenient or even impossible to solve for y. A good example is the function . This function is too cumbersome to isolate y alone. Therefore, one can utilize implicit differentiation to find the derivative. To do so, consider y to be a nested function that is defined implicitly by x. You need to employ the chain rule whenever you take the derivative of a variable with respect to a different variable i.e. d/dx (the derivative with respect to x) of x is 1 d/dx (the derivative with respect to x) of y is dy/dx
Remember
Therefore
Examples
can be solved as:
then differentiated:
However, it can also be differentiated like this:
(use the product rule)
(solve for dy/dx)
Note that, if we substitute into , we end up with again.
- Find the derivative of with respect to x.
You are seeking .
Take the derivative of each side of the equation with respect to x.
Exponential, logarithmic, and trigonometric functions
Exponential
To determine the derivative of an exponent requires use of the symmetric difference equation for determining the derivative:
First we will solve this for the specific case of an exponent with a base of e and then extend it to the general case with a base of a where a is a positive real number.
First we set up our problem using f(x) = ex:
Then we apply some basic algebra with powers (specifically that ab + c = ab ac):
Treating ex as a constant with respect to what we are taking the limit of, we can use the limit rules to move it to the outside, leaving us with:
A careful examination of the limit reveals a hyperbolic sine:
The limit of sin(h)/h as h approaches 0 is equal to 1, leaving us with:
|
|
in which .
Now that we have derived a specific case, let us extend things to the general case. Assuming that a is a positive real constant, we wish to calculate:
One of the oldest tricks in mathematics is to break a problem down into a form that we already know we can handle. Since we have already determined the derivative of ex, we will attempt to rewrite ax in that form.
Using that eln(c) = c and that ln(ab) = b · ln(a), we find that:
Thus, we simply apply the chain rule:
In which we can solve for the derivative and substitute back with ex · ln(a) = ax to get:
|
|
Logarithms
Closely related to the exponentiation is the logarithm. Just as with exponents, we will derive the equation for a specific case first (the natural log, where the base is e), and then work to generalize it for any logarithm.
First let us create a variable y such that:
It should be noted that what we want to find is the derivative of y or .
Next we will put both sides to the power of e in an attempt to remove the logarithm from the right hand side:
Now, applying the chain rule and the property of exponents we derived earlier, we take the derivative of both sides:
This leaves us with the derivative:
Substituting back our original equation of x = ey, we find that:
|
|
If we wanted, we could go through that same process again for a generalized base, but it is easier just to use properties of logs and realize that:
Since 1 / ln(b) is a constant, we can just take it outside of the derivative:
Which leaves us with the generalized form of:
|
|
Trigonometric Functions
Sine, Cosine, Tangent, Cosecant, Secant, Cotangent. These are functions that crop up continuously in mathematics and engineering and have a lot of practical applications. They also appear in more advanced mathematics, particularly when dealing with things such as line integrals with complex numbers and alternate representations of space like spherical and cylindrical coordinate systems.
We use the definition of the derivative, i.e.,
- ,
to work these first two out.
Let us find the derivative of sin x, using the above definition.
|
|
Now for the case of cos x
|
|
Therefore we have established
|
|
To find the derivative of the tangent, we just remember that:
which is a quotient. Applying the quotient rule, we get:
Then, remembering that , we simplify:
|
|
For secants, we just need to apply the chain rule to the derivations we have already determined.
So for the secant, we state the equation as:
Take the derivative of both equations, we find:
Leaving us with:
Simplifying, we get:
|
|
Using the same procedure on cosecants:
We get:
|
|
Using the same procedure for the cotangent that we used for the tangent, we get:
|
|
Inverse Trigonometric Functions
Arcsine, arccosine, arctangent. These are the functions that allow you to determine the angle given the sine, cosine, or tangent of that angle.
First, let us start with the arcsine such that:
To find dy/dx we first need to break this down into a form we can work with:
Then we can take the derivative of that:
...and solve for dy / dx:
At this point we need to go back to the unit triangle. Since y is the angle and the opposite side is sin(y) (which is equal to x), the adjacent side is cos(y) (which is equal to the square root of 1 minus x2, based on the pythagorean theorem), and the hypotenuse is 1. Since we have determined the value of cos(y) based on the unit triangle, we can substitute it back in to the above equation and get:
|
|
We can use an identical procedure for the arccosine and arctangent:
|
|
|
|
Exercises
Given the above rules, practice differentiation on the following.
Answers