← Back to Calculus

Power, exponential, trig rules

Computing every derivative from the limit definition would be exhausting. A handful of rules, each proved once from the definition, lets you differentiate most formulas in seconds.

Why rules?

The limit definition always works, but it is slow. Mathematicians apply the definition once to each basic kind of function, record the pattern as a rule, and then combine the rules. Learning these rules is like learning multiplication tables: after a little practice, you will differentiate polynomials without thinking.

Constants and the power rule

The derivative of a constant is \(0\), because a constant function is a flat line. The power rule says that for any real number \(n\), the derivative of \(x^n\) is \(n x^{n-1}\): bring the exponent down in front and lower it by one. So \(\frac{d}{dx}x^5 = 5x^4\), \(\frac{d}{dx}x = 1\), and \(\frac{d}{dx}\sqrt{x} = \frac{d}{dx}x^{1/2} = \frac{1}{2}x^{-1/2}\).

\frac{d}{dx} x^n = n x^{n-1}

Rewriting before differentiating

The power rule needs powers of \(x\), so rewrite roots and fractions first. \(\frac{1}{x^3} = x^{-3}\), whose derivative is \(-3x^{-4} = -\frac{3}{x^4}\). \(\sqrt[3]{x^2} = x^{2/3}\), whose derivative is \(\frac{2}{3}x^{-1/3}\). Rewriting is the single most useful habit for avoiding mistakes with the power rule.

Sum and constant multiple rules

Derivatives respect addition and constant multiples: the derivative of a sum is the sum of the derivatives, and constants come along for the ride. That lets you differentiate any polynomial term by term. For example, \(\frac{d}{dx}(4x^3 - 2x^2 + 7x - 9) = 12x^2 - 4x + 7\).

\frac{d}{dx}[a f(x) + b g(x)] = a f'(x) + b g'(x)

The natural exponential function

The number \(e \approx 2.71828\) is chosen precisely so that the slope of \(e^x\) at \(x = 0\) is exactly \(1\). The remarkable consequence is that \(e^x\) is its own derivative: at every point, its slope equals its height. That is why \(e^x\) appears whenever something grows at a rate proportional to its size, from bacteria to compound interest.

\frac{d}{dx} e^x = e^x

Other exponentials and logarithms

For any base \(a > 0\), \(\frac{d}{dx}a^x = a^x \ln a\). The natural logarithm is the inverse of \(e^x\), and its derivative is \(\frac{1}{x}\) for \(x > 0\). These two rules pair up: \(\ln\) turns products into sums, and its derivative turns into a simple reciprocal. Do not confuse \(a^x\) (variable exponent) with \(x^n\) (variable base); they need different rules.

\frac{d}{dx}\ln x = \frac{1}{x}

Sine and cosine

Using the limits \(\frac{\sin h}{h} \to 1\) and \(\frac{\cos h - 1}{h} \to 0\), one can show that the derivative of \(\sin x\) is \(\cos x\) and the derivative of \(\cos x\) is \(-\sin x\). Check with the graphs: \(\sin x\) is steepest upward at \(x = 0\), where \(\cos x = 1\); at the peak \(x = \frac{\pi}{2}\), \(\sin x\) is flat and \(\cos x = 0\). These rules require \(x\) measured in radians.

\frac{d}{dx}\sin x = \cos x,\quad \frac{d}{dx}\cos x = -\sin x

The other trig functions

From sine and cosine come the rest: \(\frac{d}{dx}\tan x = \sec^2 x\), \(\frac{d}{dx}\sec x = \sec x \tan x\), \(\frac{d}{dx}\cot x = -\csc^2 x\), and \(\frac{d}{dx}\csc x = -\csc x \cot x\). A memory trick: the 'co' functions all have a minus sign in their derivatives. You can always derive these with the quotient rule from the next lesson.

\frac{d}{dx}\tan x = \sec^2 x

Worked example: mixing the rules

Differentiate \(f(x) = 3x^4 - \frac{2}{x} + 5e^x - 4\cos x\). Rewrite \(\frac{2}{x}\) as \(2x^{-1}\). Term by term: \(12x^3\), then \(+2x^{-2}\), then \(5e^x\), then \(+4\sin x\). So \(f'(x) = 12x^3 + \frac{2}{x^2} + 5e^x + 4\sin x\). Watch the signs: subtracting a negative derivative produces a plus.

Worked example: a tangent line

Find the tangent line to \(y = x^3 - 3x\) at \(x = 2\). The point is \((2, 2)\). The derivative is \(3x^2 - 3\), so the slope is \(3(4) - 3 = 9\). In point-slope form, \(y - 2 = 9(x - 2)\), or \(y = 9x - 16\). Where is the tangent horizontal? Solve \(3x^2 - 3 = 0\): at \(x = \pm 1\).

Common mistakes

Differentiating \(e^x\) as \(xe^{x-1}\), which wrongly applies the power rule to an exponential. Forgetting that the derivative of a constant is \(0\). Losing the minus sign in \(\frac{d}{dx}\cos x = -\sin x\). Applying the power rule to \(\frac{1}{x^2}\) without rewriting it as \(x^{-2}\). Using degrees instead of radians with the trig rules.

Try it yourself

Differentiate \(g(x) = 2\sqrt{x} + 3\ln x - \sin x\). Answer: rewrite \(2\sqrt{x}\) as \(2x^{1/2}\), whose derivative is \(x^{-1/2} = \frac{1}{\sqrt{x}}\). So \(g'(x) = \frac{1}{\sqrt{x}} + \frac{3}{x} - \cos x\).

Key takeaways

Constants have derivative \(0\). Power rule: \(n x^{n-1}\), after rewriting roots and fractions as powers. Derivatives split over sums and keep constant multiples. \(e^x\) is its own derivative, \(\ln x\) has derivative \(\frac{1}{x}\), \(\sin\) goes to \(\cos\), and \(\cos\) goes to \(-\sin\).

Flashcard

\frac{d}{dx} c = 0

Derivative of a constant

A constant function is flat, so its slope is zero.

Check your understanding

Differentiate f(x) = 5x^3 - 4e^x + 2.

Take the unit quiz

← Previous lesson Next lesson →