The mathematical study of continuous change. Calculus provides the framework for modeling systems in motion, understanding rates of change, and computing areas and volumes with extraordinary precision.
What is Calculus?
Calculus is one of the greatest intellectual achievements in human history. Developed independently by Isaac Newton and Gottfried Wilhelm Leibniz in the late 17th century, calculus provides the mathematical language for describing change and accumulation. While algebra deals with static relationships, calculus gives us the tools to analyze quantities that are constantly in flux.
Calculus is divided into two major branches:
Differential Calculus: Concerned with rates of change and slopes of curves. The central concept is the derivative.
Integral Calculus: Concerned with accumulation of quantities and areas under curves. The central concept is the integral.
These two branches are intimately connected by the Fundamental Theorem of Calculus, which shows that differentiation and integration are inverse processes — one of the most beautiful results in all of mathematics.
Calculus is the foundation for physics, engineering, economics, computer science, statistics, and nearly every branch of modern science. If algebra is the language of mathematics, calculus is the language of the universe.
At its heart, calculus tackles two fundamental questions:
The tangent problem: Given a curve, how do we find the slope at any point? (Answered by derivatives)
The area problem: Given a curve, how do we find the area beneath it? (Answered by integrals)
Limits and Continuity
The concept of a limit is the foundation upon which all of calculus is built. A limit describes what value a function approaches as the input approaches a certain point — even if the function never actually reaches that value.
Definition of a Limit
We write:
lim(x→a) f(x) = L
This means: as x gets closer and closer to a (from both sides), the values of f(x) get closer and closer to L. The formal epsilon-delta definition states: for every ε > 0 there exists a δ > 0 such that if 0 < |x - a| < δ, then |f(x) - L| < ε.
Example: Evaluate lim(x→2) (x² - 4)/(x - 2)
Direct substitution gives 0/0 (indeterminate form).
Intuitively, a function is continuous if you can draw its graph without lifting your pen. Common continuous functions include polynomials, exponentials, sine, and cosine.
The Intermediate Value Theorem (IVT) states that if f is continuous on [a, b] and N is between f(a) and f(b), then there exists some c in (a, b) such that f(c) = N. This theorem guarantees that continuous functions don't "skip" values.
L'Hôpital's Rule
When evaluating a limit results in an indeterminate form such as 0/0 or ∞/∞, L'Hôpital's Rule provides a powerful technique:
If lim(x→a) f(x)/g(x) is 0/0 or ∞/∞, then: lim(x→a) f(x)/g(x) = lim(x→a) f'(x)/g'(x)
provided the limit on the right side exists (or is ±∞).
Example: Evaluate lim(x→0) sin(x)/x
Direct substitution gives 0/0 (indeterminate).
Apply L'Hôpital's Rule: Differentiate numerator and denominator separately:
This tells us that x grows much faster than ln(x).
Derivatives
The derivative of a function measures how the function's output changes as its input changes. Geometrically, the derivative at a point gives the slope of the tangent line to the curve at that point.
This is also called the limit definition of the derivative or the derivative from first principles. The notation f'(x) (Lagrange notation) is equivalent to dy/dx (Leibniz notation) or Df (Euler notation).
Example: Find the derivative of f(x) = x² from first principles
f'(x) = lim(h→0) [(x + h)² - x²] / h
= lim(h→0) [x² + 2xh + h² - x²] / h
= lim(h→0) [2xh + h²] / h
= lim(h→0) (2x + h)
= 2x
Basic Derivative Rules
Rather than using the limit definition every time, we use these established rules:
Constant Rule
d/dx [c] = 0
The derivative of any constant is zero.
Power Rule
d/dx [xⁿ] = n · xⁿ⁻¹
This is the most frequently used derivative rule. It works for any real number exponent n.
The chain rule is used to differentiate composite functions — functions within functions:
d/dx [f(g(x))] = f'(g(x)) · g'(x)
In Leibniz notation: dy/dx = (dy/du) · (du/dx)
Example: Differentiate y = (3x + 1)⁵
Let u = 3x + 1 so that y = u⁵
dy/du = 5u⁴, du/dx = 3
dy/dx = 5(3x + 1)⁴ · 3 = 15(3x + 1)⁴
Example: Differentiate y = sin(x²)
Outer function: sin(u), inner function: u = x²
dy/dx = cos(x²) · 2x = 2x cos(x²)
Derivatives of Common Functions
d/dx [sin(x)] = cos(x)
d/dx [cos(x)] = -sin(x)
d/dx [tan(x)] = sec²(x)
d/dx [eˣ] = eˣ
d/dx [ln(x)] = 1/x
d/dx [aˣ] = aˣ · ln(a)
d/dx [arcsin(x)] = 1/√(1 - x²)
d/dx [arctan(x)] = 1/(1 + x²)
Implicit Differentiation
When y is not explicitly defined as a function of x, we differentiate both sides of the equation with respect to x, treating y as a function of x and applying the chain rule:
Example: Find dy/dx for x² + y² = 25
Differentiate both sides with respect to x:
2x + 2y · (dy/dx) = 0
2y · (dy/dx) = -2x
dy/dx = -x/y
Applications of Derivatives
Derivatives have an enormous range of practical applications. They allow us to analyze the behavior of functions, solve optimization problems, and model real-world phenomena.
Rates of Change
The derivative f'(x) gives the instantaneous rate of change of f at x. This is the foundation of physics, engineering, and economics.
If s(t) is position, then s'(t) = v(t) is velocity
If v(t) is velocity, then v'(t) = a(t) is acceleration
If C(x) is cost, then C'(x) is marginal cost
If P(t) is population, then P'(t) is the growth rate
Example: A particle's position is s(t) = t³ - 6t² + 9t + 2. Find the velocity and acceleration at t = 2.
The maximum area is 50 × 50 = 2,500 m² (a square!)
Verify: A''(x) = -2 < 0, confirming this is a maximum.
Related Rates
Related rates problems involve finding how fast one quantity changes when a related quantity is changing. The key technique is to differentiate an equation relating the variables with respect to time (t).
Example: A balloon is being inflated so that its volume increases at a rate of 100 cm³/s. How fast is the radius increasing when the radius is 5 cm?
Known: dV/dt = 100 cm³/s, r = 5 cm
Relationship: V = (4/3)πr³
Differentiate with respect to t: dV/dt = 4πr² · (dr/dt)
In related rates problems, always identify what you know, what you need to find, write an equation relating the variables, differentiate with respect to time, and then plug in values. Never plug in specific values before differentiating.
Integrals
Integration is the reverse process of differentiation. While derivatives measure rates of change, integrals measure accumulation. Geometrically, the definite integral computes the signed area between a function and the x-axis.
Indefinite Integrals (Antiderivatives)
An antiderivative of f(x) is a function F(x) such that F'(x) = f(x). We write:
∫ f(x) dx = F(x) + C
where C is the constant of integration. The constant is necessary because many functions share the same derivative (e.g., x², x² + 5, and x² - 3 all have derivative 2x).
Basic Integration Rules
Power Rule: ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C, for n ≠ -1
If f(x) ≥ g(x) on [a, b], then ∫ₐᵇ f(x) dx ≥ ∫ₐᵇ g(x) dx
The definite integral ∫ₐᵇ f(x) dx represents the net signed area between f(x) and the x-axis. Area above the x-axis is positive, and area below is negative. For total area, integrate |f(x)|.
Integration Techniques
Many functions cannot be integrated using basic rules alone. The following techniques extend our ability to evaluate integrals significantly.
U-Substitution (Substitution Method)
Substitution is the integration counterpart of the chain rule. We identify a part of the integrand as u, compute du, and rewrite the integral in terms of u.
∫ f(g(x)) · g'(x) dx = ∫ f(u) du, where u = g(x)
Example: Evaluate ∫ 2x · cos(x²) dx
Let u = x², then du = 2x dx
∫ 2x · cos(x²) dx = ∫ cos(u) du = sin(u) + C = sin(x²) + C
Example: Evaluate ∫ x/(x² + 1) dx
Let u = x² + 1, then du = 2x dx, so x dx = du/2
∫ x/(x² + 1) dx = (1/2) ∫ (1/u) du = (1/2) ln|u| + C = (1/2) ln(x² + 1) + C
Integration by Parts
Integration by parts is the integration counterpart of the product rule:
∫ u dv = uv - ∫ v du
Choose u and dv using the LIATE priority: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential.
Example: Evaluate ∫ x · eˣ dx
Choose: u = x (algebraic), dv = eˣ dx
Then: du = dx, v = eˣ
∫ x · eˣ dx = x · eˣ - ∫ eˣ dx = x · eˣ - eˣ + C = eˣ(x - 1) + C
Example: Evaluate ∫ ln(x) dx
Choose: u = ln(x), dv = dx
Then: du = (1/x) dx, v = x
∫ ln(x) dx = x · ln(x) - ∫ x · (1/x) dx = x · ln(x) - ∫ 1 dx
= x ln(x) - x + C
Partial Fraction Decomposition
This technique decomposes a rational function into simpler fractions that are easier to integrate. It applies when the degree of the numerator is less than the degree of the denominator.
The Fundamental Theorem of Calculus (FTC) is arguably the most important theorem in calculus. It establishes the profound connection between differentiation and integration, showing they are inverse processes.
Part 1 (FTC I)
If f is continuous on [a, b] and we define:
F(x) = ∫ₐˣ f(t) dt
then F is differentiable on (a, b) and:
F'(x) = f(x)
In other words, the derivative of the integral of f is f itself. Integration and differentiation are inverse operations.
Example: Find d/dx [∫₁ˣ (t³ + 2t) dt]
By FTC Part 1, the answer is simply: x³ + 2x
(Replace t with x in the integrand.)
Example: Find d/dx [∫₀ˣ² eᵗ dt]
The upper limit is x² (not just x), so we need the chain rule:
If f is continuous on [a, b] and F is any antiderivative of f, then:
∫ₐᵇ f(x) dx = F(b) - F(a)
This theorem tells us that to evaluate a definite integral, we only need to find an antiderivative and compute the difference of its values at the endpoints. This is the formula we use in practice when computing definite integrals.
The Fundamental Theorem of Calculus connects the two main problems that motivated calculus — finding tangent lines (derivatives) and finding areas (integrals). Newton and Leibniz independently discovered this connection, and it unified centuries of mathematical work.
Applications of Integration
Integration has countless applications in science, engineering, and mathematics. Here are some of the most important geometric and physical applications.
Area Between Curves
The area between two curves y = f(x) and y = g(x) from x = a to x = b, where f(x) ≥ g(x), is:
A = ∫ₐᵇ [f(x) - g(x)] dx
Example: Find the area between y = x² and y = x from x = 0 to x = 1
On [0, 1], x ≥ x² (the line is above the parabola).
A = ∫₀¹ (x - x²) dx = [x²/2 - x³/3]₀¹
= (1/2 - 1/3) - (0 - 0) = 1/6
Volume of Solids of Revolution
Disk Method
When rotating a region around an axis, each cross-section is a disk:
V = π ∫ₐᵇ [R(x)]² dx
where R(x) is the distance from the curve to the axis of rotation.
Example: Find the volume when y = √x is rotated about the x-axis from x = 0 to x = 4
V = π ∫₀⁴ (√x)² dx = π ∫₀⁴ x dx = π [x²/2]₀⁴
= π (16/2 - 0) = 8π
Washer Method
When there is a hole in the solid (rotating the area between two curves):
V = π ∫ₐᵇ {[R(x)]² - [r(x)]²} dx
where R(x) is the outer radius and r(x) is the inner radius.
Shell Method
An alternative approach using cylindrical shells:
V = 2π ∫ₐᵇ x · f(x) dx
This method is especially useful when rotating about the y-axis.
A sequence is an ordered list of numbers, and a series is the sum of the terms of a sequence. Infinite series are crucial in calculus because they allow us to represent functions as sums of simpler terms.
An infinite series is a sum of infinitely many terms:
∑(n=1 to ∞) aₙ = a₁ + a₂ + a₃ + ...
The series converges if the sequence of partial sums Sₙ = a₁ + a₂ + ... + aₙ converges to a finite limit.
Important Series Types
Geometric Series
∑(n=0 to ∞) arⁿ = a/(1 - r), provided |r| < 1
A geometric series converges if and only if |r| < 1.
Example: Find the sum of ∑(n=0 to ∞) (1/2)ⁿ
Here a = 1 and r = 1/2. Since |1/2| < 1, the series converges:
Sum = 1/(1 - 1/2) = 1/(1/2) = 2
p-Series
∑(n=1 to ∞) 1/nᵖ converges if p > 1, diverges if p ≤ 1
The special case p = 1 gives the harmonic series ∑ 1/n, which diverges.
Convergence Tests
To determine whether a series converges, use these tests:
The Divergence Test (nth Term Test)
If lim(n→∞) aₙ ≠ 0, then the series ∑ aₙ diverges.
The Divergence Test can only prove divergence, never convergence. If lim aₙ = 0, the test is inconclusive — the series may converge or diverge (the harmonic series is a classic example).
Integral Test
If f is positive, continuous, and decreasing on [1, ∞) and aₙ = f(n), then ∑ aₙ and ∫₁^∞ f(x) dx either both converge or both diverge.
bₙ₊₁ ≤ bₙ for all n (terms are decreasing in absolute value)
lim(n→∞) bₙ = 0
Power Series
A power series centered at a is:
∑(n=0 to ∞) cₙ(x - a)ⁿ = c₀ + c₁(x - a) + c₂(x - a)² + ...
Every power series has a radius of convergence R. The series converges for |x - a| < R and diverges for |x - a| > R.
Taylor and Maclaurin Series
The Taylor series of a function f(x) centered at x = a is:
f(x) = ∑(n=0 to ∞) [f⁽ⁿ⁾(a)/n!] (x - a)ⁿ
A Maclaurin series is a Taylor series centered at a = 0.
Important Maclaurin Series
eˣ = ∑(n=0 to ∞) xⁿ/n! = 1 + x + x²/2! + x³/3! + ... (converges for all x)
sin(x) = ∑(n=0 to ∞) (-1)ⁿ x²ⁿ⁺¹/(2n+1)! = x - x³/3! + x⁵/5! - ... (converges for all x)
cos(x) = ∑(n=0 to ∞) (-1)ⁿ x²ⁿ/(2n)! = 1 - x²/2! + x⁴/4! - ... (converges for all x)
1/(1 - x) = ∑(n=0 to ∞) xⁿ = 1 + x + x² + x³ + ... (converges for |x| < 1)
ln(1 + x) = ∑(n=1 to ∞) (-1)ⁿ⁺¹ xⁿ/n = x - x²/2 + x³/3 - ... (converges for -1 < x ≤ 1)
Example: Find the Maclaurin series for f(x) = eˣ up to the x³ term
f(x) = eˣ, so f⁽ⁿ⁾(x) = eˣ for all n, and f⁽ⁿ⁾(0) = 1 for all n.
eˣ = 1 + x + x²/2! + x³/3! + ...
= 1 + x + x²/2 + x³/6 + ...
This gives us the polynomial approximation e ≈ 1 + 1 + 1/2 + 1/6 = 2.667 (actual value ≈ 2.718).
Taylor series are incredibly powerful. They allow us to approximate complicated functions with polynomials, which are much easier to work with. Calculators and computers use Taylor series to compute values of sin, cos, eˣ, and many other functions.
Multivariable Calculus Introduction
So far, we have studied functions of a single variable. Multivariable calculus extends these ideas to functions of two or more variables, such as f(x, y) or f(x, y, z). This is essential for modeling real-world phenomena that depend on multiple factors — temperature across a surface, fluid flow in three dimensions, or profit as a function of multiple inputs.
Functions of Several Variables
A function of two variables, z = f(x, y), maps each ordered pair (x, y) in its domain to a real number z. The graph of such a function is a surface in three-dimensional space.
Example: Function of Two Variables
f(x, y) = x² + y² describes a paraboloid — a bowl-shaped surface.
f(1, 2) = 1 + 4 = 5 (the point (1, 2, 5) lies on the surface)
f(0, 0) = 0 (the vertex of the paraboloid is at the origin)
Partial Derivatives
A partial derivative measures how a multivariable function changes when we vary one variable while holding the others constant.
∂f/∂x = lim(h→0) [f(x + h, y) - f(x, y)] / h
The symbol ∂ (partial) is used instead of d to indicate that other variables are being held constant.
Example: Find the partial derivatives of f(x, y) = x³y + 2xy² - y
∂f/∂x (treat y as a constant): = 3x²y + 2y²
∂f/∂y (treat x as a constant): = x³ + 4xy - 1
Higher-Order Partial Derivatives
We can take partial derivatives of partial derivatives:
∂²f/∂x² — differentiate twice with respect to x
∂²f/∂y² — differentiate twice with respect to y
∂²f/∂x∂y — differentiate first with respect to y, then x (mixed partial)
Clairaut's Theorem: If the second-order mixed partial derivatives are continuous, then the order of differentiation does not matter: ∂²f/∂x∂y = ∂²f/∂y∂x. This is almost always the case for functions encountered in practice.
The Gradient
The gradient of a function f(x, y) is a vector of its partial derivatives:
∇f = (∂f/∂x, ∂f/∂y)
The gradient points in the direction of the steepest increase of the function, and its magnitude gives the rate of increase in that direction. This concept is fundamental in optimization, machine learning (gradient descent), and physics.
Example: Find the gradient of f(x, y) = x² + 3xy at the point (1, 2)
∂f/∂x = 2x + 3y, ∂f/∂y = 3x
∇f = (2x + 3y, 3x)
At (1, 2): ∇f(1, 2) = (2 + 6, 3) = (8, 3)
The function increases most steeply in the direction of the vector (8, 3).
Multiple Integrals
Just as single integrals compute area, double integrals compute volume and triple integrals compute quantities in three dimensions.
Double Integrals
∬_R f(x, y) dA = ∫ₐᵇ ∫_{c}^{d} f(x, y) dy dx
This computes the volume under the surface z = f(x, y) over the region R.
Example: Evaluate ∫₀² ∫₀¹ (x + 2y) dy dx
Inner integral (with respect to y, treating x as constant):
Just as substitution simplifies single integrals, we can change coordinate systems for multiple integrals:
Polar coordinates: x = r cos(θ), y = r sin(θ), dA = r dr dθ — ideal for circular regions
Cylindrical coordinates: x = r cos(θ), y = r sin(θ), z = z, dV = r dz dr dθ
Spherical coordinates: x = ρ sin(φ) cos(θ), y = ρ sin(φ) sin(θ), z = ρ cos(φ), dV = ρ² sin(φ) dρ dφ dθ
Multivariable calculus is the gateway to advanced topics like vector calculus, differential equations, differential geometry, and mathematical physics. The ideas of partial derivatives and multiple integrals are used everywhere — from designing airplane wings to training neural networks.
Vector Calculus
Vector calculus extends the ideas of calculus to vector fields — functions that assign a vector to each point in space. It provides the mathematical language for electromagnetism, fluid dynamics, and many other areas of physics and engineering.
Vector Fields
A vector field in two dimensions is a function F(x, y) = P(x,y)i + Q(x,y)j. Think of it as assigning an arrow (direction and magnitude) to every point in the plane — like a map of wind velocities or fluid flow.
Line Integrals
A line integral calculates the total effect of a vector field along a curve C:
Green's Theorem connects a line integral around a simple closed curve C to a double integral over the region D it encloses:
∮_C (P dx + Q dy) = ∬_D (∂Q/∂x − ∂P/∂y) dA
Example: Use Green's Theorem to evaluate ∮_C (x² dx + xy dy) around the unit circle
P = x², Q = xy. ∂Q/∂x = y, ∂P/∂y = 0.
∮ = ∬_D y dA (over the unit disk)
By symmetry (y is odd over the symmetric disk), the integral = 0
Divergence and Curl
Two fundamental operations on vector fields:
Divergence: div F = ∇ · F = ∂P/∂x + ∂Q/∂y + ∂R/∂z
Curl: curl F = ∇ × F = (∂R/∂y − ∂Q/∂z, ∂P/∂z − ∂R/∂x, ∂Q/∂x − ∂P/∂y)
Divergence measures how much a field "spreads out" from a point (source vs. sink)
Curl measures how much a field "rotates" around a point
The Divergence Theorem (Gauss's Theorem)
Relates a surface integral over a closed surface S to a volume integral over the region V it encloses:
∬_S F · dS = ∭_V (∇ · F) dV
The total flux through a closed surface equals the total divergence within the enclosed volume.
Stokes' Theorem
The 3D generalization of Green's Theorem. Relates a surface integral of the curl over S to a line integral around its boundary ∂S:
∬_S (∇ × F) · dS = ∮_∂S F · dr
Green's, Stokes', and the Divergence Theorem are all special cases of the Generalized Stokes' Theorem from differential geometry: ∫_∂Ω ω = ∫_Ω dω. This single equation unifies all of vector calculus and is one of the most beautiful results in mathematics.
Maxwell's Equations
The crowning achievement of vector calculus in physics: Maxwell's equations describe all of electromagnetism in just four equations using div and curl:
∇ · E = ρ/ε₀ (Gauss's law for electricity)
∇ · B = 0 (Gauss's law for magnetism — no magnetic monopoles)
∇ × E = −∂B/∂t (Faraday's law of induction)
∇ × B = μ₀J + μ₀ε₀ ∂E/∂t (Ampère-Maxwell law)
These four equations predicted the existence of electromagnetic waves (light!) and laid the groundwork for all of modern physics.
Explore Calculus Lessons
Dive deeper into specific calculus topics with our focused lessons: