Differential Calculus
Differential Calculus: A Complete Guide
The Central Problem: Instantaneous Rate of Change
Consider a car's position function: P(t)=t2, where P is position in meters and t is time in seconds. At t=1, position is 1 m; at t=2, 4 m; at t=3, 9 m. The question: what is the car's exact speed at the single instant t=2 seconds?
Speed normally equals distance divided by time. If the time interval is zero, this becomes division by zero — an undefined operation. This is the central problem of differential calculus: finding the rate of change at an instant.
The Limit: Calculus's Microscope
The limit solves this problem by examining what happens as the interval gets infinitely close to zero. Instead of instantaneous speed directly, we compute average speed over shrinking intervals.
For P(t)=t2, average speed between t=2 and t=3 is 19−4=5 m/s. As the interval shrinks:
From 2 to 2.1: Δt=0.1, ΔP=4.41−4=0.41, average speed =4.1 m/s
From 2 to 2.01: Δt=0.01, ΔP=4.0401−4=0.0401, average speed =4.01 m/s
The pattern shows the average speed approaching 4 m/s. This is expressed as:
Limit: The value a function approaches as the input gets arbitrarily close to a specified point.
Geometric Interpretation: From Secant to Tangent
The average speed between two points on a curve equals the slope of the secant line connecting them. As the interval shrinks, the second point slides closer to the first, and the secant line pivots. In the limit, it becomes the tangent line — the line that just skims the curve at a single point. The slope of this tangent line is the instantaneous rate of change.
The Derivative: Formal Definition
The derivative is a function that gives the instantaneous rate of change at any point. It is defined using the limit:
Definition: The derivative of f(x) with respect to x is
f′(x)=limh→0hf(x+h)−f(x)provided the limit exists.
Interpretation of the formula:
h: a tiny change in the input (like Δt)
f(x+h)−f(x): the change in the output (the "rise")
hf(x+h)−f(x): the average rate of change (rise over run)
limh→0: the squeeze to instantaneous rate
f′(x): the resulting derivative function
Derivative from First Principles: f(x)=x2
Set up the limit: f′(x)=limh→0h(x+h)2−x2
Expand the numerator: (x2+2xh+h2)−x2=2xh+h2
Simplify: limh→0h2xh+h2=limh→0hh(2x+h)
Cancel h: limh→0(2x+h)
Evaluate the limit: 2x+0=2x
Thus, if f(x)=x2, then f′(x)=2x. For the car example, P(t)=t2 gives velocity v(t)=P′(t)=2t, so at t=2, speed is 4 m/s.
Foundational Derivative Library
Derivative of a Constant
If f(x)=c (a constant), then f′(x)=0.
Proof: f′(x)=limh→0hc−c=limh→00=0
Intuition: A horizontal line has zero slope everywhere.
Derivative of a Linear Function
If f(x)=mx, then f′(x)=m.
Proof: f′(x)=limh→0hm(x+h)−mx=limh→0hmh=m
Intuition: A line has constant slope m.
Derivative of ex
If f(x)=ex, then f′(x)=ex.
The number e≈2.718 is the unique base where the function is its own derivative. For the graph y=ex, the slope of the tangent line at any point x equals the function's value at that point:
At x=0, y=1, slope =1
At x=1, y≈2.718, slope ≈2.718
At x=−1, y≈0.367, slope ≈0.367
This property makes e the fundamental language of continuous growth.
Derivative of lnx
If f(x)=lnx, then f′(x)=x1.
At x=0.1, slope ≈10 (very steep)
At x=1, slope =1 (unit slope)
At x=10, slope =0.1 (almost flat)
Derivatives of Trigonometric Functions
dxdsinx=cosx
dxdcosx=−sinx
How cosx describes the slope of sinx:
At x=0, sin0=0, steepest rise, cos0=1 ✓
At x=π/2, sin(π/2)=1 (peak), flat slope, cos(π/2)=0 ✓
At x=π, sinπ=0, steepest fall, cosπ=−1 ✓
At x=3π/2, sin(3π/2)=−1 (trough), flat slope, cos(3π/2)=0 ✓
Basic Differentiation Rules
The Power Rule
Power Rule: dxdxn=nxn−1
Two steps:
Bring the exponent down as a multiplier
Subtract 1 from the exponent
Examples:
x2→2x
x5→5x4
x=x1→1⋅x0=1
x=x1/2→21x−1/2
x21=x−2→−2x−3
The Constant Multiple Rule
Constant Multiple Rule: dxd[c⋅f(x)]=c⋅f′(x)
The constant simply tags along.
Examples:
5x3→5⋅3x2=15x2
−2cosx→−2⋅(−sinx)=2sinx
The Sum and Difference Rule
Sum/Difference Rule: dxd[f(x)±g(x)]=f′(x)±g′(x)
Differentiate each term independently.
Example: h(x)=x4−7x
Derivative of x4: 4x3
Derivative of −7x: −7
Result: h′(x)=4x3−7
Applying the Toolkit to a Complex Function
Find P′(t) for P(t)=4t3−5t2+7t+10:
Term 4t3: 4⋅3t2=12t2
Term −5t2: −5⋅2t=−10t
Term 7t: 7⋅1=7
Term 10: 0
Result: P′(t)=12t2−10t+7
The Product Rule
When two functions are multiplied, the derivative is not simply the product of their derivatives.
Product Rule: dxd[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)
Memory aid: "derivative of the first times the second, plus the first times derivative of the second."
Example: h(x)=x2sinx
Identify f(x)=x2, g(x)=sinx
f′(x)=2x, g′(x)=cosx
Apply rule: h′(x)=2x⋅sinx+x2⋅cosx
The Quotient Rule
For division of functions:
Quotient Rule: dxd[g(x)f(x)]=[g(x)]2f′(x)g(x)−f(x)g′(x)
Memory aid (the famous mnemonic): "Low d high minus high d low, over the square of what's below."
Low = bottom function g(x)
d high = derivative of top f′(x)
High = top function f(x)
d low = derivative of bottom g′(x)
Example: h(x)=x3ex
High = ex, Low = x3
d high = ex, d low = 3x2
Apply: (x3)2x3⋅ex−ex⋅3x2=x6ex(x3−3x2)=x4ex(x−3) (after canceling x2)
Proving the Derivative of tanx
Since tanx=cosxsinx, apply the quotient rule:
High = sinx, d high = cosx
Low = cosx, d low = −sinx
dxdtanx=cos2xcosx⋅cosx−sinx⋅(−sinx)=cos2xcos2x+sin2x=cos2x1=sec2x
Thus, dxdtanx=sec2x is derived, not memorized.
The Chain Rule: The Master Key
For composite functions (a function inside another function):
Chain Rule: If h(x)=f(g(x)), then h′(x)=f′(g(x))⋅g′(x)
In words: derivative of the outside, times derivative of the inside.
Outer function: the "shell" (e.g., sin(⋅), (⋅)7)
Inner function: the "core" (e.g., x2, x3+5x)
Example 1: Polynomial Power
h(x)=(x3+5x)7
Outer: (⋅)7, derivative 7(⋅)6
Inner: x3+5x, derivative 3x2+5
Result: h′(x)=7(x3+5x)6⋅(3x2+5)
Example 2: Trigonometric Composite
h(x)=sin(x2)
Outer: sin(⋅), derivative cos(⋅)
Inner: x2, derivative 2x
Result: h′(x)=cos(x2)⋅2x=2xcos(x2)
Implicit Differentiation
When x and y are mixed together in an equation (implicit relationship) and cannot be easily solved for y, we use implicit differentiation — a clever application of the chain rule.
The Key Idea
Differentiate every term with respect to x.
When differentiating a term with y, treat y as a function of x and multiply by dxdy (by the chain rule).
Algorithm
Differentiate both sides of the equation with respect to x.
For any term containing y, differentiate normally and then multiply by dxdy.
Collect all dxdy terms on one side.
Solve for dxdy algebraically.
Example: Slope of a Circle x2+y2=25
Differentiate both sides: dxd(x2)+dxd(y2)=dxd(25)
Term-by-term:
dxd(x2)=2x
dxd(y2)=2y⋅dxdy (chain rule on y)
dxd(25)=0
Equation: 2x+2ydxdy=0
Solve: dxdy=−yx
Test points:
At (3,4): slope =−43 (reasonable tangent direction)
At (0,5) (top): slope =0 (horizontal tangent) ✓
At (5,0) (rightmost): slope undefined (vertical tangent) ✓
Deriving the Derivative of arcsinx (Victory Lap)
Given y=arcsinx, rewrite implicitly: siny=x.
Differentiate both sides with respect to x: dxd(siny)=dxd(x)⟹cosy⋅dxdy=1
Solve for dxdy: dxdy=cosy1
Express cosy in terms of x: Since siny=x, draw a right triangle with angle y, opposite side x, hypotenuse 1. By Pythagoras, adjacent side =1−x2, so cosy=1−x2.
Substitute: dxdy=1−x21
Thus, dxdarcsinx=1−x21 is a logical consequence of implicit differentiation and the chain rule.
The Complete Differentiation Toolbox
From a single question about a car's speed, the entire machine of differential calculus has been built:
Rule / Function | Derivative |
|---|---|
Constant c | 0 |
Linear mx | m |
Power xn | nxn−1 |
ex | ex |
lnx | x1 |
sinx | cosx |
cosx | −sinx |
tanx | sec2x |
arcsinx | 1−x21 |
Constant multiple c⋅f(x) | c⋅f′(x) |
Sum/Difference f(x)±g(x) | f′(x)±g′(x) |
Product f(x)⋅g(x) | f′(x)g(x)+f(x)g′(x) |
Quotient g(x)f(x) | [g(x)]2f′(x)g(x)−f(x)g′(x) |
Chain Rule f(g(x)) | f′(g(x))⋅g′(x) |
Implicit Differentiation | Differentiate with respect to x; multiply y terms by dxdy |
Every rule follows logically from the definition of the derivative and the limit. There is no magic — only mechanics. The mastery of differentiation opens the door to integral calculus, the second half of the story, and to applications across physics, engineering, economics, and data science.

Ask anything
We've read this whole study set, so questions about it get the best answers.