Calculus

A complete course from functions and limits to vector calculus. Learn how to use derivatives, integrals, differential equations and series, and see why the methods work.

20 modulesabout 88 hoursevery result checked with SymPyEN · 中文
Start with Module 1 →

Who this series is for

You remember school algebra: fractions, powers, equations, the graph of a straight line. You have not studied calculus, or you studied it long ago and want to understand it properly this time. You may be a student, or you may work in computing, engineering or science and meet derivatives, integrals and gradients in your work. The series assumes nothing else. If your algebra is rusty, the Optional algebra refresher of Mathematical Foundations is a good place to start.

What you will be able to do

How it works

Start with Module 1 and work through the five parts in order. New ideas start with a picture or an example before the precise definitions. The text gives proofs for many theorems, with some of the harder arguments in optional “Going deeper” boxes. Every module has a quiz and exercises at three levels, with worked solutions. Most modules have an interactive demonstration.

What you need. Have paper, a pencil and a scientific calculator set to radians. The “Checked” mark shows where worked calculations were verified with SymPy. Python is optional. The “Compute it” boxes show how to explore the maths with code, and the outputs come from running that code.

Part I · Functions, limits and continuity

Module 14 h
Functions and change
Learn what calculus is for, then build its raw material, functions, and the families of functions it uses most. You will finish by computing average speeds over shorter and shorter time intervals, the first step towards the derivative, and, if you like, by setting up Python to check your work.
Module 24 h
Limits
Learn what it means for a function to approach a value, and how to find limits from tables, graphs and algebra. You will prove the limit on which the calculus of sine and cosine rests, use the precise ε–δ definition in proofs, and see when a computer gets a limit wrong.
Module 34.5 h
Continuity and infinity
Learn what it means for a function to be continuous, and what continuity guarantees: solutions of equations, which the bisection method finds to any accuracy you ask for, and largest and smallest values. Then follow functions out to infinity, through asymptotes and limits at infinity, to the orders of growth behind big-O notation.

Part II · Derivatives

Module 44.3 h
The derivative
Turn the average rates of Module 1 into instantaneous ones. You will define the derivative as a limit, read it as the slope of a tangent line and as a velocity, prove the first rules of differentiation, and compute derivatives by computer, exactly with SymPy and numerically, where small steps meet the limits of floating-point arithmetic.
Module 54.3 h
Rules of differentiation
Differentiate products, quotients, trigonometric functions and compositions by rule instead of by limit, know why each rule is true, and check your answers by hand, on a graph and with SymPy. You will also see how a program differentiates another program exactly, with dual numbers.
Module 64.5 h
Exponentials, logarithms and implicit differentiation
Find out where the number e comes from and why e to the x is its own derivative. Then differentiate logarithms, inverse functions, the inverse trigonometric and hyperbolic functions and curves given by equations, and check the formulas of exponential growth and decay.
Module 74.3 h
Rates, approximation and L'Hôpital's rule
Put derivatives to work. Find how fast one quantity changes from how fast another does, approximate a function by its tangent line, estimate how errors in measurements spread into results, solve equations with Newton’s method, and evaluate the limits that the limit laws cannot, with L’Hôpital’s rule.
Module 84.5 h
The shape of a graph and optimisation
Use derivatives to find the largest and smallest values of a function, to see where its graph rises, falls and bends, and to solve optimisation problems from geometry, physics and economics. You will prove the Mean Value Theorem and the tests that rest on it, sketch graphs from their derivatives, and minimise a function the way machine learning does, by gradient descent.

Part III · Integrals

