We have learned the meaning of the first derivative of a function. Now we want to know what the second, the third, and the n-th derivatives of a function are defined and how we can calculate them. 


Read about the importance of the second derivative in physics


 

In general, if we take the derivative of y=f(x), we obtain a new function f (also denoted by y or dy/dx). We can take the derivative of f and obtain another function called the second derivative of f (or y). The second derivative of f(x) is denoted by f(x) or ddx(dydx), which is commonly abbreviated to d2ydx2. Thus f=(f) or
(a)f(x)=limΔx0f(x+Δx)f(x)Δx.
The second derivative is also indicated by y or d2fdx2.

For example, if f(x)=x35x2+3x1, then the first derivative is y=f(x)=dydx=dfdx=3x210x+3, and the second derivative of f is the derivative of f(x):
y=f(x)=d2ydx2=d2fdx2=6x10.

In a similar fashion, we can define the third derivative as the derivative of the second derivative. It is denoted by
y=f(x)=d3ydx3=d3fdx3;
the fourth derivative is the derivative of the third derivative, and is denoted by
y(4)=f(4)(x)=d4ydx4=d4fdx4, and so on. In general, the n-th derivative of y=f(x) is indicated by one of the following symbols:
y(n)=f(n)(x)=dnydxn=dnfdxn.

  • If f(n)(x0) exists, then it is said that f is n-times differentiable at x0.
Example 1

If y=sinx, find y(4).

Solution

y=sinxy=cosxy=ddxcosx=sinxy=ddx(sinx)=ddxsinx=cosxy(4)=ddx(cosx)=ddxcosx=(sinx)=sinx.

Therefore, y(4)=y=sinx.

Example 2

For f(x)=x5+3x3+2x21, find f(x),f(x),f(x), and f(4)(x).

Solution

f(x)=5x4+9x2+4xf(x)=20x3+18x+4f(x)=60x2+18f(4)(x)=120x.

Example 3

Determine a,b, and c such that f(x) exists everywhere if
f(x)={x3when x1ax2+bx+cwhen x>1.

Solution

Because the second derivatives of y=x3 and y=ax2+bx+c exist everywhere, no matter what a,b, and c are f(x) exists everywhere, except possibly at x=1 where the formula of f changes. So if we want to make f twice differentiable everywhere, we have to choose a,b, c such that f(1) exists.

We have three unknowns: a,b,c and hence we need three equations. For f to have a second derivative at x=1, we need

(1) f to be continuous at x=1,
(2) f to have a derivative at x=1 or f(1)=f+(1), and
(3) f+(1)=f(1).

Now

(1) The continuity of f at x=1 implies (i)f(1)=13=a12+b1+c. (2) f has a derivative at x=1. Thus
f(1)=f+(1)3x2|x=1=2ax+b|x=1(ii)3=2a+b.
(3) f has a second derivative at x=1. Thus
f(1)=f+(1)6x|x=1=2a|x=1(iii)6=2a

From (i), (ii), and (iii), we conclude
a=3,b=3,andc=1.

  • If a function is differentiable, its derivative is not necessarily differentiable. In other words, from the existence of f(x0), we cannot infer the existence of f(x0). For instance, see the following example.
Example 4

Let
f(x)={x2sin1xx00x=0.
Does f(0) exist? Is f(x) continuous at x=0?

Solution

To find f(0), we need to apply the definition of a derivative directly:
f(0)=limΔx0f(0+Δx)f(0)0Δx=limΔx0(Δx)2sin1ΔxΔx=limΔx0(Δxsin1Δx)=0.
[Recall that limh0hsin1h=0. See the Section on Theorems for Calculating Limits  for more information.]

When x0, we can find f(x) by using differentiation rules:
f(x)=x2usin1xv
(i)f(x)=2xusin1xv+x2uddxsin1xv
To find ddxsin1x let w=1x
ddxsin1x=ddxsinw=ddw(sinw)×dwdx=(cosw)(1x2)=(cos1x)(1x2)
[ddx1x=ddxx1=x2=1x2]

Now we can simply plug the formula for ddxsin1x in (i)
f(x)=2xsin1x+x2(1x2)(cos1x)=2xsin1xcos1x(x0)
Therefore,
f(x)={2xsin1xcos1xif x00if x=0.
Because cos(1/x) moves up and down so quickly as x0, it does not approach a number, and limx0cos(1/x) does not exists. Thus
limx0f(x)=limx0(2xsin1xcos1x)=2limx0xsin1xlimx0cos1x=2(0)DNE
does not exists, and consequently f is not continuous at x=0.

  • In the above example, f is differentiable (= f(x) exists) everywhere. But because f(x) is not continuous at x=0, f(0) does not exist.