Derivative Rules and Formulas, With Examples
What a derivative is, every differentiation rule you need for AP Calculus and Calculus 1, a table of common derivatives, step-by-step examples, and practice problems with answers.
Practice Derivatives FreeWhat is a derivative?
A derivative measures how fast a function is changing at one exact point. On a graph, the derivative at a point is the slope of the tangent line, the line that just touches the curve there. If f(t) is your position at time t, then f′(t) is your velocity at that instant.
Formally, the derivative is the limit of the slope between two points on the curve as the points move together:
You will see the derivative written several ways. They all mean the same thing: , , and . If limits are new to you, read limits in calculus first.
Finding a derivative from the definition
For f(x) = x², substitute into the limit definition:
So the slope of y = x² at any point is 2x: at x = 3 the slope is 6, and at x = 0 it is 0 (the bottom of the parabola). Working from the definition every time would be slow, which is why the rules below exist.
Derivative rules
These seven rules let you differentiate almost any function you will meet in a first calculus course. Each is a shortcut for the limit definition above.
Constant rule
A constant never changes, so its rate of change is zero.
Power rule
Works for any real n: negative exponents, fractions and roots included.
Constant multiple rule
Constants in front come along for the ride.
Sum and difference rule
Differentiate a sum one term at a time.
Product rule
"First prime times second, plus first times second prime."
Quotient rule
"Low d-high minus high d-low, over low squared." The order matters because of the minus sign.
Chain rule
Derivative of the outside (inside left alone) times the derivative of the inside.
Which rule do I use?
- Terms added together → differentiate each term separately (sum rule).
- x raised to a number, including roots and 1/x → rewrite with exponents, then use the power rule.
- Two functions multiplied → product rule.
- One function divided by another → quotient rule (or rewrite as a product with a negative exponent).
- A function inside another function → chain rule. Most mistakes on tests come from missing this.
Derivatives of common functions
Memorize these alongside the rules. Combined with the chain rule they cover exponential, logarithmic, trigonometric and inverse trig functions.
| Function f(x) | Derivative f′(x) |
|---|---|
A pattern for the trig derivatives: the functions that start with “co” (cos, cot, csc) all have a minus sign in their derivatives. The trig derivatives only work with angles in radians.
Worked derivative examples
Example 1: Power rule on a polynomial
EasyFind f′(x) for f(x) = 3x⁴ − 5x² + 7x − 2
Example 2: Roots and fractions
EasyFind f′(x) for f(x) = √x + 4/x²
Example 3: Product rule
MediumFind the derivative of y = x² sin x
Example 4: Quotient rule
MediumFind the derivative of y = (x² + 1) / (x − 3)
Example 5: Chain rule
MediumFind the derivative of y = (3x² + 1)⁵
Example 6: Chain rule twice
HardFind the derivative of y = sin²(3x)
Example 7: Equation of a tangent line
MediumFind the tangent line to y = x³ − 2x at x = 1
Implicit differentiation and higher derivatives
Implicit differentiation
Some curves, like the circle x² + y² = 25, are not written as y = f(x). Differentiate both sides with respect to x anyway, treating y as a function of x, so every y term gets a factor of dy/dx from the chain rule:
At the point (3, 4) on the circle, the slope is −3/4.
Second and higher derivatives
The derivative of a derivative is the second derivative, written f″(x) or d²y/dx². For f(x) = x⁴, f′(x) = 4x³ and f″(x) = 12x². If f gives position, f′ is velocity and f″ is acceleration. On a graph, the second derivative tells you concavity: f″ > 0 means the curve bends upward.
What derivatives are used for
- Velocity and acceleration. A ball dropped from rest falls s(t) = 4.9t² meters in t seconds. Its velocity is s′(t) = 9.8t, so after 3 seconds it is falling at 29.4 m/s.
- Tangent lines and linear approximation. Near a point, a curve is almost a straight line with slope f′(a). This is how calculators estimate values like √4.1.
- Increasing and decreasing. Where f′(x) > 0 the function rises; where f′(x) < 0 it falls.
- Optimization. Maximum and minimum values happen where f′(x) = 0 or is undefined, which is how you find the largest area, lowest cost or shortest time.
- Related rates. How fast is the water level rising as a tank fills? Differentiate the equation linking the quantities with respect to time.
- L'Hôpital's rule. Derivatives can evaluate limits of the form 0/0 or ∞/∞.
Common derivative mistakes
- Forgetting the inside derivative. d/dx sin(5x) is 5 cos(5x), not cos(5x).
- Multiplying derivatives for a product. The derivative of x² sin x is not 2x cos x. Use the product rule.
- Reversing the quotient rule. The numerator is f′g − fg′, in that order. Swapping it flips the sign.
- Misusing the power rule on exponentials. The power rule is for xⁿ. For 2ˣ or eˣ, the variable is in the exponent, so use the exponential rules.
- Losing negative signs on trig derivatives. d/dx cos x = −sin x.
- Leaving roots as roots. Rewrite √x as x^(1/2) and 1/x³ as x⁻³ before applying the power rule.
Derivative practice problems (with answers)
Find f′(x) for each function. Try each one before opening the answer.
- f(x) = x⁵
Show answer
f′(x) = 5x⁴
- f(x) = 7x³ − 2x + 9
Show answer
f′(x) = 21x² − 2
- f(x) = 1/x
Show answer
f′(x) = −1/x² (rewrite as x⁻¹, then use the power rule)
- f(x) = x eˣ
Show answer
f′(x) = eˣ + x eˣ = (x + 1)eˣ (product rule)
- f(x) = sin(x) / x
Show answer
f′(x) = (x cos x − sin x) / x² (quotient rule)
- f(x) = √(4x + 1)
Show answer
f′(x) = 2 / √(4x + 1) (chain rule: ½(4x + 1)^(−½) · 4)
- f(x) = cos(x³)
Show answer
f′(x) = −3x² sin(x³) (chain rule)
- f(x) = ln(x² + 1)
Show answer
f′(x) = 2x / (x² + 1) (chain rule with 1/u)
- f(x) = tan(2x)
Show answer
f′(x) = 2 sec²(2x)
- f(x) = x³ ln x
Show answer
f′(x) = 3x² ln x + x² = x²(3 ln x + 1) (product rule)
Want more? The free derivative practice problems worksheet has 30 printable problems with a full answer key, and the AP Calculus formula sheet has every rule on one page.
Learn derivatives with LearnAppu
LearnAppu's AP Calculus course teaches derivatives in four layers: a concept lesson on slope and rate of change, worked examples for every rule, adaptive skill practice, and Doctor Mode, where an AI tutor reads your work on a chain rule or quotient rule problem and points to the exact step that went wrong. The first lesson is free.
Frequently asked questions
What is a derivative in simple terms?
A derivative tells you how fast something is changing at one exact moment. On a graph, it is the slope of the line that just touches the curve at a point (the tangent line). If a function gives your position over time, its derivative gives your speed at each instant.
What are the basic derivative rules?
The basic rules are the constant rule (the derivative of a constant is 0), the power rule (d/dx xⁿ = nxⁿ⁻¹), the constant multiple and sum rules, the product rule, the quotient rule and the chain rule. With these seven rules and the derivatives of eˣ, ln x and the trig functions, you can differentiate almost any function in a first calculus course.
What is the derivative of a constant?
Zero. A constant function such as f(x) = 5 is a horizontal line, which has slope 0 everywhere, so its derivative is 0.
When do I use the chain rule?
Use the chain rule whenever one function is inside another, such as sin(x²), (3x + 1)⁵ or e^(2x). A quick test: if you would have to evaluate the expression in two steps (first compute the inside, then apply the outside), you need the chain rule.
What is the difference between the product rule and the chain rule?
The product rule is for two functions multiplied side by side, like x² sin x. The chain rule is for one function nested inside another, like sin(x²). Many problems need both: for x² sin(3x), use the product rule, and the chain rule to differentiate sin(3x).
What is the derivative of eˣ and ln x?
The derivative of eˣ is eˣ: it is the only basic function that is its own derivative. The derivative of ln x is 1/x for x > 0. With the chain rule, the derivative of e^(g(x)) is e^(g(x)) · g′(x), and the derivative of ln(g(x)) is g′(x)/g(x).
What are derivatives used for?
Derivatives find rates of change: velocity and acceleration in physics, marginal cost in economics, and growth rates in biology. They also find the maximum and minimum values of a function (optimization), the slope of a curve at any point, and where a function is increasing or decreasing.
Continue your calculus journey
Practice what you learned, then move on to integration.
Derivative Practice Problems
30 printable problems with answers, from the power rule to implicit differentiation.
AP Calculus Formula Sheet
Every derivative and integral formula for AB and BC on one printable sheet.
Limits
The derivative is defined as a limit. Review how limits work.
Integrals
Integration reverses differentiation. Learn the integral rules next.
Trigonometry Formulas
The identities you need to simplify trig derivatives.
AP Calculus AB & BC
See where derivatives fit in the full course, unit by unit.
Get every derivative right.
Step-by-step lessons and an AI tutor that explains the step you missed. Start the first lesson free.
Start Your Free Calculus Lesson