BACK Mascot image.
← MA0 0 · Math Prepa for University

Lesson 4

Limits, and Differentiation

Limits, the gradient of a curve, differentiation from first principles and by rule, tangents and normals, stationary points and their nature, and the number e.

Taught

Limits

The expression

(x+1)(x2)x2\frac{(x + 1)(x - 2)}{x - 2}

is not defined when x=2x = 2, where it would read 00\tfrac00. For every other value of xx the factor x2x - 2 cancels, and the expression is simply x+1x + 1. Its graph is the line y=x+1y = x + 1 with one point missing: a hole at x=2x = 2.

−2−11234−112345xy(2, 3)
Figure 4.1. The graph of y=(x+1)(x2)x2y = \dfrac{(x + 1)(x - 2)}{x - 2}, which is the line y=x+1y = x + 1 with a hole at (2,3)(2, 3).

The expression is well defined for all values of xx other than 22, so we can legitimately ask what happens to it as xx approaches 22. Since it equals x+1x + 1 at all those values, it approaches 33. We say that its limit as xx approaches 22 is 33, and write

limx2(x+1)(x2)x2=3.\lim_{x \to 2} \frac{(x + 1)(x - 2)}{x - 2} = 3 .

The value at x=2x = 2 itself plays no part. The limit is about the values of the expression near 22, and here there is no value at 22 at all.

Definition 4.1 (Limit).

Let f(x)f(x) be defined for all values of xx near aa, except possibly at aa itself. We say that f(x)f(x) tends to the limit kk as xx tends to aa, and write

limxaf(x)=k,\lim_{x \to a} f(x) = k,

if f(x)f(x) gets and stays as close to kk as we want, provided xx is sufficiently close to aa.

It is not enough for the values to keep getting closer to kk. The numbers 2.1,2.01,2.001,2.1, 2.01, 2.001, \ldots get closer to 22, but each is also closer to 11 than the one before, and we want to say that they approach 22 and not 11. The difference is that they get as close to 22 as we want, however small we set the allowed distance, whereas every one of them stays more than 11 away from 11.

One-Sided Limits

Define f(x)f(x) to be x1x - 1 when xx is negative and x+1x + 1 when xx is positive. Its graph is two half-lines with a jump between them at x=0x = 0.

−2−112−3−2−1123xy
Figure 4.2. The graph of f(x)f(x), equal to x1x - 1 for negative xx and to x+1x + 1 for positive xx.

The limit of f(x)f(x) as x0x \to 0 does not exist. We can make xx as close to 00 as we want, but f(x)f(x) does not get as close as we want to any one value: it is near 1-1 when xx is negative and near 11 when xx is positive. We met the same difficulty with 1x\dfrac1x in the last lesson, where the behaviour depended on whether xx approached zero from above or from below; here both sides settle down, but to different values. We write

limx0+f(x)=1andlimx0f(x)=1,\lim_{x \to 0^+} f(x) = 1 \qquad\text{and}\qquad \lim_{x \to 0^-} f(x) = -1,

the first being the limit as xx tends to 00 from above, or from the right, and the second the limit from below, or from the left. The limit limxaf(x)\displaystyle\lim_{x \to a} f(x) exists only when these two one-sided limits exist and are equal.

Limits at Infinity

We can also take limits as xx tends to infinity. If g(x)=1xg(x) = \dfrac1x, then g(x)g(x) approaches 00 as xx grows, and we write

limxg(x)=0.\lim_{x \to \infty} g(x) = 0 .

As xx tends to minus infinity g(x)g(x) also approaches 00, so limxg(x)=0\displaystyle\lim_{x \to -\infty} g(x) = 0 as well. For a limit at infinity, ”xx is sufficiently close to aa” in the definition of a limit is replaced by ”xx is large enough”, and for minus infinity by ”xx is negative and large enough in size”.

Problem 4.1.

Find each limit, or show that it does not exist.

  1. limx1x2+x2x1\displaystyle\lim_{x \to 1} \frac{x^2 + x - 2}{x - 1};
  2. limx1f(x)\displaystyle\lim_{x \to 1} f(x), where f(x)=x2f(x) = x^2 for x<1x < 1 and f(x)=2xf(x) = 2x for x>1x > 1;
  3. limx2x+1x\displaystyle\lim_{x \to \infty} \frac{2x + 1}{x}.

The Gradient of a Curve

Chords, Tangents and Normals

Definition 4.2 (Chord, Tangent and Normal).

Let AA and BB be two points on a curve.

  1. The line joining AA and BB is a chord of the curve.
  2. The line touching the curve at AA is the tangent to the curve at AA.
  3. The line through AA perpendicular to the tangent at AA is the normal to the curve at AA.
xyABtangentnormalchord
Figure 4.3. A chord ABAB, and the tangent and normal at AA.

A straight line has the same gradient all along it. The gradient of a curve, which measures its slope, changes continually as we move along it. Suppose that as we move along the curve towards AA, the gradient stops changing at AA and stays constant from then on. We would then be moving along a straight line, and that line is the tangent at AA. So the gradient of the curve at AA is the same as the gradient of the tangent at AA.

Definition 4.3 (Gradient of a Curve).

The gradient of a curve at a point is the gradient of the tangent to the curve at that point. It measures the rate of increase of yy with respect to xx at that point.

If BB is another point on the curve, not too far from AA, the gradient of the chord ABAB is an approximate value for the gradient of the tangent at AA, and the closer BB is to AA the better the approximation.

An approximate value can also be found by plotting the curve, drawing the tangent by eye and measuring its gradient. This method has to be used when we know the coordinates of a finite number of points on a curve but not its equation, as with the data from an experiment. When the equation of the curve is known we want an accurate method, so that we can take the analysis of curves and functions further.

Approaching the Tangent

Take the parabola y=x2y = x^2 and the point (1.5,2.25)(1.5, 2.25) on it. The tangent there, drawn on the left of Figure 4.4, seems to rise about 33 units for each unit it moves to the right, so the gradient looks to be about 33. Is it exactly 33, and how would we find out?

11.52123456xythe tangent at (1.5, 2.25)1.41.51.61.722.252.52.75(1.6, 2.56)(1.5, 2.25)close up: the chord to (1.6, 2.56)
Figure 4.4. The tangent to y=x2y = x^2 at (1.5,2.25)(1.5, 2.25), and a close-up in which the dashed chord to (1.6,2.56)(1.6, 2.56) runs almost along the tangent.

To approximate it, take a second point on the parabola close to the first, such as (1.6,2.56)(1.6, 2.56), where 2.56=1.622.56 = 1.6^2 because the point lies on y=x2y = x^2. The line through (1.5,2.25)(1.5, 2.25) and (1.6,2.56)(1.6, 2.56) is found as in the last lesson. Its gradient is

2.562.251.61.5=0.310.1=3.1,\frac{2.56 - 2.25}{1.6 - 1.5} = \frac{0.31}{0.1} = 3.1,

and its equation is y=3.1x2.4y = 3.1x - 2.4. So our approximation to the gradient is 3.13.1, and the close-up in Figure 4.4 shows how near the chord runs to the tangent.

The approximation cannot be made perfect by taking both points to be (1.5,2.25)(1.5, 2.25), since infinitely many lines pass through a single point and that tells us nothing. It can be made better. The chord through (1.5,2.25)(1.5, 2.25) and (1.501,2.253001)(1.501, 2.253001) has gradient

2.2530012.251.5011.5=0.0030010.001=3.001,\frac{2.253001 - 2.25}{1.501 - 1.5} = \frac{0.003001}{0.001} = 3.001,

