Differentiating from the definition costs a paragraph of algebra per function, and the answers are tidy enough to suggest that most of that work is repeated in the same way each time.
This lesson extracts the repetition into four rules. Each is proved from the difference quotient of the previous lesson, because a rule you have seen derived is one you can rebuild when memory garbles it, and because two of the four have plausible wrong versions that a derivation immediately kills. After this, the limit definition retires: it stays as the justification and stops being a method.
Linearity
Start with the two easiest. If and are differentiable, so is , and . The proof is one line of rearrangement: the difference quotient of is
and the limit of a sum is the sum of the limits, which is one of the limit laws. Similarly for a constant , since the constant factors out of the quotient and then out of the limit.
Together these say that differentiation is linear, which is the property that lets a polynomial be differentiated term by term. It is worth noticing what is not claimed, because the pattern does not continue: there is no rule saying the derivative of a product is the product of the derivatives, and the next section shows why in one line.
A constant function has derivative zero, since every difference in the numerator is zero before any limit is taken. Geometrically it is a horizontal line, and the consequence for later work is that adding a constant to a function never changes its derivative, so a derivative cannot possibly determine its function uniquely.
The power rule
The pattern noticed at the end of the previous lesson, that differentiates to , can be proved for every positive integer using a factorisation from the earlier course:
Use the second form of the definition, with the quotient . The factor cancels exactly, leaving the long bracket, which is a polynomial and so may be evaluated at by substitution. Every one of its terms becomes , and there are of them, so the limit is . Since was arbitrary, everywhere.
That covers positive integers. The quotient rule below extends it to negative integers, and the lesson on implicit differentiation extends it to every rational exponent; the result is the same formula in all cases, and it holds for irrational exponents too. So differentiates to , which at is , and differentiates to , agreeing with the conjugate calculation done from scratch earlier.
With linearity, every polynomial is now immediate. The derivative of is , written down in one pass with no limits anywhere.
The product rule
The plausible guess is , and it is wrong. Test it on : the product is , whose derivative is , while the product of the derivatives is . A rule that fails on the simplest possible case needs no further refutation. Leibniz himself conjectured the product of the differentials in his early notes in 1675 and corrected it within days, which is a good indication that the correct rule is not obvious.
Here is the derivation. The numerator of the difference quotient is , and the trick is to add and subtract a hybrid term, , which changes nothing and splits the difference into two differences that each move only one factor:
Group the first pair and the second pair, divide by , and the quotient becomes
Now take the limit. The two quotients tend to and . The stray factor tends to , and it does so because is differentiable and therefore continuous, which is where that theorem from the previous lesson earns its place. The result is
The rule is symmetric, which is a useful check, and it explains the failed guess: the true derivative has two terms because a product can change by either factor moving, and counts neither of them.
Example. Differentiate and evaluate the derivative at .
With and , the derivatives are and . The rule gives . At the first term is and the second is , so the derivative is . Check by expanding first: the product is , whose derivative is , giving . The two routes agree, as they must.
Now you. Differentiate and evaluate at .
Answer
The rule gives , which at is . Expanding first gives , with derivative , again at .
The quotient rule
For a quotient the result is
valid wherever . It can be derived from the definition by the same add-and-subtract manoeuvre, but the quicker route is to write , so that , and apply the product rule: . Solving for gives , and substituting and tidying over the common denominator produces the formula.
The minus sign and the order of the terms are the two things people get wrong, and the way to check them is a special case you already know. Take and . The rule gives , which matches the first-principles calculation of the derivative of done earlier. If a misremembered version gives , that test catches it at once.
The same special case extends the power rule downward. For and the rule gives , which is the power rule with the exponent in place of . So the formula holds for negative integers too.
Example. Differentiate and evaluate at .
Here , , , . The rule gives . At that is . The sign is negative, and it should be: this function peaks at and declines thereafter, and the formula makes the peak visible, since the numerator vanishes exactly at .
Now you. Differentiate and evaluate at .
Answer
The rule gives . At that is . The derivative is negative for every , so the function is decreasing on each side of its asymptote.
The chain rule
The last rule is the one that matters most, because almost every function met in practice is a composition. Its statement, in Lagrange notation, is that if and then
or equivalently : differentiate the outside function, leave the inside alone in it, and multiply by the derivative of the inside.
The reason it is a product is a statement about rates. If a car's fuel use rises by litres for each extra hour driven, and the cost rises by for each extra litre, then the cost rises by per extra hour, and the two rates multiply. The Leibniz form makes this look like cancellation of , which is exactly why the notation was designed that way and exactly why the appearance is dangerous: the honest proof multiplies and divides by , which is illegitimate whenever happens to be zero, and repairing that gap takes a page. The gap is real, the repair is standard, and the rule is true.
Example. Differentiate and evaluate at .
The outside function is , with derivative ; the inside is , with derivative . Multiplying gives . At the square root is , so the derivative is . That number has a geometric meaning: this function is the distance from the origin to a point moving along a horizontal line nine units up, and is the component of the motion along the line of sight.
Now you. Differentiate and evaluate at .
Answer
The outside is with derivative ; the inside is with derivative . So the derivative is , which at is .
Compositions can be nested, and the rule composes with itself: each layer contributes its own derivative as a factor, working from the outside in. Differentiating gives , and at that is . The size of that number is a reminder that a modest-looking function can have an enormous rate of change, which is why exponents are where numerical trouble usually starts.
Assembling them
Real functions need several rules at once, and the only skill involved is deciding which structure is outermost before touching anything.
Take . The outermost structure is a quotient, so the quotient rule applies with and . Differentiating needs the product rule, with the second factor needing the chain rule: . Assembling, . At the pieces are and , so .
The habit worth building is to name the pieces before differentiating anything, write the rule with the names, and only then substitute. Skipping that step is where the sign errors and the missing chain factors come from, and they come from it reliably.
Where the rules stop
Everything above is closed under the operations of algebra. Any function built from powers by adding, multiplying, dividing and composing can now be differentiated mechanically, and that class is large: all polynomials, all rational functions, all algebraic combinations of roots.
It does not include , and it does not include . No amount of the power rule reaches them, because they are not built from powers by algebra: the sine is defined by a rotation and the exponential by repeated multiplication extended to the continuum. Their difference quotients lead to limits that no factoring or conjugate will resolve, in particular and .
Those two limits are the subject of the next lesson, and the second of them turns out to select a particular number as the natural base for an exponential, which is where actually comes from.