Mathematics for Chemistry/Differentiation

From testwiki
Jump to navigation Jump to search

Free web-based material from HEFCE

There is a DVD on differentiation at Math Tutor.

The basic polynomial

The most basic kind of differentiation is:

f(x)=xn

f'(x)=nxn1

There are two simple rules:

  1. The derivative of a function times a constant is just the same constant times the derivative.
  2. The derivative of a sum of functions is just the sum of the two derivatives.

To get higher derivatives such as the second derivative keep applying the same rules.

One of the big uses of differentiation is to find the stationary points of functions, the maxima and minima. If the function is smooth, (unlike a saw-tooth), these are easily located by solving equations where the first derivative is zero.

The chain rule

dydx=dydw.dwdx

This is best illustrated by example: find dydx given y=(x4+1)9

Let y=u9 and u=x4+1.

Now dydu=9u8 and dudx=4x3

So using the chain rule we have 9(x4+1)8.4x3=36x3(x4+1)8


Differentiating a product

d(u.v)dx=vdudx+udvdx

Notice when differentiating a product one generates two terms. (Terms are mathematical expression connected by a plus or minus.) An important point is that terms which represent physical quantities must have the same units and dimensions or must be pure dimensionless numbers. You cannot add 3 oranges to 2 pears to get 5 orangopears. Integration by parts also generates an extra term each time it is applied.

Differentiating a quotient

You use this to differentiate tan.

ddx(uv)=vdudxudvdxv2

Problems

Differentiate with respect to x

3x2x(1+x)(1x)

Notice we have (a2b2). 4x73x2

(3x+2)2+ex

8x612x

x(x+3)2

x2(3x(2+x)(2x))

Evaluate the inner brackets first.

Evaluate

ddz(ezz9183z2)

ddc(c5)

ddω(1ω1ω21ω3)

ddϕ(eϕ(1ϕ2+32ϕ2))

ddr(e5r(ar3+br6+cr9))

a, b and c are constants. Differentiate with respect to r.

3re3r

ddx(x6ex)

Answers

3x2+6x1

28x66x

ex+18x+12

48x56x

3x2+12x+9

4x3+9x28x

ez+z82+6z3

52c3/2or52c3

1ω2+2ω3+3ω4

eϕ+2ϕ33ϕ

5e5r+3ar4+6br7+9cr10

e3r(39r)

x5ex(x+6)

Harder differentiation problems

Differentiate with respect to x:

x4(x+9)5

5x2(x27x+9)5

Differentiate with respect to r

(r2+3r1)3e4r

Differentiate with respect to ω

1ω4(ω23ω19)

eωω4

Evaluate

ddz(e4z(z12))

ddϕ(ϕ2e2ϕ(11ϕ2))

Using differentiation to check turning points

dydx is the tangent or gradient. At a minimum dydx is zero. This is also true at a maximum or an inflection point. The second gradient gives us the nature of the point. If d2ydx2 is positive the turning point is a minimum and if it is negative a maximum. Most of the time we are interested in minima except in transition state theory.

If the equation of y=x3 is plotted, is is possible to see that at x=0 there is a third kind of point, an inflection point, where both dydx and d2ydx2 are zero.

y=f(x)dydx=f'(x)d2ydx2=f'(x)

Plot x3+x26x between -4 and +3, in units of 1. (It will speed things up if you factorise it first. Then you will see there are 3 places where f(x)=0 so you only need calculate 5 points.) By factorising you can see that this equation has 3 roots. Find the 2 turning points. (Differentiate once and find the roots of the quadratic equation using x=b. This gives the position of the 2 turning points either side of zero. As the equation is only in x3 it has 3 roots and 2 maxima / minima at the most therefore we have solved everything. Differentiate your quadratic again to get d2ydx2. Notice that the turning point to the left of zero is a maximum i.e. d2ydx2=ve and the other is a minimum i.e. d2ydx2=+ve.

What is the solution and the turning point of y=x3.

Solve x3x=0, by factorisation.

(The 3 roots are -3,0 and +2. dydx=f'(x)=3x2+2x6

Solutions are 1/3(191) and 1/3(19+1), i.e. -1.7863 and 1.1196.

d2ydx2=f'(x)=6x+2

There are 3 coincident solutions at x=0, d2ydx2=0, at 0 so this is an inflection point.

The roots are 0, 1 and -1.

Template:BookCat