Math AAHL
Math AIHL
Math AASL
Math AISL
Sign Out
erplex
LoginJoin
IB Math AIHL
/
5: Calculus
/
Differentiation

Differentiation

erplex

© 2025 Perplex Learning Incorporated. All rights reserved.

All content on this website has been developed independently from and is not endorsed by the International Baccalaureate Organization. International Baccalaureate and IB are registered trademarks owned by the International Baccalaureate Organization.

MembershipTeamContactTerms of ServicePrivacy Policy

Differentiation rules

Now, that we understand the concept of a derivative, we will learn useful rules for evaluating derivatives more quickly and easily than by using the limit definition.


Recall the rules we have already learned about taking the derivatives of polynomials:

Derivative of xⁿ where n is an integer

f(x)=xn, n∈Z⇒f′(x)=nxn−1📖

Derivatives of sums and scalar multiples

dxd​(af(x))=af′(x)🚫
dxd​(f(x)+g(x))=f′(x)+g′(x)🚫
dxd​(af(x)+bg(x))=af′(x)+bg′(x)🚫

Discussion

Find dxd​(x1/2) using the limit definition. Does this follow the same rule as integer powers?

Let f(x)=√x. Then by the limit definition

dxd​√x=h→0lim​h√x+h​−√x​.

Multiply top and bottom by the conjugate √x+h​+√x:

dxd​√x​=h→0lim​h(√x+h​+√x)(√x+h​−√x)(√x+h​+√x)​=h→0lim​h(√x+h​+√x)(x+h)−x​=h→0lim​√x+h​+√x1​=2√x1​​

So

dxd​√x=2√x1​.

Since √x=x1/2, this equals 21​x−1/2, showing that the power‐rule

dxd​xn=nxn−1

still holds when n=21​.


Derivative of xⁿ where n is rational

f(x)=xn, n∈Q⇒f′(x)=nxn−1📖

Checkpoint

Find the derivative of x5/2.

Select the correct option

Discussion

Can you apply the power rule to expressions like (2x+1)2? Try applying the power rule over the whole expression. Then, try expanding first and applying the power rule to the resulting polynomial. Compare your answers.

First, apply the power rule to (2x+1)2 as if it were u2 with u=2x+1.

dxd​((2x+1)2)=2(2x+1)=4x+2


Next, expand first and then differentiate term by term.

(2x+1)2=4x2+4x+1


dxd​(4x2+4x+1)=8x+4


Since 4x+2=8x+4, the power rule does not work here.


For larger powers, expansion will become more difficult. For instance, we have no quick way to take the derivative of (2x+1)6. Notice that (2x+1)6 is the composition of the functions f(x)=2x+1 and g(x)=x6, and we can derive a rule for the derivative of compositions of functions called the chain rule.

Suppose we want to take the derivative of g(f(x)). First, write the derivative using the limit definition at a point:

(g(f(c)))′=x→clim​c−xg(f(c))−g(f(x))​.

Then, we can multiply the numerator and denominator by f(c)−f(x) and split fractions, yielding

(g(f(c)))′=x→clim​f(c)−f(x)g(f(c))−g(f(x))​⋅x→clim​c−xf(c)−f(x)​.

Now, we have two limits of fractions that can be rewritten as derivatives:


Notice that

x→clim​f(c)−f(x)g(f(c))−g(f(x))​

is the definition of g′(c) except with f(c) and f(x) replacing c and x. Thus, this expression gives g′(f(c)). Then,

x→clim​c−xf(c)−f(x)​

is exactly the definition of f′(c), so we have

(g(f(c)))′=g′(f(c))⋅f′(c).

Chain rule

(g(f(x)))′=g′(f(x))⋅f′(x)🚫
y=g(u) where u=f(x)
dxdy​=dudg​⋅dxdu​📖

Checkpoint

Calculate the derivative of (2x+1)6.

Select the correct option

Discussion

Now, we find the derivative of ex together.

  1. Write the limit definition of the derivative of ex. Then, factor ex out of the expression.

The resulting limit can be evaluated using the definition of ex:

ex=1+x+2!x2​+…
  1. Expand eh and evaluate h→0lim​heh−1​.

  2. Hence, state an expression for dxd​(ex).

Part (a)

We use the limit definition with f(x)=ex.

f′(x)=h→0lim​hex+h−ex​

Factor out ex:

f′(x)​=h→0lim​hex(eh−1)​=exh→0lim​heh−1​​


Part (b)

Expanding eh gives

eh=1+h+2!h2​+⋯

Hence

h→0lim​heh−1​​=h→0lim​h(1+h+h2/2!+⋯)−1​=h→0lim​hh+h2/2!+⋯​=h→0lim​(1+2!h​+⋯)=1​

Part (c)

From parts (a) and (b) we have

dxd​ex=exh→0lim​heh−1​=ex⋅1

