Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.6 · SL and HL
Standard derivatives, and the chain, product and quotient rules
The power rule handles polynomials, but how do you differentiate functions such as ex2−3x, x2sinx or xlnx?
What you will learn
Know the derivatives of rational powers, sin x, cos x, e to the x and ln x, with x in radians
Understand the chain rule as rates multiplying through a function of a function
Understand the product and quotient rules and why the order matters in the quotient rule
Know how to choose the rule from the last operation and combine rules
You must be able to
Differentiate composite functions with the chain rule
Differentiate products and quotients, factorising the result
Show that a derivative takes a given form, with every step visible
Calculate exact gradients, tangents and stationary points from a derivative
Use tables of values of f, g and their derivatives to find derivatives of combinations
Differentiate sums and multiples of the standard functions
In the exam. on every paper, in every session. Paper 1 asks you to differentiate by hand, most often as "find f′(x)" or "show that f′(x)=…" (3 to 4 marks), then to use the result: an exact gradient, a tangent or normal, the stationary points. Paper 2 assumes the technique and lets the GDC evaluate. Paper 3 (HL) uses the same rules on functions with letters in place of numbers, such as eaxsinbx, and asks you to show a general result. These rules are the machinery for 5.7 to 5.9 and for HL 5.12 onwards.
1The standard derivatives
dxdxn=nxn−1 (n∈Q) · dxdsinx=cosx · dxdcosx=−sinx · dxdex=ex · dxdlnx=x1. (Formula booklet; x in radians.)
Rational powers
The power rule from 5.3 works unchanged for fractional and negative powers. Roots and reciprocals are powers in disguise, so rewrite first.
Watch the domain. x exists at x=0, but its derivative 2x1 does not (the tangent there is vertical). So the derivative is defined only for x>0.
A logarithm law can save work. ln(7x)=ln7+lnx, and ln7 is a constant, so dxdln(7x)=x1. Likewise ln(x5)=5lnx has derivative x5.
2The chain rule
A composite function is a function of a function (2.5). In y=sin(4x+1), first x is turned into u=4x+1 (the inner function). Then u is turned into y=sinu (the outer function). Figure 4 draws the two stages.
Figure 4 · The chain rule: rates multiply through a composite
A small change in x is multiplied by 4 on its way into u, because dxdu=4. That change is then multiplied by cosu on its way into y, because dudy=cosu. Rates through a chain multiply:
Chain rule: if y=g(u) and u=f(x), then dxdy=dudy×dxdu. (Formula booklet.) In words: differentiate the outside, leave the inside alone, then multiply by the derivative of the inside.
y=sin(4x+1)u=4x+1,dxdu=4innery=sinu,dudy=cosuouterdxdy=cosu×4=4cos(4x+1)put u back in terms of x
Decompose, then differentiate
First name the layers. Which function would you apply first to x? That is the inner one.
Example: y=3x2+1. The inside is u=3x2+1 and the outside is u=u1/2.
With practice, skip the u and say it aloud: "derivative of the outside, with the same inside, times the derivative of the inside".
dxd(5−3x)8=8(5−3x)7×(−3)=−24(5−3x)7dxde4−x2=e4−x2×(−2x)=−2xe4−x2dxdsin3x=3sin2x×cosx=3sin2xcosxsin3x means (sinx)3dxd(4x−1)21=dxd(4x−1)−2=−2(4x−1)−3×4=(4x−1)3−8
Layers can stack, one factor per layer: dxd[cos(5x)]4=4cos3(5x)×(−sin5x)×5=−20cos3(5x)sin(5x).
Three patterns come up so often that they are worth knowing as shortcuts. Each is a special case of the chain rule:
Function
Derivative
Example
f(ax+b), a linear inside
af′(ax+b)
dxdsin(2x)=2cos(2x)
eg(x)
g′(x)eg(x)
dxde3x=3e3x
lng(x)
g(x)g′(x)
dxdln(x3+x)=x3+x3x2+1
The chain rule in function notation
If h(x)=f(g(x)), then h′(x)=f′(g(x))×g′(x). The derivative of the outer function is evaluated at the inside, g(x), not at x.
Exams use this form when f is given only by a few values, in a table or as a tangent line.
The tangent to the graph of f at x=4 is y=7−3x. Let g(x)=x and h(x)=f(g(x)). Find the tangent to h at x=16.
f(4)=7−3(4)=−5,f′(4)=−3read off the tangent at x=4g(16)=4,g′(x)=21x−1/2,g′(16)=81h(16)=f(g(16))=f(4)=−5h′(16)=f′(g(16))×g′(16)=f′(4)×81=−83f′ is needed at 4, not at 16y+5=−83(x−16),so y=1−83x
The order of the two functions matters. With the same f and g, the derivative of g(f(x)) is g′(f(x))×f′(x). The outer derivative is now g′, evaluated at f(x).
Notice the difference between these pairs:
sin(x2) has x2 inside. The answer is 2xcos(x2).
sin2x is (sinx)2, so the outside is the square. The answer is 2sinxcosx.
(lnx)4 gives x4(lnx)3.
ln(x4)=4lnx gives x4.
Read the notation carefully before choosing inner and outer.
3The product rule
A product of two functions of x, such as x2ex, can't be differentiated factor by factor. Its derivative is not 2xex. The rule has two terms.
Product rule: if y=uv, then dxdy=udxdv+vdxdu. (Formula booklet.) In words: first times derivative of second, plus second times derivative of first.
Figure 5 shows why there are two terms. Think of uv as the area of a rectangle with sides u and v. If x changes a little, u grows by Δu and v by Δv. The area grows by two strips, u×Δv and v×Δu, plus a tiny corner Δu×Δv.
Divide by Δx and let it shrink. The corner vanishes in the limit, and the two strips give the two terms.
Figure 5 · Why the product rule has two terms
Set out the four pieces before combining them: ten seconds slower, much safer.
y=x5cosxu=x5,dxdu=5x4v=cosx,dxdv=−sinxdxdy=udxdv+vdxdu=−x5sinx+5x4cosx=x4(5cosx−xsinx)factorise: useful for stationary points
With the pieces done in your head:
dxd(xsinx)=xcosx+sinx×21x−1/2=xcosx+2xsinx
A product with a chain inside
For y=x2(3x−2)5, v=(3x−2)5 needs the chain rule for dxdv.
At the end, take out the lowest power of each bracket.
u=x4,dxdu=4x3;v=e−x,dxdv=−e−xdxdy=x4(−e−x)+e−x(4x3)=x3e−x(−x+4)=x3e−x(4−x)product rule, then the common factor
Factorise at the end. A "show that" prints the factorised form, and a stationary-point question needs it, since x(3x−2)4(21x−4)=0 is easy to solve and the expanded version is not.
4The quotient rule
A quotient is one function of x divided by another:
Quotient rule: if y=vu, then dxdy=v2vdxdu−udxdv. (Formula booklet.) The order on top matters: bottom times derivative of top, minus top times derivative of bottom, all over bottom squared.
Because of the minus sign, swapping the two terms on top flips the sign of the whole answer. The product rule is a sum, so its order doesn't matter. The quotient rule's does.
When the bottom is a root or a bracket to a power, the chain rule is needed for dxdv.
Example: y=x2+4x.
u=x,dxdu=1v=(x2+4)1/2,dxdv=21(x2+4)−1/2×2x=x2+4xchain ruledxdy=x2+4x2+4−x×x2+4x=(x2+4)3/2(x2+4)−x2=(x2+4)3/24multiply top and bottom by x2+4
When the bottom is a bracket to a power, a common factor appears on top and cancels with the bottom. Example: y=(x+3)2x2, where dxdv=2(x+3).
dxdy=(x+3)4(x+3)2(2x)−x2[2(x+3)]=(x+3)42x(x+3)[(x+3)−x]=(x+3)36xtake out 2x(x+3) before expanding
A quotient as a product
Any quotient vu can be written u×v−1. The product and chain rules then give u(−v−2dxdv)+v−1dxdu. Put that over v2 and it is exactly the quotient rule, which is where the rule comes from.
Often neater when the bottom is a power of x. Show that dxd(x2sinx)=x3xcosx−2sinx:
If the denominator is a single power of x, split the fraction instead, as in 5.3. x2x3−4x+2=x−4x−1+2x−2 is quicker than any quotient rule.
A constant on top is a chain-rule job. (3x+1)26=6(3x+1)−2, with derivative −36(3x+1)−3.
5Choosing the rule, and combining rules
Figure 6 is the decision. Ask what you would do last when evaluating the function at, say, x=2.
Figure 6 · Which rule do I need?
x2ex at x=2: work out 4, work out e2, then multiply. Last operation ×: product rule.
(2x−5)6: work out 2x−5, then raise it to the sixth power. Last operation is applying a function to a result: chain rule.
x2+1x: work out both, then divide. Quotient rule.
A number times a function, such as 5sinx, is not a product in this sense. The 5 is a constant, and the constant stays in front.
When rules nest, apply the outer rule first. Bring in the inner rule when a piece needs it, as with x2(3x−2)5 above: product rule outside, chain rule inside dxdv.
Simplify before you differentiate. A log law or an identity can remove a rule altogether.
dxdln(xe2x)=dxd(lnx+2x)=x1+2log laws, no product rule
6Using the derivative: exact values, tangents, stationary points
Paper 1 rarely stops at differentiating. Typical follow-ons, easiest first:
An exact gradient. Find the gradient of y=xlnx at x=e2.
The answer e2 is exact. Writing 0.736 on Paper 1 when the exact value is available can cost the accuracy mark.
A tangent and a normal
The tangent to y=ln(3x−1) at x=1: y=ln2, and dxdy=3x−13, which is 23 at x=1. So the tangent is y−ln2=23(x−1).
The normal is perpendicular to the tangent, so its gradient is −m1 where m is the tangent's gradient. Here that is −32, giving y−ln2=−32(x−1).
Stationary points
For y=x2e−2x: dxdy=x2(−2e−2x)+e−2x(2x)=2xe−2x(1−x).
Since e−2x>0 for every x, the derivative is zero only when x=0 or x=1. The points are (0,0) and (1,e−2).
Take out the exponential factor and say in words that it is never zero.
A fraction is zero only when its numerator is, so for a quotient set the numerator of f′ to zero.
Deciding maximum or minimum belongs to 5.8. A sign check of the derivative either side is enough for now.
Matching a gradient
When a question gives a gradient, or a line the tangent must be parallel to, set dxdy equal to it and solve.
Example: for y=ln(x2+5), find where the gradient is 31.
dxdy=x2+52x=316x=x2+5⇒x2−6x+5=0⇒x=1 or x=5
An unknown constant. Example: y=(kx−1)e−x has gradient 5 at x=0. Then dxdy=ke−x−(kx−1)e−x=e−x(k+1−kx), which at x=0 is k+1. So k+1=5, and k=4.
Rates of change
Example: the drug concentration in a patient's blood t hours after an injection is C=12te−0.4t mg per litre.
By the product rule, dtdC=12e−0.4t+12t(−0.4e−0.4t)=12e−0.4t(1−0.4t). At t=1, dtdC≈4.83: the concentration is rising at about 4.83 mg per litre each hour.
The rate is zero when 1−0.4t=0, at t=2.5. Then C=30e−1≈11.0 mg per litre, the peak.
On Paper 2, check any derivative numerically: compare your f′(a) with the GDC's numerical derivative at the same a, in radians.
Letters instead of numbers. Paper 3 style questions keep the rules but use constants in place of numbers. For y=eaxsinbx, the product rule with a chain in each factor gives dxdy=eax(asinbx+bcosbx). Treat a and b as you would 2 and 3.
Practice questions
36 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 5.6 Standard derivatives, and the chain, product and quotient rules