
In the last chapter you computed derivatives from the limit definition. That works, but it is slow and easy to get wrong. In this chapter you will build a toolbox of rules that lets you differentiate almost any formula you meet in calculus in a few lines. Each rule comes with a reason, a method, and the classic mistake to avoid.
1. The basic rules we already know
Everything in this chapter sits on top of a few simple facts. Let \( c \) be a constant and let \( f \) and \( g \) be differentiable functions.
- Constant: \( \dfrac{d}{dx}(c)=0 \).
- Power: \( \dfrac{d}{dx}(x^n)=nx^{n-1} \) for any real number \( n \).
- Constant multiple: \( (c\,f)'=c\,f' \).
- Sum and difference: \( (f\pm g)'=f'\pm g' \).
These rules are linear: they handle sums and constant multiples term by term. They say nothing about products, quotients, or functions placed inside other functions. Those cases need the new rules below.
2. The product rule
Suppose a rectangle has width \( f(t) \) and height \( g(t) \), and both grow with time. The area \( f\,g \) grows because the width grows and because the height grows. That is exactly what the product rule says.
If \( f \) and \( g \) are differentiable, then \[ (f\,g)'=f'\,g+f\,g'. \]
The derivative of a product is not the product of the derivatives. Test it with \( x\cdot x=x^2 \): the true derivative is \( 2x \), but \( (1)(1)=1 \) is wrong.
Differentiate \( h(x)=(x^2+3x)\,e^{x} \). Take \( f=x^2+3x \) and \( g=e^x \), so \( f'=2x+3 \) and \( g'=e^x \).
\[ h'(x)=(2x+3)e^x+(x^2+3x)e^x=(x^2+5x+3)\,e^x. \]
The figure shows \( f(x)=x\,e^x \). Here \( f'(x)=1\cdot e^x+x\,e^x=(1+x)e^x \), so the tangent at \( P(1,e) \) has slope \( f'(1)=2e\approx 5.44 \).
3. The quotient rule
A quotient \( \dfrac{f}{g} \) is a product \( f\cdot g^{-1} \), and working it out gives a compact formula.
If \( f \) and \( g \) are differentiable and \( g(x)\neq 0 \), then \[ \left(\dfrac{f}{g}\right)'=\dfrac{f'\,g-f\,g'}{g^{2}}. \]
Say it aloud: “low d-high minus high d-low, over low squared.” The order of the two terms on top matters because of the minus sign.
Differentiate \( q(x)=\dfrac{x^2}{x+1} \). Here \( f=x^2 \), \( g=x+1 \).
\[ q'(x)=\dfrac{2x(x+1)-x^2\cdot 1}{(x+1)^2}=\dfrac{x^2+2x}{(x+1)^2}. \]
4. The chain rule
Many functions are built by plugging one function into another, like \( \sqrt{1+x^3} \) or \( \sin(5x) \). We call \( f(g(x)) \) a composite function, with \( g \) the inner function and \( f \) the outer function.
If \( g \) is differentiable at \( x \) and \( f \) is differentiable at \( g(x) \), then \[ \dfrac{d}{dx}f(g(x))=f'(g(x))\cdot g'(x). \] In Leibniz notation, with \( y=f(u) \) and \( u=g(x) \): \( \dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx} \).
Think of gears: if \( u \) changes 3 times as fast as \( x \) and \( y \) changes 2 times as fast as \( u \), then \( y \) changes 6 times as fast as \( x \). A special case you will use constantly is the general power rule: \( \dfrac{d}{dx}\big(u^n\big)=n\,u^{n-1}\,u' \).
- Identify the outer function and the inner function.
- Differentiate the outer function, leaving the inner function untouched inside it.
- Multiply by the derivative of the inner function.
- Repeat from the outside in if there are more than two layers.
Differentiate \( r(x)=\sqrt{1+x^3} \). The outer function is \( \sqrt{u} \), the inner function is \( u=1+x^3 \).
\[ r'(x)=\dfrac{1}{2\sqrt{1+x^3}}\cdot 3x^2=\dfrac{3x^2}{2\sqrt{1+x^3}}. \]
5. Derivatives of trigonometric functions
Throughout calculus, angles are measured in radians. These formulas are false in degrees.
| Function | Derivative |
|---|---|
| \( \sin x \) | \( \cos x \) |
| \( \cos x \) | \( -\sin x \) |
| \( \tan x \) | \( \sec^2 x \) |
| \( \cot x \) | \( -\csc^2 x \) |
| \( \sec x \) | \( \sec x\tan x \) |
| \( \csc x \) | \( -\csc x\cot x \) |
Look at the graphs: the violet curve \( \sin x \) has a horizontal tangent exactly where the orange curve \( \cos x \) crosses zero, and it climbs fastest where \( \cos x=1 \), for example at \( x=0 \).
On my home planet we say: every function that starts with “co” (cosine, cotangent, cosecant) has a derivative with a minus sign. It is a quick way to catch sign errors.
Differentiate \( p(x)=x^2\cos(3x) \). Use the product rule, and the chain rule for \( \cos(3x) \).
\[ p'(x)=2x\cos(3x)+x^2\cdot(-3\sin(3x))=2x\cos(3x)-3x^2\sin(3x). \]
6. Derivatives of exponentials and logarithms
- \( \dfrac{d}{dx}e^x=e^x \) and \( \dfrac{d}{dx}a^x=a^x\ln a \) for \( a\gt 0 \).
- \( \dfrac{d}{dx}\ln x=\dfrac{1}{x} \) and \( \dfrac{d}{dx}\log_a x=\dfrac{1}{x\ln a} \), for \( x\gt 0 \).
- With the chain rule: \( \dfrac{d}{dx}e^{u}=u'e^{u} \) and \( \dfrac{d}{dx}\ln u=\dfrac{u'}{u} \).
The graphs of \( e^x \) and \( \ln x \) are mirror images across the dashed line \( y=x \). At \( (0,1) \) the exponential has slope 1; at \( (1,0) \) the logarithm has slope \( \tfrac{1}{1}=1 \). The slopes match because the tangent lines are also mirror images.
(a) \( \dfrac{d}{dx}\ln(x^2+1)=\dfrac{2x}{x^2+1} \). (b) \( \dfrac{d}{dx}5^{3x}=5^{3x}\cdot\ln 5\cdot 3=3\ln 5\cdot 5^{3x} \).
7. Implicit differentiation
Some curves, like a circle, are not the graph of a single function \( y=f(x) \). We can still find slopes by treating \( y \) as an unknown function of \( x \) and differentiating both sides of the equation.
- Differentiate both sides with respect to \( x \). Every time you differentiate a term with \( y \), the chain rule adds a factor \( \dfrac{dy}{dx} \).
- Gather all terms containing \( \dfrac{dy}{dx} \) on one side.
- Factor out \( \dfrac{dy}{dx} \) and divide to solve for it.
Find the slope of the circle \( x^2+y^2=25 \) at \( P(3,4) \). Differentiating gives \( 2x+2y\dfrac{dy}{dx}=0 \), so \( \dfrac{dy}{dx}=-\dfrac{x}{y} \). At \( (3,4) \) the slope is \( -\dfrac{3}{4} \), which is the orange tangent in the figure.
The point \( (1,2) \) lies on \( y^3+xy=10 \) since \( 8+2=10 \). Differentiating: \( 3y^2y'+y+x\,y'=0 \), so \( y'=-\dfrac{y}{3y^2+x} \). At \( (1,2) \): \( y'=-\dfrac{2}{13} \).
8. Logarithmic differentiation
Variable exponents such as \( x^{x} \), or long products and quotients, are painful with the earlier rules. Taking the natural logarithm first turns powers into multiples and products into sums.
- Write \( y=\dots \) and take \( \ln \) of both sides, simplifying with log laws.
- Differentiate both sides implicitly: the left side becomes \( \dfrac{y'}{y} \).
- Multiply by \( y \) and replace \( y \) by its original formula.
Differentiate \( y=x^{x^2} \) for \( x\gt 0 \). Then \( \ln y=x^2\ln x \), and differentiating gives \( \dfrac{y'}{y}=2x\ln x+x \). Therefore \( y'=x^{x^2}\,(2x\ln x+x) \).
Do not use the power rule \( nx^{n-1} \) when the exponent contains \( x \), and do not use the exponential rule \( a^x\ln a \) when the base contains \( x \). If both contain \( x \), use logarithmic differentiation.
9. Higher-order derivatives
Since \( f' \) is itself a function, we can differentiate it again to get the second derivative \( f'' \), and so on.
\( f''(x)=\dfrac{d^2y}{dx^2} \), and \( f^{(n)}(x)=\dfrac{d^ny}{dx^n} \) is the \( n \)-th derivative. If \( s(t) \) is a position, then \( s'(t) \) is velocity and \( s''(t) \) is acceleration. Graphically, \( f''\gt 0 \) means the curve bends upward and \( f''\lt 0 \) means it bends downward.
For \( f(x)=\sin(2x) \): \( f'(x)=2\cos(2x) \) and \( f''(x)=-4\sin(2x) \). For \( g(x)=e^{3x} \), each derivative multiplies by 3, so \( g^{(n)}(x)=3^n e^{3x} \).
Key takeaways
- Product rule: \( (fg)'=f'g+fg' \). Quotient rule: \( (f/g)'=\dfrac{f'g-fg'}{g^2} \).
- Chain rule: differentiate the outside, keep the inside, multiply by the derivative of the inside.
- Trig derivatives (radians only): \( (\sin)'=\cos \), \( (\cos)'=-\sin \), \( (\tan)'=\sec^2 \).
- \( (e^x)'=e^x \), \( (a^x)'=a^x\ln a \), \( (\ln x)'=1/x \), \( (\ln u)'=u'/u \).
- Implicit differentiation: every \( y \)-term gets a factor \( dy/dx \); then solve for it.
- Logarithmic differentiation handles variable exponents and long products: take \( \ln \), differentiate, multiply by \( y \).
- Second derivative = acceleration or concavity; \( f^{(n)} \) means differentiate \( n \) times.
Test yourself: quick challenge for College
Speed drill for College: how many in 60 seconds?
🚀 Keep exploring with Zyro
✏️ Math practiceDifferentiation Rules: math practice, College
📝 Math testsDifferentiation Rules: math test, College
🎯 Math quizzesDifferentiation Rules: math quiz, College
✏️ Math practiceApplications of Derivatives: math practice, College
✏️ Math practiceIntegrals and the Fundamental Theorem: math practice, College
📝 Math testsApplications of Derivatives: math test, College

