P3 4.1 - Differentiating standard functions

P3 4.1 - Differentiating standard functions

Extend differentiation beyond powers to exponential, logarithmic and trigonometric functions. Learn how their gradients change, handle linear expressions inside functions and combine the results to find tangents.

Exponential and logarithmic derivatives

Which curve has a gradient equal to its own height at every point? The curve y=exy=e^x has exactly this property: at x=0x=0, its height and gradient are both 11; at x=1x=1, both are ee.

A derivative measures a small change in output per unit change in input. For example, near x=0x=0,

e0.001−e00.001≈1.00050.\frac{e^{0.001}-e^0}{0.001}\approx1.00050.

Smaller input changes bring this secant gradient closer to 11. The corresponding limiting result at a general point is ddxex=ex\frac{d}{dx}e^x=e^x. The power rule is unsuitable because the variable is in the exponent, rather than in the base.

Exponential and logarithmic derivatives

ddx(ex)=ex,ddx(ln⁡x)=1x(x>0).\frac{d}{dx}(e^x)=e^x,\qquad \frac{d}{dx}(\ln x)=\frac1x\quad(x>0).

These derivatives are not in the formula booklet: learn them.

The logarithm is increasing for every positive input, but its gradient 1/x1/x gets smaller as the input increases. Near x=1x=1, a change of 0.0010.001 gives ln⁡(1.001)/0.001≈0.99950\ln(1.001)/0.001\approx0.99950, consistent with a gradient of 11.

Worked example 1: add the gradients

For f(x)=ex+ln⁡xf(x)=e^x+\ln x, x>0x>0, find f′(x)f'(x) and f′(1)f'(1).

Plan. Differentiate the two terms separately, then substitute.

f′(x)=ex+1xadd the derivativesf′(1)=e+1put x=1.\begin{aligned} f'(x)&=e^x+\frac1x &&\text{add the derivatives}\\ f'(1)&=e+1 &&\text{put }x=1. \end{aligned}

Answer. f′(x)=ex+1/xf'(x)=e^x+1/x, and f′(1)=e+1f'(1)=e+1.

Check. Both terms of ff are increasing for x>0x>0, and the derivative is positive there.

Change only the sign joining the functions. The logarithmic contribution to the gradient now changes sign.

Worked example 2: subtract the gradients

For g(x)=ex−ln⁡xg(x)=e^x-\ln x, x>0x>0, find g′(x)g'(x) and g′(1)g'(1).

Plan. Preserve the minus sign when differentiating the logarithm.

g′(x)=ex−1xsubtract the derivativesg′(1)=e−1put x=1.\begin{aligned} g'(x)&=e^x-\frac1x &&\text{subtract the derivatives}\\ g'(1)&=e-1 &&\text{put }x=1. \end{aligned}

Answer. g′(x)=ex−1/xg'(x)=e^x-1/x, and g′(1)=e−1g'(1)=e-1.

Check. A central secant (g(1.001)−g(0.999))/0.002≈1.718282(g(1.001)-g(0.999))/0.002\approx1.718282, close to e−1≈1.718282e-1\approx1.718282.

Use the function's domain throughout the calculation.

Sine cosine and tangent derivatives

The gradients of sine and cosine repeat periodically, just as their values do.

At x=0x=0, the sine curve rises through the origin with gradient 11; at its maximum x=π/2x=\pi/2, its gradient is zero. Those gradients match the values of cos⁡x\cos x. The cosine curve has a horizontal tangent at zero and then falls, so its derivative has the negative sign in −sin⁡x-\sin x.

[DIAGRAM: asset_name: Sine values and sine gradients; asset_slug: sine-and-gradient; caption: At the sine curve's turning points the cosine curve is zero.; description: Aligned panels show sine x above cosine x for x from zero to two pi. Vertical guides at zero pi over two pi three pi over two and two pi connect the sine curve to its derivative values. Labels identify rising maximum falling minimum and the derivative cosine.]
At the sine curve's turning points the cosine curve is zero.

Trigonometric derivatives

For angles measured in radians,

ddx(sin⁡x)=cos⁡x,ddx(cos⁡x)=−sin⁡x,ddx(tan⁡x)=sec⁡2x.\frac{d}{dx}(\sin x)=\cos x,\qquad \frac{d}{dx}(\cos x)=-\sin x,\qquad \frac{d}{dx}(\tan x)=\sec^2x.

Here sec⁡x=1/cos⁡x\sec x=1/\cos x, so sec⁡2x=1/cos⁡2x\sec^2x=1/\cos^2x. The tangent derivative applies where cos⁡x≠0\cos x\ne0. The tangent result is in the formula booklet; the sine and cosine results are not: learn them.

The positive derivative of tangent agrees with its rising shape on each interval between its asymptotes. Use radian mode for numerical checks of these formulae.

Worked example 3: three trigonometric terms

Differentiate f(x)=sin⁡x+cos⁡x+tan⁡xf(x)=\sin x+\cos x+\tan x.

Plan. Apply one standard derivative to each term, retaining the cosine derivative's minus sign.

f′(x)=cos⁡x−sin⁡x+sec⁡2x.f'(x)=\cos x-\sin x+\sec^2x.

Answer. cos⁡x−sin⁡x+sec⁡2x\cos x-\sin x+\sec^2x, where cos⁡x≠0\cos x\ne0.

Check. At zero, the three gradient contributions are 11, 00 and 11, giving f′(0)=2f'(0)=2.

Change only the sign of the cosine term. Two negative signs now cancel.

Worked example 4: a subtracted cosine

Differentiate g(x)=sin⁡x−cos⁡x+tan⁡xg(x)=\sin x-\cos x+\tan x.

Plan. The derivative of −cos⁡x-\cos x is +sin⁡x+\sin x.

g′(x)=cos⁡x+sin⁡x+sec⁡2x.g'(x)=\cos x+\sin x+\sec^2x.

Answer. cos⁡x+sin⁡x+sec⁡2x\cos x+\sin x+\sec^2x, where cos⁡x≠0\cos x\ne0.

Check. At x=π/4x=\pi/4, the derivative is 2+2\sqrt2+2. A central secant using a step of 0.00010.0001 radians gives approximately 3.4142143.414214.

A sign outside a function remains a multiplier during differentiation.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account