From limits to rules
Lesson 2.2.2 found derivatives from the limit: write the chord slope, simplify until cancels, then let . That works for any function, but it is slow, and it gets harder with every new function. This lesson and the next three give rules that produce a derivative in one line.
in front of an expression means "the derivative of this with respect to ". So says the same as "if , then ". The units are output units per input unit, as in lesson 2.2.2.
The power rule
Lesson 2.2.2 worked out four derivatives from the limit and noticed a pattern. Written with every power showing:
Each time, the power comes down in front as a multiplier, and the power drops by one. The pattern holds for every power.
Rule: Power rule
Bring the power down in front, then lower it by one. This holds for every real power (whole numbers, negatives and fractions) wherever is defined. So .
A check by numbers: at 2
The rule says the slope of is , so at it is . The central difference from lesson 2.2.2 agrees.
| gap | 0.1 | 0.01 | 0.001 |
|---|---|---|---|
| central difference | 32.08 | 32.0008 | 32.000008 |
Algebra explains the pattern. Expanding both powers, the central difference of at 2 is exactly , which tends to 32 as . The limit of lesson 2.2.2 would need expanded; the rule needs one line.
Powers of every kind
- Whole powers, including 1 and 0. has slope : the line has slope 1. has slope : a flat line.
- Negative powers. Write as . Its derivative is . The power goes from down to , further from zero.
- Fractional powers. The cube root has derivative , which is at . Likewise has derivative .
So before using the rule, write every root and reciprocal as a power, using lesson 1.4.1.
Negative inputs
The slope formula works on both sides of 0, and the new power decides the sign there. For the slope has an even power, so it is positive on both sides. At it is 12: rises there too.
For the slope has an odd power, so it changes sign at 0: it is at and 4 at . The curve falls on the left of 0 and rises on the right.
Try it
The loop prints the central difference of at 2 for three gaps. Then sp.diff applies the power rule to each example above.
SymPy writes as x**(-2), the cube root as x**(1/3) and as x**(3/2).
Where the power rule breaks
The slope formula shows where a power has no slope. When is negative, ends up on the bottom of a fraction, and the formula fails at 0.
- Negative powers at 0. and have no value at , so they have no slope there.
- Powers between 0 and 1, at 0. , but the slope has 0 on the bottom. Near 0 it grows without limit: 0.5 at , 5 at , 50 at . The cube root's slope grows the same way, to about 33.33 at .
The domain matters too. has no real value for (lesson 1.4.1), so there is nothing to differentiate there.
A slope that grows without limit is the vertical tangent of lesson 2.2.2. The power rule predicts it from the formula, without computing any chords.
The tangents to at 4, 1 and 0.25 have slopes 0.25, 0.5 and 1. Each time is four times smaller, the slope doubles. At 0 the tangent is vertical, and a vertical line has no slope.
When , as for or , the slope formula has no on the bottom, and nothing breaks at 0.
Try it
The slope of is . The cell evaluates it closer and closer to 0.
Each step makes a hundred times smaller and the slope ten times larger. There is no number for it to settle on.
Constants
A constant multiplier stays. Multiply a function by and every height is multiplied by . Each rise is multiplied by and each run is not, so every slope is multiplied by .
So . A negative multiplier flips the graph, and the sign of every slope: .
An added constant vanishes. Adding a constant moves the whole graph up or down. Every rise and every run stay the same, so every slope stays the same: . A constant on its own, like , is a flat line with slope 0.
Adding 3 to lifts the curve but leaves its tangent at with slope 2. Multiplying by 2 doubles every height, and the slope at doubles from 2 to 4.
Rule: Constant rules
A constant multiplier stays in front. A constant on its own has slope 0, because its graph is flat.
A constant multiplier often carries units. A stone dropped from rest falls about metres in seconds. Its speed is metres per second: 9.8 after 1 second and 19.6 after 2.
Try it
SymPy confirms each constant example, then works out the stone's speed after 1, 2 and 3 seconds.
sp.Rational(49, 10) is 4.9 as an exact fraction, so SymPy prints the speed as 49*t/5, which is .
Sums and differences
When two functions are added, the rise of the sum is the sum of their rises. So the slope of a sum is the sum of the slopes.
Rule: Sum rule
Differentiate a sum or difference one term at a time. With the constant rules, this differentiates any polynomial at sight.
Take . Term by term, its derivative is , and the disappears. At the slope is ; a central difference with gives 13.0004.
Rewrite first
Many functions become sums of powers after a little algebra. Then the rules above finish the job.
- Expand a product. , so its derivative is .
- Split a fraction whose bottom is a single power. , so its derivative is .
Two things these rules cannot do. A product is not differentiated factor by factor: has slope , not . Lesson 2.3.2 gives the product rule.
The power rule also needs a fixed power of itself. In the variable is the exponent (lesson 2.3.4), and is a power of an expression (lesson 2.3.3, the chain rule).
Try it
The first lines differentiate the polynomial and evaluate its slope at 1. A central difference checks that slope.
For the rewrites, sp.expand first turns each function into a sum of powers, as above.
Lesson 2.4.1 uses these rules to find where a function peaks. Case study 2.3.7 applies the power rule to every payment of a bond.
Common mistakes
- The power drops by one. gives , not .
- Negative powers move away from zero. gives , not .
- Rewrite as a power first. does not give ; write it as and get .
- A constant on its own vanishes; a multiplier stays. gives , but gives .
- No slope where the formula breaks. has none at 0, and neither does , whose tangent there is vertical.
- Not for products or variable powers. Do not differentiate a product factor by factor, and do not use the power rule on .
Power, constant and sum rules
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- means "the derivative with respect to ". A derivative is in output units per input unit.
- Power rule: for any real . Write roots and reciprocals as powers first.
- No slope where or its slope formula is undefined: negative powers at 0, at 0.
- Constants: and . Sums: .
- So a polynomial is differentiated term by term.
sp.diff(expr, x)checks any derivative.