🌌 Calculus Kingdom · Calculus

Transcendental Derivatives

Differentiate the functions that are not powers of x: exponentials of any base, logarithms, tangent and secant, their compositions and products, and the inverse of a function at a point.

In short

  • ex is its own derivative, and every other exponential goes through it: bx = ex*ln b, so d/dx of bx = ln(b)*bx. The variable sits in the exponent, so the power rule never applies.
  • d/dx of ln(u) = u'/u β€” the derivative of the inside over the inside. That is why ln(5x) and ln(x) have the same derivative, and why log base b of x carries an ln(b) underneath.
  • Tangent, secant, cotangent and cosecant all come out of the quotient rule on sin and cos, and the two names beginning with "co" are the two whose derivatives are negative.
  • When x is in the base and the exponent, take ln, differentiate, and multiply back by y. When you want the slope of an inverse, take the reciprocal of f' at the mirrored point: g'(b) = 1/f'(a) where f(a) = b.

Why e is the base calculus chooses

Every function you have differentiated so far has been built out of powers of x, and the power rule handled all of them. The functions in this craft are different: they are transcendental, which means no amount of algebra with powers of x will produce them. Exponentials, logarithms and the tangent family all sit outside the reach of the power rule, and each one needs a rule of its own.

Start with the exponential, and with the reason e exists at all. Look at what happens to 2x when x moves a tiny step h:

(2x+h - 2x)/h = 2x * (2h - 1)/h

The 2x comes straight out of the front, so the derivative of 2x is 2x multiplied by some fixed number β€” the limit of (2h - 1)/h. For base 2 that number is about 0.693. For base 3 it is about 1.099. Somewhere between 2 and 3 there is a base where the number is exactly 1, and that base is e. So:

d/dx of ex = ex

ex is the one function that is its own derivative. That is the whole reason it is everywhere in this subject.

Any other base goes through e. Since b = eln b, you can write bx = ex*ln(b), and the chain rule then gives

d/dx of bx = ln(b)*bx

The fixed number that appeared above is ln(b): ln(2) = 0.693..., ln(3) = 1.099..., and ln(e) = 1, which is why base e is the tidy one.

The exponent is where the chain rule enters. If the exponent is kx rather than x, the inside has derivative k, so the answer picks up a factor of k:

d/dx of e3x = 3e3x d/dx of 5e2x = 10e2x d/dx of 24x = 4*ln(2)*24x

The x is in the exponent, never in the base, so the power rule has nothing to bring down. Writing d/dx of 2x as x*2x-1 is the single most common slip in this whole craft.

Logarithms, natural and otherwise

The natural logarithm is the inverse of ex, and its derivative comes straight out of that. Write y = ln(x), so ey = x, and differentiate both sides with respect to x:

ey * (dy/dx) = 1, so dy/dx = 1/ey = 1/x

d/dx of ln(x) = 1/x (for x > 0)

With the chain rule attached, the rule becomes the one you will use every time:

d/dx of ln(u) = u'/u

the derivative of the inside, over the inside. Three consequences are worth knowing by heart.

  • ln(5x) has derivative 1/x, not 5/x. The chain rule gives 5/(5x), and the 5 cancels. The log law says the same thing: ln(5x) = ln(5) + ln(x), and ln(5) is a constant, so it contributes nothing. Multiplying the inside by a constant slides the graph up; it does not tilt it.
  • ln(x4) has derivative 4/x. Bring the exponent down first with the log law: ln(x4) = 4ln(x).
  • ln(2x + 3) has derivative 2/(2x + 3). Here the inside really does have a derivative worth keeping.

A logarithm to another base changes base first. Since log base b of x = ln(x)/ln(b), and ln(b) is a fixed number,

d/dx of (log base b of x) = 1/(x*ln(b))

Only base e gives the clean 1/x. Base 10 leaves 1/(x*ln(10)), and there is no way to make that ln(10) go away.

Tangent, secant, cotangent and cosecant

You already know that sin x differentiates to cos x and cos x to -sin x. Everything else in trigonometry is built from those two by division, so everything else comes from the quotient rule. Nothing here has to be memorised as a separate fact β€” you can rebuild any of the four in about fifteen seconds.

Tangent, for instance:

tan x = sin x / cos x (tan x)' = (cos x * cos x - sin x * (-sin x)) / cos2 x = (cos2 x + sin2 x) / cos2 x = 1 / cos2 x = sec2 x

Secant is the same move with u = 1 on top:

sec x = 1/cos x (sec x)' = (0 * cos x - 1 * (-sin x)) / cos2 x = sin x / cos2 x = (1/cos x)(sin x/cos x) = sec x tan x

