Calculus/More Differentiation Rules

From testwiki
Revision as of 01:45, 19 August 2007 by 161.45.194.196 (talk) (Logarithms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Chain Rule

We know how to differentiate regular polynomial functions. For example:

ddx(3x36x2+x)=9x212x+1

However, we've not yet explored the derivative of an unexpanded expression. If we are given the function f(x)=(x2+5)2, we currently have no choice but to expand it and find the derivative of each part and then add the parts back together:

f(x)=(x2+5)2
f(x)=x4+10x2+25
f(x)=4x3+20x

However, there is a useful rule known as the chain rule. The function above (f(x)=(x2+5)2) can be consolidated into two nested parts f(x)=u2, where u=m(x)=(x2+5). Therefore:

if
g(u)=u2 and
u=m(x)=x2+5

Then:

f(x)=g(m(x))

Then

f(x)=g(m(x))m(x)

The chain rule states that if we have a function of the form y(u(x)) (i.e. y can be written as a function of u and u can be written as a function of x) then:

dydx=dydududx


Chain Rule

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,

F(x)=g(m(x))m(x)

We can now investigate the original function:

dydu=2u
dudx=2x

Therefore

dydx=dydududx=2u2x=2(x2+5)(2x)=4x3+20x

This can be performed for more complicated equations. If we consider:

ddx1+x2

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

ddx1+x2=121+x22x=x1+x2

Product and Quotient Rules

When we wish to differentiate a more complicated expression such as:

h(x)=(x2+5)5(x3+2)3

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.


Derivatives of products (Product rule)

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)

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
H(x)=(x+2)32(x+1)2,

its derivative would not be
3(x+2)24(x+1).


Instead it would be
3(x+2)22(x+1)2+(x+2)34(x+1)

Another way of approaching this is if one were to have a function that was a product of the two functions A and B
h(x)=AB Its derivative would be
h(x)=AB+AB


Proving this rule is relatively straightforward, first let us state the equation for the derivative:

ddx[f(x)g(x)]=limh0f(x+h)g(x+h)f(x)g(x)h

We will then apply one of the oldest tricks in the book--adding a term that cancels itself out to the middle:


ddx[f(x)g(x)]=limh0f(x+h)g(x+h)𝐟(𝐱)𝐠(𝐱+𝐡)+𝐟(𝐱)𝐠(𝐱+𝐡)f(x)g(x)h

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:

ddx[f(x)g(x)]=limh0[f(x+h)g(x+h)f(x)g(x+h)h+f(x)g(x+h)f(x)g(x)h]

Looking at this, we see that we can separate the common terms out of the numerators to get:

ddx[f(x)g(x)]=limh0[g(x+h)f(x+h)f(x)h+f(x)g(x+h)g(x)h]

Which, when we take the limit, becomes:

ddx[f(x)g(x)]=f(x)g(x)+g(x)f(x), or the mnemonic "one D-two plus two D-one"


This can be extended to 3 functions:

ddx[fgh]=f(x)g(x)h(x)+f(x)g(x)h(x)+f(x)g(x)h(x)

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.

f(x)g(x)=f(x)g(x)1

Then we can just use the product rule and the chain rule:

ddxf(x)g(x)=f(x)g(x)1f(x)g(x)g(x)2

We can then multiply through by 1, or more precisely: g(x)2 / g(x)2, which cancels out into 1, to get:

ddxf(x)g(x)=f(x)g(x)g(x)2f(x)g(x)g(x)2

This leads us to the so-called "quotient rule":


Derivatives of quotients (Quotient Rule)

ddx[f(x)g(x)]=f(x)g(x)f(x)g(x)g(x)2

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 ddx((a+b)×(c+d))=ddx(ac+ad+bc+bd)

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 y2+2yx+3=5x. 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

dydx=dydududx


Therefore

ddx(y3)=ddy(y3)dydx=3y2dydx 


Examples


xy=1
can be solved as:
y=1x
then differentiated:
dydx=1x2
However, it can also be differentiated like this: ddx[xy]=ddx[1]
xdydx+y=0 (use the product rule)
dydx=yx (solve for dy/dx)
Note that, if we substitute y=1x into dydx=yx, we end up with dydx=1x2 again.

  • Find the derivative of y2+x2 =25 with respect to x.

You are seeking dydx.

Take the derivative of each side of the equation with respect to x.

d(y2+x2)dx=d(25)dx
2ydydx+2x=0
2ydydx=2x
dydx=xy

Exponential, logarithmic, and trigonometric functions

Exponential

To determine the derivative of an exponent requires use of the symmetric difference equation for determining the derivative:

ddxf(x)=limh0f(x+h)f(xh)2h

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:

ddxex=limh0ex+hexh2h

