2.6: Using the Arithmetic of Derivatives – Examples
( \newcommand{\kernel}{\mathrm{null}\,}\)
In this section we illustrate the computation of derivatives using the arithmetic of derivatives — Theorems 2.4.2, 2.4.3 and 2.4.5. To make it clear which rules we are using during the examples we will note which theorem we are using:
∙LIN to stand for “linearity” | ddx{αf(x)+βg(x)}=αf′(x)+βg′(x) | Theorem 2.4.2 |
∙PR to stand for “product rule” | ddx{f(x)g(x)}=f′(x)g(x)+f(x)g′(x) | Theorem 2.4.3 |
∙QR to stand for “quotient rule” | ddx{f(x)g(x)}=f′(x)g(x)−f(x)g′(x)g(x)2 | Theorem 2.4.5 |
We'll start with a really easy example.
ddx{4x+7}=4⋅ddx{x}+7⋅ddx{1}LIN=4⋅1+7⋅0=4
where we have used LIN with f(x)=x, g(x)=1, α=4, β=7.
Continuing on from the previous example, we can use the product rule and the previous result to compute
ddx{x(4x+7)}=x⋅ddx{4x+7}+(4x+7)ddx{x}PR=x⋅4+(4x+7)⋅1=8x+7
where we have used the product rule PR with f(x)=x and g(x)=4x+7.
In the same vein as the previous example, we can use the quotient rule to compute
ddx{x4x+7}=(4x+7)⋅ddx{x}−x⋅ddx{4x+7}(4x+7)2QR=(4x+7)⋅1−x⋅4(4x+7)2=7(4x+7)2
where we have used the quotient rule QR with f(x)=x and g(x)=4x+7.
Now for a messier example.
Differentiate
f(x)=x2x+13x+1
This problem looks nasty. But it isn't so hard if we just build it up a bit at a time.
- First, f(x) is the ratio of
f1(x)=xandf2(x)=2x+13x+1
If we can find the derivatives of f1(x) and f2(x), we will be able to get the derivative of f(x) just by applying the quotient rule. The derivative, f′1(x)=1, of f1(x) is easy, so let's work on f2(x). - The function f2(x) is the linear combination
f2(x)=2f3(x)+f4(x)withf3(x)=xandf4(x)=13x+1
If we can find the derivatives of f3(x) and f4(x), we will be able to get the derivative of f2(x) just by applying linearity (Theorem 2.4.2). The derivative, f′3(x)=1, of f3(x) is easy. So let's work of f4(x). - The function f4(x) is the ratio
f4(x)=1f5(x)withf5(x)=3x+1
If we can find the derivative of f5(x), we will be able to get the derivative of f4(x) just by applying the special case the quotient rule (Corollary 2.4.6). The derivative of f5(x) is easy. - So we have completed breaking down f(x) into easy pieces. It is now just a matter of reversing the break down steps, putting everything back together, starting with the easy pieces and working up to f(x). Here goes.
f5(x)=3x+1 so ddxf5(x)=3ddxx+ddx1=3⋅1+0=3LINf4(x)=1f5(x) so ddxf4(x)=−f′5(x)f5(x)2=−3(3x+1)2QRf2(x)=2f3(x)+f4(x) so ddxf2(x)=2f′3(x)+f′4(x)=2−3(3x+1)2LINf(x)=f1(x)f2(x) so ddxf(x)=f′1(x)f2(x)−f1(x)f′2(x)f2(x)2QR=1[2x+13x+1]−x[2−3(3x+1)2][2x+13x+1]2
Oof! - We now have an answer. But we really should clean it up, not only to make it easier to read, but also because invariably such computations are just small steps inside much larger computations. Any future computations involving this expression will be a lot easier and less error prone if we clean it up now. Cancelling the 2x and the −2x in
1[2x+13x+1]−x[2−3(3x+1)2]=2x+13x+1−2x+3x(3x+1)2=13x+1+3x(3x+1)2
and multiplying both the numerator and denominator by (3x+1)2 givesf′(x)=13x+1+3x(3x+1)2[2x+13x+1]2 (3x+1)2(3x+1)2=(3x+1)+3x[2x(3x+1)+1]2=6x+1[6x2+2x+1]2.
While the linearity theorem (Theorem 2.4.2) is stated for a linear combination of two functions, it is not difficult to extend it to linear combinations of three or more functions as the following example shows.
We'll start by generalising linearity to three functions.
ddx{aF(x)+bG(x)+cH(x)}=ddx{ a⋅[F(x)] + 1⋅[bG(x)+cH(x)] }=aF′(x)+ddx{bG(x)+cH(x)}by LIN with α=a,f(x)=F(x),β=1,and g(x)=bG(x)+cH(x)=aF′(x)+bG′(x)+cH′(x)by LIN with α=b,f(x)=G(x),β=c,and g(x)=H(x)
This gives us linearity for three terms, namely (just replacing upper case names by lower case names)
ddx{af(x)+bg(x)+ch(x)}=af′(x)+bg′(x)+ch′(x)
Just by repeating the above argument many times, we may generalise to linearity for n terms, for any natural number n:
ddx{a1f1(x)+a2f2(x)+⋯+anfn(x)}=a1f′1(x)+a2f′2(x)+⋯+anf′n(x)
Similarly, while the product rule is stated for the product of two functions, it is not difficult to extend it to the product of three or more functions as the following example shows.
Once again, we'll start by generalising the product rule to three factors.
ddx{F(x)G(x)H(x)}=F′(x)G(x)H(x)+F(x)ddx{G(x)H(x)}by PR withf(x)=F(x) and g(x)=G(x)H(x)=F′(x)G(x)H(x)+F(x){G′(x)H(x)+G(x)H′(x)}by PR withf(x)=G(x) and g(x)=H(x)
This gives us a product rule for three factors, namely (just replacing upper case names by lower case names)
ddx{f(x)g(x)h(x)}=f′(x)g(x)h(x)+f(x)g′(x)h(x)+f(x)g(x)h′(x)
Observe that when we differentiate a product of three factors, the answer is a sum of three terms and in each term the derivative acts on exactly one of the original factors. Just by repeating the above argument many times, we may generalise the product rule to give the derivative of a product of n factors, for any natural number n:
ddx{f1(x)f2(x)⋯fn(x)}=f′1(x)f2(x)⋯fn(x)+f1(x)f′2(x)⋯fn(x)⋮+f1(x)f2(x)⋯f′n(x)
We can also write the above as
ddx{f1(x)f2(x)⋯fn(x)}=[f′1(x)f1(x)+f′2(x)f2(x)+⋯+f′n(x)fn(x)]⋅f1(x)f2(x)⋯fn(x)
When we differentiate a product of n factors, the answer is a sum of n terms and in each term the derivative acts on exactly one of the original factors. In the first term, the derivative acts on the first of the original factors. In the second term, the derivative acts on the second of the original factors. And so on.
If we make f1(x)=f2(x)=⋯=fn(x)=f(x) then each of the n terms on the right hand side of the above equation is the product of f′(x) and exactly n−1 f(x)'s, and so is exactly f(x)n−1f′(x). So we get the following useful result
ddxf(x)n=n⋅f(x)n−1⋅f′(x).
This last result is quite useful, so let us write it as a lemma for future reference.
Let n be a natural number and f be a differentiable function. Then
ddxf(x)n=n⋅f(x)n−1⋅f′(x).
This immediately gives us another useful result.
We can now compute the derivative of xn for any natural number n. Start with Lemma 2.6.7 and substitute f(x)=x and f′(x)=1:
ddxxn=n⋅xn−1⋅1=nxn−1
Again — this is a result we will come back to quite a few times in the future, so we should make sure we can refer to it easily. However, at present this statement only holds when n is a positive integer. With a little more work we can extend this to compute xq where q is any positive rational number and then any rational number at all (positive or negative). So let us hold off for a little longer. Instead we can make it a lemma, since it will be an ingredient in quite a few of the examples following below and in constructing the final corollary.
Let n be a positive integer then
ddxxn=nxn−1
Back to more examples.
ddx{2x3+4x5}=2ddx{x3}+4ddx{x5}by LIN with α=2,f(x)=x3,β=4 and g(x)=x5=2{3x2}+4{5x4}
by Lemma 2.6.9, once with n=3, and once with n=5
=6x2+20x4
In this example we'll compute ddx{(3x+9)(x2+4x3)} in two different ways. For the first, we'll start with the product rule.
ddx{(3x+9)(x2+4x3)}={ddx(3x+9)} (x2+4x3)+(3x+9) ddx{x2+4x3}={3×1+9×0} (x2+4x3)+(3x+9) {2x+4(3x2)}=3(x2+4x3)+(3x+9) (2x+12x2)=3x2+12x3+(6x2+18x+36x3+108x2)=18x+117x2+48x3
For the second, we expand the product first and then differentiate.
ddx{(3x+9)(x2+4x3)}=ddx{9x2+39x3+12x4}=9(2x)+39(3x2)+12(4x3)=18x+117x2+48x3
ddx{4x3−7x4x2+1}=(12x2−7)(4x2+1)−(4x3−7x)(8x)(4x2+1)2by QR with f(x)=4x3−7x,f′(x)=12x2−7,and g(x)=4x2+1,g′(x)=8x=(48x4−16x2−7)−(32x4−56x2)(4x2+1)2=16x4+40x2−7(4x2+1)2
In this example, we'll use a little trickery to find the derivative of 3√x. The trickery consists of observing that, by the definition of the cube root,
x=(3√x)3.
Since both sides of the expression are the same, they must have the same derivatives:
ddx{x}=ddx(3√x)3.
We already know by Theorem 2.2.4 that
ddx{x}=1
and that, by Lemma 2.6.7 with n=3 and f(x)=3√x,
ddx(3√x)3=3 (3√x)2⋅ddx{3√x}=3x2/3⋅ddx{3√x}.
Since we know that ddx{x}=ddx(3√x)3, we must have
1=3x2/3⋅ddx{3√x}
which we can rearrange to give the result we need
ddx{3√x}=13x−2/3In this example, we'll use the same trickery as in Example 2.6.13 to find the derivative xp/q for any two natural numbers p and q. By definition of the qth root,
xp=(xp/q)q.
That is, xp and (xp/q)q are the same function, and so have the same derivative. So we differentiate both of them. We already know that, by Lemma 2.6.9 with n=p,
ddx{xp}=pxp−1
and that, by Lemma 2.6.7 with n=q and f(x)=xp/q,
ddx{(xp/q)q}=q (xp/q)q−1 ddx{xp/q}
Remember that (xa)b=x(a⋅b). Now these two derivatives must be the same. So
pxp−1=q⋅x(pq−p)/qddx{xp/q}
and, rearranging things,
ddx{xp/q}=pqxp−1−(pq−p)/q=pqx(pq−q−pq+p)/q=pqxpq−1So finally
ddx{xp/q}=pqxpq−1
Notice that this has the same form as Lemma 2.6.9, above, except with n=pq allowed to be any positive rational number, not just a positive integer.
In this example we'll use the quotient rule to find the derivative of x−m, for any natural number m.
By the special case of the quotient rule (Corollary 2.4.6) with g(x)=xm and g′(x)=mxm−1
ddx{x−m}=ddx{1xm}=−mxm−1(xm)2=−mx−m−1
Again, notice that this has the same form as Lemma 2.6.9, above, except with n=−m being a negative integer.
In this example we'll use the quotient rule to find the derivative of x−p/q, for any pair of natural numbers p and q. By the special case the quotient rule (Corollary 2.4.6) with g(x)=xpq and g′(x)=pqxpq−1,
ddx{x−pq}=ddx{1xpq}=−pqxpq−1(xpq)2=−pq x−pq−1
Note that we have found, in Examples 2.2.2, 2.6.14 and 2.6.16, the derivative of xa for any rational number a, whether 0, positive, negative, integer or fractional. In all cases, the answer is
Let a be a rational number, then
ddxxa=axa−1
We shall show, in Example 2.10.5, that the formula ddxxa=axa−1 in fact applies for all real numbers a, not just rational numbers.
Back in Example 2.2.9 we computed the derivative of √x from the definition of the derivative. The above corollary (correctly) gives
ddxx12=12x−12
but with far less work.
Here's an (optional) messy example.
Find the derivative of
f(x)=(√x−1)(2−x)(1−x2)√x(3+2x)
- As we seen before, the best strategy for dealing with nasty expressions is to break them up into easy pieces. We can think of f(x) as the five–fold product
f(x)=f1(x)⋅f2(x)⋅f3(x)⋅1f4(x)⋅1f5(x)
withf1(x)=√x−1f2(x)=2−xf3(x)=1−x2f4(x)=√xf5(x)=3+2x
- By now, the derivatives of the fj's should be easy to find:
f′1(x)=12√xf′2(x)=−1f′3(x)=−2xf′4(x)=12√xf′5(x)=2
- Now, to get the derivative f(x) we use the n–fold product rule which was developed in Example 2.6.6, together with the special case of the quotient rule (Corollary 2.4.6).
f′(x)=f′1f2f31f41f5+f1f′2f31f41f5+f1f2f′31f41f5−f1f2f3f′4f241f5−f1f2f31f4f′5f25=[f′1f1+f′2f2+f′3f3−f′4f4−f′5f5]f1f2f31f41f5=[12√x(√x−1)−12−x−2x1−x2−12x−23+2x](√x−1)(2−x)(1−x2)√x(3+2x)
The trick that we used in going from the first line to the second line, namely multiplying term number j by fj(x)fj(x) is often useful in simplifying the derivative of a product of many factors 1.
Exercises
Stage 1
Spot and correct the error(s) in the following calculation.
f(x)=2xx+1f′(x)=2(x+1)+2x(x+1)2=2(x+1)(x+1)2=2x+1
True or false: ddx{2x}=x2x−1.
Stage 2
Differentiate f(x)=23x6+5x4+12x2+9 and factor the result.
Differentiate s(t)=3t4+5t3−1t.
Differentiate x(y)=(2y+1y)⋅y3.
Differentiate T(x)=√x+1x2+3.
Compute the derivative of (7x+2x2+3).
What is f′(0), when f(x)=(3x3+4x2+x+1)(2x+5)?
Differentiate f(x)=3x3+1x2+5x.
Compute the derivative of (3x2+52−x)
Compute the derivative of (2−x23x2+5).
Compute the derivative of (2x3+1x+2).
For what values of x does the derivative of √x1−x2 exist? Explain your answer.
Differentiate f(x)=(35√x+153√x+8)(3x2+8x−5).
Differentiate f(x)=(x2+5x+1)(√x+3√x)x.
Find all x-values where f(x)=115x5+x4−53x3 has a horizontal tangent line.
Stage 3
Find an equation of a line that is tangent to both of the curves y=x2 and y=x2−2x+2 (at different points).
[1998H] Find all lines that are tangent to both of the curves y=x2 and y=−x2+2x−5. Illustrate your answer with a sketch.
Evaluate lim
Evaluate \displaystyle \lim_{x\to \pi/3}\left( \dfrac{\cos(x)-1/2}{x-\pi/3}\right).
Evaluate \displaystyle \lim_{x\to \pi}\left(\dfrac{\sin(x)}{x-\pi}\right).
Evaluate \displaystyle \lim_{x\to 2}\left( \dfrac{x^{2015}-2^{2015}}{x-2}\right).