Courses · Calculus 1 · Unit guide
Calculus 1: Differentiation rules
How to differentiate powers, products, quotients, trig, exponential and log functions
This unit covers: Power, product and quotient rules, derivatives of trigonometric, exponential and logarithmic functions.

Do you think the derivative of x squared times sine x is just two x times cosine x? That's the mistake almost everyone makes once. In this calculus unit, we'll build the power, product and quotient rules, then the derivatives of trig, exponential and log functions, and finish with a worked example.
The power rule
The power rule says that for x to the n, you bring the exponent down in front and lower it by one, so the derivative is n times x to the n minus one. So x to the fifth becomes five x to the fourth. It works for any real exponent, so the square root of x, which is x to the one half, has derivative one half x to the minus one half.
d/dx xⁿ = n·xⁿ⁻¹ d/dx x⁵ = 5x⁴ √x = x^(1/2) d/dx √x = (1/2)x^(−1/2)
Key points.
- d/dx of xⁿ is n·xⁿ⁻¹
- Works for any real exponent n
- Rewrite roots and fractions as powers first
The product rule
When two functions are multiplied, you can't just multiply their derivatives. The product rule says the derivative of f times g is f prime times g plus f times g prime, so you differentiate one, keep the other, then swap. Take y equals x squared times sine x. The derivative of x squared is two x, times sine x, plus x squared times cosine x.
(fg)' = f'g + fg' y = x²·sin x y' = 2x·sin x + x²·cos x
Key points.
- (fg)' = f'g + fg'
- Differentiate one, keep the other, then swap
- The derivative of a product isn't f' times g'
The quotient rule
The quotient rule says the derivative of f over g is f prime g minus f g prime, all over g squared, or low d high minus high d low, over low squared. Try y equals x squared over x plus one. The top becomes two x times x plus one, minus x squared times one, and the bottom is x plus one squared. That simplifies to x squared plus two x on top.
(f/g)' = (f'g − fg')/g² y = x²/(x+1) y' = (2x(x+1) − x²·1)/(x+1)² y' = (x² + 2x)/(x+1)²
Key points.
- (f/g)' = (f'g − fg')/g²
- Low d high minus high d low, over low squared
- Simplify the numerator at the end
Product rule vs quotient rule
These two rules get mixed up, so let's put them side by side. The product rule has a plus sign, so the order of the two terms doesn't matter. The quotient rule has a minus sign, so order matters, and you have to start with the derivative of the top or your answer flips sign. Only the quotient rule has a denominator, and it's the bottom function squared, not differentiated.
Product rule
- (fg)' = f'g + fg'
- Plus sign, so order doesn't matter
- No denominator
Quotient rule
- (f/g)' = (f'g − fg')/g²
- Minus sign, so start with f', the top
- Divide by g squared, not by g'
Sine and cosine go in a cycle
Now the trig functions, which only differentiate this cleanly when x is measured in radians. The derivative of sine x is cosine x, and the derivative of cosine x is minus sine x. Keep going and you get minus cosine x, and then you're back to sine x, so the derivatives run in a cycle of four. That's why the fourth derivative of sine x is sine x again.
Key points.
- d/dx sin x = cos x
- d/dx cos x = −sin x
- Derivatives repeat every four steps
- Only valid with x in radians
Tangent and secant from the quotient rule
The other four trig derivatives come from the quotient rule. Write tangent x as sine x over cosine x. Low d high minus high d low gives cosine times cosine minus sine times minus sine, over cosine squared. The top is cosine squared plus sine squared, which is one, so you get one over cosine squared, which is secant squared x. In the same way, secant x differentiates to secant x tangent x.
tan x = sin x / cos x (cos x·cos x − sin x·(−sin x))/cos²x = (cos²x + sin²x)/cos²x = 1/cos²x = sec²x d/dx sec x = sec x·tan x
Key points.
- d/dx tan x = sec²x
- d/dx sec x = sec x tan x
- Co-functions get minus signs: cot x → −csc²x, csc x → −csc x cot x
The exponential function
The exponential function e to the x has a remarkable property: it's its own derivative. At every point, its slope equals its height, so at x equals zero the slope is exactly one. For any other positive base you pick up a natural log as a factor, so the derivative of a to the x is a to the x times the natural log of a, and two to the x gives two to the x times the natural log of two.
The function eˣ is its own derivative: d/dx eˣ = eˣ. The exponential rule
Key points.
- d/dx eˣ = eˣ
- The slope of eˣ equals its height, so the slope is 1 at x = 0
- d/dx aˣ = aˣ·ln a for other bases
Derivatives of logarithms
The natural log is the inverse of e to the x, and its derivative is one over x when x is positive. The natural log of the absolute value of x has the same derivative, one over x, so it covers negative x as well. A log with base a just gets divided by the natural log of a, so its derivative is one over the product of x and the natural log of a.
d/dx ln x = 1/x (x > 0) d/dx ln|x| = 1/x (x ≠ 0) d/dx logₐx = 1/(x·ln a)
Key points.
- d/dx ln x = 1/x for x > 0
- d/dx ln|x| = 1/x for all x ≠ 0
- d/dx logₐx = 1/(x·ln a)
Worked example: an exponential quotient
Here's a worked example that combines rules: f of x equals e to the x over x squared plus one. Using the quotient rule, the top is e to the x times x squared plus one, minus e to the x times two x, all over x squared plus one, squared. Factor out e to the x to get x squared minus two x plus one, which is x minus one squared. So the slope is zero only at x equals one.
f(x) = eˣ/(x²+1) f' = [eˣ(x²+1) − eˣ·2x]/(x²+1)² f' = eˣ(x² − 2x + 1)/(x²+1)² f' = eˣ(x−1)²/(x²+1)² f'(1) = 0
Key points.
- Use the quotient rule with eˣ on top
- Factor out eˣ and spot a perfect square
- The derivative is zero only at x = 1
Remember this
If you remember one thing, it's that products and quotients need their own rules, so never just multiply or divide the derivatives. Now quiz yourself: pick a few functions, decide which rule each needs, and check your answers.
Practice this unit
- Calculus 1: Differentiation Rules quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: Limits and Continuity quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: The Derivative as a Limit quiz15 multiple-choice questions with explanations · no account needed
- Calculus 1: Differentiation Rules33 flashcards · study free
- Calculus 1: Limits and Continuity36 flashcards · study free
- Calculus 1: The Derivative as a Limit32 flashcards · study free
- Calculus 1: Chain Rule and Implicit Differentiation34 flashcards · study free
Every Calculus 1 deck and quiz: the Calculus 1 page.
Other Calculus 1 unit guides
- Limits and continuityStudy guide
- The derivative as a limitStudy guide
- Chain rule and implicit differentiationStudy guide
- Related ratesStudy guide
- Curve sketching and the Mean Value TheoremStudy guide
- OptimizationStudy guide
- Linear approximation and L’Hôpital’s ruleStudy guide
- Antiderivatives and Riemann sumsStudy guide
- Fundamental Theorem of Calculus and substitutionStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.