so the gradients really do seem to be approaching 33. As BB approaches AA, the gradient of the chord ABAB approaches the gradient of the tangent at AA, that is

limBA(gradient of chord AB)=gradient of tangent at A.\lim_{B \to A} \bigl(\text{gradient of chord } AB\bigr) = \text{gradient of tangent at } A .

Example 4.4.

Find the gradient of the curve y=x(2x1)y = x(2x - 1) at the point AA where x=1x = 1.

When x=1x = 1, y=1y = 1, so AA is the point (1,1)(1, 1). We calculate the gradient of a chord ABAB and observe what happens to it as BB approaches AA. Take a succession of points B1,B2,B3,B_1, B_2, B_3, \ldots where x=1.5,1.25,1.125,x = 1.5, 1.25, 1.125, \ldots, each time halving the remaining difference between the xx-coordinates of AA and BB.

BBB1B_1B2B_2B3B_3B4B_4B5B_5
xx1.51.51.251.251.1251.1251.06251.06251.031251.03125
gradient of ABAB443.53.53.253.253.1253.1253.06253.0625

As BB approaches AA the gradient of the chord ABAB approaches 33, and we deduce that the gradient of the curve at AA is 33.

0.511.251.5123xyB₁B₂B₃Agradient 3
Figure 4.5. The chords AB1AB_1, AB2AB_2 and AB3AB_3 on y=x(2x1)y = x(2x - 1), turning towards the tangent at A(1,1)A(1, 1).

The Delta Prefix

This numerical method is unsatisfactory, not least because of the amount of calculation involved, and in the end it only suggests the value 33. So instead of placing BB at particular positions we introduce a variable quantity for the difference between the xx-coordinates of AA and BB.

Definition 4.5 (Delta Prefix).

A variable quantity prefixed by δ\delta means a small increase in that quantity. So δx\delta x is a small increase in xx, and δy\delta y is a small increase in yy.

Remark.

The letter δ\delta is only a prefix. It cannot be treated as a factor: δx\delta x is one quantity, not δ\delta multiplied by xx.

Return to y=x(2x1)y = x(2x - 1) and the point A(1,1)A(1, 1). If δx\delta x is the increase in the xx-coordinate in moving from AA to BB, then the xx-coordinate of BB is 1+δx1 + \delta x. Every point on the curve satisfies y=x(2x1)y = x(2x - 1), so the yy-coordinate of BB is

(1+δx)[2(1+δx)1]=(1+δx)(2δx+1).(1 + \delta x)\bigl[2(1 + \delta x) - 1\bigr] = (1 + \delta x)(2\,\delta x + 1) .

The gradient of ABAB is the increase in yy divided by the increase in xx:

(1+δx)(2δx+1)1δx=3δx+2(δx)2δx=3+2δx.\frac{(1 + \delta x)(2\,\delta x + 1) - 1}{\delta x} = \frac{3\,\delta x + 2(\delta x)^2}{\delta x} = 3 + 2\,\delta x .

As BB approaches AA, the difference between their xx-coordinates approaches zero, that is δx0\delta x \to 0. Therefore

gradient at A=limδx0(3+2δx)=3.\text{gradient at } A = \lim_{\delta x \to 0} \bigl(3 + 2\,\delta x\bigr) = 3 .

Dividing by δx\delta x is allowed because a limit only involves values of δx\delta x near zero, never zero itself.

The same calculation settles the question for the parabola. Writing hh for the small increase in xx from 1.51.5, the gradient of y=x2y = x^2 at (1.5,2.25)(1.5, 2.25) is

limh0(1.5+h)21.52h=limh01.52+3h+h21.52h=limh03h+h2h=limh0(3+h)=3,\lim_{h \to 0} \frac{(1.5 + h)^2 - 1.5^2}{h} = \lim_{h \to 0} \frac{1.5^2 + 3h + h^2 - 1.5^2}{h} = \lim_{h \to 0} \frac{3h + h^2}{h} = \lim_{h \to 0} \bigl(3 + h\bigr) = 3,

so it is exactly 33, as we guessed.

Example 4.6.

Find the gradient of the curve y=1xy = \dfrac1x at the point where x=2x = 2.

Let δx\delta x be the increase in xx in moving from A(2,12)A\left(2, \tfrac12\right) to a nearby point BB on the curve, so that BB is (2+δx,12+δx)\left(2 + \delta x, \dfrac{1}{2 + \delta x}\right). The gradient of the chord ABAB is

1δx(12+δx12)=2(2+δx)2(2+δx)δx=δx2(2+δx)δx=12(2+δx).\frac{1}{\delta x}\left(\frac{1}{2 + \delta x} - \frac12\right) = \frac{2 - (2 + \delta x)}{2(2 + \delta x)\,\delta x} = \frac{-\delta x}{2(2 + \delta x)\,\delta x} = -\frac{1}{2(2 + \delta x)} .

As δx0\delta x \to 0, 2(2+δx)42(2 + \delta x) \to 4, so the gradient at AA is 14-\tfrac14.

Problem 4.2.

Use the method of the last example to find the gradient of each curve at the point indicated.

  1. y=(x+1)(x1)y = (x + 1)(x - 1), where x=2x = 2;
  2. y=2x(x4)y = 2x(x - 4), where x=0x = 0;
  3. y=(x+2)(x1)y = (x + 2)(x - 1), where x=3x = -3.

The Gradient Function

We found that the gradient of y=x(2x1)y = x(2x - 1) is 33 at the point where x=1x = 1. Instead of a fixed point, take AA to be any point (x,y)(x, y) on the curve. Its yy-coordinate can be written x(2x1)x(2x - 1), since both coordinates satisfy the equation of the curve. Let BB be another point on the curve such that the increase in the xx-coordinate in moving from AA to BB is δx\delta x. Then BB is the point [x+δx,(x+δx)(2x+2δx1)]\bigl[x + \delta x, (x + \delta x)(2x + 2\,\delta x - 1)\bigr], and

gradient of chord AB=(x+δx)(2x+2δx1)x(2x1)δx=2x2+4xδx+2(δx)2xδx2x2+xδx=4xδxδx+2(δx)2δx=4x1+2δx.\begin{aligned} \text{gradient of chord } AB &= \frac{(x + \delta x)(2x + 2\,\delta x - 1) - x(2x - 1)}{\delta x} \\ &= \frac{2x^2 + 4x\,\delta x + 2(\delta x)^2 - x - \delta x - 2x^2 + x}{\delta x} \\ &= \frac{4x\,\delta x - \delta x + 2(\delta x)^2}{\delta x} \\ &= 4x - 1 + 2\,\delta x . \end{aligned}

Then the gradient at any point AA on the curve is

limδx0(4x1+2δx)=4x1.\lim_{\delta x \to 0} \bigl(4x - 1 + 2\,\delta x\bigr) = 4x - 1 .

So the function 4x14x - 1 gives the gradient at every point on the curve y=x(2x1)y = x(2x - 1). The gradient at a particular point, that is the rate of increase of yy with respect to xx there, is found by substituting the xx-coordinate of the point into 4x14x - 1. At x=1x = 1 this gives 33, as before.

The function 4x14x - 1 is called the gradient function of y=x(2x1)y = x(2x - 1), and the process of deriving it is called differentiation with respect to xx. Since 4x14x - 1 was derived from x(2x1)x(2x - 1), it is also called the derivative, or derived function, of x(2x1)x(2x - 1). Using ddx\dfrac{d}{dx} as a symbol for “the derivative with respect to xx of”, we write

ddx[x(2x1)]=4x1,\frac{d}{dx}\bigl[x(2x - 1)\bigr] = 4x - 1,

