Neocalculus

By Mostafa 'Neo' Mohsenvand

Where smooth curves become infinitesimally linear,
and calculus becomes first-order algebra.

Most courses start with limits. This one starts with an infinitesimal model where d2=0d^2=0 and smoothness turns local change into first-order algebra. Core calculus results are built by coefficient extraction, with assumptions stated only when they matter.

Chapter 1

The Smooth World

"Nature never makes jumps."

— Gottfried Wilhelm Leibniz, New Essays, 1704


What is a function?

A function is a machine: something goes in, something comes out — always the same output for the same input. Functions are far more general than "plug in a number, get a number." They are the universal language of transformation:

1-1
xx
f(x)f(x)
f(x)=x2f(x) = x^2
11

A function can square a number, measure the length of a word, take the derivative of another function, or compute the divergence of a vector field. In every case the contract is the same: one input, one output, deterministic. In calculus we focus on functions from numbers to numbers — like f(x)=x2f(x) = x^2 — but the deeper idea is universal.

Calculus studies how functions change: how the output responds when you nudge the input. To do that cleanly, we need to be precise about what kind of functions we allow.

Smoothness

Not all functions change the same way. Some flow gently — a ball arcing through the sky traces a smooth curve. Others break. There are two ways a function can fail to be smooth:

  • A corner — like x|x| at the origin, where the slope changes abruptly.
  • A jump — like a step function that leaps from 0 to 1, with no intermediate values.

In Neocalculus, we work exclusively with smooth functions: no corners, no jumps, no breaks of any kind. This is a modeling choice that matches many physical regimes and keeps the calculus workflow algebraic.

SMOOTHtangentf(x) = x²CORNER−1+1f(x) = |x|JUMPjump!01step function
Figure 1.1. Three kinds of functions. Left: x² is smooth — at every point, zooming in reveals a straight tangent line. Center: |x| has a corner at x = 0 that persists at every zoom level. Right: a step function has a jump discontinuity — the output teleports.

Zooming in: the key insight

Take any smooth curve. Pick any point. Now zoom in. What happens?

The curve flattens. The bends straighten out. And at the very bottom of the zoom — at a scale we call infinitesimal — the curve is represented by its straight, first-order part.

This is microstraightness. Try it yourself:

Explore: zoom into any curve
Zoom 1.0×
x = 1.00

For smooth functions in this framework, zooming to infinitesimal scale makes the curve and tangent agree to first order. That infinitesimal straight segment has a tiny width we call d, and its slope is what we call the derivative.

Meet d

Infinitesimals live on the number line alongside 1, ½, and π. They obey one special rule:

d2=0d^2 = 0

When you multiply an infinitesimal by itself, you get exactly zero. But d itself is not zero — it has direction and slope. It is the mathematical atom of change: too small to measure, but large enough to carry information.

This is microstraightness stated algebraically: over a distance of d, smooth functions restrict to an affine first-order form, because curvature requires a d2d^2 term and d2=0d^2 = 0 on DD.

Figure 1.2. Microstraightness bridge. From a to a+d, the curve and tangent differ by a second-order residual r(d) ~ d². On D where d² = 0, only the first-order term remains.

We write D={dR:d2=0}D = \{d \in \mathcal{R} : d^2 = 0\} for the set of all infinitesimals — the infinitesimal neighborhood of zero. Our number line R\mathcal{R} contains everything you already know (integers, fractions, irrationals) plus these infinitesimals.

Arithmetic with infinitesimals

The only new rule is d2=0d^2 = 0. Everything else is ordinary algebra.

  • Constant multiples: (3d)2=9d2=0(3d)^2 = 9d^2 = 0, so any multiple of an infinitesimal is infinitesimal.
  • Higher powers vanish: d3=dd2=0d^3 = d \cdot d^2 = 0, and d4=0d^4 = 0, and so on.
Example: simplifying with d² = 0
(3+d)2=9+6d+d2(3 + d)^2 = 9 + 6d + d^2
expand
=9+6d= 9 + 6d
d2=0d^2 = 0

Expand normally, kill every d2d^2 and higher, done. On DD, the result has the form "number + coefficient × dd."

A first taste: the slope of x2x^2

Take f(x)=x2f(x) = x^2 and nudge its input by an infinitesimal:

Finding the slope of x²
f(x+d)=(x+d)2=x2+2xd+d2f(x + d) = (x + d)^2 = x^2 + 2xd + d^2
expand
=x2+2xd= x^2 + 2xd
d2=0d^2 = 0
=f(x)+2xthe sloped= f(x) + \underbrace{2x}_{\text{the slope}} \cdot d
read off coefficient of d

