Maths I — Week 4: Derivatives and Rules
1055 words
5 min read
View
Maths I — Week 4: Derivatives and Rules
The Big Idea: If Week 3 was about the shape of curves, Week 4 is about their slope at every point. The derivative f′(x) is the instantaneous rate of change — the slope of the tangent line. Every physics equation describing velocity, every economics model describing marginal cost, every ML gradient update uses this single idea.
1. The Derivative from First Principles
The derivative answers: "How fast is this function changing right now?"
f′(x)=limh→0hf(x+h)−f(x)
Intuition: Zoom into any smooth curve far enough and it looks like a straight line. That line's slope is the derivative.
If the limit doesn't exist (e.g., at a sharp corner like
∣x∣ at x=0), the function is not differentiable at that point — even if it is continuous.
1.1 Differentiability vs. Continuity
| Property | Differentiable | Continuous |
|---|---|---|
| Implies the other? | Yes → Diff ⟹ Cont | No → Cont ⟹ Diff fails at corners |
| Fails at | Sharp turns, cusps, vertical tangents | Jumps, holes, infinite values |
2. Core Differentiation Rules
These are the workhorses. Know them cold.
| Rule | Formula |
|---|---|
| Constant | dxd(c)=0 |
| Power Rule | dxd(xn)=nxn−1 |
| Sum Rule | (f±g)′=f′±g′ |
| Product Rule | (uv)′=u′v+uv′ |
| Quotient Rule | (vu)′=v2u′v−uv′ |
| Exponential | dxd(ex)=ex; dxd(ax)=axlna |
| Natural Log | dxd(lnx)=x1 |
| Trig | dxd(sinx)=cosx; dxd(cosx)=−sinx |
The
Quotient Rule denominator is always v2, never v. The numerator order is u′v−uv′ (top prime first).
3. The Chain Rule
Used when you have a function inside a function (a composite).
dxd[f(g(x))]=f′(g(x))⋅g′(x)
Read as: "Derivative of the outer (keeping inner untouched) × Derivative of the inner."
Pattern: Chain Rule Stack
Question: Differentiate y=sin(x2+5).
Abstract Solution (Strategy)
- [Identify layers]: Outer = sin(⋅), Inner = x2+5.
- [Outer derivative]: cos(⋅) (keeping inner intact).
- [Inner derivative]: 2x.
Procedure
- Step 1 — Outer: cos(x2+5).
- Step 2 — Inner: dxd(x2+5)=2x.
- Step 3 — Multiply: f′(x)=2xcos(x2+5).
4. Implicit Differentiation
When you can't isolate y (e.g., x2+y2=25), differentiate both sides with respect to x. Every y term gets a dxdy (chain rule applied to y).
Procedure Template
- Differentiate both sides with respect to x.
- When differentiating a y-term, multiply by dxdy.
- Gather all dxdy terms to one side and factor out.
Worked Example: Find dxdy for x2+y2=1.
- Step 1: 2x+2ydxdy=0.
- Step 2: 2ydxdy=−2x.
- Result: dxdy=−yx.
If the exam gives an equation you cannot rearrange easily, implicit differentiation is always valid. Always group
dy/dx terms first before dividing.
5. Tangent and Normal Lines
Tangent at (a,f(a)):
y−f(a)=f′(a)(x−a)
Normal at (a,f(a)):
y−f(a)=−f′(a)1(x−a)
Abstract Solution (Strategy) — Tangent Problems
- [Find the point]: Evaluate f(a).
- [Find the slope]: Compute f′(a).
- [Write the line]: Use the point-slope formula.
Worked Example
Question: Find the equation of the tangent to y=x3−2x at x=2.
- Step 1: f(2)=8−4=4. Point: (2,4).
- Step 2: f′(x)=3x2−2⟹f′(2)=10.
- Step 3: y−4=10(x−2)⟹y=10x−16.
- Result: y=10x−16.
6. Functional Equations & Derivatives (Week 8 Link)
For the functional equation f(x+y)=f(x)f(y), the function is exponential-type: f(x)=ax.
- Key property: f′(x)=f(x)⋅f′(0).
- Direct consequence: f′(1)=f(1)⋅f′(0).
This is tested in Week 8, Questions 17 and 18.
7. Common Mistakes
| Mistake | Why it happens | Correct approach |
|---|---|---|
| Power rule on ex | Treating ex like xn. | dxd(ex)=ex, not xex−1. |
| Wrong numerator order in Quotient Rule | Forgetting the formula direction. | Always: u′v−uv′, never uv′−u′v. |
| Missing the chain rule factor | Differentiating the outer but forgetting the inner. | After every "outer" derivative, immediately multiply by the derivative of what's inside. |
| Assuming continuity = differentiability | The converse is false. | $ |
8. Flashcards
<Flashcard front="State the Product Rule." back="(uv)' = u'v + uv'. The first derivative times the second, plus the first times the second derivative." /> <Flashcard front="State the Quotient Rule." back="(u/v)' = (u'v - uv') / v². Top prime first, minus sign in middle, always divide by the denominator squared." /> <Flashcard front="How do you differentiate f(g(x))?" back="Chain Rule: f'(g(x)) · g'(x). Outer derivative (inner unchanged) × inner derivative." /> <Flashcard front="Differentiability implies...?" back="Continuity. But continuity does NOT imply differentiability (counterexample: |x| at x=0)." /> <Flashcard front="What is d/dx(ln x)?" back="1/x. Valid only for x > 0." />9. Practice Targets
- Differentiate 5 functions using the Chain Rule (mix of trig + log + exponential).
- Find the tangent and normal to y=x at x=4.
- Use implicit differentiation on x3+y3=6xy to find dy/dx.
- Attempt Questions 6, 7, and 8 from Graded Assignment 8 (they are all derivative-based).
10. Connections
| Connects to | How |
|---|---|
| Week 5 — Applications | Every extremum, tangent, and optimization problem uses the derivatives built here. |
| Week 8 — Linear Approx | The tangent line formula IS the linearization formula. |
| Statistics I | Maximum Likelihood Estimation sets derivatives of log-likelihood to zero. |