Section 2.2: Derivative Rules from First Principles¶
Computing derivatives from the limit definition every time would be exhausting. Fortunately, a few key rules let us differentiate almost any function quickly.
But we won't just state these rules—we'll derive them from first principles. This ensures we understand not just what the rules are, but why they work.
Constants and Linear Functions¶
Constant Rule¶
If f(x) = c (a constant), what is f'(x)?
Result: The derivative of a constant is zero.
This makes sense: a horizontal line has slope 0 everywhere.
Constant Multiple Rule¶
If g(x) = c·f(x), what is g'(x)?
Result: (c·f)' = c·f'
Constants factor out of derivatives.
The Sum Rule¶
If h(x) = f(x) + g(x), what is h'(x)?
Rearranging:
Result: (f + g)' = f' + g'
The derivative of a sum is the sum of derivatives. This is called linearity—differentiation is a linear operation.
The Power Rule¶
The power rule states: if f(x) = \(x^n\), then f'(x) = n·\(x^{n-1}\).
Let's prove this for positive integers using the binomial theorem.
Proof Using Binomial Expansion¶
For positive integer n:
The difference quotient:
Taking the limit as h → 0:
All terms with h vanish, leaving only the first term.
Result: d/dx(\(x^n\)) = n·\(x^{n-1}\)
Examples¶
| Function | Derivative |
|---|---|
| x¹ | 1·x⁰ = 1 |
| x² | 2x |
| x³ | 3x² |
| \(x^{10}\) | 10x⁹ |
Extension to Negative and Fractional Powers¶
The power rule also works for negative and fractional exponents. Let's verify for n = -1:
We already proved: d/dx(1/x) = -1/x²
Using the power rule: d/dx(\(x^{-1}\)) = -1·\(x^{-2}\) = -1/x² ✓
For n = 1/2 (square root):
This can be verified from the definition (more involved).
The Product Rule¶
Now things get interesting. If h(x) = f(x)·g(x), is h'(x) = f'(x)·g'(x)?
No! Let's see what actually happens.
Derivation¶
The trick is to add and subtract a "bridge" term:
Grouping:
Since f is continuous (differentiable functions are continuous):
Therefore:
Result: (f·g)' = f·g' + f'·g
Intuition¶
Why isn't the derivative of a product the product of derivatives?
Think of a rectangle with sides f and g. Its area is f·g.
If both sides grow:
- The area grows by f·Δg (original f, additional g)
- The area grows by g·Δf (original g, additional f)
- There's also a tiny Δf·Δg corner (negligible as Δ → 0)
Total growth ≈ f·Δg + g·Δf, which gives the product rule.
Example¶
Let h(x) = x²·sin(x). (We'll derive sin'(x) = cos(x) later.)
Using the product rule:
The Quotient Rule¶
If h(x) = f(x)/g(x), what is h'(x)?
Derivation¶
We can derive this from the product rule by writing f/g = f · (1/g).
First, we need d/dx(1/g). Let's use the limit definition:
Now apply the product rule to h = f · (1/g):
Result: (f/g)' = (f'g - fg')/g²
Memory Aid¶
Some remember this as "low d-high minus high d-low, over low squared":
The Exponential Function¶
The exponential function \(e^x\) is special: it's its own derivative.
What is e?¶
The number e ≈ 2.71828... is defined as:
Or equivalently, e is the unique number such that:
Derivative of \(e^x\)¶
Result: d/dx(\(e^x\)) = \(e^x\)
This is why \(e^x\) is so important in mathematics—it's the unique function (up to scaling) that equals its own derivative.
General Exponential¶
For \(a^x\) where a > 0:
Using \(a^x\) = \(e^{x·ln(a)}\) and the chain rule (next section):
The Natural Logarithm¶
If y = ln(x), what is dy/dx?
Derivation Using Inverse Functions¶
Since \(e^{ln(x)}\) = x, differentiate both sides:
Result: d/dx(ln x) = 1/x
Log of Other Bases¶
For log_a(x) = ln(x)/ln(a):
Summary of Rules¶
| Rule | Formula | Derived From |
|---|---|---|
| Constant | (c)' = 0 | Limit definition |
| Power | (\(x^n\))' = \(nx^{n-1}\) | Binomial theorem |
| Sum | (f+g)' = f'+g' | Linearity of limits |
| Product | (fg)' = fg' + f'g | Add-subtract trick |
| Quotient | (f/g)' = (f'g-fg')/g² | Product rule + reciprocal |
| Exponential | (\(e^x\))' = \(e^x\) | Definition of e |
| Logarithm | (ln x)' = 1/x | Inverse function |
What's Missing: The Chain Rule¶
Notice we haven't handled compositions like sin(x²) or \(e^{-x²}\) or ln(1+x).
These require the chain rule, which is so important it gets its own section. The chain rule is the heart of automatic differentiation.
Exercises¶
-
Derive the power rule for n=3 by directly expanding (x+h)³ - x³.
-
Product rule practice: Find d/dx(x³·\(e^x\)).
-
Quotient rule practice: Find d/dx(x²/(1+x)).
-
Why the product rule?: Give a geometric argument for why (fg)' ≠ f'g'.
-
Verify log derivative: Using the limit definition, show that d/dx(ln x) = 1/x by computing the limit directly. (Hint: use the substitution k = h/x and the definition of e.)
Summary¶
We derived all fundamental derivative rules from the limit definition:
- Constants disappear, sums split, constants factor out
- The power rule handles polynomials
- The product rule handles products (it's not just f'g')
- The quotient rule is the product rule for reciprocals
- \(e^x\) is its own derivative (remarkable!)
- ln(x) differentiates to 1/x
With these rules, we can differentiate any polynomial, rational function, or expression involving exponentials and logarithms—as long as there's no function composition.
For compositions, we need the chain rule.