The other two come out the same way, and the whole family is:

  • d/dx of tan x = sec2 x
  • d/dx of sec x = sec x tan x
  • d/dx of cot x = -csc2 x
  • d/dx of csc x = -csc x cot x

The two names that start with "co" are the two whose derivatives are negative. Cotangent and cosecant both decrease wherever they are defined, and their minus signs are part of the rule, not an optional extra.

When one of these has an inside, the chain rule attaches as usual: d/dx of tan(3x) = 3*sec2(3x), which written without the secant name is 3/cos(3x)2. And when a slope is wanted at a specific angle, differentiate first and substitute second: at x = pi/3 the slope of y = tan x is sec2(pi/3) = 1/(1/2)2 = 4.

Mixing families: products, quotients and compositions

Nothing new is needed once the individual rules are in place β€” the product, quotient and chain rules do not care which family a factor comes from. What changes is that you now have to notice which structure is outermost before you start.

Compositions. Differentiate the outer function, leave the inside exactly as it is, and multiply by the derivative of the inside.

d/dx of ex^2 = 2x*ex^2 d/dx of ln(x2 + 1) = 2x/(x2 + 1) d/dx of sin(ex) = ex*cos(ex) d/dx of ln(cos x) = -sin(x)/cos(x)

Notice the third one: the outer sine is differentiated to a cosine of the same inside, ex, not of x.

Products. Two terms, always.

d/dx of x*ex = ex + x*ex = ex*(x + 1) d/dx of x2*ln(x) = 2x*ln(x) + x = x*(2ln(x) + 1) d/dx of ex*sin x = ex*sin x + ex*cos x = ex*(sin x + cos x)

In the middle line, x2 * (1/x) simplifies to x, which is why the answer is tidier than you might expect.

Quotients. The term with u' comes first, and the denominator is squared.

d/dx of (ex/x) = (ex*x - ex)/x2 = ex*(x - 1)/x2 d/dx of (ln(x)/x) = (x*(1/x) - ln x)/x2 = (1 - ln x)/x2

A last piece of advice that saves more marks than any rule: factorise at the end, not in the middle. Get every term written down first, then look for what they share.

Two tricks: logarithmic differentiation and inverses

When x is in the base AND in the exponent, no rule applies. y = xx is not a power (the exponent is not constant) and not an exponential (the base is not constant). The way through is to take a logarithm first, which drags the exponent down to where the product rule can reach it.

y = xx ln y = x*ln x (take ln of both sides) (1/y)(dy/dx) = ln x + x*(1/x) = ln x + 1 (differentiate; the left side needs the chain rule) dy/dx = y*(ln x + 1) = xx*(ln x + 1) (multiply back by y)

Take ln, differentiate, multiply back. The left-hand side always becomes (1/y)(dy/dx), because y is a function of x. Forgetting the last step β€” multiplying back by y β€” is what leaves an answer that is only half the size it should be.

The same trick tames an ugly product: for f(x) = x2*(x + 1)3, taking ln turns the product into a sum, ln f = 2ln x + 3ln(x + 1), so f'/f = 2/x + 3/(x + 1), and f' = f(x)*(2/x + 3/(x + 1)).

The inverse-function rule. The graph of an inverse g is the graph of f reflected in the line y = x. Reflecting swaps the run and the rise, so it turns a slope into its reciprocal β€” read at the mirrored point:

if f(a) = b, then g'(b) = 1/f'(a)

The point matters as much as the reciprocal. For f(x) = x3 + x, to find g'(2) you first solve f(a) = 2, which gives a = 1, and then take 1/f'(1) = 1/4. Using f'(2) instead would be reading the slope in the wrong place entirely.

That rule is where the inverse trigonometric derivatives come from. Writing y = arcsin x means sin y = x, so cos(y)*(dy/dx) = 1 and dy/dx = 1/cos y = 1/sqrt(1 - x2). The same argument on tan y = x gives 1/(1 + x2):

  • d/dx of arcsin x = 1/sqrt(1 - x2)
  • d/dx of arccos x = -1/sqrt(1 - x2)
  • d/dx of arctan x = 1/(1 + x2)

Two square roots and one without: the pair that came from sine and cosine share sqrt(1 - x2), and the tangent's has 1 + x2 and no root at all.

Worked examples

Example 1

f(x) = 3*24x. Find f'(x).

  1. The base is 2, not e, so route it through e: 24x = e4x*ln(2).
  2. The outer function is eu, which differentiates to eu, so nothing changes there.
  3. The inside is 4x*ln(2), whose derivative is 4*ln(2).
  4. f'(x) = 3 * 4*ln(2) * 24x = 12*ln(2)*24x.
  5. Check the shape: an exponential differentiates to a constant multiple of itself, and here that constant is 12*ln(2).

Example 2