Then we apply some basic algebra with powers (specifically that ab + c = ab ac):

ddxex=limh0exehexeh2h

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:

ddxex=exlimh0eheh2h

A careful examination of the limit reveals a hyperbolic sine:

ddxex=exlimh0sinh(h)h

The limit of sin(h)/h as h approaches 0 is equal to 1, leaving us with:


Derivative of the exponential function

ddxex=ex

in which f(x)=f(x).

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:

ddxax

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:

ax=exln(a)

Thus, we simply apply the chain rule:

ddxexln(a)=[ddxxln(a)]exln(a)

In which we can solve for the derivative and substitute back with ex · ln(a) = ax to get:


Derivative of the exponential function

ddxax=ln(a)ax

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:

y=ln(x)

It should be noted that what we want to find is the derivative of y or dydx.

Next we will put both sides to the power of e in an attempt to remove the logarithm from the right hand side:

ey=x

Now, applying the chain rule and the property of exponents we derived earlier, we take the derivative of both sides:

dydxey=1

This leaves us with the derivative:

dydx=1ey

Substituting back our original equation of x = ey, we find that:


Derivative of the Natural Logarithm

ddxln(x)=1x

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:

logb(x)=ln(x)ln(b)

Since 1 / ln(b) is a constant, we can just take it outside of the derivative:

ddxlogb(x)=1ln(b)ddxln(x)

Which leaves us with the generalized form of:


Derivative of the Logarithm

ddxlogb(x)=1xln(b)

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.,

f(x)=limh0f(x+h)f(x)h,

to work these first two out.

Let us find the derivative of sin x, using the above definition.

f(x)=sinx


f(x)=limh0sin(x+h)sinxh Definition of derivative


=limh0cos(x)sin(h)+cos(h)sin(x)sin(x)h trigonometric identity


=limh0cos(x)sin(h)+(cos(h)1)sin(x)h factoring


=limh0cos(x)sin(h)h +limh0(cos(h)1)sin(x)h separation of terms


=cosx×1+sinx×0 application of limit


=cosx solution

Now for the case of cos x

f(x)=cosx


f(x)=limh0cos(x+h)cosxh Definition of derivative


=limh0cos(x)cos(h)sin(h)sin(x)cos(x)h trigonometric identity


=limh0cos(x)(cos(h)1)sin(x)sin(h)h factoring


=limh0cos(x)(cos(h)1)h limh0sin(x)sin(h)h separation of terms


=cosx×0sinx×1 application of limit


=sinx solution

Therefore we have established

Derivative of Sine and Cosine

ddxsin(x)=cos(x)
ddxcos(x)=sin(x)


To find the derivative of the tangent, we just remember that:

tan(x)=sin(x)cos(x)

which is a quotient. Applying the quotient rule, we get:

ddxtan(x)=cos2(x)+sin2(x)cos2(x)

Then, remembering that cos2(x)+sin2(x)=1, we simplify:

cos2(x)+sin2(x)cos2(x) =1cos2(x)
=sec2(x)


Derivative of the Tangent

ddxtan(x)=sec2(x)

For secants, we just need to apply the chain rule to the derivations we have already determined.

sec(x)=1cos(x)

So for the secant, we state the equation as:

sec(x)=1u
u(x)=cos(x)

Take the derivative of both equations, we find:

ddxsec(x)=1u2dudx
dudx=sin(x)

Leaving us with:

ddxsec(x)=sin(x)cos2(x)

Simplifying, we get:


Derivative of the Secant

ddxsec(x)=sec(x)tan(x)

Using the same procedure on cosecants:

csc(x)=1sin(x)

We get:


Derivative of the Cosecant

ddxcsc(x)=csc(x)cot(x)

Using the same procedure for the cotangent that we used for the tangent, we get:


Derivative of the Cotangent

ddxcot(x)=csc2(x)

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:

y=arcsin(x)

To find dy/dx we first need to break this down into a form we can work with:

x=sin(y)

Then we can take the derivative of that:

1=cos(y)dydx

...and solve for dy / dx:

dydx=1cos(y)

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:


Derivative of the Arcsine

ddxarcsin(x)=11x2

We can use an identical procedure for the arccosine and arctangent:


Derivative of the Arccosine

ddxarccos(x)=11x2

Derivative of the Arctangent

ddxarctan(x)=11+x2

Exercises

Given the above rules, practice differentiation on the following.

  1. ddx[(x3+5)10]
  2. ddx[x3+3x]
  3. ddx[(x+4)(x+2)(x3)]
  4. ddx[x+13x2]
  5. ddx[3x3]
  6. ddx[sinxx4]
  7. ddx[2x]
  8. ddx[ex2]
  9. ddx[e2x]
  10. ddx[xx]

Answers


Template:Calculus:TOC