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β0limβhf(x+h)βf(x)βAlternative notation: dxdyβ, dxdβf(x), yΛβ (Newton), fβ²(x), yβ².
Derivative at a point: fβ²(a)=limxβaβxβ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 |
| logaβx | 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
dxdβf(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:
- dxdβsin(3x)=cos(3x)β 3=3cos(3x)
- dxdβex2=ex2β 2x
- dxdβln(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)=24β1β=41β.
L(4.1)=2+41β(0.1)=2+0.025=2.025
π Key Formulas β Summary Table
| Rule | Formula |
|---|---|
| Definition | fβ²(x)=limhβ0βhf(x+h)βf(x)β |
| Power | dxdβxn=nxnβ1 |
| Product | (fg)β²=fβ²g+fgβ² |
| Quotient | (f/g)β²=g2fβ²gβfgβ²β |
| Chain | (fβg)β²=fβ²(g(x))β gβ²(x) |
| Exponential | dxdβex=ex , dxdβax=axlna |
| Log | dxdβlnx=x1β |
| Sin | dxdβsinx=cosx |
| Cos | dxdβcosx=βsinx |
| Linear approx | L(x)=f(a)+fβ²(a)(xβa) |
β οΈ Common Pitfalls
Pitfall 1: Forgetting the Chain Rule
Mistake: dxdβsin(5x)=cos(5x) (missing the 5 from the chain rule).
Correct: dxdβsin(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 dxdβx+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 dxdβln(x2+3).x2+31ββ 2x=x2+32xβx2+32xββ Q6: Find dxdβe3x.e3xβ 3=3e3x3e3xβ Q7: Find dxdβsin(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)=31βxβ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 dxdβcos(x3).βsin(x3)β 3x2=β3x2sin(x3)β3x2sin(x3)β Q12: Find dxdβxsinxβ.Quotient: x2cosxβ xβsinxβ 1β=x2xcosxβsinxβx2xcosxβ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