Skip to content

Differentiating standard functions

Standard derivatives are the vocabulary of differentiation. Once these results are secure, more complicated functions can be differentiated by combining them with the product, quotient and chain rules.

You should be able to:

  • use negative and fractional indices;
  • recognise graphs of exponential, logarithmic and trigonometric functions;
  • interpret a derivative as an instantaneous rate of change.

Review differentiation and gradients if the meaning of dy/dxdy/dx or the power rule is unfamiliar. The results below can be justified from first principles, but this lesson focuses on using them accurately.

For suitable constants aa, cc and nn:

ddx(c)=0,ddx(xn)=nxn1,ddx(ex)=ex,ddx(ax)=axlna,a>0,ddx(lnx)=1x,x>0,ddx(sinx)=cosx,ddx(cosx)=sinx,ddx(tanx)=sec2x.\begin{aligned} \frac{d}{dx}(c)&=0,\\ \frac{d}{dx}(x^n)&=nx^{n-1},\\ \frac{d}{dx}(e^x)&=e^x,\\ \frac{d}{dx}(a^x)&=a^x\ln a, && a>0,\\ \frac{d}{dx}(\ln x)&=\frac1x, && x>0,\\ \frac{d}{dx}(\sin x)&=\cos x,\\ \frac{d}{dx}(\cos x)&=-\sin x,\\ \frac{d}{dx}(\tan x)&=\sec^2x. \end{aligned}

The trigonometric results require xx to be measured in radians. This is not a convention that can be ignored: using degrees introduces an extra constant factor.

Two linearity rules let us differentiate expressions term by term:

ddx(cf(x))=cf(x)\frac{d}{dx}\bigl(cf(x)\bigr)=cf'(x)

and

ddx(f(x)±g(x))=f(x)±g(x).\frac{d}{dx}\bigl(f(x)\pm g(x)\bigr)=f'(x)\pm g'(x).

Constants multiply derivatives. Sums and differences remain sums and differences.

The power rule is

ddx(xn)=nxn1.\boxed{\frac{d}{dx}(x^n)=nx^{n-1}}.

Multiply by the existing power, then subtract one from that power.

If

y=7x53x2+8x11,y=7x^5-3x^2+8x-11,

then

dydx=35x46x+8.\frac{dy}{dx}=35x^4-6x+8.

The derivative of 8x8x is 88, and the derivative of the constant 11-11 is 00.

Write reciprocals with indices before differentiating:

y=5x32x=5x32x1.y=\frac{5}{x^3}-\frac{2}{x}=5x^{-3}-2x^{-1}.

Therefore

dydx=15x4+2x2=15x4+2x2.\frac{dy}{dx}=-15x^{-4}+2x^{-2} =-\frac{15}{x^4}+\frac{2}{x^2}.

The power decreases by one, so 3-3 becomes 4-4, not 2-2.

Rewrite roots as powers:

x=x1/2,x23=x2/3.\sqrt{x}=x^{1/2},\qquad \sqrt[3]{x^2}=x^{2/3}.

For example,

y=4x+3x23=4x1/2+3x2/3.y=4\sqrt{x}+3\sqrt[3]{x^2} =4x^{1/2}+3x^{2/3}.

Hence

dydx=2x1/2+2x1/3=2x+2x3.\frac{dy}{dx} =2x^{-1/2}+2x^{-1/3} =\frac{2}{\sqrt{x}}+\frac{2}{\sqrt[3]{x}}.

The formula works wherever the original function is differentiable as a real function. For example, x\sqrt{x} is real only for x0x\geq0, and its derivative 1/(2x)1/(2\sqrt{x}) is undefined at x=0x=0. A correct algebraic rule does not remove domain restrictions.

Differentiate

f(x)=3x4+2x7x2.f(x)=\frac{3x^4+2\sqrt{x}-7}{x^2}.

Simplify before differentiating:

f(x)=3x2+2x3/27x2.f(x)=3x^2+2x^{-3/2}-7x^{-2}.

Now apply the power rule term by term:

f(x)=6x3x5/2+14x3.f'(x)=6x-3x^{-5/2}+14x^{-3}.

This is usually quicker and safer than applying the quotient rule to the original expression.

Every exponential function has a rate of change proportional to its current value. The number ee is defined so that the proportionality constant is exactly 11:

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

The function and its derivative therefore have the same value at every xx. At x=0x=0, both are 11.

For a general positive base aa,

ax=exlna.a^x=e^{x\ln a}.

Differentiating gives

ddx(ax)=axlna.\boxed{\frac{d}{dx}(a^x)=a^x\ln a}.

The factor lna\ln a records how the choice of base changes the growth rate. If a>1a>1, then lna>0\ln a>0 and axa^x increases. If 0<a<10<a<1, then lna<0\ln a<0 and axa^x decreases.