or, when y=x(2x1)y = x(2x - 1),

dydx=4x1.\frac{dy}{dx} = 4x - 1 .

Here dydx\dfrac{dy}{dx} means the derivative of yy with respect to xx, and is sometimes called the differential coefficient of yy. As an alternative notation we can use the symbol DD for “the derivative of”, so that D[x(2x1)]=4x1D\bigl[x(2x - 1)\bigr] = 4x - 1, and DD is referred to as the differential operator.

Since 4x14x - 1 represents the rate of increase of yy with respect to xx, dydx\dfrac{dy}{dx} also represents the rate of increase of yy with respect to xx. Similarly dvdt\dfrac{dv}{dt} means the derivative of vv with respect to tt, or the rate of increase of vv with respect to tt.

Example 4.7.

Differentiate y=x3+3y = x^3 + 3 with respect to xx.

Let AA be the point (x,x3+3)(x, x^3 + 3) and BB the point [x+δx,(x+δx)3+3]\bigl[x + \delta x, (x + \delta x)^3 + 3\bigr] on y=x3+3y = x^3 + 3. Then

gradient of AB=(x+δx)3+3(x3+3)δx=3x2δx+3x(δx)2+(δx)3δx,\text{gradient of } AB = \frac{(x + \delta x)^3 + 3 - (x^3 + 3)}{\delta x} = \frac{3x^2\,\delta x + 3x(\delta x)^2 + (\delta x)^3}{\delta x},

which simplifies to 3x2+3xδx+(δx)23x^2 + 3x\,\delta x + (\delta x)^2. So the gradient at AA is limδx0[3x2+3xδx+(δx)2]=3x2\displaystyle\lim_{\delta x \to 0} \bigl[3x^2 + 3x\,\delta x + (\delta x)^2\bigr] = 3x^2, that is

dydx=3x2.\frac{dy}{dx} = 3x^2 .

Problem 4.3.

Use the method of the last example to differentiate each of the following with respect to xx.

  1. y=x2y = x^2;
  2. y=x4y = x^4;
  3. y=5x2y = 5x^2;
  4. y=1xy = \dfrac1x.

Differentiating from First Principles

Consider any curve y=f(x)y = f(x). Let A[x,f(x)]A[x, f(x)] be any point on it, and let δx\delta x be the increase in the xx-coordinate in moving from AA to another point BB on the same curve, so that BB is the point [x+δx,f(x+δx)][x + \delta x, f(x + \delta x)]. Let δy\delta y be the corresponding increase in the yy-coordinate, that is

δy=f(x+δx)f(x).\delta y = f(x + \delta x) - f(x) .
xyA[x, f(x)]B[x + δx, f(x + δx)]δxδy
Figure 4.6. The increases δx\delta x and δy\delta y in moving from AA to BB along y=f(x)y = f(x).

The gradient of the chord ABAB is

δyδx=f(x+δx)f(x)δx,\frac{\delta y}{\delta x} = \frac{f(x + \delta x) - f(x)}{\delta x},

so the gradient at AA is

dydx=limδx0δyδx=limδx0f(x+δx)f(x)δx.\frac{dy}{dx} = \lim_{\delta x \to 0} \frac{\delta y}{\delta x} = \lim_{\delta x \to 0} \frac{f(x + \delta x) - f(x)}{\delta x} .

Definition 4.8 (Derivative).

Let ff be a function and cc a number. The derivative of ff at cc is the gradient of the graph of ff at the point where x=cx = c, defined by

limh0f(c+h)f(c)h.\lim_{h \to 0} \frac{f(c + h) - f(c)}{h} .

A function for which this limit exists is differentiable at cc. The derivative of f(x)f(x) is written f(x)f'(x) or ddxf(x)\dfrac{d}{dx} f(x), and when yy is a function of xx that we would graph, it is written dydx\dfrac{dy}{dx}.

The limit exists when the graph looks as though it has a slope at the point. If the graph had a spike there, it would not have a well-defined slope and the limit would not exist.

Using this definition to differentiate a function is called differentiating from first principles, and it can be used for any function, including functions we have not yet met. Fortunately it is not always necessary to go back to first principles, because whole families of functions can be differentiated by rules.

Remark.

We cannot tell how fast something is going from a single photograph of it. But we can photograph it at two nearby moments and divide the distance it moved by the time between the photographs, which gives a good approximation to its speed, and the closer the two moments, the better the approximation. This is how instruments that measure speed work, and it is the gradient of a chord standing in for the gradient of a tangent.

Rules of Differentiation

Differentiating a Constant

The equation y=cy = c, where cc is a constant, represents a straight line parallel to the xx-axis, so it has zero gradient:

ddx(c)=0.\frac{d}{dx}(c) = 0 .

Differentiating axax

The equation y=axy = ax, where aa is a constant, represents a straight line with gradient aa, so

ddx(ax)=a.\frac{d}{dx}(ax) = a .

Differentiating xnx^n

The table collects results from the examples and problems above.

f(x)f(x)xxx2x^2x3x^3x4x^4x1x^{-1}
ddxf(x)\dfrac{d}{dx} f(x)112x2x3x23x^24x34x^3x2-x^{-2}

From this table it appears that to differentiate a power of xx we multiply by that power and then subtract one from the power, that is

ddx(xn)=nxn1.(1)\frac{d}{dx}\left(x^n\right) = n x^{n-1} . \tag{1}

This is the power rule.

The Power Rule for Whole Numbers

If we replace 1.51.5 by xx and do the same calculation as for the parabola, the algebra gives

(x+h)2x2=x2+2xh+h2x2=2xh+h2,(x + h)^2 - x^2 = x^2 + 2xh + h^2 - x^2 = 2xh + h^2,

and after dividing by hh the remaining hh vanishes in the limit, so the parabola y=x2y = x^2 has gradient 2x2x at each value of xx. Expanding further powers shows a pattern:

(x+h)2x2=2xh+h2,(x+h)3x3=3x2h+3xh2+h3,(x+h)4x4=4x3h+6x2h2+4xh3+h4.\begin{aligned} (x + h)^2 - x^2 &= 2x\,h + h^2, \\ (x + h)^3 - x^3 &= 3x^2 h + 3x h^2 + h^3, \\ (x + h)^4 - x^4 &= 4x^3 h + 6x^2 h^2 + 4x h^3 + h^4 . \end{aligned}

In each line the term with hh to the first power is nxn1hn x^{n-1} h, and every other term contains h2h^2 or a higher power of hh. When nn is a positive whole number we show that this always happens by using the binomial expansion. The coefficients of (x+h)n(x + h)^n are those of (1+x)n(1 + x)^n, the numbers in row nn of Pascal’s triangle, so

(x+h)n=xn+(second number in row n)xn1h+(terms containing h2,h3,).(x + h)^n = x^n + (\text{second number in row } n)\, x^{n-1} h + (\text{terms containing } h^2, h^3, \ldots) .

The second number in a row is the sum of the two numbers above it, which are 11 and the second number of the row before. So it goes up by 11 from each row to the next, and as it is 11 in row one, it is nn in row nn. Therefore

(x+h)nxnh=nxn1+(terms containing h,h2,),\frac{(x + h)^n - x^n}{h} = n x^{n-1} + (\text{terms containing } h, h^2, \ldots),

and as h0h \to 0 this tends to nxn1n x^{n-1}.

The power rule, deduced here for whole numbers, is valid for all powers of xx, including fractional and negative powers, although this cannot be shown at this stage, and for the time being we take it on trust. Under the power conventions in Lesson 1, if nn is not a whole number then we use xnx^n only where it is defined, and for the fractional powers considered here this means x>0x>0. The rule needs the power to be a fixed number: it does not find the gradient of xxx^x, where the power changes with xx.