Module 94.5 h
Area and the definite integral
Find areas and distances by adding up thin rectangles, and make the idea exact. You will compute Riemann sums by hand and by computer, find areas exactly as limits of sums, define the definite integral, and evaluate and estimate integrals with their properties, with geometry and with symmetry.
Module 104.3 h
The Fundamental Theorem of Calculus
Connect the two halves of calculus. You will find functions from their derivatives, watch the area under a graph grow as its right end moves, prove that it grows at a rate equal to the height of the graph, evaluate integrals with antiderivatives instead of limits of sums, reverse the chain rule with substitution, and integrate with SymPy.
Module 114.5 h
Techniques of integration
Integrate products, powers of trigonometric functions, square roots of quadratics and rational functions, by parts, with identities, with trigonometric substitutions and with partial fractions. You will also learn to choose a method, to check a computer’s answer, to recognise integrands with no elementary antiderivative, and to bound the error of a numerical approximation when the integrand has the required derivatives.
Module 124.5 h
Applications of integration and improper integrals
Use integrals to add up quantities that are spread out (areas between curves, volumes, lengths of curves, the work done by varying forces, centres of mass), all with one method: slice, approximate, add and take the limit. Then extend integrals to infinite intervals and to functions that blow up, and use them to compute probabilities.
Module 134.5 h
Differential equations
Write down the equations that describe growth, cooling, falling and mixing, and read their solutions from a picture before you solve anything. Then compute solutions step by step with Euler’s method, solve the main kinds of equation exactly, from separable and linear equations to the vibrations of a spring, and check every answer by substituting it back.

Part IV · Sequences and series

Module 144.5 h
Sequences and series
Learn when an infinite list of numbers settles down to a limit, and what it means to add up infinitely many numbers. You will sum geometric and telescoping series, see why the harmonic series diverges although its terms shrink to 0, decide convergence with a toolkit of tests, and estimate sums with a guaranteed bound on the error.
Module 154.5 h
Power series and Taylor series
Turn functions into polynomials that never end. You will find where a power series converges, build the series of the standard functions, bound the error of every approximation with Taylor’s theorem, and use series to compute e, π and ln 2, evaluate limits, simplify formulas of physics and see how a computer evaluates a sine. At the end, the series of the exponential, the sine and the cosine combine into Euler’s formula.

Part V · Several variables

Module 164.5 h
Curves and vectors
Describe curves by a moving point and by polar coordinates, and find their slopes, lengths and areas. Then learn the language of calculus in several variables, vectors in the plane and in space, and use it to describe lines, planes and motion along a path.
Module 174.5 h
Partial derivatives and the gradient
Extend the derivative to functions of several variables. You will read surfaces and contour maps, compute partial derivatives, tangent planes and linear approximations, and use the chain rule with tree diagrams; then you will find the direction of steepest ascent with the gradient and put it to work as machine learning does, in gradient descent and backpropagation.
Module 184.5 h
Optimisation in several variables
Find the highest and lowest points of a function of two or more variables. You will classify critical points with the Hessian, find absolute extreme values on closed bounded regions, optimise under constraints with Lagrange multipliers, fit a line to data by least squares, and see why gradient descent can zigzag when a function curves much more steeply in one direction than in another.
Module 194.5 h
Multiple integrals
Add up quantities spread over a region of the plane or of space, such as the volume under a surface, the mass of a plate, the balance point of a solid or the probability that a random point lands in a region. You will define double and triple integrals as limits of Riemann sums, evaluate them one variable at a time, choose the coordinates (polar, cylindrical, spherical or your own) that make them easy, and prove the value of the Gaussian integral that Module 12 quoted.
Module 204.5 h
Vector calculus
Do calculus with vector fields, the arrows of wind, flowing water, gravity and electricity. You will integrate fields along curves and over surfaces, measure how a flow turns and spreads with curl and divergence, and meet Green’s theorem, Stokes’ theorem and the divergence theorem, which turn out to be the Fundamental Theorem of Calculus in new forms.

Reference and downloads

Use the formula sheet for formulas and their conditions, the glossary for terms and notation, and Common mistakes for counterexamples and fixes. The Python code ZIP contains the modules’ computing examples and separate scripts for exercises that use Python.

Going further

On this site, Mathematical Foundations for Computer Science and AI applies calculus with linear algebra, probability and optimisation, and AI: From Machine Learning to Large Language Models shows gradients at work in machine learning. For more practice, try the free OpenStax Calculus textbooks or MIT OpenCourseWare’s Single Variable Calculus and Multivariable Calculus courses.