The slope of x2x^2 at any point xx is 2x2x. At x=3x = 3, the slope is 6. At x=1x = -1, it's −2. We just computed the derivative — and all we did was algebra in the infinitesimal model. No limit computation was needed for this derivation.

The word uniquely is the key. It means there is exactly one slope that works — and that uniqueness is what lets us extract the derivative by "reading off the coefficient of dd."

This is the workhorse of every derivation in this book. Expand f(x+d)f(x+d), apply d2=0d^2 = 0, and match the coefficients of dd on both sides.

How can d2=0d^2 = 0 without d=0d = 0?

In ordinary algebra, d2=0d^2 = 0 forces d=0d = 0. The proof goes: "Suppose d0d \neq 0. Divide both sides of dd=0d \cdot d = 0 by dd. Then d=0d = 0. Contradiction." But this argument assumes you can always decide whether d=0d = 0 or d0d \neq 0 — that is, it uses the law of excluded middle.

Why the classical proof fails Optional logic detail

The classical argument has two steps. Step 1: Assume d0d \neq 0, divide dd=0d \cdot d = 0 by dd, get d=0d = 0. Contradiction. Step 2: Since d0d \neq 0 is impossible, conclude d=0d = 0.

Step 2 uses the law of excluded middle: "not (d0d \neq 0) therefore d=0d = 0." In constructive logic, this inference is not valid — a number might be neither provably zero nor provably nonzero. Infinitesimals live in this twilight.

Exercises (Core 1-10, Extension optional)
Exercise 1

Warm-up. Simplify (3+d)2(3 + d)^2 using d2=0d^2 = 0.

Exercise 2

Warm-up. Simplify (1+d)(1d)(1 + d)(1 - d).

Exercise 3

Warm-up. Simplify (5+d)3(5 + d)^3.

Exercise 4

Core. Simplify 11+d\frac{1}{1+d} by multiplying top and bottom by (1d)(1 - d).

Exercise 5

Core. True or false: d2=0d^2 = 0 implies d3=0d^3 = 0.

Exercise 6

Core. Simplify (2+d)4(2+d)^4.

Exercise 7

Core. Compute (x+d)3(x+d)^3, apply d2=0d^2 = 0, and read off the coefficient of dd. What is the slope of x3x^3?

Exercise 8

Core. Explain in your own words why every smooth curve must be "infinitesimally straight."

Exercise 9

Challenge. Why can't you define a step function (f(x)=0f(x) = 0 for x<0x < 0, f(x)=1f(x) = 1 for x0x \geq 0) in the Neocalculus world?

Exercise 10

Challenge. List three physical quantities that change smoothly. For each, explain what "infinitesimally straight" means physically.

Exercise 11(Extension)

Exploration. Is 3d23d^2 zero? What about d2\sqrt{d^2}? Can you take d\sqrt{d}?

Chapter 2

The Slope Equation

Derivatives as first-order coefficients, including trig, exponential, and logarithmic families.

Chapter 3

Rules of Change and Local Models

Product, chain, quotient, implicit differentiation, and local linear models from one algebraic workflow.

Chapter 4

Optimization and Local Analysis

Critical points, extrema, curve behavior, and Newton's method from derivative structure.

Chapter 5

Accumulation and the Fundamental Theorem

Accumulation, antiderivatives, and the FTC through infinitesimal strips and cancellation.

Chapter 6

Integration Geometry and Techniques

Arc length, area and volume methods, and integration techniques in geometric form.

Chapter 7

Differential Equations and Physics Modeling

Local laws, separable equations, and physical modeling through differential equations.

Chapter 8

Series and Approximation

Taylor expansions, convergence, and bridge points between nilpotent and classical series.

Chapter 9

Multivariable and Vector Calculus

Partials, gradient, Jacobian, and vector-field integrals in multiple dimensions.

Chapter 10

Differential Forms and Unification

Exterior derivative, Stokes-style unification, and topological scope notes.


One central axiom: d2=0d^2 = 0.

From this rule, together with smoothness assumptions, we derived the main derivative families used in this course, proved the product/chain/quotient rules, established the Fundamental Theorem of Calculus, and developed integration, series, multivariable methods, and differential-forms unification.

The mainline presentation is algebraic and infinitesimal-first, with optional bridges to limit-based analysis where those comparisons are useful.

Neocalculus — calculus, reimagined from first principles.