Example 4.9.

Accepting that the power rule can be used for any power of xx,

ddx(x9)=9x8,ddx(x)=ddx(x1/2)=12x1/2=12x(x>0),ddx(1x3)=ddx(x3)=3x4=3x4.\begin{aligned} \frac{d}{dx}\left(x^9\right) &= 9x^8, \\ \frac{d}{dx}\left(\sqrt{x}\right) &= \frac{d}{dx}\left(x^{1/2}\right) = \tfrac12 x^{-1/2} = \frac{1}{2\sqrt{x}} \quad (x>0), \\ \frac{d}{dx}\left(\frac{1}{x^3}\right) &= \frac{d}{dx}\left(x^{-3}\right) = -3x^{-4} = -\frac{3}{x^4} . \end{aligned}

Problem 4.4.

Differentiate each of the following with respect to xx by rule.

  1. x7x^7;
  2. 1x2\dfrac{1}{x^2};
  3. x3\sqrt{x^3};
  4. 1x3\dfrac{1}{\sqrt[3]{x}}.

Differentiating axnax^n

From the problems, ddx(5x2)=10x\dfrac{d}{dx}\left(5x^2\right) = 10x, which is 55 times the derivative of x2x^2. A constant factor always comes straight through, since

a(x+δx)naxnδx=a×(x+δx)nxnδx,\frac{a(x + \delta x)^n - a x^n}{\delta x} = a \times \frac{(x + \delta x)^n - x^n}{\delta x},

and so

ddx(axn)=anxn1,(2)\frac{d}{dx}\left(a x^n\right) = a n x^{n-1}, \tag{2}

where aa is a constant.

Sums and Differences

From first principles,

(x+δx)2+3(x+δx)(x2+3x)δx=2x+3+δx,\frac{(x + \delta x)^2 + 3(x + \delta x) - \left(x^2 + 3x\right)}{\delta x} = 2x + 3 + \delta x,

so ddx(x2+3x)=2x+3\dfrac{d}{dx}\left(x^2 + 3x\right) = 2x + 3, and in the same way ddx(x22x+1)=2x2\dfrac{d}{dx}\left(x^2 - 2x + 1\right) = 2x - 2. Comparing these with the separate derivatives,

ddx(x2+3x)=2x+3=ddx(x2)+ddx(3x),ddx(x22x+1)=2x2=ddx(x2)ddx(2x)+ddx(1).\begin{aligned} \frac{d}{dx}\left(x^2 + 3x\right) &= 2x + 3 = \frac{d}{dx}\left(x^2\right) + \frac{d}{dx}(3x), \\ \frac{d}{dx}\left(x^2 - 2x + 1\right) &= 2x - 2 = \frac{d}{dx}\left(x^2\right) - \frac{d}{dx}(2x) + \frac{d}{dx}(1) . \end{aligned}

So the operation “differentiate” is distributive across the addition and subtraction of functions, and gradients add:

ddx[f(x)±g(x)]=ddxf(x)±ddxg(x).(3)\frac{d}{dx}\bigl[f(x) \pm g(x)\bigr] = \frac{d}{dx} f(x) \pm \frac{d}{dx} g(x) . \tag{3}

This holds in general, because the gradient of a chord of y=f(x)+g(x)y = f(x) + g(x) is the gradient of the corresponding chord of y=f(x)y = f(x) plus that of y=g(x)y = g(x).

Example 4.10.

Using rules (2)(2) and (3)(3),

ddx(3x27x)=3(2x)7=6x7,ddx(x+1x)=ddx(x+x1)=1x2=11x2,ddx(x32x2)=3x24x.\begin{aligned} \frac{d}{dx}\left(3x^2 - 7x\right) &= 3(2x) - 7 = 6x - 7, \\ \frac{d}{dx}\left(x + \frac1x\right) &= \frac{d}{dx}\left(x + x^{-1}\right) = 1 - x^{-2} = 1 - \frac{1}{x^2}, \\ \frac{d}{dx}\left(x^3 - 2x^2\right) &= 3x^2 - 4x . \end{aligned}

Differentiation is not distributive across multiplication and division. For example

ddx[x(x3)]=ddx(x23x)=2x3,butddx(x)×ddx(x3)=1×1=1.\frac{d}{dx}\bigl[x(x - 3)\bigr] = \frac{d}{dx}\left(x^2 - 3x\right) = 2x - 3, \qquad\text{but}\qquad \frac{d}{dx}(x) \times \frac{d}{dx}(x - 3) = 1 \times 1 = 1 .

Gradients do not multiply in the way they add. So in order to differentiate at this stage, any product must be expanded and any quotient must be divided out, to give terms which are added or subtracted, and no rule should be assumed that has not been established.

Example 4.11.

Differentiate f(x)=4x2+x12xf(x) = \dfrac{4x^2 + x - 1}{2x}.

f(x)=4x22x+x2x12x=2x+1212x1,f(x) = \frac{4x^2}{2x} + \frac{x}{2x} - \frac{1}{2x} = 2x + \frac12 - \frac12 x^{-1},

therefore

f(x)=2+012(x2)=2+12x2.f'(x) = 2 + 0 - \tfrac12\left(-x^{-2}\right) = 2 + \frac{1}{2x^2} .

Example 4.12.

Find the gradient of the curve y=(x3)(x2+2)y = (x - 3)\left(x^2 + 2\right) at the point on the curve where x=1x = 1.

Expanding, y=x33x2+2x6y = x^3 - 3x^2 + 2x - 6, therefore

dydx=3x26x+2.\frac{dy}{dx} = 3x^2 - 6x + 2 .

When x=1x = 1, dydx=36+2=1\dfrac{dy}{dx} = 3 - 6 + 2 = -1, so the gradient of y=(x3)(x2+2)y = (x - 3)\left(x^2 + 2\right) is 1-1 at the point where x=1x = 1.

Example 4.13.

Find the coordinates of the point on the curve y=2x2y = \dfrac{2}{x^2} at which its gradient is 12\tfrac12.

Since y=2x2y = 2x^{-2}, dydx=4x3\dfrac{dy}{dx} = -4x^{-3}. The gradient is 12\tfrac12 when

4x3=12,that isx3=8,x=2.-\frac{4}{x^3} = \frac12, \qquad\text{that is}\qquad x^3 = -8, \qquad x = -2 .

When x=2x = -2, y=24=12y = \dfrac{2}{4} = \tfrac12. Therefore the gradient of y=2x2y = \dfrac{2}{x^2} is 12\tfrac12 at the point (2,12)\left(-2, \tfrac12\right).

Problem 4.5.

  1. Differentiate (x3)(2x+5)(x - 3)(2x + 5) and x(x1)\sqrt{x}\,(x - 1) with respect to xx.
  2. Find the gradient of the curve y=(2x3)(x+1)y = (2x - 3)(x + 1) at the point where x=0x = 0.
  3. Find the coordinates of the point on the curve y=xy = \sqrt{x} at which the gradient is 22.

Tangents and Normals

The tangent to a curve at a point passes through that point and has the gradient of the curve there, so its equation comes from the line with a given gradient through a given point. When the tangent has non-zero gradient mm, the normal passes through the same point with the perpendicular gradient 1m-\dfrac1m. A horizontal tangent has a vertical normal.

Take y=x2y = x^2 at (1.5,2.25)(1.5, 2.25) once more. The tangent is the line of gradient 33 through (1.5,2.25)(1.5, 2.25), which is

