Jump to content

Mathematics for Chemistry/Differentiation

From Wikibooks, open books for an open world

Free web-based material from HEFCE

[edit | edit source]

There is a DVD on differentiation at Math Tutor.

The basic polynomial

[edit | edit source]

The most basic kind of differentiation is:

f(x)=xn

f'(x)=nxn−1

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

[edit | edit source]

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

[edit | edit source]

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

[edit | edit source]

You use this to differentiate tan.

ddx(uv)=vdudx−udvdxv2

Problems

[edit | edit source]

Differentiate with respect to x

3x2−x(1+x)(1−x)

Notice we have (a2−b2). 4x7−3x2

(3x+2)2+ex

8x6−12x

x(x+3)2

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

Evaluate the inner brackets first.

Evaluate

ddz(ez−z918−3z2)

ddc(c5)

ddω(1ω−1ω2−1ω3)

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

ddr(e5r−(ar3+br6+cr9))

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

3re−3r

ddx(x6ex)

Answers

[edit | edit source]

3x2+6x−1

28x6−6x

ex+18x+12

48x5−6x

3x2+12x+9

4x3+9x2−8x

ez+z82+6z3

52c3/2or52c3

−1ω2+2ω3+3ω4

eϕ+2ϕ3−3ϕ

5e5r+3ar4+6br7+9cr10

e−3r(3−9r)

x5ex(x+6)

Harder differentiation problems

[edit | edit source]

Differentiate with respect to x:

x4(x+9)5

5x2(x2−7x+9)5

Differentiate with respect to r

(r2+3r−1)3e−4r

Differentiate with respect to ω

1ω4(ω2−3ω−19)

eωω4

Evaluate

ddz(e−4z(z−12))

ddϕ(ϕ2e−2ϕ(1−1ϕ2))

Using differentiation to check turning points

[edit | edit source]

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+x2−6x 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 x3−x=0, by factorisation.

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

Solutions are 1/3(19−1) 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.