TExcelTAD
Home › Calculus in Depth › Calculus in Depth Intro

Calculus in Depth Intro

This is the deep calculus course: precise definitions, the main theorems with short proofs, every standard technique and the harder applications, from limits all the way to vector calculus and second-order differential equations, with each result checked in Python.

What this course is (and is not)

The site has two calculus courses that cover the same subject at two depths:

Calculus Essentials Calculus in Depth (this course)
Goal understand what derivatives and integrals mean and use them master the subject at university level
Limits intuition, tables, SymPy the ε\varepsilon–δ\delta definition and proofs with it
Theorems stated and illustrated stated precisely, with proofs or proof sketches
Integration substitution, parts, numerics the whole toolbox: trig integrals, trig substitution, partial fractions, improper integrals
Series the main tests and Taylor series every convergence test, error bounds, power-series algebra
Pace one lesson per big idea one lesson per textbook section, about 137 lessons

The order of topics follows the chapter order of James Stewart's Calculus, 7th edition (Cengage), a widely used university textbook, so you can read it side by side with a course that uses that book. The book is used only as a guide to topic order. All explanations, examples, numbers and exercises here are original.

Tip: If a lesson here feels steep, open the matching lesson of Calculus Essentials first. Every lesson in this course links to its gentler counterpart where one exists, and does not repeat the basics that are explained there.

The chapters

# Section What you will be able to do
0 Getting Started check your algebra and trig, see the two central problems of calculus
1 Functions and Models describe and build functions, exponentials, inverses and logarithms
2 Limits and Derivatives compute limits, prove them with ε\varepsilon–δ\delta, define the derivative
3 Differentiation Rules differentiate anything built from elementary functions, related rates, linear approximation
4 Applications of Differentiation extreme values, the Mean Value Theorem, curve sketching, optimisation, Newton's method
5 Integrals Riemann sums, the definite integral, the Fundamental Theorem, substitution
6 Applications of Integration areas, volumes by slicing and shells, work, average value
7 Techniques of Integration parts, trig integrals and substitutions, partial fractions, numeric rules, improper integrals
8 Further Applications arc length, surface area, physics, economics, probability densities
9 Differential Equations direction fields, Euler's method, separable and linear equations, population models
10 Parametric and Polar parametric curves, polar coordinates, conic sections
11 Sequences and Series all convergence tests, power series, Taylor polynomials with error bounds
12 Vectors and Space 3D coordinates, dot and cross products, lines, planes, quadric surfaces
13 Vector Functions space curves, curvature, motion in space
14 Partial Derivatives limits in several variables, gradients, tangent planes, optimisation, Lagrange multipliers
15 Multiple Integrals double and triple integrals, polar, cylindrical and spherical coordinates, change of variables
16 Vector Calculus line and surface integrals, Green's, Stokes' and the Divergence Theorem
17 Second-Order ODEs linear equations, forced vibrations, series solutions
A Appendices inequalities, coordinate geometry, trig review, sigma notation, proofs, complex numbers
C Calculus in Computing machine learning, graphics and games, floating point, probability densities in AI

The course ends with an exercise set and a mini project that builds a small physics and optimisation toolkit.

How a lesson works

Every lesson has the same shape: a precise statement of the idea, a proof or proof sketch when it is short, worked examples, two to four runnable Python programs, a section on where programmers meet the idea, exercises with answers and full solutions, and a short quiz. The programs use the standard scientific stack, which runs right in your browser:

python · try it yourself
import sympy as sp

x = sp.symbols('x')
f = x**3 * sp.exp(-x)
print("f'(x)    =", sp.factor(sp.diff(f, x)))
print("∫ f dx   =", sp.integrate(f, (x, 0, sp.oo)))
print("lim x→0  =", sp.limit(sp.sin(3*x) / x, x, 0))
f'(x)    = -x**2*(x - 3)*exp(-x)
∫ f dx   = 6
lim x→0  = 3

SymPy prints x**2 for x2x^2 and exp(-x) for e−xe^{-x}. Formulas in the lesson text are typeset in math notation (x2x^2, x\sqrt{x}, ∫\int, ∑\sum, ε\varepsilon, δ\delta), while the Python examples write them as code.

Alongside the symbolic checks we use numerics, because that is what software actually does:

python · try it yourself
import numpy as np

