01 / 20

Derivatives of
\(\sin x, \cos x, e^x, \ln x\)

Master the four fundamental derivative rules that unlock all of calculus: how rates of change behave for trigonometric, exponential, and logarithmic functions.

AP Calculus

What Is a Derivative?

A derivative measures the instantaneous rate of change of a function. If \( f(x) \) describes a curve, then \( f'(x) \) tells you the slope of the tangent line at every point.

Today we skip the limit grind and learn four ready-made formulas for the most important functions in mathematics.

Why These Four Functions?

\(\sin x\) & \(\cos x\)
Model waves, oscillations, and circular motion: sound, light, tides, pendulums.
\(e^x\)
Models growth and decay: populations, radioactive isotopes, compound interest.
\(\ln x\)
The inverse of \(e^x\): appears in pH, decibels, entropy, and information theory.

Visualizing \(\sin x\) and Its Derivative

Visualizing \(e^x\) and \(\ln x\)

The Four Core Rules

\(\dfrac{d}{dx}[\sin x] = \cos x\)
\(\dfrac{d}{dx}[\cos x] = -\sin x\)
\(\dfrac{d}{dx}[e^x] = e^x\)
\(\dfrac{d}{dx}[\ln x] = \dfrac{1}{x}\)

Why the Negative in \(\frac{d}{dx}[\cos x]\)?

\(\sin\) vs \(\cos\) Derivative Patterns

\(\sin x\) family \(\cos x\) family
1st derivative \(\cos x\) \(-\sin x\)
2nd derivative \(-\sin x\) \(-\cos x\)
3rd derivative \(-\cos x\) \(\sin x\)
4th derivative \(\sin x\) \(\cos x\)
Sign change? Not on 1st Yes, on 1st

How to Apply These Rules

1
Identify the outer function. Is it \(\sin(\cdot)\), \(\cos(\cdot)\), \(e^{(\cdot)}\), or \(\ln(\cdot)\)?
2
Apply the matching derivative rule from the four core formulas directly.
3
If the argument is not just \(x\), you will need the chain rule: multiply by the derivative of the inner function.
4
Simplify the result. Combine constants and reduce where possible.

Example 1: Simple Derivatives

\(f(x) = \sin x\)
\(f'(x) = \cos x\)

Direct application: the derivative of sine is cosine.
\(g(x) = \cos x\)
\(g'(x) = -\sin x\)

Remember the negative sign.
\(h(x) = e^x\)
\(h'(x) = e^x\)

The exponential is unchanged by differentiation.
\(k(x) = \ln x\)
\(k'(x) = \dfrac{1}{x}\)

Valid for \(x > 0\).

Example 2: With Coefficients

Find \(\dfrac{d}{dx}[3\sin x + 5e^x - 2\ln x]\).

1
Split by sum/difference rule: differentiate each term separately.
2
Constants pull out: \(\frac{d}{dx}[3\sin x] = 3\cos x\)
3
Apply to each: \(5e^x\) stays \(5e^x\), and \(-2\ln x\) becomes \(-\frac{2}{x}\)
4
Final answer: \(3\cos x + 5e^x - \dfrac{2}{x}\)

Example 3: Chain Rule Preview

Find \(\dfrac{d}{dx}[\sin(3x)]\).

1
Outer function: \(\sin(\cdot)\), so derivative starts as \(\cos(3x)\).
2
Inner function: \(3x\), whose derivative is \(3\).
3
Multiply: \(\cos(3x) \cdot 3 = 3\cos(3x)\).

Chain Rule with \(e^x\) and \(\ln x\)

\(\frac{d}{dx}[e^{5x}]\)
Outer: \(e^{(\cdot)}\) → \(e^{5x}\)
Inner: \(5x\) → \(5\)

Result: \(5e^{5x}\)
\(\frac{d}{dx}[\ln(x^2)]\)
Outer: \(\ln(\cdot)\) → \(\frac{1}{x^2}\)
Inner: \(x^2\) → \(2x\)

Result: \(\frac{2x}{x^2} = \frac{2}{x}\)

Common Mistakes to Avoid

✕ Forgetting the Negative
Writing \(\frac{d}{dx}[\cos x] = \sin x\) instead of \(-\sin x\). The negative sign is critical.
✕ Wrong \(\ln x\) Derivative
Writing \(\frac{d}{dx}[\ln x] = x\) or \(\frac{d}{dx}[\ln x] = \frac{1}{\ln x}\). The correct answer is \(\frac{1}{x}\).
✕ Missing the Chain Rule
Writing \(\frac{d}{dx}[\sin(2x)] = \cos(2x)\) instead of \(2\cos(2x)\). Always multiply by the inner derivative.

Summary Table

Function \(f(x)\) Derivative \(f'(x)\) With Chain Rule \(f(g(x))\)
\(\sin x\) \(\cos x\) \(\cos(g(x)) \cdot g'(x)\)
\(\cos x\) \(-\sin x\) \(-\sin(g(x)) \cdot g'(x)\)
\(e^x\) \(e^x\) \(e^{g(x)} \cdot g'(x)\)
\(\ln x\) \(\dfrac{1}{x}\) \(\dfrac{g'(x)}{g(x)}\)

Question 1 of 5

What is \(\dfrac{d}{dx}[\sin x]\)?

Question 2 of 5

What is \(\dfrac{d}{dx}[\cos x]\)?

Question 3 of 5

What is \(\dfrac{d}{dx}[e^x]\)?

Question 4 of 5

What is \(\dfrac{d}{dx}[\ln x]\)?

Question 5 of 5

Find \(\dfrac{d}{dx}[4\cos x - 2e^x + \ln x]\).