y2.25=3(x1.5).y - 2.25 = 3(x - 1.5) .

Rearranging, 4y12x+9=04y - 12x + 9 = 0 is the equation of the tangent.

The normal to y=x2y = x^2 at (1.5,2.25)(1.5, 2.25) is the line through that point perpendicular to the tangent, so its gradient is 13-\tfrac13 and its equation is

y2.25=13(x1.5),that isy+13x114=0.y - 2.25 = -\tfrac13(x - 1.5), \qquad\text{that is}\qquad y + \tfrac13 x - \tfrac{11}{4} = 0 .

Multiplying through by 1212 to clear the fractions gives 12y+4x33=012y + 4x - 33 = 0.

−112312345xytangentnormal
Figure 4.7. The parabola y=x2y = x^2 with its tangent 4y12x+9=04y - 12x + 9 = 0 and its normal 12y+4x33=012y + 4x - 33 = 0 at (1.5,2.25)(1.5, 2.25).

Example 4.14.

Find the equation of the tangent to the curve y=x23x+2y = x^2 - 3x + 2 at the point where it cuts the yy-axis.

The curve cuts the yy-axis where x=0x = 0, at (0,2)(0, 2). The gradient of the tangent there is the value of dydx\dfrac{dy}{dx} when x=0x = 0. As y=x23x+2y = x^2 - 3x + 2, dydx=2x3\dfrac{dy}{dx} = 2x - 3, so when x=0x = 0 the gradient of the curve is 3-3.

Therefore the tangent has gradient 3-3 and passes through (0,2)(0, 2). Its equation is y=3x+2y = -3x + 2, that is

3x+y2=0.3x + y - 2 = 0 .

Example 4.15.

Find the equation of the normal to the curve y=1xy = \dfrac1x at the point where x=2x = 2, and the coordinates of the point where this normal cuts the curve again.

As y=x1y = x^{-1}, dydx=1x2\dfrac{dy}{dx} = -\dfrac{1}{x^2}. So when x=2x = 2, y=12y = \tfrac12 and dydx=14\dfrac{dy}{dx} = -\tfrac14. Therefore the tangent at (2,12)\left(2, \tfrac12\right) has gradient 14-\tfrac14, and the normal, the line perpendicular to the tangent, has gradient 44. The equation of the normal is

y12=4(x2),that is8x2y15=0.y - \tfrac12 = 4(x - 2), \qquad\text{that is}\qquad 8x - 2y - 15 = 0 .

The points of intersection of the normal and the curve are given by solving 8x2y15=08x - 2y - 15 = 0 and y=1xy = \dfrac1x simultaneously. Substituting for yy,

8x2x15=0,that is8x215x2=0.8x - \frac2x - 15 = 0, \qquad\text{that is}\qquad 8x^2 - 15x - 2 = 0 .

We already know that the normal and the curve meet where x=2x = 2, so x2x - 2 is a factor, and

(x2)(8x+1)=0.(x - 2)(8x + 1) = 0 .

Therefore they meet again where x=18x = -\tfrac18 and y=8y = -8, at the point (18,8)\left(-\tfrac18, -8\right).

−1123−6−4−22xy(2, ½)(−⅛, −8)
Figure 4.8. The normal to y=1xy = \dfrac1x at (2,12)\left(2, \tfrac12\right) meets the other branch of the curve at (18,8)\left(-\tfrac18, -8\right).

Problem 4.6.

  1. Find the equations of the tangent and the normal to the curve y=x25x+2y = x^2 - 5x + 2 at the point where x=3x = 3.
  2. Find the equation of the tangent to y=2x23xy = 2x^2 - 3x which has a gradient of 11.
  3. Find the equation of the tangent to y=(x5)(2x+1)y = (x - 5)(2x + 1) which is parallel to the xx-axis.

Stationary Values and Turning Points

Stationary Values

Definition 4.16 (Stationary Value).

A stationary value of a function f(x)f(x) is a value of f(x)f(x) at which its rate of change with respect to xx is zero, that is, where

ddxf(x)=0.\frac{d}{dx} f(x) = 0 .

A point on the curve y=f(x)y = f(x) at which dydx=0\dfrac{dy}{dx} = 0 is a stationary point.

At a stationary value of f(x)f(x) the gradient of the curve y=f(x)y = f(x) is zero, so the tangent to the curve is parallel to the xx-axis. The stationary values of f(x)f(x) are the yy-coordinates of the points on y=f(x)y = f(x) at which the tangent is parallel to the xx-axis.

The curve y=x32x2y = x^3 - 2x^2 in Figure 4.9 goes flat and turns round in two places, and the derivative tells us exactly where. We found that ddx(x32x2)=3x24x\dfrac{d}{dx}\left(x^3 - 2x^2\right) = 3x^2 - 4x, and the graph is flat where

3x24x=0,that isx(3x4)=0.3x^2 - 4x = 0, \qquad\text{that is}\qquad x(3x - 4) = 0 .

The solutions are x=0x = 0 and x=43x = \tfrac43, so it is exactly at these two values of xx that the graph is flat and turns round, at (0,0)(0, 0) and (43,3227)\left(\tfrac43, -\tfrac{32}{27}\right). A zero derivative does not always mean that the graph turns round, as we shall see with y=x3y = x^3.

−112−2−112xy(4/3, −32/27)
Figure 4.9. The curve y=x32x2y = x^3 - 2x^2, with horizontal tangents at (0,0)(0, 0) and (43,3227)\left(\tfrac43, -\tfrac{32}{27}\right).

Example 4.17.

Find the stationary values of x33x2+2x^3 - 3x^2 + 2.

If f(x)=x33x2+2f(x) = x^3 - 3x^2 + 2, then ddxf(x)=3x26x\dfrac{d}{dx} f(x) = 3x^2 - 6x. At stationary values of f(x)f(x) this is zero, so

3x26x=0,3x(x2)=0.3x^2 - 6x = 0, \qquad 3x(x - 2) = 0 .

So the stationary values of x33x2+2x^3 - 3x^2 + 2 occur when x=0x = 0 and when x=2x = 2. They are

f(0)=2andf(2)=233(22)+2=2.f(0) = 2 \qquad\text{and}\qquad f(2) = 2^3 - 3\left(2^2\right) + 2 = -2 .

For the curve y=x33x2+2y = x^3 - 3x^2 + 2, the gradient is zero at the points (0,2)(0, 2) and (2,2)(2, -2).

The derivative also tells us which way a function is going. Where dydx\dfrac{dy}{dx} is positive the curve is rising, and we say that yy is increasing; where dydx\dfrac{dy}{dx} is negative the curve is falling, and yy is decreasing. For y=x32x2y = x^3 - 2x^2 the derivative x(3x4)x(3x - 4) is positive for x<0x < 0, negative for 0<x<430 < x < \tfrac43 and positive again for x>43x > \tfrac43, which is what Figure 4.9 shows.

Problem 4.7.

  1. Find the values of xx at which x312x+1x^3 - 12x + 1 has stationary values.
  2. Find the stationary value of 3x24x+23x^2 - 4x + 2.
  3. Find the coordinates of the point on y=(x2)(x+3)y = (x - 2)(x + 3) at which the gradient is zero.

Turning Points

The gradient of a curve can be zero at several points. Close to one of these points, the shape of the curve belongs to one of the three kinds shown at AA, BB and CC in Figure 4.10.

xyABC
Figure 4.10. A maximum turning point AA, a minimum turning point BB, and a point CC where the gradient is zero but the curve does not turn.