Hence

dxd​(ex)=ex.


Derivative of e^x

f(x)=ex⇒f′(x)=ex📖

Checkpoint

Solve dxd​(e2x+1).

Select the correct option

Discussion

We want to find the derivative of y=lnx.

  1. By letting ey=x, find dydx​.

  2. Invert dydx​ to find dxdy​, then simplify your expression in terms of x.

Part (a)

From y=lnx we have x=ey. Differentiate with respect to y:

dydx​=ey.

Part (b)

Since

dydx​=ey

we have

dxdy​=ey1​

and because ey=x this simplifies to

dxdy​=x1​.


Derivative of ln

f(x)=lnx⇒f′(x)=x1​📖

Checkpoint

Find dxd​(ln(7x−3)).

Select the correct option

How could we calculate the derivative of a product like x2ex?

Powered by Desmos

You may be tempted to set the derivative equal to the product of the derivatives of x2 and ex, but this is incorrect. Most clearly, this implies that the derivative is negative for all negative x, yet we see on the graph above that the function rises gradually as it moves from the left toward =−2. The following discussion explores the product rule for derivatives, which helps us find the derivatives of products of distinct functions.

Discussion

It is given that f(x)=3x2 and g(x)=x4.

  1. Find (fg)′(x) by applying the product rule.

  2. Confirm your answer to part (a) by multiplying f and g then using power rule to find the derivative of the product.

Part (a)

First compute the derivatives of f and g:

f′(x)=dxd​(3x2)=6x,g′(x)=dxd​(x4)=4x3


By the product rule,

(fg)′(x)=f′(x)g(x)+f(x)g′(x)=6x⋅x4+3x2⋅4x3=6x5+12x5=18x5.

Part (b)

Multiply the two functions first:

(fg)(x)=3x2⋅x4=3x2+4=3x6


Now apply the power rule:

dxd​(3x6)=3⋅6x6−1=18x5


This agrees with the result from part (a).

Discussion

Now that we have the product and chain rules, you can derive the quotient rule.

Find an expression for (gf​)′.

Write

gf​=fg−1


By the product rule,

(gf​)′=(fg−1)′=f′g−1+f(g−1)′


By the chain rule,

(g−1)′=−1⋅g−2g′=−g−2g′


Hence

(gf​)′=f′g−1−fg−2g′.

This is a sufficient answer, but we can remove negative exponents and combine resulting fractions for a cleaner result:

f′g−1−fg−2g′=gf′​−g2fg′​=g2f′g−fg′​.

Product and Quotient rule

The product and quotient rules are given by

(uv)′=u′v+v′u📖
(vu​)′=v2u′v−v′u​📖


A popular shorthand for remembering the quotient rule is Lo2LoDHi−HiDLo​.

Checkpoint

Find the derivative of x2ex.

Select the correct option

Implicit Differentiation

Implicit differentiation is when we differentiate both sides of an equation. It is helpful when we have an equation that cannot be simplified to y=f(x).

Discussion

The graph below shows f(x)=sinx and plots points at (x,f′(x)).

Powered by Desmos

Do the points of f′(x) resemble a familiar function?

The little blue dots give the slope of y=sinx at each sampled x. To see the pattern, note a few key values:

f(x)xf′(x)​:0:0:1​​12π​0​​0π−1​​−123π​0​​02πwe use the outputs of f(x)=sinx to infer x1​

At x=0 the f′ is 1, at x=2π​ it is 0, at x=π it is −1, then 0 at 3π/2, and back to 1 at 2π. These heights match exactly the values of the cosine function. Hence the plotted points lie on the curve

y=cosx,

so the points of f′(x) trace out a cosine wave.

Powered by Desmos

Now, we have dxd​(sinx)=cosx, which we can use to find dxd​(cosx).


First, recognizing that cosx is simply a phase shift of sinx, we write cosx=sin(x+2π​).


Then, take the derivative:

dxd​(cosx)=dxd​(sin(x+2π​))=cos(x+2π​)⋅dxd​(x+2π​)=cos(x+2π​).

Finally, since cos(x+2π​)=−sinx, we conclude

dxd​(cos(x))=−sinx.

Derivatives of sin and cos

f(x)=sinx⇒f′(x)=cosx📖
g(x)=cosx⇒g′(x)=−sinx📖

Checkpoint

Take the derivative of cos(2x).

Select the correct option

Discussion

Using the derivatives of sinx and cosx, find the derivative of tanx.

By the quotient rule dxd​(u/v)=v2vu′−uv′​ with u=sinx, v=cosx:

dxd​tanx​=cos2xcosx⋅dxd​sinx−sinx⋅dxd​cosx​=cos2xcosx⋅cosx−sinx⋅(−sinx)​=cos2xcos2x+sin2x​=cos2x1​(using sin2x+cos2x=1)=sec2x​

