High School Mathematics Extensions/Supplementary/Differentiation

From testwiki
Jump to navigation Jump to search

Template:High School Mathematics Extensions/TOC

Template:High School Mathematics Extensions/Supplementary/TOC

Differentiate from first principle(otherwise known as differentialisation)

This section and the *differentiation technique* section can be skipped if you are already familiar with calculus/differentiation.

In calculus, differentiation is a very important operation applied to functions of real numbers. To differentiate a function f(x), we simply evaluate the limit

limh0f(x+h)f(x)h

where the limh0 means that we let h approach 0. However, for now, we can simply think of it as putting h to 0, i.e., letting h = 0 at an appropriate time. There are various notations for the result of differentiation (called the derivative), for example

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

and

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

mean the same thing. We say, f'(x) is the derivative of f(x). Differentiation is useful for many purposes, but we shall not discuss why calculus was invented, but rather how we can apply calculus to the study of generating functions.

It should be clear that if g(x)=f(x) then g(x)=f(x) the above law is important. If g(x) a closed-form of f(x), then it is valid to differentiate both sides to obtain a new generating function.

Also if h(x)=g(x)+f(x) then

h(x)=g(x)+f(x)

This can be verified by looking at the properties of limits.

Example 1

Differentiate from first principle f(x) where

f(x)=x2

Firstly, we form the difference quotient

f(x)=limh0(x+h)2x2h

We can't set h to 0 to evaluate the limit at this point. Can you see why? We need to expand the quadratic first.

=limh0x2+2xh+h2x2h
=limh02xh+h2h

We can now factor out the h to obtain now

limh02x+h

from where we can let h go to zero safely to obtain the derivative, 2x. So

f(x)=2x

or equivalently:

(x2)=2x

Example 2

Differentiate from first principles, p(x) = xn.

We start from the difference quotient:

p(x)=limh0(x+h)nxnh

By the binomial theorem, we have:

=limh01h(xn+nxn1h+...+hnxn)

The first xn cancels with the last, to get

=limh01h(nxn1h+...+hn)

Now, we bring the constant 1/h inside the brackets

=limh0nxn1+...+hn1

and the result falls out:

=nxn1

Important Result

If

p(x)=xn

then

p(x)=nxn1

As you can see, differentiate from first principle involves working out the derivative of a function through algebraic manipulation, and for that reason this section is algebraically very difficult.

Example 3

Assume that if

h(x)=f(x)+g(x)

then

h(x)=f(x)+g(x)

Differentiate x2+x5

Solution Let h(x)=x2+x5

h(x)=2x+5x4

Example 4

Show that if

g(x)=Af(x)then
g(x)=Af(x)

Solution

g(x)=Af(x)g(x)=limh0Ah(f(x+h)f(x))=Alimh01h(f(x+h)f(x))=Af(x)

Example 5

Differentiate from first principle

f(x)=11x

Solution

f(x)=limh01h(11(x+h)11x)=limh01h(1x(1(x+h))(1(x+h))(1x))=limh01h(h(1(x+h))(1x))=limh01(1(x+h))(1x)=1(1x)2

Exercises

1. Differentiate

f(z)=z2

2. Differentiate

f(z)=(1z)2

3. Differentiate from first principle

f(z)=1(1z)2

4. Differentiate

f(z)=(1z)3

5. Prove the result assumed in example 3 above, i.e. if

f(x)=g(x)+h(x)

then

f′(x)=g′(x)+h′(x).

Hint: use limits.

Differentiating f(z) = (1 - z)^n

We aim to derive a vital result in this section, namely, to derive the derivative of

f(z)=(1z)n

where n ≥ 1 and n an integer. We will show a number of ways to arrive at the result.

Derivation 1

Let's proceed:

f(z)=(1z)n

expand the right hand side using binomial expansion

f(z)=1(n1)z+(n2)z2+...+(1)nzn

differentiate both sides

f(z)=(n1)+(n2)2z+...+(1)nnzn1

now we use (ni)=n!i!(ni)!

f(z)=n!1!(n1)!+n!2!(n2)!2z+...+(1)nnzn1

and there are some cancelling

