3. Derivative applications#

This chapter is about applying differentiation to find tangents and stationary points. The latter problem is especially important, as minimisation problems are of great interest to scientists.

After completing the chapter you should be able to:

  • find the equation of the tangent at a given point on a curve

  • find and classify stationary points of functions

3.1. Tangent and normal#

Recall that the equation of the line passing through a given point \((x_0,y_0)\) with slope \(m\) is given by:

\[\begin{equation*} \frac{y-y_0}{x-x_0}=m \qquad \text{i.e} \qquad y=m(x-x_0)+y_0. \end{equation*}\]

This result is essentially a mathematical statement of the fact that the slope of a line is constant.

Tangent

The tangent line at a given point \((x_0,y_0)\) on a curve is defined as the line with the same slope as the curve. The equation is therefore given by the following result, in which the notation \([]_{x=x_0}\) means that the enclosed expression is evaluated at \(x=x_0\).

(3.1)#\[\begin{equation} \frac{y-y_0}{x-x_0}=m, \qquad m=\left[\frac{\mathrm{d}y}{\mathrm{d}x}\right]_{x=x_0} \end{equation}\]

Below we use this definition to plot the tangent to the curve \(y=x^2\).

../_images/93ce48ed530f0d245b6e56b7db0d47f3e0d6006accb5551f9dc8d6b83f0d5f76.png

Fig. 3.1 \(y=x^2\) and its tangent at \(x=0.2,\ 1.2\)#

Normal

The gradient of the normal (perpendicular) line to the tangent is \(-1/m\). The equation of the normal line is therefore given by

(3.2)#\[\begin{equation} \quad \frac{y-y_0}{x-x_0}=-\frac{1}{m} \qquad m=\left[\frac{\mathrm{d}y}{\mathrm{d}x}\right]_{x=x_0} \end{equation}\]

Exercise 3.1

Differentiate \(y=x^4-2x^2\) and hence

(i) Calculate the equation of the tangent to this curve at \(x=3\)
(ii) Calculate the equation of the normal to the curve at \(x=3\)

It is also possible to get these results from Wolfram Alpha. For example, you can type:

Warning

Sometimes it might take a little bit of experimenting to see if you can get the results that you want from Wolfram Alpha. For example, the following may give something unexpected!

3.2. Stationary points#

In some applications we need to find points where the rate of change of a function \(y(x)\) is zero. At these so-called “stationary points” the curve representing the function is flat. By way of example, we will consider the function plotted below.

../_images/fcb30652ac01e445ed6bbc626a4d8bf583950142b4671e03e518862e3e02a32b.png

Fig. 3.2 \(y(x)=-x^3+9x^2-24x+20\) on the domain \([0,5]\)#

It is clear from the plot that there is a local minimum and a local maximum. We can verify the location of these points by differentiation:

\[\begin{align*} y^{\prime}(x)&=-3 x^2+18x-24 \\ &= -3(x-2)(x-4), \qquad y^{\prime}(x)=0 \implies x=2,4. \end{align*}\]

It is also possible to solve some problems of this sort with Wolfram Alpha. For example:

Classification by hand

We can classify stationary points without the use of a plot by looking algebraically at the slope of the curve either side of each stationary point. This can be useful if we want to find general results that do not rely on producing a plot for each scenario.

It is convenient to record the results in a table, as demonstrated below for the function plotted in Fig. 3.2. We know that the gradient changes sign only at the points \(x=2,4\), so we can conveniently choose the test points as follows.

Table 3.1 Sign change for \(y=-x^3+9x^2-24x+20\)#

\(x=1\)

\(x=2\)

\(x=3\)

\(x=4\)

\(x=5\)

\(y^{\prime}(x)\)

-

0

+

0

-

From the table, we can infer that \(x=2\) is a local minimum and \(x=4\) is a local maximum.

Exercise 3.2

Can you guess the sign of the second derivative at the points \(x=2,4\) ?

In addition to maxima and minima we have the possibility of another type of stationary point called a point of inflection. This occurs when the slope of a function becomes zero without changing sign. The most basic example of an inflection point is for the function \(y=x^3\), which is stationary at \(x=0\). Plots of the function and its derivative are illustrated below:

../_images/a10ad61d65e46dfedd9e63206faf5132a7fa723dd0ab0b427dbbc8842bff6401.png

Fig. 3.3 [Left] The cubic has an inflection point at \(x=0.\)#

The table below shows how the sign either side of the stationary point.

Table 3.2 Sign change for \(y=x^3\)#

\(x=-1\)

\(x=0\)

\(x=1\)

\(y^{\prime}(x)\)

+

0

+

Exercise 3.3

Show that the following function has a stationary point at \(x=2.\) What does the result \(y^{\prime\prime}(2)\) tell you about this point? Is this point a local maximum/minimum/inflection?

\[\begin{equation*} y(x)=x^4-8x^3+24x^2-32x+23 \end{equation*}\]

Wolfram Alpha also has the answer

3.3. Gompertz#

The Gompertz function can be used in various modelling scenarios, such to model population growth, spread of disease and growth of tumours. It is given by

\[\begin{equation*} y = a e^{-be^{-ct}}, \qquad a,b,c>0. \end{equation*}\]

A plot of the curve is shown below for particular values of \(a,b,c\).

../_images/51e0fed5a88f545c8731a163a43258d5620820127357d250de60b16b074d0a5c.png

Show that \(y^{\prime\prime}=0\) when \(t=\ln(b)/c\). What is the significance of this result?