If

y=6ex43x+9,y=6e^x-4\cdot 3^x+9,

then

dydx=6ex43xln3.\frac{dy}{dx}=6e^x-4\cdot3^x\ln3.

There is no +9+9 in the derivative because constants have zero rate of change.

Compare

ddx(5ex)=5ex\frac{d}{dx}(5e^x)=5e^x

with

ddx(e5x)=5e5x.\frac{d}{dx}(e^{5x})=5e^{5x}.

The first uses the constant multiple rule. The second uses the chain rule because 5x5x is inside the exponential. They happen to produce a factor of 55 for different reasons. For a systematic treatment of functions inside functions, see the product, quotient and chain rules.

Since y=lnxy=\ln x is the inverse of y=exy=e^x, its gradient is the reciprocal of the exponential gradient at the corresponding point. This gives

ddx(lnx)=1x,x>0.\boxed{\frac{d}{dx}(\ln x)=\frac1x},\qquad x>0.

For example, if

y=4lnx+3x27,y=4\ln x+3x^2-7,

then

dydx=4x+6x.\frac{dy}{dx}=\frac4x+6x.

For logarithms to another base,

logax=lnxlna,\log_a x=\frac{\ln x}{\ln a},

so

ddx(logax)=1xlna.\boxed{\frac{d}{dx}(\log_a x)=\frac{1}{x\ln a}}.

Consider

y=ln(x4),x>0.y=\ln(x^4),\qquad x>0.

Using ln(x4)=4lnx\ln(x^4)=4\ln x gives

dydx=4x.\frac{dy}{dx}=\frac4x.

The domain matters. The expression ln(x4)\ln(x^4) is actually defined for every x0x\ne0, and the derivative is still 4/x4/x on both parts of that domain. However, writing ln(x4)=4lnx\ln(x^4)=4\ln x is valid only for x>0x>0. A more careful identity for x0x\ne0 is

ln(x4)=4lnx.\ln(x^4)=4\ln|x|.

This distinction is useful at A* level and prevents logarithm laws from being applied outside their valid domains.

Do not confuse lnx\ln x with 1/x1/x

Section titled “Do not confuse ln⁡x\ln xlnx with 1/x1/x1/x”

The derivative is

ddx(lnx)=1x,\frac{d}{dx}(\ln x)=\frac1x,

but the functions are not equal. In particular,

ddx(1x)=ddx(x1)=x2=1x2.\frac{d}{dx}\left(\frac1x\right)=\frac{d}{dx}(x^{-1})=-x^{-2}=-\frac1{x^2}.

When angles are in radians,

ddx(sinx)=cosx\boxed{\frac{d}{dx}(\sin x)=\cos x}

and

ddx(cosx)=sinx.\boxed{\frac{d}{dx}(\cos x)=-\sin x}.

The negative sign in the derivative of cosine is essential. One way to remember the pattern is

sinxcosxsinxcosxsinx.\sin x\longrightarrow\cos x\longrightarrow-\sin x\longrightarrow-\cos x\longrightarrow\sin x.

Also,

ddx(tanx)=sec2x.\boxed{\frac{d}{dx}(\tan x)=\sec^2x}.

This follows by writing tanx=sinx/cosx\tan x=\sin x/\cos x and applying the quotient rule:

ddx(tanx)=cos2x+sin2xcos2x=1cos2x=sec2x.\frac{d}{dx}(\tan x) =\frac{\cos^2x+\sin^2x}{\cos^2x} =\frac1{\cos^2x} =\sec^2x.

Differentiate

y=5sinx2cosx+3tanx.y=5\sin x-2\cos x+3\tan x.

Term by term,

dydx=5cosx+2sinx+3sec2x.\frac{dy}{dx}=5\cos x+2\sin x+3\sec^2x.

Notice that differentiating 2cosx-2\cos x gives +2sinx+2\sin x because two negative signs combine.

For

f(x)=3sinx+4cosx,f(x)=3\sin x+4\cos x,

we have

f(x)=3cosx4sinx.f'(x)=3\cos x-4\sin x.

At x=π/6x=\pi/6,

f(π6)=3(32)4(12)=3322.f'\left(\frac\pi6\right) =3\left(\frac{\sqrt3}{2}\right)-4\left(\frac12\right) =\frac{3\sqrt3}{2}-2.

Keep exact values unless a decimal approximation is requested.

Suppose an angle is measured in degrees and define

g(x)=sin(πx180).g(x)=\sin\left(\frac{\pi x}{180}\right).

Then g(x)g(x) represents the sine of xx degrees, but

g(x)=π180cos(πx180).g'(x)=\frac{\pi}{180}\cos\left(\frac{\pi x}{180}\right).

