LmCast :: Stay tuned in

Calculus with Julia

Recorded: Oct. 12, 2026, 3:09 a.m.

Original Summarized

Calculus with Julia

Calculus with Julia

Preface

Preface

Mathematical basics

1  From calculator to computer

2  Variables

3  Number systems

4  Inequalities, Logical expressions

5  Points, vectors, and containers

6  Ranges and sets

Precalculus Concepts

7  Functions

8  The graph of a function

9  Function transformations

10  The inverse of a function

11  Polynomials

12  Roots of a polynomial

13  The Polynomials package

14  Rational functions

15  Exponential and logarithmic functions

16  Trigonometric functions

17  Overview of Julia commands

Limits and continuity

18  Limits

19  Limits, issues, extensions of the concept

20  Continuity

21  Implications of continuity

22  Sequences and series

Derivatives

23  Derivatives

24  Computing derivatives in Julia

25  Symbolic derivatives

26  Implications of Differentiability

27  Optimization

28  The first and second derivatives

29  Curve sketching

30  Linearization

31  Newton’s method

32  Other zero-finding algorithms

33  L’Hospital’s rule

34  Implicit differentiation

35  Related rates

36  Taylor polynomials, series, and approximating polynomials

Integrals

37  Area under a curve

38  Fundamental Theorem of Calculus

39  Numeric approximations to definite integrals

40  Substitution

41  Integration by parts

42  Partial fractions

43  Area between curves

44  Improper integrals

45  Mean value theorem for integrals

46  Center of mass

47  Arc length

48  Volumes by slicing

49  Surface area

50  Orthogonal polynomials

51  A dozen minima for a parabola

ODEs

52  ODEs

53  Euler’s method

54  The problem-algorithm-solve interface

55  The DifferentialEquations suite

Differential vector calculus

56  Polar coordinates and curves

57  Vectors and matrices

58  Vector-valued functions, \(f:R \rightarrow R^n\)

59  Scalar functions

60  Applications with scalar functions

61  Functions \(R^n \rightarrow R^m\)

62  Matrix calculus

63  2D and 3D plots in Julia with Plots

Integral vector calculus

64  Multi-dimensional integrals

65  Line and surface integrals

66  The gradient, divergence, and curl

67  Green’s theorem, Stokes’ theorem, and the divergence theorem

68  Quick review of vector calculus

Alternative packages

69  Symbolics.jl

70  The SciML suite of packages

71  JavaScript based plotting libraries

72  Calculus plots with Makie

Appendices

73  Getting started with Julia

74  Julia interfaces

75  The CalculusWithJulia package

76  Usages of Unicode symbols

77  Quick introduction to Calculus with Julia

References

Table of contents

Preface

Running Julia

Edit this pageReport an issue

Calculus with Julia

Author

John Verzani

Published

August 31, 2026

Preface

Calculus with Julia

This is a set of notes for learning calculus using the Julia language. Julia is an open-source programming language with an easy to learn syntax that is well suited for this task.
Read “Getting started with Julia” to learn how to install and customize Julia for following along with these notes. Read “Julia interfaces” to review different ways to interact with a Julia installation.
Since the mid 90s there has been a push to teach calculus using many different points of view. The Harvard style rule of four says that as much as possible the conversation should include a graphical, numerical, algebraic, and verbal component. These notes use the programming language Julia to illustrate the graphical, numerical, and, at times, the algebraic aspects of calculus.
There are many examples of integrating a computer algebra system (such as Mathematica, Maple, or Sage) into the calculus conversation. Computer algebra systems can be magical. The popular WolframAlpha website calls the full power of Mathematica while allowing an informal syntax that is flexible enough to be used as a backend for Apple’s Siri feature. (“Siri what is the graph of x squared minus 4?”) For learning purposes, computer algebra systems model very well the algebraic/symbolic treatment of the material while providing means to illustrate the numeric aspects. These notes are a bit different in that Julia is primarily used for the numeric style of computing and the algebraic/symbolic treatment is added on. Doing the symbolic treatment by hand can be very beneficial while learning, and computer algebra systems make those exercises seem kind of redundant, as the finished product can be produced much more easily.
Our real goal is to get at the concepts using technology as much as possible without getting bogged down in the mechanics of the computer language. We feel Julia has a very natural syntax that makes the initial start up not so much more difficult than using a calculator, but with a language that has a tremendous upside. The notes restrict themselves to a reduced set of computational concepts. This set is sufficient for working many of the problems in calculus, but do not cover thoroughly many aspects of programming. (Those who are interested can go off on their own and Julia provides a rich opportunity to do so.) Within this restricted set, are operators that make many of the computations of calculus reduce to a function call of the form action(function, arguments...). With a small collection of actions that can be composed, many of the problems associated with introductory calculus can be attacked.
These notes are presented in pages covering a fairly focused concept, in a spirit similar to a section of a book. Just like a book, there are try-it-yourself questions at the end of each page. All have a limited number of self-graded answers. These notes borrow ideas from many sources, for example Strang (n.d.), Knill (n.d.), Schey (1997), Hass et al. (2018), Rogawski et al. (2019), Angenent (2012), several Wikipedia pages, and other sources.
These notes are accompanied by a Julia package CalculusWithJulia that provides some simple functions to streamline some common tasks and loads some useful packages that will be used repeatedly.
These notes are presented as a Quarto book. To learn more about Quarto books visit https://quarto.org/docs/books.
Compiling these notes into a pdf file with Quarto is possible with some piecing together of parts. The result is less than optimal and also quite large.
Download pdf version

