Computing derivatives - special – "Math for Non-Geeks"
Special cases of the chain rule
[edit | edit source]Now we want to list a few special cases of the chain rule, which occur frequently in practice. For the derivation of the derivatives of , , , , etc. we refer to the following chapter Examples for derivatives.
Case: is linear
[edit | edit source]Let and let be differentiable. Then also is differentiable ad at there is
is differentiable with for all . The chain rule implies differentiability of , where
Let with . Then for all so
Case: is a power function
[edit | edit source]Let be differentiable. The also is differentiable for all , where at there is
is differentiable with for all . The chain rule implies differentiability of , where
Let with . Then and for all we have
Case: is a root function
[edit | edit source]Let be differentiable. Then with is differentiable as well and for all there is
is differentiable with for all . The chain rule implies differentiability of where
Let with . Then and for all there is
Case:
[edit | edit source]Let be differentiable. Then is differentiable as well and for all there is
Let , which is differentiable with . Since is differentiable by assumption, we also get differentiability of . By the chain rule,
1. Let with . Then, for all and we have
2. Let with . Then, for all and we have
Special case: Differentiating "function to the power of a function"
[edit | edit source]Consider the function
which is a special case of an exponential function. The inner function is . We may again just use the chain rule.
1. Let with . Then, for all and by the chain rule
2. Let with . Then, for all and by the chain rule
3. Let with . Then, for all and by the chain rule
Case:
[edit | edit source]Let be and by the chain rule. Then, is and by the chain rule as well and for all there is
(logarithmic derivative)
Let , which is and by the chain rule with for all . Since is and by the chain rule by assumption, the chain rule implies differentiability of and
1. Let with . Then, for all and by the chain rule
2. Let with . Then, for all and by the chain rule
- Why is the domain of only ?
- What of domain of ?
Solutions:
- There is is well-defined
- There is is well-defined. So . For the derivative of there is
Below we will see how we can use the logarithmic derivative to calculate easily the derivatives of product, quotient or power functions. This makes sense, especially if the function consists of several products, for example. ()
Linear combinations of functions
[edit | edit source]The factor and sum rule state that the derivative is linear. If we apply this linearity to functions, we get:
Let , be differentiable and . Then,
is differentiable as well and for all there is
We show the assertion by induction over :
Induction base: . For there is
Induction assumption:
shall hold for some
Induction step: .
The power function is differentiable for all where
The theorem from above applied to polynomial functions yields
for and differentiable with
Application: Deriving sum formulas
[edit | edit source]We can use the linearity of the derivative to obtain new sum formulas from already known ones. Let us consider as an example the geometric sum formula for and :
Both sides of the equation can be understood as differentiable functions or or :
Since is a polynomial, we have for :
Furthermore, by the quotient rule
Since now , we also have . So for there is:
For we get
and for
Generalized product rule
[edit | edit source]The product rule can also be applied to more than two differentiable functions by first combining several functions and then applying the product rule several times in succession. For three functions we get
For four functions we get analogously
We now recognize a clear formation law for derivatives: the product of the functions is added up, whereby in each summand the derivative "moves forward" by one position. In general, the derivative of a product function of functions is:
Let and let be differentiable. The product function is also differentiable with
Prove the generalized product rule by induction over .
Induction base: . Es gilt
Induction assumption:
is assumed for some
Induction step: .
The function
is differentiable, since , and are differentiable for all . In addition
, and
The generalized product rule yields for :
Determine the domain of definition and the derivative of
Domain of definition: The functions , and are defined on all of . By contrast, is only defined on . Hence
Derivative: is differentiable, as the functions , , and are differentiable. In addition, for all there is:
, , and
The generalized product rule yields:
If additionally for all , we can divide both sides by this product, and thus obtain the form
The advantage of this representation is that the sum on the right side is much clearer. This is already the idea behind the logarithmic derivative, which we present in the next section.
Logarithmic derivatives
[edit | edit source]The logarithmic derivative is a very elegant tool to calculate the derivative of some functions of a special form. For a differentiable function without zeros, the logarithmic derivative is defined by
We have already shown above that the chain rule yields:
The following table lists some standard examples of logarithmic derivatives:
| Domain of definition | ||
|---|---|---|
| , | ||
Determine the logarithmic derivative (with domain of definition) of the following functions
- with
Part 1: There is for all . So
Since for all , the domain of definition for our logarithmic derivative of is equal to .
Part 2: The quotient rule yields
for all
So
Since for all , the domain of definition for our logarithmic derivative of is equal to .
Part 3: For there is
Since for all , the domain of definition for our logarithmic derivative of is equal to .
By direct computation we obtain the following rules for the logarithmic derivative:
For two differentiable functions and without zeros, there is
- for
- for
Note: The rules are analogous to the computation rules for the logarithm function.
We will only prove rule 1 and rule 4, the other three we leave to you "as an exercise" (don't worry, there is a solution, here).
Rule 1: Since and are differentiable and free of zeros, is also differentiable and free of zeros. Thus, the following applies
Rule 4: Since is differentiable and zero-free, is also differentiable and zero-free for . Further above we have already shown by the chain rule. So
Prove rules 2, 3 and 5 of the previous theorem
Rule 2: Since are differentiable and zero-free, is also differentiable and zero-free. By the chain rule, . Thus, there is
Rule 3: Since and are differentiable and zero-free, is also differentiable and zero-free. Using rules 1 and 2 we get
Alternatively, the rule can be proved by using the quotient rule.
Rule 5: Since are differentiable and positive, is also differentiable and positive. With the chain rule, applies. Thus,
The summation rule can still be generalized to zero-free and differentiable ( as
Using those rules, we can now easily calculate derivatives. The transition to logarithmic derivatives does not usually require less computational effort, but it is much clearer than calculating with the usual rules, and therefore less susceptible to errors!
First we differentiate the following product function by means of the logarithmic derivation
First we determine the domain of definition: there is , and . In order to be able to form the logarithmic derivative, and must be zero-free. Because of we will choose .
Now take the logarithmic derivative of : There is
Finally, we multiply the equation by and obtain
Next, we differentiate the following quotient function:
Concerning the domain: The denominator is always different from zero. In order for to be free of zeros, the numerator must be unequal to zero. Therefore:
Hence, the domain of definition is .
With and we have for the logarithmic derivative of :
Multiplication by yields:
Finally, we differentiate with the logarithmic derivative
Concerning the domain: In order for to be defined, must hold. The function is zero-free on all of . So .
The logarithmic derivative of is
Multiplication by yields:
Using the logarithmic derivatives, differentiate the following functions on their domain of definition:
Generalized chain rule
[edit | edit source]Just like the sum and product rule, the chain rule can be generalized to the composition of more than two functions. For two differentiable functions and the chain rule reads
If we have three functions , and , then by applying the rule twice we obtain
If we now take a closer look, we can see a law of formation: First the outermost function is differentiated and the two inner ones are inserted into the derivative function. Then the second function is differentiated and the innermost function is inserted, and the whole thing is multiplied by the first derivative. Finally, the innermost function is differentiated and multiplied. If we now generalize this to functions, we get:
Let be differentiable for all , and for all . Then is also differentiable, and its derivative at is given by
We prove the theorem by induction over :
Induction base: . There is
. The chain rule yields
Induction assumption:
is assumed for all and some
Induction step: . For there is