The familiar derivative cosx\cos x appears without an extra factor only when xx is in radians.

Differentiate

y=2x5/23x2+4ex5lnx+7sinx6cosx.y=2x^{5/2}-\frac{3}{x^2}+4e^x-5\ln x+7\sin x-6\cos x.

First write the reciprocal as a power:

y=2x5/23x2+4ex5lnx+7sinx6cosx.y=2x^{5/2}-3x^{-2}+4e^x-5\ln x+7\sin x-6\cos x.

Then differentiate each term:

dydx=5x3/2+6x3+4ex5x+7cosx+6sinx.\boxed{ \frac{dy}{dx} =5x^{3/2}+6x^{-3}+4e^x-\frac5x+7\cos x+6\sin x }.

Each term requires only one decision: identify its function family, then apply the corresponding standard derivative.

When differentiating a sum of standard functions:

  1. Simplify algebraically, especially roots and reciprocals.
  2. Separate the expression into terms.
  3. Keep each constant coefficient.
  4. Apply the correct standard derivative to each term.
  5. Check signs, powers and domains.
  6. Decide whether any term is composite. If it has a non-trivial inner function, use the chain rule.
  • Reducing a power in the wrong direction: d(x3)/dx=3x4d(x^{-3})/dx=-3x^{-4}, not 3x2-3x^{-2}.
  • Forgetting a coefficient: d(7sinx)/dx=7cosxd(7\sin x)/dx=7\cos x.
  • Losing the cosine sign: d(cosx)/dx=sinxd(\cos x)/dx=-\sin x.
  • Treating every exponential like exe^x: d(2x)/dx=2xln2d(2^x)/dx=2^x\ln2.
  • Confusing a function with its derivative: d(lnx)/dx=1/xd(\ln x)/dx=1/x does not mean lnx=1/x\ln x=1/x.
  • Using degrees: the standard trigonometric derivatives assume radians.
  • Ignoring an inner function: d(sin3x)/dxd(\sin 3x)/dx is not simply cos3x\cos3x. The chain rule supplies a factor of 33.
  • Using the product rule for a constant multiple: d(5f(x))/dx=5f(x)d(5f(x))/dx=5f'(x) directly.
  • Ignoring domains: a derivative formula is meaningful only where the original function is defined and differentiable.

Try each question before opening the answer.

Differentiate

f(x)=8x3/25x1/2+4.f(x)=8x^{3/2}-5x^{-1/2}+4.
Answer f(x)=12x1/2+52x3/2.f'(x)=12x^{1/2}+\frac52x^{-3/2}.

The constant differentiates to zero. For the second term,

5(12)x3/2=52x3/2.-5\left(-\frac12\right)x^{-3/2}=\frac52x^{-3/2}.

Differentiate

g(x)=3ex25x+7lnx.g(x)=3e^x-2\cdot5^x+7\ln x.
Answer g(x)=3ex25xln5+7x.g'(x)=3e^x-2\cdot5^x\ln5+\frac7x.

Differentiate

h(x)=4sinx+9cosx2tanx.h(x)=4\sin x+9\cos x-2\tan x.
Answer h(x)=4cosx9sinx2sec2x.h'(x)=4\cos x-9\sin x-2\sec^2x.

Given

p(x)=2x3+4sinxex,p(x)=2x^3+4\sin x-e^x,

find p(0)p'(0).

Answer p(x)=6x2+4cosxex,p'(x)=6x^2+4\cos x-e^x,

so

p(0)=0+41=3.p'(0)=0+4-1=3.

A student writes

ddx(3x2/34cosx+2x)=2x1/34sinx+2x.\frac{d}{dx}\left(3x^{2/3}-4\cos x+2^x\right) =2x^{-1/3}-4\sin x+2^x.

Find every error.

Answer

The power term is correct. The cosine term should become positive because

ddx(4cosx)=4sinx.\frac{d}{dx}(-4\cos x)=4\sin x.

The exponential needs a factor of ln2\ln2. Therefore

ddx(3x2/34cosx+2x)=2x1/3+4sinx+2xln2.\frac{d}{dx}\left(3x^{2/3}-4\cos x+2^x\right) =2x^{-1/3}+4\sin x+2^x\ln2.

Which standard rule is not enough on its own to differentiate ln(3x+1)\ln(3x+1), and why?

Answer

The derivative of lnx\ln x is not enough on its own because 3x+13x+1 is an inner function. The chain rule is required:

ddxln(3x+1)=33x+1.\frac{d}{dx}\ln(3x+1)=\frac{3}{3x+1}.

Use these standard derivatives with the product, quotient and chain rules to differentiate products, fractions and composite functions. You can then apply them to tangents and normals and stationary points and curve sketching.