f = lambda x: x**3 * np.exp(-x)
xs = np.linspace(0, 40, 400001)
dx = xs[1] - xs[0]
print("Riemann sum ≈", round(float(np.sum(f(xs)) * dx), 6))
print("f'(3) ≈", round(float((f(3 + 1e-6) - f(3 - 1e-6)) / 2e-6), 6))
Riemann sum ≈ 6.0
f'(3) ≈ 0.0

The numbers agree with SymPy: the integral is 6 and the derivative is zero at x=3x = 3, a maximum of the function.

Using it alongside Calculus Essentials

  • New to calculus: do Calculus Essentials first, at least chapters 1 to 3, then come here for depth.
  • Studying at university: follow this course in order; open the Essentials lesson whenever you want a second, more informal explanation.
  • Refreshing for work (ML, graphics, simulation): jump to the chapter you need. The "In software" sections and the Calculus in Computing chapter connect each topic to code.

Learning paths

Some of these courses are still planned; see the roadmap.

Goal Suggested path
School to university Basic Math → Algebra → Pre-Calculus → Calculus Essentials → this course → Linear Algebra → Differential Equations
Game developer Basic Math → Calculus Essentials → this course (chapters 2–3, 12–13) → Linear Algebra → Game Math → Game Physics
AI / ML engineer Calculus Essentials → this course (chapters 3, 4, 11, 14) → Linear Algebra → Probability → Machine Learning
Deep learning and LLMs this course (chapters 3, 14 and Calculus in Computing) → Linear Algebra → Generative AI & LLMs

Before you start, take the diagnostic review: it tells you whether your algebra and trigonometry are ready.

Exercises

Exercise 1: Which chapter?

Name the chapter of this course where you would look for each: (a) whether 1+122+132+…1 + \frac{1}{2^2} + \frac{1}{3^2} + \ldots has a finite sum; (b) the flux of a fluid through a closed surface; (c) the fastest way to fit a parabola to data by minimising squared error with respect to its three coefficients.

Answer

(a) chapter 11, (b) chapter 16, (c) chapter 14.

Solution
  • (a) An infinite sum is a series: Infinite Sequences and Series, chapter 11.
  • (b) Flux through a closed surface is a surface integral, and the Divergence Theorem turns it into a volume integral: Vector Calculus, chapter 16.
  • (c) The error is a function of three variables (the coefficients); minimising it sets three partial derivatives to zero: Partial Derivatives, chapter 14.

Exercise 2: Read SymPy's notation

Translate -x**2*(x - 3)*exp(-x) into ordinary notation and find all xx where it is zero.

Answer

−x2(x−3)e−x-x^2(x - 3)e^{-x}, zero at x=0x = 0 and x=3x = 3.

Solution

** is a power and exp(-x) is e−xe^{-x}, so the expression is −x2(x−3)e−x-x^2(x - 3)e^{-x}. Since e−x>0e^{-x} > 0 for every xx, the product is zero only when x2=0x^2 = 0 or x−3=0x - 3 = 0, that is x=0x = 0 or x=3x = 3.

Exercise 3: Check a limit two ways

Compute the limit of sin⁡(5x)/x\sin(5x)/x as x→0x \to 0 with SymPy, and estimate it numerically at x=0.001x = 0.001.

Answer

The limit is 5; at x=0.001x = 0.001 the value is about 4.99998.

Solution

Write sin⁡(5x)/x=5⋅sin⁡(5x)/(5x)\sin(5x)/x = 5 \cdot \sin(5x)/(5x); as x→0x \to 0 the second factor tends to 1, so the limit is 5.

python · try it yourself
import math
import sympy as sp

x = sp.symbols('x')
print(sp.limit(sp.sin(5*x) / x, x, 0))
print(round(math.sin(5 * 0.001) / 0.001, 6))
5
4.999979

Test yourself

How does Calculus in Depth relate to Calculus Essentials?

  1. It replaces it
  2. It covers the same subject with precise definitions, proofs and the full set of techniques, and links to Essentials for a first look
  3. It covers only multivariable calculus
  4. It is the same course in another order

Which chapter contains Green's, Stokes' and the Divergence Theorem?

  1. Chapter 5, Integrals
  2. Chapter 14, Partial Derivatives
  3. Chapter 16, Vector Calculus
  4. Chapter 17, Second-Order ODEs

What does SymPy's exp(-x) mean?

  1. ee to the power −x-x
  2. −x-x squared
  3. the exponent of xx
  4. 10 to the power −x-x