y = x*tan x, with x in radians. Find the slope of the curve at x = pi/4, exactly.

  1. The outermost structure is a product, so start with the product rule: u = x and v = tan x.
  2. u' = 1, and v' = sec2 x, which the quotient rule on sin x / cos x produces.
  3. y' = u'v + uv' = tan x + x*sec2 x.
  4. Only now substitute the point. tan(pi/4) = 1 and cos(pi/4) = sqrt(2)/2, so sec2(pi/4) = 1/(1/2) = 2.
  5. y'(pi/4) = 1 + (pi/4)(2) = 1 + pi/2.
  6. Leave it as 1 + pi/2. An exact answer keeps the pi rather than rounding it to 2.571.

Example 3

y = x2x, for x > 0. Find dy/dx.

  1. x appears in the base and in the exponent, so neither the power rule nor the exponential rule applies. Take logarithms.
  2. ln y = 2x*ln x.
  3. Differentiate both sides. The left side is a composition, so it becomes (1/y)(dy/dx).
  4. The right side is a product: (2x)*(ln x) differentiates to 2ln x + 2x*(1/x) = 2ln x + 2.
  5. (1/y)(dy/dx) = 2ln x + 2, so dy/dx = y*(2ln x + 2).
  6. Multiply back by y = x2x: dy/dx = x2x*(2ln x + 2).

Example 4

f(x) = x3 + 2x is increasing everywhere, so it has an inverse g. Find g'(12).

  1. The rule is g'(b) = 1/f'(a) where f(a) = b, so first find the a that maps to 12.
  2. Try small whole numbers: f(2) = 8 + 4 = 12, so a = 2 and g(12) = 2.
  3. Differentiate f: f'(x) = 3x2 + 2.
  4. Evaluate at the mirrored point, not at 12: f'(2) = 12 + 2 = 14.
  5. g'(12) = 1/14.
  6. Sanity check: f is steep at x = 2, so its mirror image is shallow at x = 12, and a small answer is exactly what you should expect.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

f(x) = ex Find f'(x). Give your answer as an expression in x.

Answer: ex

  1. Outer: eu differentiates to eu
  2. Inner: u = x, so u' = 1
  3. f'(x) = ex

Problem 2

Difficulty 3 of 5

f(x) = ln(x2), for x > 0. Find f'(x). Give your answer as an expression in x.

Answer: 2/x

  1. ln(x2) = 2ln(x)
  2. f'(x) = 2 * (1/x) = 2/x
  3. The chain rule agrees: 2x/x2 = 2/x.

Problem 3

Difficulty 4 of 5

y = csc x, with x in radians. Find the slope of the curve at x = pi/3. Give an exact answer.

Answer: -2/3

  1. csc x = 1 / sin x, so the quotient rule applies with u = 1 and v = sin x.
  2. (csc x)' = (0 * sin x - 1 * cos x) / sin2 x = -cos x / sin2 x
  3. = -(1/sin x)(cos x/sin x) = -csc x cot x
  4. Substitute x = pi/3.
  5. Slope = -2/3

Common mistakes

  • Differentiating 2x with the power rule, as x*2x-1. The power rule needs the variable in the base; here it is in the exponent, so the right answer is ln(2)*2x.
  • Losing the chain factor. d/dx of e3x is 3e3x, and d/dx of tan(5x) is 5*sec2(5x) β€” the derivative of the inside multiplies the whole answer.
  • Writing d/dx of ln(5x) as 5/x. The chain rule gives 5/(5x), and the 5 cancels: the answer is 1/x, the same as for ln(x).
  • Writing d/dx of ln(x2 + 1) as 1/(x2 + 1). The numerator is the derivative of the inside, so the answer is 2x/(x2 + 1).
  • Reading the inverse-function rule at the wrong point, as 1/f'(b) instead of 1/f'(a). Find the a with f(a) = b first, and evaluate f' there.

What you should be able to do

  • Differentiate ekx, bx, ln x and log_b x.
  • Derive the derivatives of tan, sec, cot and csc from the quotient rule.
  • Apply the chain rule through exponential, logarithmic and trigonometric functions, and use logarithmic differentiation.
  • Find the derivative of an inverse function at a point.

Where this fits in the curriculum

Common Core

  • FUN-3.A

    AP Calculus AB, Unit 2 β€” Calculate derivatives of familiar functions: e^x, ln x, sin x and cos x.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-3.B

    AP Calculus AB, Unit 2 β€” Calculate derivatives of products and quotients of differentiable functions, including tan, cot, sec and csc.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-3.C

    AP Calculus AB, Unit 3 β€” Calculate derivatives of compositions of differentiable functions.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-3.E

    AP Calculus AB, Unit 3 β€” Calculate derivatives of inverse and inverse trigonometric functions.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

Learn these first