The sum rule
Differentiability at the point gives linearity over addition.
3Blue1Brown · YouTube · 15:56
Stacked heights, an expanding rectangle and successive number-line mappings explain how local increments lead to sum, product and composition rules. This video visualizes the chain rule of calculus using a three-tiered number line model to track infinitesimal changes. By starting with a concrete value and applying a tiny nudge , it demonstrates how this change propagates through nested functions like squaring and sine. The animation shows that the total change in the composite function is the product of the local scaling factors at each stage. This leads to the general formula for the derivative of a composition . The video concludes by emphasizing that understanding these mechanical rules requires active practice rather than passive viewing.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
Combining simple functions by sums, products and composition builds more complex expressions. The video follows small input changes through these three operations, using geometry to explain differentiation rules. The functions involved must be differentiable at the relevant points.
For a sum, stack the two output heights. A common input increment produces an exact sum of output increments, so . Sine plus a square has derivative . This is algebraic linearity, not statistical independence.
For a product, imagine a rectangle with sides and . Both sides change with the input. The exact area increment is : two strips and a small corner. Multiplying the two derivatives would miss the strips.
Divide by the input increment h. Differentiability makes both Δf and Δg of order h, so their corner product divided by h tends to zero. The surviving terms give . Positive lengths make the picture convenient, while the algebra also works for signed function values.
When one factor is constant its derivative is zero, giving . Feeding one function’s output into another is a different operation from multiplying their outputs.
Number-line mappings show composition as successive local distance scaling. The overall sensitivity combines both stages. The outer rate must be evaluated at the inner function’s output; the second part of the video develops this chain-rule idea.
Three number lines track x, ² and sin h. Near the inner rate is , while the outer rate is , which is negative. A small positive input move increases the square but locally decreases the final sine value. The overall derivative is : evaluate the outer derivative at x², not at x.
If h is differentiable at x and g at , the composite derivative is . This composes two local linear changes and also holds when the inner derivative is zero. Leibniz notation resembles cancellation, but the justification comes from differentiable increments and limits, not dividing by an ordinary nonzero dh.
Identify the expression’s structure before differentiating: sums use the sum rule, products the product rule, and nesting the chain rule. Complex expressions combine these rules in stages. The closing advice is to practice applying them, connecting the geometric reasoning with calculation.
Differentiability at the point gives linearity over addition.
The two strips and the corner give an exact increment, not a product of derivatives.
The corner disappears in the difference-quotient limit, leaving both first-order contributions.
A constant has derivative zero, reducing the product rule to constant scaling.
The input x maps to ² and then to sin h. Each local increment is governed by its derivative at the appropriate input.
Differentiability gives a linear leading term plus a smaller remainder. A differential df=f′(a)dx is the linear map itself; the finite increment is approximated by it.
If and are both differentiable, then the composition satisfies . Equivalently in differential form, . Crucially, must be evaluated at the current value of the inner function , not directly at . The proof relies on expressing increments exactly as with , showing error terms vanish faster than , preserving equality in the limit rather than relying solely on informal fraction cancellation.
Leibniz notation helps remember the composition of rates, but ordinary fraction cancellation is not its proof. The inner derivative can be zero and the chain rule still holds by differentiability.
Identify sums, products and composition, then combine rules layer by layer. Keep the outer derivative’s evaluation point and both first-order product terms.
If and are both differentiable, then the composition satisfies . Equivalently in differential form, . Crucially, must be evaluated at the current value of the inner function , not directly at . The proof relies on expressing increments exactly as with , showing error terms vanish faster than , preserving equality in the limit rather than relying solely on informal fraction cancellation.
The model tracks a small input change through successive local linear approximations. First, the inner function scales the input change by its derivative .
Conditions: Functions and are differentiable at the relevant points.; The input change is infinitesimal.; The outer derivative is evaluated at the inner function's output , not at .
The chain rule holds whenever both the inner function is differentiable at and the outer function is differentiable at . If , the formula correctly yields 0.
Conditions: is differentiable at ; is differentiable at ; No requirement for
By tracking a small input change through nested mappings . For , , and , the inner rate is , scaling to .
Conditions: Inner function is differentiable at ; Outer function is differentiable at ; Example uses and near
The constant multiple rule is a special case of the product rule where one factor is a constant . Geometrically, multiplying a function by a constant scales its output heights (and thus its area strips) by .
Conditions: is a constant.; The function is differentiable.
The video advises identifying the structural hierarchy of the expression first. Determine if the outermost operation is a sum, a product, or a composition.
Conditions: The expression involves multiple operations (sums, products, compositions).; The learner aims to apply differentiation rules correctly.
The term vanishes because differentiability ensures that both and are proportional to the input increment (i.e., of order ). When divided by , the product becomes an expression of order , which approaches zero as .
Conditions: Functions and are differentiable at the point of interest; Input increment approaches zero
The corner term represents the product of two small changes, . Because the functions are differentiable, both and are of order (proportional to the input increment).
Conditions: Functions and are differentiable at the point.; The input increment approaches zero.; The geometric model assumes a rectangle with sides and .
By visualizing the functions and as vertical heights stacked on top of each other, a common input increment produces separate changes and . The total change in the sum is exactly the sum of these individual changes.
Conditions: Functions and are differentiable.; The input increment is common to both functions.
Leibniz notation resembles algebraic cancellation, but derivatives are limits, not ordinary fractions. The rigorous justification relies on expressing increments exactly as with .
Conditions: Functions are differentiable.; The inner derivative can be zero.; The argument requires rigorous limit definitions, not informal algebra.
The sum rule is visualized by stacking vertical heights, where an input increment causes additive changes in height (). In contrast, the product rule is visualized as an expanding rectangle with sides and , where the area change consists of two rectangular strips and a small corner square ().
Conditions: Comparing linear combination vs multiplicative interaction; Using geometric models for differentiation
The outer derivative must be evaluated at the output of the inner function, i.e., at , not at the original input . This reflects the sequential nature of composition: the change in affects , and the sensitivity of depends on the current value of .
Conditions: Computing derivative of ; Applying chain rule