Derivatives — Limit Definition, First Principles & Differentiation Rules (Layered)
2271 words
11 min read
2026-09-12
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
Layered chapter on differential calculus: limit definition, difference quotient, product/quotient/chain rules, differentiability vs continuity, and question-pattern anatomy. # Derivatives — Limit Definition, First Principles & Differentiation Rules > **Acceptance Standard:** This chapter serves as a stand-alone text...

Derivatives — Limit Definition, First Principles & Differentiation Rules
Acceptance Standard: This chapter serves as a stand-alone textbook for any beginner studying IIT Madras BSMA1001 (Mathematics for Data Science I). It develops differential calculus from first principles, bridges geometry with symbolic computation, proves the fundamental differentiation rules, and dissects all eight recurring exam question patterns.
1. Orientation & Mental Model: The Geometry of Instantaneous Change
The Tangent Line Problem
In elementary algebra, you learned that the slope of a straight line between two distinct points (x1,y1) and (x2,y2) is constant:
m=x2−x1y2−y1=ΔxΔy
However, real-world relationships—from vehicle trajectories and radioactive decay to loss surfaces in deep neural networks—are non-linear curves.
If you pick two points on a curve y=f(x), the line connecting them is a secant line:
y ^ | * (x + h, f(x + h)) | / | * / <-- Secant line slope = [f(x+h) - f(x)] / h | / / | * (x, f(x)) | / +----+--------+-------------> x x x + h
The slope of this secant line represents the average rate of change over the interval [x,x+h]:
msec=hf(x+h)−f(x)
The Limiting Transition: Secant to Tangent
Now, let h shrink closer and closer to 0.
As h→0:
- The point (x+h,f(x+h)) slides smoothly along the curve toward (x,f(x)).
- The secant line pivots around (x,f(x)).
- At the exact boundary limit h→0, the secant line freezes into the tangent line—a unique line that grazes the curve at (x,f(x)), matching its instantaneous trajectory.
The slope of this tangent line is the derivative f′(x).
2. Terminology, Notation & Etymology
| Term / Notation | Etymology / Origin | Exact Mathematical Meaning |
|---|---|---|
| Derivative | Latin derivare ("to draw off, lead away from a source"). | The instantaneous rate of change of a function with respect to its independent variable. |
| Difference Quotient | Latin quotient ("how many times"). | The expression hf(x+h)−f(x), representing average slope over span h. |
| Leibniz Notation (dxdf) | Gottfried Wilhelm Leibniz (1684). | Suggests a ratio of infinitesimal changes df over dx. Exceptionally powerful for the Chain Rule. |
| Lagrange Notation (f′(x)) | Joseph-Louis Lagrange (1770). | Prime notation; compact and ideal for functional operations. |
| Differentiable | — | A function f is differentiable at x=a if the limit of the difference quotient exists and is finite. |
| Normal Line | Latin normalis ("made according to a carpenter's square"). | The unique line perpendicular to the tangent line at the point of tangency: mnormal=−f′(a)1. |
3. Foundational Mechanics: Formal Definition & First Principles
The Definition of the Derivative
\bbox[10px,border:2pxsolidvar(−−teal)]f′(x)=limh→0hf(x+h)−f(x)
Equivalently, evaluating the derivative at a specific point x=a:
f′(a)=limx→ax−af(x)−f(a)
Deriving Standard Derivatives from First Principles
1. The Power Rule: f(x)=xn (for n∈N)
Using the binomial theorem:
(x+h)n=xn+nxn−1h+(2n)xn−2h2+⋯+hn
Substitute into the difference quotient:
f′(x)=limh→0h(xn+nxn−1h+(2n)xn−2h2+…)−xn
Cancel xn and divide by h:
f′(x)=limh→0(nxn−1+(2n)xn−2h+…)=nxn−1
2. The Exponential Function: f(x)=ex
f′(x)=limh→0hex+h−ex=limh→0hex(eh−1)=exlimh→0heh−1
By the fundamental definition of Euler's number e, limh→0heh−1=1.
∴dxd(ex)=ex
3. The Natural Logarithm: f(x)=lnx (for x>0)
f′(x)=limh→0hln(x+h)−ln(x)=limh→0h1ln(1+xh)
Let u=xh⟹h=xu. As h→0, u→0:
f′(x)=limu→0xu1ln(1+u)=x1limu→0ln((1+u)1/u)=x1ln(e)=x1
4. Operational Rules: Product, Quotient & Chain Rules
| Rule Name | Algebraic Formula | Leibniz Notation |
|---|---|---|
| Constant Multiple | (c⋅f)′=c⋅f′ | dxd[cu]=cdxdu |
| Sum & Difference | (f±g)′=f′±g′ | dxd[u±v]=dxdu±dxdv |
| Product Rule | (f⋅g)′=f′⋅g+f⋅g′ | dxd[uv]=udxdv+vdxdu |
| Quotient Rule | (gf)′=g2f′⋅g−f⋅g′ | dxd[vu]=v2vdxdu−udxdv |
| Chain Rule | (f∘g)′(x)=f′(g(x))⋅g′(x) | dxdy=dudy⋅dxdu |
Proof of the Product Rule (The Add-and-Subtract Trick)
Consider P(x)=f(x)g(x):
P′(x)=limh→0hf(x+h)g(x+h)−f(x)g(x)
Add and subtract f(x+h)g(x) in the numerator:
=limh→0hf(x+h)g(x+h)−f(x+h)g(x)+f(x+h)g(x)−f(x)g(x)
Factor into two limits:
=limh→0f(x+h)[hg(x+h)−g(x)]+limh→0g(x)[hf(x+h)−f(x)]
Since f is differentiable, it is continuous, so limh→0f(x+h)=f(x):
=f(x)g′(x)+g(x)f′(x)
5. Failure Modes & Common Exam Pitfalls
The Non-Negotiable Hierarchy: Differentiability │ ▼ (Guaranteed) Continuity │ ▼ (NOT reversible!) Does NOT imply Differentiability!
Pitfall 1: Continuity Does NOT Guarantee Differentiability
A function can be continuous everywhere yet fail to be differentiable at a point.
The Canonical Non-Example: f(x)=∣x∣ at x=0.
- Continuous at 0: limx→0∣x∣=0=f(0).
- Left-hand derivative: limh→0−h∣0+h∣−0=limh→0−h−h=−1.
- Right-hand derivative: limh→0+h∣0+h∣−0=limh→0+hh=+1.
- Because the left and right limits do not match, f′(0) does not exist. Graphically, this is a sharp corner (cusp).
Pitfall 2: The Chain Rule "Forgotten Tail"
When differentiating composite functions like y=ln(3x2+5):
- Correct: 3x2+51×dxd(3x2+5)=3x2+56x.
- Common blunder: Writing 3x2+51, forgetting to multiply by the derivative of the inside g′(x)=6x.
Pitfall 3: Quotient Rule Numerator Sign Inversion
- Correct: g2f′g−fg′ ("Low d-High minus High d-Low over Low squared").
- Blunder: g2fg′−f′g. This flips the sign of the entire derivative, turning positive slopes negative!
6. Question-Pattern Anatomy (8 Finite Exam Shapes)
Shape 1: First Principles Limit Recognition
- Cue: "Find the value of limh→0hsin(x+h)−sin(x)."
- Attack: Do not expand trigonometry with angle-sum formulas! Recognize this as the exact limit definition of dxd[sinx]=cosx.
Shape 2: Differentiability at Piecewise Junctions
- Cue: "For what values of a and b is f(x)={x2ax+bx≤1x>1 differentiable everywhere?"
- Attack:
- Continuity at x=1: 12=a(1)+b⟹a+b=1.
- Matching derivatives at x=1: dxd(x2)x=1=2(1)=2. Right derivative is a. Thus a=2.
- Solve for b: 2+b=1⟹b=−1.
Shape 3: Equation of Tangent and Normal Lines
- Cue: "Find the equation of the normal line to y=x3−2x+4 at x=1."
- Attack:
- Point: y(1)=1−2+4=3⟹(1,3).
- Derivative: y′=3x2−2⟹mtangent=3(1)2−2=1.
- Normal slope: mnormal=−mtangent1=−1.
- Equation: y−3=−1(x−1)⟹y=−x+4.
Shape 4: Repeated Chain Rule with Trig & Exponentials
- Cue: "Find dxd[esin(x2)]."
- Attack: Work from outside to inside: dxd[eu]=eu⋅u′=esin(x2)⋅cos(x2)⋅2x=2xcos(x2)esin(x2)
Shape 5: Logarithmic Differentiation for Variable Exponents (f(x)g(x))
- Cue: "Differentiate y=xx."
- Attack:
- Take natural log: lny=xlnx.
- Implicit differentiation: y1y′=1⋅lnx+x⋅x1=lnx+1.
- Multiply by y: y′=xx(lnx+1).
Shape 6: Linear Approximation via Differentials
- Cue: "Use linear approximation to estimate 4.08."
- Attack:
- f(x)=x, anchor point a=4, Δx=0.08.
- f(4)=2, f′(x)=2x1⟹f′(4)=41=0.25.
- L(4.08)=f(4)+f′(4)Δx=2+0.25(0.08)=2.02.
Shape 7: Evaluating Indeterminate Limits via L'Hôpital's Rule
- Cue: "Evaluate limx→0x2ex−1−x."
- Attack: Form is 00. Differentiate top and bottom: limx→02xex−1(00)⟹limx→02ex=21
Shape 8: Corner and Vertical Tangent Testing
- Cue: "Is f(x)=x1/3 differentiable at x=0?"
- Attack: f′(0)=limh→0hh1/3−0=limh→0h2/31=+∞ The limit is infinite. Thus, the curve has a vertical tangent, and f is not differentiable at 0.
7. Interactive Verification & Attempt-First Self-Checks
1
Question 1
Type: MCQ | Marks: 1 | Topic: Continuity vs differentiability of piecewise functions
Consider the piecewise function:
f(x)={3x2+112x−11x<2x≥2
Which of the following statements is true regarding f(x) at x=2?
MCQ
Continuity vs differentiability of piecewise functions
3 Unit Assessment
A
f(x) is continuous at x=2, but not differentiable at x=2.
B
f(x) is both continuous and differentiable at x=2.
C
f(x) is differentiable at x=2, but not continuous at x=2.
D
f(x) is neither continuous nor differentiable at x=2.
2
Question 2
Type: MCQ | Marks: 1 | Topic: Horizontal tangent lines via quotient rule
If y=xlnx, at what value of x is the tangent line to the curve horizontal (y′=0)?
MCQ
Horizontal tangent lines via quotient rule
3 Unit Assessment
A
x=1
B
x=e
C
x=e2
D
x=0
3
Question 3
Type: MCQ | Marks: 1 | Topic: Nested chain rule with trigonometric powers
What is the derivative of f(x)=sin2(3x) with respect to x?
MCQ
Nested chain rule with trigonometric powers
3 Unit Assessment
A
6sin(3x)cos(3x)
B
2sin(3x)cos(3x)
C
3sin(3x)cos(3x)
D
6cos(3x)
8. Next Action & Spacing Rail
- Next Invariant Chapter: Proceed to
Applications of Derivatives — Maxima, Minima & Tangentsto use first and second derivative tests for curve sketching and optimization. - Data Science Optimization Connection: In
BSMA1003 (Maths 2), you will extend this 1D derivative into partial derivatives and the gradient vector ∇f, the mathematical foundation of training modern neural networks. - Flashcard Prompt: What are the three non-differentiable scenarios? (Sharp corner, vertical tangent, discontinuity).
Chapter provenance: authored 2026-09-12 to the layered-chapter standard (
docs/roadmaps/2026-09-12-claude-content-ecosystem.md, syntax per docs/authoring/AUTHORING_COOKBOOK.md), scoped against the BSMA1001 syllabus vault and the imported 698 - Derivatives — Definition and Rules.md (untouched; this file is its new sibling).