Neural Sync Active
Derivatives — Definition and Rules
Registry Synced
Derivatives — Definition and Rules
1200 words
6 min read
Reading compass
Now · 🎯 Learning Objectives
Derivatives — Definition and Rules
🎯 Learning Objectives
By the end of this topic, you will be able to:
- Define the derivative as the limit of the difference quotient
- Apply power, product, quotient, and chain rules
- Find derivatives of exponential, logarithmic, and trigonometric functions
- Use L'Hôpital's rule for limit evaluation
- Compute linear approximations using tangent lines
📋 Prerequisites
- Limits of Functions — limit definition, L'Hôpital's rule
- Exponential & Log Functions — derivatives depend on these
📖 Core Content
13.1 Intuition: Instantaneous Rate of Change
The derivative is the instantaneous rate of change — it tells you how fast a quantity is changing at exactly one moment. If distance s(t) describes a car's position, s′(t) is the speedometer reading at time t.
Geometrically, the derivative at x=a is the slope of the tangent line to the curve y=f(x) at that point.
💡 Why this matters: Derivatives are the mathematical language of change. In ML, gradient descent uses derivatives to minimize loss functions. In physics, derivatives give velocity and acceleration.
13.2 Definition
f′(x)=h→0limhf(x+h)−f(x)Alternative notation: dxdy, dxdf(x), y˙ (Newton), f′(x), y′.
Derivative at a point: f′(a)=limx→ax−af(x)−f(a)
(Diagram)
13.3 Basic Derivatives
| f(x) | f′(x) | Notes |
|---|---|---|
| c (constant) | 0 | |
| xn | nxn−1 | Power rule |
| ex | ex | |
| ax | axlna | a>0 |
| lnx | x1 | x>0 |
| logax | xlna1 | |
| sinx | cosx | |
| cosx | −sinx | |
| tanx | sec2x | |
| secx | secxtanx |
13.4 Differentiation Rules
| Rule | Formula | Example |
|---|---|---|
| Constant multiple | (cf)′=cf′ | (3x2)′=6x |
| Sum | (f+g)′=f′+g′ | (x2+x)′=2x+1 |
| Difference | (f−g)′=f′−g′ | |
| Product | (fg)′=f′g+fg′ | (x2ex)′=2xex+x2ex |
| Quotient | (gf)′=g2f′g−fg′ | (exx)′=e2x1⋅ex−x⋅ex |
| Chain | (f∘g)′=f′(g(x))⋅g′(x) | (ex2)′=ex2⋅2x |
13.4.1 Chain Rule — The "Outside-Inside" Rule
dxdf(g(x))=f′(g(x))⋅g′(x)Intuition: Differentiate the outside function (keeping the inside unchanged), then multiply by the derivative of the inside.
Examples:
- dxdsin(3x)=cos(3x)⋅3=3cos(3x)
- dxdex2=ex2⋅2x
- dxdln(x2+1)=x2+11⋅2x=x2+12x
13.5 Worked Examples
Example 1.1 (Power rule): Find dxd(3x5−2x3+x−7).
Example 1.2 (Product rule): Find f′(x) for f(x)=x2sinx.
Example 1.3 (Quotient rule): Find g′(x) for g(x)=x2+1ex.
Example 1.4 (Chain rule): Find h′(x) for h(x)=sin(ex2).
Outside: sin, derivative cos(ex2). Inside: ex2, derivative ex2⋅2x.
13.6 Linear Approximation
The tangent line at x=a approximates f(x) near a:
Example: Approximate 4.1.
f(x)=x, a=4. f(4)=2, f′(4)=241=41.
L(4.1)=2+41(0.1)=2+0.025=2.025
📐 Key Formulas — Summary Table
| Rule | Formula |
|---|---|
| Definition | f′(x)=limh→0hf(x+h)−f(x) |
| Power | dxdxn=nxn−1 |
| Product | (fg)′=f′g+fg′ |
| Quotient | (f/g)′=g2f′g−fg′ |
| Chain | (f∘g)′=f′(g(x))⋅g′(x) |
| Exponential | dxdex=ex , dxdax=axlna |
| Log | dxdlnx=x1 |
| Sin | dxdsinx=cosx |
| Cos | dxdcosx=−sinx |
| Linear approx | L(x)=f(a)+f′(a)(x−a) |
⚠️ Common Pitfalls
Pitfall 1: Forgetting the Chain Rule
Mistake: dxdsin(5x)=cos(5x) (missing the 5 from the chain rule).
Correct: dxdsin(5x)=cos(5x)⋅5=5cos(5x).
Pitfall 2: Misapplying the Product Rule
Mistake: (fg)′=f′g′ (wrong! This is not the product rule).
Correct: (fg)′=f′g+fg′.
Pitfall 3: Confusing Quotient Rule Order
Mistake: (f/g)′=g2fg′−f′g (swapped numerator order).
Correct: (gf)′=g2f′g−fg′. Memory aid: "Low d-high minus high d-low, square the low."
📝 Practice Questions
Q1: Find f′(x) for f(x)=4x3−2x2+7x−5.f′(x)=12x2−4x+712x2−4x+7 Q2: Find g′(x) for g(x)=x2ex.Product rule: g′=2xex+x2ex=xex(2+x)xex(x+2) Q3: Find dxdx+1x2.Quotient rule: (x+1)22x(x+1)−x2(1)=(x+1)22x2+2x−x2=(x+1)2x2+2x(x+1)2x(x+2) Q4: Find h′(x) for h(x)=(3x2+1)5.Chain rule: 5(3x2+1)4⋅6x=30x(3x2+1)430x(3x2+1)4 Q5: Find dxdln(x2+3).x2+31⋅2x=x2+32xx2+32x Q6: Find dxde3x.e3x⋅3=3e3x3e3x Q7: Find dxdsin(2x).cos(2x)⋅2=2cos(2x)2cos(2x) Q8: Find f′(1) if f(x)=xe−x.f′(x)=e−x+x(−e−x)=e−x(1−x) f′(1)=e−1(0)=00 Q9: Approximate 38.1 using linear approximation.f(x)=3x, a=8, f(8)=2, f′(x)=31x−2/3, f′(8)=31⋅41=121 L(8.1)=2+121(0.1)=2+0.00833=2.008332.00833 Q10: Find the equation of the tangent line to f(x)=x2 at x=3.f(3)=9, f′(x)=2x, f′(3)=6 y−9=6(x−3)⟹y=6x−9y=6x−9 Q11: Find dxdcos(x3).−sin(x3)⋅3x2=−3x2sin(x3)−3x2sin(x3) Q12: Find dxdxsinx.Quotient: x2cosx⋅x−sinx⋅1=x2xcosx−sinxx2xcosx−sinx
🔗 Cross-References
- Next topic: Applications of Derivatives
- Previous: Limits of Functions — definitions
- Across courses: BSMA1003 Maths 2 (multivariable derivatives, partial derivatives) Join Discord Previous7.3 ContinuityNext8.2 Applications of Derivatives