Moving along the curve in the positive direction of the xx-axis:

  1. near AA the gradient changes from positive, through zero at AA, to negative;
  2. near BB the gradient changes from negative, through zero at BB, to positive;
  3. at CC the gradient is zero, but it does not change sign as we move through CC, so the curve does not turn at CC. What does change at CC is the sense in which the curve is turning, from clockwise to anticlockwise.

Definition 4.18 (Turning Points and Points of Inflexion).

  1. A point on a curve at which the gradient changes from positive, through zero, to negative is a maximum turning point. Its yy-coordinate is a maximum value of yy, or of f(x)f(x) where y=f(x)y = f(x).
  2. A point at which the gradient changes from negative, through zero, to positive is a minimum turning point. Its yy-coordinate is a minimum value of yy, or of f(x)f(x).
  3. A point on a curve at which the sense of turning changes is a point of inflexion.

The gradient at a maximum or minimum turning point must be zero. The terms maximum value and minimum value do not mean the same as greatest value and least value: maxima and minima describe the behaviour of a function only in the immediate neighbourhood of its stationary values. In Figure 4.10, to the left of AA, the curve falls below the minimum value at BB.

Apart from CC there are two other points of inflexion in Figure 4.10, one between AA and BB and another between BB and CC, so the gradient at a point of inflexion is not necessarily zero. A stationary point can therefore be a maximum, a minimum, or neither. The simplest example of the last kind is y=x3y = x^3 at the origin: its gradient 3x23x^2 is zero there, but the curve rises on both sides.

−11−2−112xy
Figure 4.11. The curve y=x3y = x^3, stationary at the origin without turning.

The Nature of a Stationary Value

We know how to find the points on y=f(x)y = f(x) at which f(x)f(x) has stationary values, but to tell them apart we need to look further, and there are several ways of doing this. In Figure 4.10, let A1A_1 and A2A_2 be points on the curve close to AA and to its left and right respectively, and let B1B_1, B2B_2 and C1C_1, C2C_2 be placed in the same way about BB and CC.

Values of yy

At AA, a maximum, yy at A1A_1 and yy at A2A_2 are both less than yy at AA. At BB, a minimum, yy at B1B_1 and yy at B2B_2 are both greater than yy at BB. At CC, a point of inflexion, yy at C1C_1 is less than yy at CC and yy at C2C_2 is greater.

MaximumMinimumInflexion
Values of yy either side of the stationary valueboth smallerboth largerone smaller and one larger

The Sign of the Gradient

At A1A_1 the gradient dydx\dfrac{dy}{dx} is positive, at AA it is zero and at A2A_2 it is negative. At B1B_1 it is negative, at BB zero and at B2B_2 positive. At C1C_1 it is positive, at CC zero and at C2C_2 positive again.

MaximumMinimumInflexion
Sign of dydx\dfrac{dy}{dx} moving through the stationary value+ 0 + \ 0 \ - 0 +- \ 0 \ ++ 0 ++ \ 0 \ + or  0 - \ 0 \ -

The Second Derivative

When passing through AA, dydx\dfrac{dy}{dx} changes from positive to negative, so dydx\dfrac{dy}{dx} decreases as xx increases, that is, the rate of increase of dydx\dfrac{dy}{dx} with respect to xx is negative. The rate of increase of dydx\dfrac{dy}{dx} with respect to xx would be written ddx(dydx)\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right), and this clumsy notation is condensed to

d2ydx2,\frac{d^2 y}{dx^2},

called the second derivative of yy with respect to xx. Similarly, when passing through BB, dydx\dfrac{dy}{dx} changes from negative to positive, so dydx\dfrac{dy}{dx} increases as xx increases and d2ydx2\dfrac{d^2 y}{dx^2} is positive.

MaximumMinimum
Sign of d2ydx2\dfrac{d^2 y}{dx^2}negative (or zero)positive (or zero)

Points of inflexion are not so easily dealt with by this method. In the smooth examples considered here, d2ydx2=0\dfrac{d^2 y}{dx^2} = 0 at such points, but d2ydx2\dfrac{d^2 y}{dx^2} can also be zero at maxima and minima.

The three tables summarise three alternative methods for determining the nature of a stationary value. The third method fails if d2ydx2\dfrac{d^2 y}{dx^2} is found to be zero at the stationary value, and in that case one of the first two has to be used.

Example 4.19.

Find the points on y=x4+4x36y = x^4 + 4x^3 - 6 at which the gradient is zero, and determine the nature of these points.

y=x4+4x36,dydx=4x3+12x2,d2ydx2=12x2+24x.y = x^4 + 4x^3 - 6, \qquad \frac{dy}{dx} = 4x^3 + 12x^2, \qquad \frac{d^2 y}{dx^2} = 12x^2 + 24x .

The gradient is zero when 4x3+12x2=04x^3 + 12x^2 = 0, that is 4x2(x+3)=04x^2(x + 3) = 0, so when x=3x = -3 and when x=0x = 0.

When x=3x = -3, d2ydx2=12(9)+24(3)=36\dfrac{d^2 y}{dx^2} = 12(9) + 24(-3) = 36, which is positive, so yy has a minimum value here. It is y=(3)4+4(3)36=33y = (-3)^4 + 4(-3)^3 - 6 = -33, so (3,33)(-3, -33) is a minimum turning point.

When x=0x = 0, y=6y = -6 and d2ydx2=0\dfrac{d^2 y}{dx^2} = 0, which is inconclusive. So we look at the sign of dydx=4x2(x+3)\dfrac{dy}{dx} = 4x^2(x + 3) on either side of the point where x=0x = 0.

xx12-\tfrac120012\tfrac12
dydx\dfrac{dy}{dx}++00++

The gradient does not change sign, so (0,6)(0, -6) is a point of inflexion.

Example 4.20.

Sketch the curve y=2x3+x24x+1y = 2x^3 + x^2 - 4x + 1.

Finding the maximum and minimum turning points gives a general idea of the shape and position of the curve.

y=2x3+x24x+1,dydx=6x2+2x4,d2ydx2=12x+2.y = 2x^3 + x^2 - 4x + 1, \qquad \frac{dy}{dx} = 6x^2 + 2x - 4, \qquad \frac{d^2 y}{dx^2} = 12x + 2 .

At turning points 6x2+2x4=06x^2 + 2x - 4 = 0, that is 2(3x2)(x+1)=02(3x - 2)(x + 1) = 0, so x=23x = \tfrac23 or x=1x = -1.

  1. When x=23x = \tfrac23, d2ydx2=12(23)+2>0\dfrac{d^2 y}{dx^2} = 12\left(\tfrac23\right) + 2 > 0 and y=2(23)3+(23)24(23)+1=1727y = 2\left(\tfrac23\right)^3 + \left(\tfrac23\right)^2 - 4\left(\tfrac23\right) + 1 = -\tfrac{17}{27}, so (23,1727)\left(\tfrac23, -\tfrac{17}{27}\right) is a minimum turning point.
  2. When x=1x = -1, d2ydx2=12(1)+2<0\dfrac{d^2 y}{dx^2} = 12(-1) + 2 < 0 and y=2(1)3+(1)24(1)+1=4y = 2(-1)^3 + (-1)^2 - 4(-1) + 1 = 4, so (1,4)(-1, 4) is a maximum turning point.
  3. As y=2x3+x24x+1y = 2x^3 + x^2 - 4x + 1, the curve cuts the yy-axis at (0,1)(0, 1).

From these three results we can sketch the curve.

−2−11−2246xy(−1, 4)(⅔, −17/27)(0, 1)
Figure 4.12. A sketch of y=2x3+x24x+1y = 2x^3 + x^2 - 4x + 1 from its turning points and its intercept on the yy-axis.