f(z)=n!1!(n1)!+n!1!(n2)!z+...+(1)nnzn1

take out a common factor of -n, and recall that 1! = 0! = 1 we get

f(z)=n(1+n1!1!(n2)!z+...+(1)n1zn1)

let j = i - 1, we get

f(z)=n(1+n1!1!(n2)!z+...+(1)n1zn1)

but this is just the expansion of (1 - z)n-1

f(z)=n(1z)n1

Derivation 2

Similar to Derivation 1, we use instead the definition of a derivative:

f(z)=limh0(1(z+h))n(1z)nh

expand using the binomial theorem

f(z)=limh0i=0n(ni)(1)i(z+h)ii=0n(ni)(1)izih

factorise

f(z)=limh0i=0n(ni)(1)i((z+h)izi)h

take the limit inside (recall that [Af(x)]' = Af'(x) )

f(z)=i=0n(ni)(1)ilimh0(z+h)izih

the inside is just the derivative of zi

f(z)=i=1n(ni)(1)iizi1

exactly as derivation 1, we get

f(z)=n(1z)n1

Example Differentiate (1 - z)2

Solution 1

f(z) = (1 - z)2 = 1 - 2z + z2
f'(z) = - 2 + 2z
f'(z) = - 2(1 - z)

Solution 2 By the result derived above we have

f'(z) = -2(1 - z)2 - 1 = -2(1 - z)

Exercises

Imitate the method used above or otherwise, differentiate:

1. (1 - z)3

2. (1 + z)2

3. (1 + z)3

4. (Harder) 1/(1 - z)3 (Hint: Use definition of derivative)

Differentiation technique

We will teach how to differentiate functions of this form:

f(z)=1g(z)

i.e. functions whose reciprocals are also functions. We proceed, by the definition of differentiation:

f(z)=1g(z)


f(z)=limh01h(1g(z+h)1g(z))=limh01h(g(z)g(z+h)g(z+h)g(z))=limh0g(z+h)g(z)h1g(z+h)g(z)=limh0g(z)1g(z+h)g(z)=g(z)g(z)2

Example 1

11z=1+z+z2+z3+...(11z)=1+2z+3z2+...

by

(1g)=gg2

where g is a function of z, we get

1(1z)2=1+2z+3z2+...

which confirmed the result derived using a counting argument.


Exercises

Differentiate

1. 1/(1-z)2

2. 1/(1-z)3

3. 1/(1+z)3

4. Show that (1/(1 - z)n)' = n/(1-z)n+1

Differentiation applied to generating functions

Now that we are familiar with differentiation from first principle, we should consider:

f(z)=11x2

we know

11x2=1+x2+x4+x6+....

differentiate both sides

(11x2)=2x+4x3+6x5+....


2x(1x2)2=2x(1+2x2+3x4+....)

therefore we can conclude that

1(1x2)2=1+2x2+3x4+....

Note that we can obtain the above result by the substitution method as well,

1(1z)2=1+2z+3z2+....

letting z = x2 gives you the require result.

The above example demonstrated that we need not concern ourselves with difficult differentiations. Rather, to get the results the easy way, we need only to differentiate the basic forms and apply the substitution method. By basic forms we mean generating functions of the form:

1(1z)n

for n ≥ 1.

Let's consider the number of solutions to

a1+a2+a3+...+an=m

for ai ≥ 0 for i = 1, 2, ... n.

We know that for any m, the number of solutions is the coefficient to:

(1+x+x2+...)n=1(1z)n

as discussed before.

We start from:

11z=1+x+x2+...+xn+...

differentiate both sides (note that 1 = 1!)

1!(1z)2=1+2x+3x2...+nxn1+...

differentiate again

2!(1z)3=2+2×3x...+n(n1)xn2+...

and so on for (n-1) times

(n1)!(1z)n=(n1)!+n!1!x+(n+1)!2!x2+(n+2)!3!x3+...

divide both sides by (n-1)!

1(1z)n=1+n!(n1)!1!x+(n+1)!(n1)!2!x2+(n+2)!(n1)!3!x3+...

the above confirms the result derived using a counting argument.