Table of Contents13 sections
Why Calculus Needs Limits
Algebra gives us the slope of a straight line between two distinct points:
This secant slope measures the average rate of change over an interval of width (for example, your average speed over a -hour road trip).
But what if you want your instantaneous speed at the exact moment you pass a speed camera? If you set directly in the slope formula, you get , which is undefined. Differential calculus resolves this paradox using a limit: we keep and examine what the secant slope approaches as shrinks arbitrarily close to :
As h → 0, the dashed secant line rotates into the solid blue tangent line at (x, f(x)).
Computing a Derivative from First Principles
Let’s see the limit definition in action on :
- Form the difference quotient:
- Factor out (valid because in the limit):
- Let :
At , the slope of is ; at , the slope is (the flat bottom of the parabola).
Core Differentiation Rules
Computing limits from scratch for every problem would be tedious. Using the limit definition once gives us a permanent toolkit of differentiation rules:
| Rule | Function | Derivative | Notes |
|---|---|---|---|
| Constant | Constants never change | ||
| Power Rule | Works for any real (negative, fractional, etc.) | ||
| Constant Multiple | Constants factor out | ||
| Sum / Difference | Differentiate term by term | ||
| Exponential | is its own derivative | ||
| Natural Log | For | ||
| Sine / Cosine | Requires in radians | ||
| Product Rule | Never | ||
| Quotient Rule | Low d-High minus High d-Low, over Low² | ||
| Chain Rule | Outer derivative at inner, times inner derivative |
When a Function Is Not Differentiable
Continuity is necessary for differentiability, but not sufficient. A function fails to have a derivative at if:
- Discontinuity: A jump, hole, or vertical asymptote.
- Sharp corner or cusp: E.g., at , where the left slope is and the right slope is .
- Vertical tangent: E.g., at , where the slope approaches .
Optimization & Critical Points
One of the greatest superpowers of derivatives is finding maximum and minimum values of real-world systems. At any smooth local peak or valley, the tangent line is horizontal ().
To find the extrema of on an interval:
- Solve (or find where is undefined) to locate critical points.
- Use the First Derivative Sign Test ( changes for a maximum; for a minimum) or the Second Derivative Test ( local max; local min).
Progressive Worked Examples
Example 1 (Foundational): Tangent Line to a Polynomial
Find the equation of the tangent line to at :
- Point on curve: .
- Derivative: .
- Slope at : .
- Point-slope form:
Example 2 (Intermediate): Product & Chain Rule Combined
Differentiate :
- Apply the Product Rule with () and .
- Differentiate using the Chain Rule: .
- Combine:
Example 3 (Applied Optimization): Maximizing Rectangular Area
A farmer has of fencing to enclose a rectangular pasture along a straight river (no fence needed along the river). What dimensions maximize the enclosed area?
- Let be the width perpendicular to the river and be the length parallel to the river.
- Constraint: .
- Area function to maximize:
- Differentiate and set to zero:
- Verify maximum: (concave down, guaranteed maximum).
- Find : , giving maximum area .
Why Derivatives Matter
Every modern machine learning model trains via gradient descent—stepping downhill opposite the derivative of a loss function. Physics, economics (marginal cost/revenue), and control theory all speak the language of derivatives.
Common Misconceptions
- Differentiating a product as : Always use the Product Rule .
- Applying the power rule to : . Because is in the exponent, .
- Forgetting the inner derivative in the Chain Rule: .
Quick Summary
- is the instantaneous rate of change / tangent slope.
- Master the Power, Product, Quotient, and Chain rules.
- Critical points () locate maxima and minima for optimization.
Practice Problems
1. Differentiate f(x) = 4x³ - 6/x + 9.
Answer: f′(x) = 12x² + 6/x²
Rewrite 6/x as 6x⁻¹. Power rule gives 12x² - 6(-1)x⁻² + 0 = 12x² + 6/x².
2. Use the Chain Rule to differentiate y = sin(5x²).
Answer: y′ = 10x cos(5x²)
Outer derivative is cos(5x²); multiply by inner derivative d/dx[5x²] = 10x.
3. Find all critical points of f(x) = x³ - 12x + 5.
Answer: x = 2 (local min) and x = -2 (local max)
f′(x) = 3x² - 12 = 0 → x² = 4 → x = ±2. f″(x) = 6x: f″(2) = 12 > 0 (min), f″(-2) = -12 < 0 (max).
Frequently Asked Questions
What is the geometric meaning of the derivative f′(a)?
f′(a) is the exact slope of the line tangent to the curve y = f(x) at the point (a, f(a)).
If a function is continuous at a point, is it always differentiable there?
No. Sharp corners (like |x| at x = 0) and vertical tangents are continuous but not differentiable because the left and right slopes do not match.
What does f′(x) = 0 tell us?
The tangent line is horizontal. Points where f′(x) = 0 are critical points—candidates for local maxima, local minima, or flat inflection points.
What is the second derivative f″(x)?
The derivative of the derivative. Physically, if f(t) is position, f′(t) is velocity and f″(t) is acceleration; geometrically, f″(x) measures concavity (upward vs. downward).