To contribute – say by suggesting additional topics, correcting a mistake, or fixing a typo – click the “Edit this page” link and join the list of contributors. Thanks to all contributors.
A very special thanks goes out to @fangliu-tju for their careful and most-appreciated proofreading and error spotting spread over a series of PRs.

Running Julia
For individual users Julia is installed quite easily with the juliaup utility or by other means. There are some brief installation notes in the overview of Julia commands.

Calculus with Julia version 0.27, produced on August 31, 2026.

Angenent, Sigurd. 2012. Wisconsin Calculus. Https://github.com/SigurdAngenent/WisconsinCalculus/tree/master.

Hass, Joel R., Christopher E. Heil, and Maurice D. Weir. 2018. Thomas’ Calculus. Pearson.

Knill, Oliver. n.d. Some Teaching Notes. https://people.math.harvard.edu/~knill/teach/index.html.

Rogawski, Jon, Colin Adams, and Robert Franzosa. 2019. Calculus. Macmillan.

Schey, H. M. 1997. Div, Grad, Curl, and All That. W.W. Norton.

Strang, Gilbert. n.d. Calculus. Wellesley-Cambridge Press. https://ocw.mit.edu/courses/res-18-001-calculus-online-textbook-spring-2005/.

Mathematical basics

 

Copyright 2022-26, John Verzani
Edit this pageReport an issue

This material outlines a comprehensive approach to learning calculus by utilizing the Julia programming language, aiming to integrate graphical, numerical, and algebraic perspectives into the study of calculus. The foundation begins with mathematical basics, covering concepts such as variables, number systems, inequalities, logical expressions, points, vectors, and sets. This transitions into precalculus concepts, where the curriculum explores functions, their graphs, transformations, inverses, polynomials, roots, rational functions, exponential and logarithmic functions, and trigonometric functions.

The core of the calculus treatment focuses first on limits and continuity, followed by sequences and series. The derivative section delves into the mechanics of differentiation, including computing derivatives in Julia, symbolic differentiation, implications of differentiability, optimization techniques via the first and second derivatives, curve sketching, and zero-finding algorithms such as Newton’s method and L’Hospital’s rule. This section extends to implicit differentiation, related rates, Taylor polynomials, and series approximations.

The integration portion addresses the calculation of area under a curve, the fundamental theorem of calculus, numerical approximations for definite integrals, and techniques such as substitution and integration by parts. The curriculum also covers more advanced integration concepts, including partial fractions, area between curves, improper integrals, the mean value theorem for integrals, and applications like finding the center of mass, arc length, volumes by slicing, surface area, and orthogonal polynomials.

The course progresses to advanced topics, including ordinary differential equations (ODEs), which are addressed through numerical methods like Euler’s method and the DifferentialEquations suite. Differential vector calculus is introduced through polar coordinates, vectors and matrices, scalar functions, and matrix calculus. Integral vector calculus involves multi-dimensional integrals, line and surface integrals, and vector calculus theorems such as Green’s theorem, Stokes’ theorem, and the divergence theorem.

The resource incorporates specialized tools, including the Symbolics.jl and SciML suites, alongside JavaScript-based plotting libraries and Makie for visualization. The instructional strategy relies on a restricted set of computational concepts made accessible through functional programming notation, using operators that reduce complex calculus computations to function calls. The notes are supported by a software package, CalculusWithJulia, which streamlines common tasks. Ultimately, this work serves as a structured guide, offering a pathway to understand calculus where symbolic treatment is augmented by numerical computation facilitated by Julia.