Therefore,

dxd​tanx=sec2x.

Derivative of tan(x)

f(x)=tanx⇒f′(x)=sec2(x)📖

Checkpoint

Find the derivative of extanx.

Select the correct option

Discussion

Now that we know the derivatives for each of the trigonometric functions, we can find the derivatives of their reciprocals.

  1. Find the derivative of secx. Simplify any fractions using tan or reciprocal functions.

  2. Find the derivative of cosecx. Simplify any fractions using tan or reciprocal functions.

  3. Find the derivative of cotx. Simplify any fractions using tan or reciprocal functions.

Part (a)

We write secx=(cosx)−1 and use the chain rule:

dxd​secx​=dxd​(cosx)−1=−1(cosx)−2⋅(−sinx)=cos2xsinx​=cosx1​⋅cosxsinx​=secxtanx​

Hence the derivative is

dxd​secx=secxtanx.

Part (b)

We write cosecx=(sinx)−1 and apply the chain rule:

dxd​cosecx​=dxd​(sinx)−1=−1(sinx)−2⋅cosx=−sin2xcosx​=−sinx1​⋅sinxcosx​=−cosecxcotx​

Hence, the derivative is

dxd​cosecx=−cosecxcotx.

Part (c)

We write cotx=(tanx)−1 and apply the chain rule:

dxd​cotx​=dxd​(tanx)−1=−1(tanx)−2⋅dxd​tanx=−tan2xsec2x​=−sin2x/cos2x1/cos2x​=−sin2x1​=−cosec2x​

Hence the derivative is

dxd​cotx=−cosec2x.

Derivatives of reciprocal trig functions

f(x)=secx⇒f′(x)=secxtanx📖
g(x)=cosecx⇒g′(x)=−cosecxcotx📖
h(x)=cotx⇒h′(x)=−cosec2(x)📖

Checkpoint

Find the derivative of 2cotx2.

Select the correct option

Discussion

We will walk through the proof for the derivative rule for arcsinx.

  1. First, given y=arcsinx, how can we rewrite the equation so that it is only in terms of sin?

  2. Hence, write an expression for dydx​.

  3. We want to write our final solution in terms of x, so rewrite cosy in terms of x. Recall that siny=x and use trigonometric identities.

  4. Finally, take the reciprocal of dydx​ to get dxdy​ in terms of x.

Part (a)

Since arcsin is the inverse of sin (on [−2π​,2π​]), applying sin to both sides of

y=arcsinx

gives

siny=x.

Part (b)

Differentiate siny=x with respect to y:

dyd​(siny)=dyd​(x)⟹cosy=dydx​.

Part (c)

Using sin2y+cos2y=1 and siny=x gives

cos2y=1−sin2y=1−x2.

Since y∈[−2π​,2π​] we have cosy≥0, so

cosy=√1−x2​.


Part (d)

Since from parts (b) and (c) we have

dydx​=cosy=√1−x2​

taking reciprocals gives

dxdy​=dydx​1​=√1−x2​1​

We conclude that dxd​(arcsinx)=√1−x2​1​.

Following the same steps for arccosx yields dxd​(arccosx)=√1−x2​−1​ since x=cosy⟹dydx​=−siny.


Now, we prove the last rule for an inverse trigonometric function: arctanx.


If y=arctanx, then tany=x, so we have

dydx​=sec2y.

Substituting with the trigonometric identity sec2y=tan2y+1,

dydx​=tan2y+1=x2+1.

Therefore, we conclude that the derivative of y=arctanx is

dxdy​=x2+11​.

Derivatives of inverse trig functions

f(x)=arcsinx⇒f′(x)=√1−x2​1​📖
g(x)=arccosx⇒g′(x)=√1−x2​−1​📖
h(x)=arctanx⇒h′(x)=1+x21​📖

Checkpoint

Take the derivative of xarcsinx.

Select the correct option

Discussion

  1. Utilize the derivative of ex to find the derivative of ax where a is any positive base.

  2. Utilize the derivative of lnx to find the derivative of loga​x for any positive a.

Part (a)

Set y=ax. Since ax=exlna, we have

dxdy​​=dxd​(exlna)=exlnadxd​(xlna)=exlnalna=axlna​

Hence dxd​ax=axlna.

Part (b)

Since loga​x=lnalnx​ with lna constant, we have

dxd​loga​x=dxd​(lnalnx​)=lna1​dxd​(lnx)=lna1​⋅x1​=xlna1​

Hence

dxd​loga​x=xlna1​


Derivatives of a^x and log_a(x)

f(x)=ax⇒f′(x)=axlna📖
g(x)=loga​x⇒f′(x)=xlna1​📖

Checkpoint

Take the derivative of 32x.

Select the correct option

Chat

Ask questions about the content or request clarifications