← Unit 2 Guide

Derivatives of the Key Functions

The power rule handles powers of \(x\). But calculus runs on a handful of other essential functions — the trig functions, the natural exponential, the natural log. This lesson is about knowing their derivatives cold, and seeing the beautiful patterns that make them worth remembering.
Some derivatives you compute. These eight you memorize — but the good news is they’re full of pattern, not arbitrary. \(\sin\) and \(\cos\) are each other’s derivatives (with a sign that flips), endlessly cycling. \(e^x\) is the one function that is its own derivative. And the other four trig functions all follow from \(\sin\) and \(\cos\) — the quotient rule (which you’ll learn next lesson) turns them into clean formulas worth knowing now. Learn the patterns and the table remembers itself.
Differentiating usually changes a function into something different. But two of this lesson's functions break that rule in beautiful ways — meet them before the details.
e^x: at every point, the slope equals the height
\(e^x\) is its own derivative — the slope matches the height everywhere. And \(\sin\) and \(\cos\) chase each other in a four-step loop that never ends. These aren't facts to dread memorizing — they're patterns to enjoy.

The slope of sine is cosine

Here's the most beautiful fact in this lesson, and you can watch it happen. Trace along \(\sin x\) and read off the slope at each point. Plot those slopes and they spell out a curve you already know — \(\cos x\). The derivative of sine literally is cosine.

trace x

What you're looking at: the lime curve is the function; the gold dot is its slope, dropping down to trace the derivative curve.

Slope = the other function

Watch where \(\sin\) is steepest (at \(x=0\)) — that's where \(\cos\) is highest. Where \(\sin\) peaks and flattens, \(\cos\) crosses zero. The slope story and the cosine curve are the same story.

If the slope of \(\sin\) is \(\cos\), a natural question follows: what’s the slope of \(\cos\)? And then the slope of that? The answer loops back on itself.

Differentiate four times and you're home

Since \(\sin\) gives \(\cos\), what does \(\cos\) give? \(-\sin\). And that gives \(-\cos\), which gives \(\sin\) again. The derivatives of sine march around a four-step cycle forever. Step through it.

Where we are in the cycle

This is why higher-order derivatives of \(\sin\) and \(\cos\) are easy: just count steps around the cycle. The 100th derivative of \(\sin x\)? \(100 = 4\cdot25\), so you're back at \(\sin x\).

Sine and cosine trade places forever. The next function does something even stranger — differentiate it and nothing changes at all.

The function that is its own derivative

\(e^x\) is special in a way no other function is: its slope at every point equals its height at that point. Differentiating it changes nothing — \(\frac{d}{dx}e^x = e^x\). Drag along the curve and watch the height and the slope stay locked together.

point x

What you're looking at: the blue bar is the height \(e^x\); the gold line is the tangent. Its slope always equals the bar's height.

Height equals slope
height \(e^x\)
slope \(\frac{d}{dx}e^x\)

They're identical at every \(x\) — the defining property of \(e^x\). Its inverse, \(\ln x\), has an equally tidy derivative, and a beautiful reason behind it — that's the very next section.

Three functions down: \(\sin\), \(\cos\), \(e^x\) (plus \(\ln\)). The remaining trig functions aren’t new — they’re all built from \(\sin\) and \(\cos\).

The other four, from sine and cosine

\(\tan\), \(\cot\), \(\sec\), \(\csc\) are all just combinations of \(\sin\) and \(\cos\). Their derivatives can be derived with the quotient rule — a tool you’ll learn next lesson — but for now, know the four results cold. Tap each to see it and a note on where it comes from.

The sign pattern
derivative sign

Notice the symmetry: the three “co-” functions — \(\cos\), \(\cot\), \(\csc\) — all have negative derivatives. The other three are positive. That single pattern halves what you have to memorize.

That covers the trig side. One core function from the start of this lesson still needs its why: \(\ln x\). It comes straight out of the \(e^x\) you just met.

And its mirror image: ln x

The natural log is the inverse of \(e^x\) — reflect \(e^x\) across the line \(y=x\) and you get \(\ln x\). That reflection is the whole secret to its derivative. When you flip a curve across \(y=x\), you swap rise and run — so the slopes turn into reciprocals. That's why \(\frac{d}{dx}\ln x = \frac{1}{x}\).

point x

What you're looking at: \(\ln x\) in lime and its mirror \(e^x\) in blue, reflected across the dashed \(y=x\). The two dots are reflections of each other.

Slope is exactly 1/x
at x =2.00
slope 1/x0.500

Drag toward \(0\) and the slope shoots up — \(\ln x\) is nearly vertical there. Drag right and it flattens toward \(0\). The slope is always the reciprocal of the input: small \(x\), steep; large \(x\), gentle.

The whole idea on one card

\(\sin\) and \(\cos\) are each other’s derivatives, with a sign flip: \(\sin\to\cos\to-\sin\to-\cos\)
\(e^x\) is its own derivative; \(\ln x\) differentiates to \(\tfrac1x\)
The four extra trig derivatives all follow from \(\sin\) and \(\cos\) by the quotient rule
The “co-” functions — \(\cos,\cot,\csc\) — all carry a negative sign in their derivatives

The ideas everything else builds on

Sine and cosine trade

Each is the other’s derivative: \(\sin\to\cos\), \(\cos\to-\sin\). Cosine picks up the minus.

eˣ is its own derivative

The one function where slope equals height everywhere. \(\frac{d}{dx}e^x=e^x\), forever unchanged.

ln becomes 1/x

The natural log’s derivative is the reciprocal: \(\frac{d}{dx}\ln x=\frac1x\). Short, clean, essential.

The co- pattern

The three “co-” functions (cos, cot, csc) all have negative derivatives. The pattern halves the memorizing.

Your turn

Five problems across the key functions — sine and cosine, \(e^x\) and \(\ln x\), a higher-order cycle, and the extra trig. Try each before revealing.

Quick quiz

Eight fast checks across the whole lesson.

Question 1 of 8
Score: 0 / 0

Common mistakes & exam tips

Sign error on \(\frac{d}{dx}\cos x\)

It's \(-\sin x\), not \(\sin x\). Cosine's derivative carries the minus sign — the single most common slip on this material.

Using the power rule on \(e^x\)

\(e^x\) is not \(x^n\) — the variable is in the exponent. Its derivative is just \(e^x\), not \(xe^{x-1}\).

Confusing \(\sec^2 x\) with \(\sec x\tan x\)

\(\frac{d}{dx}\tan x=\sec^2 x\), but \(\frac{d}{dx}\sec x=\sec x\tan x\). Different functions, easy to swap — learn them as a pair.

Forgetting the co- minus signs

\(\cot\) and \(\csc\) both have negative derivatives (\(-\csc^2x\) and \(-\csc x\cot x\)). If your trig derivative is missing a minus, check whether it's a co- function.

Miscounting the sine cycle

The cycle is \(\sin\to\cos\to-\sin\to-\cos\), period 4. For the \(n\)th derivative, reduce \(n\) mod 4 — don't lose track of where the minus signs fall.

Writing \(\frac{d}{dx}\ln x = \ln x\) or \(x\)

The derivative of \(\ln x\) is \(\frac1x\). It is not the log of anything, and it's not \(x\).

On the AP exam

You can now see limits. Next: computing them — the limit laws, why plugging in usually just works, and the algebra toolkit (factoring, conjugates) for when it doesn't, including that \(\tfrac{\sqrt{x+4}-2}{x}\) mystery from the table. Computing Limits is next — or head back to the Unit 2 Guide.