Throw a ball straight up at 20 metres per second. Ignoring air resistance, its height after seconds is metres. How fast is it rising after one second, and when does it stop rising? Using two derivative rules — the power rule and the sum rule — the velocity is . At that is metres per second. The ball peaks when the velocity is zero, at seconds, at a height of about metres. You can check the last number: .
That is the whole job of the derivative rules: they replace the limit computation in the definition with a handful of mechanical patterns, so that a derivative takes one line instead of half a page. A derivative measures instantaneous rate of change, the limit of the slope of secant lines; that idea is developed in What Is a Derivative?. This article is the toolkit: every rule you need, why each one holds, and how to apply them without the usual mistakes.
What are the basic derivative rules?
Here is the cheat sheet. Throughout, and are constants, is a constant base, and , are differentiable functions of .
| Rule or function | Derivative |
|---|---|
| Constant | |
| Power | |
| Constant multiple | |
| Sum | |
| Product | |
| Quotient | |
| Chain | |
Every entry below the first four is derived later in the article from the ones above it, so nothing here needs to be taken on trust.
The constant, constant multiple and sum rules
These three are the scaffolding that lets you differentiate a polynomial term by term.
Constant rule. If , every difference quotient is , so . A horizontal line has slope zero everywhere.
Constant multiple rule. Scaling a function scales every secant slope by the same factor, so . Stretching a graph vertically by 3 makes it three times as steep at every point.
Sum rule. The difference quotient of splits into the difference quotient of plus that of , and limits of sums are sums of limits, so . The same holds for differences.
Together they say differentiation is linear: you can split a sum apart, pull constants out, and differentiate each piece on its own. That is what we did with the ball: became .
What is the power rule?
The power rule says
Bring the exponent down in front and lower it by one. For a positive integer the proof is a single binomial expansion:
Subtract and divide by :
Every term after the first still contains a factor of , so as only survives. That is the whole proof.
The rule holds for every real exponent, not only positive integers. The general case needs the exponential and logarithm (we prove it in the section on below), but the practical point is that you should rewrite roots and reciprocals as powers first. The exponent rules do the conversion:
A common slip with negative exponents is lowering the exponent the wrong way: , not . With fractions, write the subtraction out: .
How do you use the product rule?
For a product of two functions,
The cleanest way to see why is to picture as the area of a rectangle with sides and . Nudge by a small amount . The sides grow to and , and the area grows by three pieces.
The product rule as area. When x changes, the rectangle with sides f and g gains two thin strips, f·Δg and g·Δf, plus a corner Δf·Δg. The strips are first-order small; the corner is a product of two small quantities and vanishes faster than either.
Writing it out,
Divide by :
As the first two terms become and . In the last term, while (a differentiable function is continuous), so the corner contributes nothing. That is the product rule.
Worked example. Differentiate . Take and , so and :
The classic mistake is to differentiate each factor and multiply: . It is wrong, and one number shows it. Take . Then , whose derivative at is . But . The picture shows what the false rule throws away: it keeps only the red corner, the one piece that does not matter, and discards both blue strips.
For three factors, apply the rule twice: . Each term differentiates one factor and leaves the others alone.
What is the quotient rule?
For a quotient,
The mnemonic is “low d-high minus high d-low, over low squared”: the denominator (“low”) times the derivative of the numerator (“d-high”), minus the numerator times the derivative of the denominator, all over the denominator squared. Unlike the product rule, the order matters because of the minus sign.
The quotient rule is not a new fact. Write . By the chain rule (next section), . Then the product rule gives
Worked example. Differentiate . High is with d-high ; low is with d-low :
At this is . A quick numerical check: and , a rise of about over a run of , slope .
When the denominator is a constant or a simple power, skip the quotient rule. is just , and is a power-rule job.
How does the chain rule work?
The chain rule handles a function inside another function. If depends on and depends on , rates multiply:
Think of gears: if changes 3 times as fast as , and changes 2 times as fast as , then changes times as fast as . In function notation, : differentiate the outer function, leaving the inner function untouched inside it, then multiply by the derivative of the inner function.
One layer deep.
Two layers deep. means . Peel from the outside: the square, then the sine, then the :
using the double-angle identity at the end.
Three layers. is an exponential of a sine of a square:
One factor per layer, always. If you count three nested functions and your answer has two factors, you have dropped one.
Common mistakes.
- Forgetting the inner derivative. . The factor is the chain rule.
- Differentiating the inside too early. is not . The outer derivative keeps inside; the goes outside as a multiplier.
- Confusing with . The first is with derivative ; the second has derivative .
The chain rule is also the engine of machine learning: backpropagation is the chain rule applied through thousands of layers, as explained in How Does Automatic Differentiation Work?.
What is the derivative of e^x and ln x?
The exponential function is its own derivative:
This is not a coincidence of the number ; it is the property that defines it. Among all exponentials , the slope at equals exactly when , and that pins down the slope everywhere because . The story of why this number keeps appearing is in Why Is e Everywhere?.
Other bases. Since , the chain rule gives
For example, at is .
Natural logarithm. If then . Differentiate both sides with respect to , using the chain rule on the left: , so
For negative , has derivative , which is why the cheat sheet lists for every . For other bases, , so its derivative is . The rules that make these conversions legitimate are derived in Why Logarithm Rules Work.
The general power rule. For and any real , , so . That closes the gap left in the power-rule section.
Logarithmic differentiation. What is the derivative of ? Neither the power rule (exponent not constant) nor the exponential rule (base not constant) applies. Take logs first: . Differentiate both sides:
At : . The same trick tames long products and quotients, since logs turn them into sums.
What are the derivatives of sin x and cos x?
Everything here rests on one limit, measured in radians:
The first is usually proved with the squeeze theorem, covered in How to Find Limits; the second follows from it. Now expand with the angle-addition formula:
So , and the same computation gives . These hold only in radians; in degrees every derivative picks up a factor , which is why calculus always uses radians.
The other four come from the quotient rule. For tangent:
using . Likewise
A memory aid: the three “co-” functions get a minus sign. For the definitions and identities behind these, see Sine, Cosine and Tangent.
Inverse trig, briefly. If then , so and (the root is positive because lies in ). The same method gives
How does implicit differentiation work?
Not every curve is a graph . The circle is a relation between and , and solving for splits it into two halves. Implicit differentiation skips that step: differentiate both sides with respect to , treating as an unknown function of , so each term gets a from the chain rule.
At the point the slope is . As a check, the radius to has slope , and a tangent to a circle is perpendicular to the radius: .
Related rates. The same idea with time as the variable. A 5-metre ladder leans against a wall. Its foot is metres from the wall and its top is metres up, so , the same circle. The foot slides away at metres per second. How fast is the top falling when the foot is 3 metres out?
Differentiate with respect to :
When , , so metres per second. The top falls at centimetres per second, and that rate grows as the ladder flattens, because grows.
What are higher derivatives used for?
Differentiate a derivative and you get the second derivative, or . Go again for the third, and so on. For the ball, :
The second derivative of position is acceleration: a constant metres per second squared, which is gravity. The velocity falls by m/s every second, from at launch to at the top.
Concavity. Where the slope is increasing and the graph bends upward like a cup; where it bends downward like a cap. A point where changes sign is an inflection point.
Second derivative test. At a critical point where : if it is a local minimum, if a local maximum, and if the test says nothing. Take . Then , with critical points and . Next, , so : a minimum, with . But , and the test is silent. Looking at the sign of settles it: is negative on both sides of , so the function keeps decreasing through , which is a flat inflection point, not an extremum.
Higher derivatives also build polynomial approximations: the coefficients of a Taylor series are , so knowing every derivative at one point can rebuild the whole function. The first derivative alone drives Newton’s method for finding roots.
How do you combine the derivative rules?
Real functions use several rules at once. Work from the outermost structure inward: is the whole thing a sum, a product, a quotient or a composition? Apply that rule, then deal with each piece the same way. Afterwards, check numerically with a symmetric difference quotient,
whose error shrinks like , so typically gives five or six correct digits.
Example 1: product and chain. Differentiate . It is a product. The first factor needs the chain rule, , and so does the second, . The product rule gives
At : . Numerically, . They agree.
Example 2: quotient and chain. Differentiate . High is with d-high ; low is , with d-low by the chain rule. So
Multiply top and bottom by to clear the nested fraction:
At : . The symmetric difference quotient with gives . Agreement again.
Simplifying is optional for correctness but worth doing: the tidy form shows at a glance that has the sign of , so falls to its minimum at and rises on either side.
Who discovered the derivative rules?
Isaac Newton worked out his calculus in the mid-1660s and called derivatives fluxions: the rates at which “flowing” quantities change in time, written with a dot, . His Method of Fluxions was written around 1671 but not published until 1736, after his death.
Gottfried Wilhelm Leibniz published first. His Nova Methodus pro Maximis et Minimis, in the October 1684 issue of Acta Eruditorum, set out rules for the differentials of sums, products, quotients and powers, stating them without proof. In his notation the product rule reads , which is the rectangle argument above in miniature. The notation, with the chain rule built into its shape, is his, and it is still the notation that makes the chain rule look obvious.
The prime notation was popularised by Joseph-Louis Lagrange in his Théorie des fonctions analytiques of 1797, part of his attempt to found calculus on power series instead of infinitesimals. All three notations survive: Newton’s dot in physics for time derivatives, Leibniz’s wherever variables need tracking, and Lagrange’s prime for compact work with a single variable. The fundamental theorem of calculus, which both Newton and Leibniz grasped, then turns every derivative rule in this article into an integration rule run backwards.
Every rule here comes from one limit, the difference quotient. You only had to take that limit once for each rule, and after that the rules do the work.
Related topics: What Is a Derivative?, How to Find Limits, Exponent Rules, Why Logarithm Rules Work, Why Is e Everywhere?, Sine, Cosine and Tangent, Taylor Series, Newton’s Method, Fundamental Theorem of Calculus, Automatic Differentiation
Frequently asked
What are the basic derivative rules?
The constant rule says a constant has derivative zero. The power rule says x to the n differentiates to n times x to the n minus 1. Constant multiples pass through the derivative, and the derivative of a sum is the sum of the derivatives. The product rule handles f times g, the quotient rule handles f over g, and the chain rule handles a function inside another function. Add the derivatives of e to the x, ln x, sine and cosine and you can differentiate almost any formula you meet.
What is the power rule for derivatives?
The power rule says the derivative of x to the n is n times x to the n minus 1: bring the exponent down as a coefficient and lower the exponent by one. It works for every real exponent, not just positive whole numbers, so 1 over x squared differentiates to minus 2 over x cubed and the square root of x differentiates to 1 over twice the square root of x.
How do you use the chain rule?
Identify the outer function and the inner function, differentiate the outer function while leaving the inner one untouched, then multiply by the derivative of the inner function. For sin of x squared, the outer function is sine and the inner is x squared, so the derivative is cos of x squared times 2x. With several layers, you peel them from the outside in and multiply one factor per layer.
What is the difference between the product rule and the quotient rule?
The product rule differentiates f times g and gives f prime g plus f g prime, a sum with no denominator. The quotient rule differentiates f over g and gives g f prime minus f g prime, all over g squared. The quotient rule has a minus sign, so order matters, and a squared denominator. It is not a separate fact: it follows from the product rule applied to f times 1 over g, with the chain rule used on 1 over g.
What is the derivative of e^x and ln x?
The derivative of e to the x is e to the x itself, which is the property that singles out the number e. The derivative of ln x is 1 over x for positive x, and the derivative of ln of the absolute value of x is 1 over x for every nonzero x. For another base a, the derivative of a to the x is a to the x times ln a.
What is implicit differentiation?
Implicit differentiation finds dy/dx when y is tied to x by an equation rather than given by a formula y equals something. You differentiate both sides with respect to x, treat y as a function of x so every y term picks up a factor dy/dx by the chain rule, and then solve for dy/dx. For the circle x squared plus y squared equals 25, this gives dy/dx equal to minus x over y, so the slope at the point (3, 4) is minus 3/4.