In some cases the intercepts on the xx-axis can be found as well, although the equation which gives them is not always easy to solve. Here it is 2x3+x24x+1=02x^3 + x^2 - 4x + 1 = 0.

Example 4.21.

A farmer has an adjustable electric fence that is 100100 m long. It is used to enclose a rectangular grazing area on three sides, the fourth side being a fixed hedge. Find the maximum area that can be enclosed.

The length of the enclosure can be varied, up to 100100 m, and the width and area then depend on the length chosen. Let the length SRSR be xx m. Then as PS+SR+RQ=100PS + SR + RQ = 100,

PS=RQ=12(100x),PS = RQ = \tfrac12(100 - x),

and the area AA of the enclosure, in square metres, is

A=x[12(100x)]=50x12x2.A = x\left[\tfrac12(100 - x)\right] = 50x - \tfrac12 x^2 .

Now AA is a quadratic function of xx with a negative coefficient of x2x^2, so from what we know of quadratic functions it is greatest at x=50x = 50, halfway between its zeros at x=0x = 0 and x=100x = 100. So the maximum area that can be enclosed is 50×25=125050 \times 25 = 1250 square metres.

The maximum value of 50x12x250x - \tfrac12 x^2 can also be found by differentiation. We have

dAdx=50x,\frac{dA}{dx} = 50 - x,

and AA has a stationary value when dAdx=0\dfrac{dA}{dx} = 0, that is when x=50x = 50. Now d2Adx2=1\dfrac{d^2 A}{dx^2} = -1, which is negative, so this is a maximum, and the maximum value is 25×50=125025 \times 50 = 1250 square metres.

hedgePQSRx½(100 − x)½(100 − x)the enclosure501005001000xA(50, 1250)its area
Figure 4.13. The enclosure against the hedge, and its area A=50x12x2A = 50x - \tfrac12 x^2 as the length xx varies.

The second method, using differentiation, is necessary when finding maximum or minimum values of functions that are not quadratic. For quadratic functions the first method is preferable, since their properties let us find the maximum or minimum value by inspection. In this case the greatest value and the maximum value are the same.

Example 4.22.

A rectangle has a perimeter of 2020 units. Find its greatest possible area.

The perimeter, the total length of the edges, is twice the short side plus twice the long side, so the two sides add up to 1010. So if one side has length xx, the other has length 10x10 - x, and the area of the rectangle is

x(10x)=10xx2.x(10 - x) = 10x - x^2 .

This is differentiable everywhere, with derivative 102x10 - 2x. At its greatest value, either its gradient is 00 or xx is at one of the ends of its range, x=0x = 0 or x=10x = 10. At the ends the area is 00, so we solve 102x=010 - 2x = 0, which gives x=5x = 5. The area there is 10(5)52=2510(5) - 5^2 = 25, so the greatest area is 2525 square units.

The point where the gradient is zero is a maximum and not a minimum, for three separate reasons.

  1. x=5x = 5 is the only place where 10xx210x - x^2 can turn round, and at values of xx on either side of it, such as 00 and 1010, the area is less than 2525. If the area were more than 2525 at x=6x = 6, say, the curve would have to turn round again to reach (10,0)(10, 0), and it does not.
  2. The gradient 102x10 - 2x is positive to the left of x=5x = 5 and negative to the right.
  3. The graph of 10xx210x - x^2 is a parabola opening downwards, so its only flat point is a maximum.

Remark.

If f(x)=ax2+bx+cf(x) = ax^2 + bx + c, then f(x)=2ax+bf'(x) = 2ax + b, so f(x)f(x) has a stationary value where x=b2ax = -\dfrac{b}{2a}, on the axis of the curve. If α\alpha and β\beta are the roots of ax2+bx+c=0ax^2 + bx + c = 0, where the curve crosses the xx-axis, then by the sum of the roots 12(α+β)=b2a\tfrac12(\alpha + \beta) = -\dfrac{b}{2a}, so the turning point of the curve has xx-coordinate 12(α+β)\tfrac12(\alpha + \beta), halfway between the roots. A ball thrown through the air follows such a parabola, if we ignore air resistance.

Problem 4.8.

Find the stationary values of each of the following functions and determine their nature.

  1. 2x33x212x2x^3 - 3x^2 - 12x;
  2. (x3)(2x+1)(x - 3)(2x + 1);
  3. x3+3x^3 + 3.

The Number ee

Exponential Growth

The curve y=2xy = 2^x of the last lesson increases as xx increases. Its values at x=3,2,1,0,1,2,3x = -3, -2, -1, 0, 1, 2, 3 are 18,14,12,1,2,4,8\tfrac18, \tfrac14, \tfrac12, 1, 2, 4, 8, and the graph grows quite fast. Differentiating from first principles shows how fast:

2x+h2xh=2x2h2xh=2x2h1h,\frac{2^{x + h} - 2^x}{h} = \frac{2^x \cdot 2^h - 2^x}{h} = 2^x \cdot \frac{2^h - 1}{h},

and the factor 2h1h\dfrac{2^h - 1}{h} does not involve xx at all. Its values, and those of the corresponding factor for 3x3^x, as hh approaches zero are

hh0.10.10.010.010.0010.0010.00010.0001
2h1h\dfrac{2^h - 1}{h}0.71770.71770.69560.69560.69340.69340.69320.6932
3h1h\dfrac{3^h - 1}{h}1.16121.16121.10471.10471.09921.09921.09871.0987

so the gradient of 2x2^x is about 0.693×2x0.693 \times 2^x, and the gradient of 3x3^x is about 1.099×3x1.099 \times 3^x.

The rate of change of an exponential function is proportional to its current value. The larger the function gets, the faster it grows, which makes it larger still; this runaway growth is called exponential growth. It is what happens with the spread of a disease, or with interest in a bank.

A base for which the factor is exactly 11 would give a function whose derivative is equal to the function itself. The factor is less than 11 for base 22 and greater than 11 for base 33, and there is a number between 22 and 33 for which it is exactly 11.

Definition 4.23 (The Number e).

The number ee, which is about 2.718281828459045235362.71828182845904523536\ldots, is the base for which

ddx(ex)=ex.\frac{d}{dx}\left(e^x\right) = e^x .

With ee in place of 22 the factor takes the values 1.05171.0517, 1.00501.0050, 1.00051.0005 and 1.00011.0001 for the four values of hh in the table. That such a number exists, and that exe^x has exactly this derivative, we accept on trust at this stage, as we did the power rule for fractional powers.

−2−1121234567xygradient 1gradient ey = ex
Figure 4.14. The curve y=exy = e^x. At every point the gradient equals the height: the tangent at (0,1)(0, 1) has gradient 11, and the tangent at (1,e)(1, e) has gradient ee.

Example 4.24.

Find the equation of the tangent to y=exy = e^x at the point (0,1)(0, 1).

Since dydx=ex\dfrac{dy}{dx} = e^x, the gradient at (0,1)(0, 1) is e0=1e^0 = 1. The tangent is the line of gradient 11 through (0,1)(0, 1), which is y=x+1y = x + 1.

The Natural Logarithm

Definition 4.25 (Natural Logarithm).

The natural logarithm of a positive number xx is its logarithm to base ee, written

lnx=logex.\ln x = \log_e x .

So lnx\ln x is the number yy for which ey=xe^y = x. Since loga1=0\log_a 1 = 0 and loga(ak)=k\log_a\left(a^k\right) = k for every base, straight from the definition of a logarithm, we have ln1=0\ln 1 = 0, lne=1\ln e = 1 and ln(ek)=k\ln\left(e^k\right) = k.

