Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 39 · Differentiation Rules

Derivatives of Trig, Exponential and Log Functions

Learn the derivatives of sine, cosine, tangent, e^x, a^x and ln x, combine them with the chain rule, and verify each with numeric slopes.

So far you can differentiate powers. This lesson adds the most common transcendental functions. Learn these results by heart: they appear everywhere.

The table

Angles are in radians, because the formulas below only hold in radians.

Function Derivative
sin x cos x
cos x -sin x
tan x sec² x = 1 / cos² x
eˣ eˣ
aˣ (a > 0) aˣ ln a
ln x (x > 0) 1 / x
logₐ x 1 / (x ln a)

The number e ≈ 2.71828 is special: it is the base for which the slope of eˣ equals its height everywhere. That is why eˣ is its own derivative.

Why the sine rule works

The derivative of sin x rests on two limits: sin(h)/h → 1 and (cos h - 1)/h → 0 as h → 0. Expand sin(x + h) = sin x cos h + cos x sin h, subtract sin x, divide by h, and the result tends to cos x.

Python Numeric check of the table

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Combining with other rules

  • d/dx [sin(3x)] = 3 cos(3x) (chain rule)
  • d/dx [e^(x²)] = 2x e^(x²)
  • d/dx [ln(5x + 1)] = 5 / (5x + 1)
  • d/dx [x² sin x] = 2x sin x + x² cos x (product rule)
  • d/dx [eˣ / x] = (eˣ x - eˣ) / x² = eˣ (x - 1) / x² (quotient rule)
Python Plot a function and its derivative

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Where f' crosses zero, f has a peak or a valley.

Check with SymPy

Python Differentiate with SymPy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Here ln is the natural logarithm (base e), which is what log means in most programming languages and in SymPy.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. d/dx [cos x] equals

    The derivative of cosine is negative sine.
  2. 2. d/dx [e^(3x)] equals

    Chain rule: e^(3x) times the inner derivative 3.
  3. 3. d/dx [ln x] equals

    The derivative of the natural log is 1/x.
  4. 4. The derivative formulas for sin and cos assume x is measured in

    Degree measure introduces an extra factor of π/180.

Summary

  • (sin x)' = cos x, (cos x)' = -sin x, (tan x)' = sec² x.
  • (eˣ)' = eˣ, (aˣ)' = aˣ ln a, (ln x)' = 1/x.
  • Use radians; combine with the chain, product and quotient rules.

Next: Related Rates