What Is Calculus?
Calculus is the branch of mathematics concerned with instantaneous rates of change ( differential calculus ) and the accumulation of quantities ( integral calculus ). It is arguably the most powerful mathematical tool ever developed — underpinning physics, engineering, economics, biology, and modern data science.
Calculus was independently developed in the 17th century by Isaac Newton (who called it "the method of fluxions") and Gottfried Wilhelm Leibniz (who introduced the ∫ symbol and dy/dx notation). The priority dispute between their followers was bitter, but both formulations are equivalent; today we use Leibniz's notation almost universally.
🔑 The Two Fundamental Problems of Calculus
Tangent problem: given a curve, find the slope of the line tangent to it at any point — differential calculus.
Area problem: given a curve, find the area enclosed between it and the x-axis — integral calculus.
The Fundamental Theorem of Calculus reveals that these two problems are inverses of each other.
Limits and Continuity
All of calculus rests on the concept of a limit . Informally, "the limit of f(x) as x approaches a equals L" means that f(x) can be made arbitrarily close to L by choosing x sufficiently close to a (but not equal to a).
The formal epsilon-delta definition: for every ε > 0, there exists δ > 0 such that if 0 < |x - a| < δ, then |f(x) - L| < ε. This rigorous definition, developed by Weierstrass, put calculus on a solid logical foundation in the 19th century.
Limit Laws and L'Hôpital's Rule
Standard limit laws allow algebraic manipulation: the limit of a sum/product/quotient is the sum/product/quotient of the limits (provided the denominator limit ≠ 0). L'Hôpital's Rule handles indeterminate forms (0/0 or ∞/∞) by differentiating numerator and denominator separately:
Continuity: a function is continuous at x = a if it is defined there, the limit exists, and the limit equals the function value. The Intermediate Value Theorem (IVT) states that a continuous function on [a, b] takes every value between f(a) and f(b) — a key tool in proving existence of roots.
lim[x→a] f(x) = L
Differential Calculus
The Derivative — Definition
The derivative f'(x) measures the instantaneous rate of change of f at x. It is defined as the limit of the difference quotient:
Geometrically, f'(a) is the slope of the tangent line to the graph of f at the point (a, f(a)). The derivative exists (the function is "differentiable") only where the limit exists and the function is sufficiently smooth.
Differentiation Rules
Applications of Derivatives
Optimization: at a local maximum or minimum, f'(x) = 0 (critical point). The second derivative test distinguishes maxima (f'' < 0) from minima (f'' > 0). Used in engineering design, economics (profit maximization), and machine learning (gradient descent minimizes loss functions).
Related rates: if two quantities are related, differentiate the relationship with respect to time to find how their rates of change are related. Classic example: how fast is the area of a circular ripple increasing, given the radius growth rate?
Linear approximation: f(x) ≈ f(a) + f'(a)(x − a) near x = a. This tangent-line approximation underpins numerical methods like Newton's method for root finding.
f'(x) = lim[h→0] [f(x+h) - f(x)] / h
Integral Calculus
The Indefinite Integral (Antiderivative)
The indefinite integral reverses differentiation. If F'(x) = f(x), then F is an antiderivative of f:
Key antiderivatives: ∫xⁿ dx = xⁿ⁺¹/(n+1) + C (n ≠ −1); ∫eˣ dx = eˣ + C; ∫(1/x) dx = ln|x| + C; ∫sin x dx = −cos x + C.
The Definite Integral (Riemann Integral)
The definite integral ∫[a→b] f(x)dx computes the signed area between the curve y = f(x) and the x-axis from a to b. It is defined as the limit of Riemann sums: partition [a, b] into n subintervals of width Δx, evaluate f at sample points, sum the rectangles, and take n → ∞:
Fundamental Theorem of Calculus
The FTC is the crown jewel of calculus, unifying differentiation and integration. It has two parts:
FTC II means you can evaluate definite integrals algebraically — no need to sum infinitely many rectangles numerically (for most functions).
Integration Techniques
Substitution (u-sub)
Reverse the chain rule. Let u = g(x), du = g'(x)dx, transform the integral into ∫f(u)du. Best when the integrand contains a function and its derivative.
Integration by Parts
Reverse the product rule: ∫u dv = u·v − ∫v du. Choose u = the "LIATE" priority (Log, Inverse trig, Algebraic, Trig, Exp). Best when integrand is a product of different types.
Partial Fractions
Decompose rational functions into simpler fractions before integrating. E.g., 1/(x²−1) = ½·[1/(x−1) − 1/(x+1)], then integrate each term as ln.
Trigonometric Substitution
For integrands involving √(a²−x²), √(a²+x²), or √(x²−a²), substitute x = a·sinθ, a·tanθ, or a·secθ to eliminate the radical.
∫f(x) dx = F(x) + C (C = arbitrary constant of integration)
Taylor and Maclaurin Series
Many functions can be expressed as infinite power series. The Taylor series of f centered at x = a is:
When a = 0, this is the Maclaurin series . Famous examples:
Taylor series are used in numerical analysis, physics (approximating potentials), information theory, and probability. Euler's identity e^(iπ) + 1 = 0 follows directly from the complex-valued exponential series.
f(x) = Σ[n=0 to ∞] f⁽ⁿ⁾(a)/n! · (x−a)ⁿ
Multivariable Calculus
For functions of several variables f(x, y, z, ...), calculus generalizes naturally:
Partial derivatives: ∂f/∂x differentiates with respect to x while treating y, z as constants. Measures the rate of change along one axis.
Gradient (∇f): the vector of all partial derivatives, points in the direction of steepest ascent. |∇f| is the maximum rate of change. The gradient is the engine behind gradient descent in machine learning.
Divergence and Curl: for vector fields — divergence (∇·F) measures source/sink strength; curl (∇×F) measures rotation. Used in electromagnetism (Maxwell's equations) and fluid dynamics (Navier-Stokes).
Multiple integrals: ∬ and ∭ extend area/volume computations to 2D and 3D regions. Change of variables (Jacobian) simplifies calculations in polar, cylindrical, and spherical coordinates.
Stokes' Theorem and Gauss's Theorem: elegant generalizations of FTC II to higher dimensions, fundamental in physics.
Applications in Science and Engineering
Physics: all of classical mechanics, electromagnetism, thermodynamics, and quantum mechanics is written in the language of calculus. Newton's second law F = ma is a differential equation. Maxwell's equations are vector PDEs. Schrödinger's equation is a PDE.
Engineering: control systems (PID controllers), signal processing (Fourier and Laplace transforms), circuit analysis (differential equations for current/voltage), structural mechanics (elasticity equations).
Economics: marginal cost/revenue, consumer and producer surplus (definite integrals), optimization of utility functions, differential equations for growth models.
Machine learning: gradient descent minimizes a loss function via repeated steps in the negative gradient direction: θ ← θ − α·∇L(θ). Backpropagation is the chain rule applied recursively through a neural network computation graph.
Try it live
Everything above runs in your browser — open Spirograph and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Spirograph simulation