As a function from the positive numbers to the real numbers, lnx\ln x is the inverse of the function exe^x from the real numbers to the positive numbers, in the same way that log2x\log_2 x is the inverse of 2x2^x. Its graph is the reflection of y=exy = e^x in the line y=xy = x, and has the same shape as the graph of y=log2xy = \log_2 x.

Remark.

People often write logx\log x with no base. If you are a physicist or an engineer this usually means log10x\log_{10} x, but mathematicians usually mean lnx\ln x. In these notes base 1010 is written lg\lg, base ee is written ln\ln, and log\log without a base appears only in rules that hold for every base.

Example 4.26.

Find the coordinates of the stationary point of y=ex3xy = e^x - 3x, and determine its nature.

dydx=ex3,d2ydx2=ex.\frac{dy}{dx} = e^x - 3, \qquad \frac{d^2 y}{dx^2} = e^x .

The gradient is zero when ex=3e^x = 3, that is when x=ln3x = \ln 3, and there y=eln33ln3=33ln3y = e^{\ln 3} - 3\ln 3 = 3 - 3\ln 3. Since exe^x is positive for every xx, d2ydx2>0\dfrac{d^2 y}{dx^2} > 0, so (ln3,33ln3)(\ln 3, 3 - 3\ln 3), which is about (1.099,0.296)(1.099, -0.296), is a minimum turning point.

Problem 4.9.

  1. Solve the equation ex=10e^x = 10, giving xx exactly and to three decimal places.
  2. Differentiate x3+exx^3 + e^x with respect to xx.
  3. Find the gradient of the curve y=exx2y = e^x - x^2 at the point where x=0x = 0.

Exercises

Exercise 4.1.

Differentiate f(x)=x+1xf(x) = x + \dfrac1x from first principles.

Exercise 4.2.

Find the equations of the tangents to the curve y=(2x1)(x+1)y = (2x - 1)(x + 1) at the points where the curve cuts the xx-axis, and find the point of intersection of these tangents.

Exercise 4.3.

Find the coordinates of the point on y=x25y = x^2 - 5 at which the gradient is 33. Hence find the value of cc for which the line y=3x+cy = 3x + c is a tangent to y=x25y = x^2 - 5.

Exercise 4.4.

Find the value of kk for which y=2x+ky = 2x + k is a normal to y=2x23y = 2x^2 - 3.

Exercise 4.5.

Find the coordinates of the point on y=x27x+3y = x^2 - 7x + 3 at which the gradient is 22. Hence find the equation of the normal to y=x27x+3y = x^2 - 7x + 3 which is parallel to x+2y1=0x + 2y - 1 = 0.

Exercise 4.6.

Show that (t,1t)\left(t, \dfrac1t\right) lies on the curve y=1xy = \dfrac1x for all non-zero values of tt. Find the equation of the tangent to y=1xy = \dfrac1x at (t,1t)\left(t, \dfrac1t\right), and the area of the triangle enclosed by this tangent and the coordinate axes.

Exercise 4.7.

Find the turning points on y=3x4+4x312x2y = 3x^4 + 4x^3 - 12x^2, and give a rough sketch of the curve.

Exercise 4.8.

Find the stationary values of f(x)=x+1xf(x) = x + \dfrac1x, and use them to sketch the curve y=x+1xy = x + \dfrac1x.

Exercise 4.9.

Find the coordinates of the turning points of the curve y=3+24x21x24x3y = 3 + 24x - 21x^2 - 4x^3, and sketch the curve.

Exercise 4.10.

The gradient function of y=ax2+bx+cy = ax^2 + bx + c is 4x+24x + 2, and the function has a minimum value of 11. Find the values of aa, bb and cc.

Exercise 4.11.

A closed cylindrical can has height hh and base radius rr, and its volume is 0.010.01 m³. Show that

h=1100πr2.h = \frac{1}{100\pi r^2} .

Show further that SS, the surface area, is given by

S=2πr2+150r,S = 2\pi r^2 + \frac{1}{50r},

and hence find the value of rr for which SS is a minimum.

Exercise 4.12.

An open rectangular box is made from a square sheet of cardboard by removing a square from each corner and joining the cut edges. If the cardboard has edge 0.50.5 m, find the maximum volume of the box.

Exercise 4.13.

A cylinder is cut from a solid sphere of radius 55 cm, so that the curved edges of the cylinder reach the surface of the sphere. If the height of the cylinder is 2h2h, show that its volume is 2πh(25h2)2\pi h\left(25 - h^2\right), and find the maximum volume of such a cylinder.

Exercise 4.14.

A piece of string of fixed length is made to enclose a rectangle. Show that the enclosed area is greatest when the rectangle is a square.

Exercise 4.15.

The table shows the results of an experiment in which some hot liquid was left to cool, its temperature θ\theta °C being measured at intervals of one minute.

Time tt (minutes)001122334455
Temperature θ\theta (°C)10010093938787838380807878

What does dθdt\dfrac{d\theta}{dt} represent? By drawing a graph of these results, estimate the rate of decrease of the temperature after three minutes.

Exercise 4.16.

Show that the tangent to y=exy = e^x at the point where x=1x = 1 passes through the origin. Hence find the value of kk for which the line y=kxy = kx is a tangent to y=exy = e^x.

Check Yourself

 

Fresh questions on the whole chapter — none of them is worked out above. Do each on paper first; the box only tells you whether you got there.

Answers are checked in your browser, as often as you like. Nothing is sent anywhere and nothing is kept but your own work. A formula may be written with the symbols themselves or with ~ & | -> <-> ^, and \and, \or, \to expand as you type.

Exercise 4.17.

What is limx3x29x3\displaystyle\lim_{x \to 3} \frac{x^2 - 9}{x - 3}?

answer one of these

Exercise 4.18.

What is limx3x2\displaystyle\lim_{x \to \infty} \frac{3}{x^2}?

answer one of these

Exercise 4.19.

What is the gradient of the chord of y=x2y = x^2 joining the points where x=1x = 1 and x=3x = 3?

answer one of these

Exercise 4.20.

What is ddx(x5)\dfrac{d}{dx}\left(x^5\right)?

answer one of these

Exercise 4.21.

What is ddx(x5/2)\dfrac{d}{dx}\left(x^{5/2}\right)?

answer one of these

Exercise 4.22.

What is ddx(4x)\dfrac{d}{dx}\left(\dfrac4x\right)?

answer one of these

Exercise 4.23.

What is ddx(x+2)2\dfrac{d}{dx}(x + 2)^2?

answer one of these

Exercise 4.24.

What is the gradient of the curve y=x3xy = x^3 - x at the point where x=2x = 2?

answer one of these

Exercise 4.25.

What is the equation of the tangent to y=x2y = x^2 at the point (2,4)(2, 4)?

answer one of these

Exercise 4.26.

What is the gradient of the normal to y=x2y = x^2 at the point where x=1x = 1?

answer one of these

Exercise 4.27.

At which values of xx does x33xx^3 - 3x have stationary values?

answer one of these

Exercise 4.28.

At the origin, the curve y=x4y = x^4 has

answer one of these

Exercise 4.29.

A rectangle has a perimeter of 1212 units. What is its greatest possible area?

answer one of these

Exercise 4.30.

For which values of xx is x24xx^2 - 4x decreasing?

answer one of these

Exercise 4.31.

What is ddx(ex+x2)\dfrac{d}{dx}\left(e^x + x^2\right)?

answer one of these

Exercise 4.32.

What is the solution of e2x=7e^{2x} = 7?

answer one of these