Chapter 2: The Paradox of the DerivativeΒΆ
The OxymoronΒΆ
People say: βThe derivative measures an instantaneous rate of changeβ
But think about it⦠change requires time!
How can something be changing at a single instant?
This is the central paradox of calculus.
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style('whitegrid')
plt.rcParams['figure.figsize'] = (14, 10)
1. The Paradox IllustratedΒΆ
Consider a carβs position: s(t) = tΒ²
At exactly t = 2 seconds:
The car is at position s(2) = 4 meters
What is its velocity?
Problem: Velocity = distance/time
But at a single instant, both distance and time traveled are zero!
def show_paradox():
"""Demonstrate the 0/0 paradox."""
print("The Derivative Paradox\n")
print("=" * 50)
print("\nAt t = 2, with s(t) = tΒ²:")
print(" Position: s(2) = 4")
print(" Distance traveled in 0 time: 0")
print(" Time elapsed: 0")
print(" Velocity = 0/0 = ???\n")
print("We need a better approach!")
print("=" * 50)
show_paradox()
2. The Resolution: LimitsΒΆ
Instead of asking βwhat is ds/dt at a point?β, we ask:
βWhat does ds/dt approach as the interval shrinks?β
The key insight: Even though both numerator and denominator approach 0,
their ratio approaches a specific finite value!
def demonstrate_limit():
"""Show how the limit works for s(t) = tΒ²."""
def s(t):
return t**2
t0 = 2
dt_values = [1, 0.5, 0.1, 0.01, 0.001, 0.0001]
print("Computing the Limit\n")
print("For s(t) = tΒ² at t = 2:\n")
print("Ξt | Ξs | Ξs/Ξt (velocity)")
print("-" * 50)
for dt in dt_values:
ds = s(t0 + dt) - s(t0)
velocity = ds / dt
print(f"{dt:8.4f} | {ds:10.6f} | {velocity:.6f}")
print("-" * 50)
print(f"\nLimit as Ξt β 0: {2*t0:.1f}")
print("\nNotice: Both Ξs and Ξt approach 0,")
print("but their ratio approaches 4!")
demonstrate_limit()
SummaryΒΆ
The ParadoxΒΆ
Instantaneous change seems impossible - itβs a 0/0 situation!
The ResolutionΒΆ
Use limits: Let the interval shrink to zero and see what the ratio approaches.
This is not 0/0, but the limit of a ratio.
Next: How to actually compute derivatives!