Neocalculus

By Mostafa 'Neo' Mohsenvand

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

Calculus asks how a changing input changes an output. Neocalculus studies that question through a first-order infinitesimal lens: smooth curves become locally linear, and derivatives appear as coefficients of dd. The chapters build from this local picture to accumulation, modeling, and geometry.

Chapter 1

The Smooth World

“A curve bends. A line does not. So how can a line tell us what a curve is doing?”

The question that opens calculus


First: what is a function?

Before we study change, we need one simple piece of language. A function is a rule that accepts an input and gives back exactly one output.

We usually call the input xx. If the function is named ff, its output is written f(x)f(x), read “f of x.” Thus f(x)=x2f(x)=x^2 means “square the input.” For example, f(3)=9f(3)=9 and f(2)=4f(-2)=4. The parentheses in f(x)f(x) do not mean multiplication; they tell us which input was given to ff.

Watch one cycle of the machine below. A number enters from the left. The displayed rule acts on it, and the result leaves on the right. The dot on the small graph marks that same input-output pair.

1-1
xx
f(x)f(x)
f(x)=x2f(x) = x^2
11
Figure 1.1. A function is a rule that turns an input into an output: x goes in, and f(x) comes out.

Each cycle uses a different rule, but the notation keeps the same meaning. A graph is a picture of all the input-output pairs: when the input xx produces the output f(x)f(x), the point (x,f(x))(x,f(x)) lies on the graph.

Now we can ask the question that begins calculus: when xx changes, how does f(x)f(x) change? To answer it at one particular input, we look closely at the graph near the corresponding point. Sometimes the graph settles toward one line direction. Sometimes it does not.

Which curves have a local direction?

For now, call a graph smooth at a point when magnifying near that point reveals one line direction. A parabola has one. At the corner of x|x|, the directions from the left and right disagree. At a jump, the two nearby pieces do not even connect.

Smooth curve, corner, and jump comparisonThree panels compare a parabola with a tangent, an absolute-value graph with a corner, and a step function with a jump.SMOOTHf(x) = x²CORNERf(x) = |x|JUMPstep function
Figure 1.2. At the marked point, a smooth curve has one line direction. A corner has two competing directions, while a jump has no connected direction through the point.

Look through a first-order lens

The purple dashed line in the demo is the tangent line: it passes through the chosen point and points in the graph’s local direction. Keep the parabola selected, turn on the tangent, and increase the zoom. Watch the gap between the curve and the line.

Explore: zoom into any curve
Zoom 1.0×
curve tangent nonlinear remainder at the view edge ≈ 6.55
x = 1.00

At ordinary scale, the parabola and the tangent are visibly different. As the window shrinks around the chosen point, the bend becomes harder to see and the graph looks more like the line. Numerical zoom reveals this pattern, but it never reaches a final smallest magnification.

Synthetic differential geometry asks an exact version of the zooming question. It represents a first-order change in the input by d and uses the rule

d2=0d^2=0

This d is not an ordinary real number that happens to be very small. It is a first-order displacement in the model. The term dd records the direct response to an input change; d2d^2 records a second-order effect such as bending. The first-order lens discards the latter. It does not discard terms such as 6d6d: their coefficients still tell us how the output responds.

Now fix an input aa. Smoothness says that, for first-order displacements, the output has one and only one form

f(a+d)=f(a)+mdf(a+d)=f(a)+md

Here f(a)f(a) is the original output, and mdmd is its first-order change. The number mm is determined by the function and the point. We will calculate it before giving it a name.

Figure 1.3. An ordinary finite step leaves a visible gap between the curve and its local line. The first-order lens keeps only their shared linear behavior.

This is microstraightness. For an ordinary finite change Δx\Delta x, the line usually gives an approximation: f(a+Δx)f(a)+mΔxf(a+\Delta x)\approx f(a)+m\Delta x. For a first-order displacement dd, the equation f(a+d)=f(a)+mdf(a+d)=f(a)+md is exact. The curve has not become a line everywhere; curve and line agree only at first order near the chosen point.

Finding the local coefficient

Now let us find mm for the squaring function. Start at the input 3 and change it to 3+d3+d. Expand in the ordinary way, then use d2=0d^2=0:

Square an input near 3
(3+d)2=9+6d+d2(3+d)^2=9+6d+d^2
expand normally
(3+d)2=9+6d(3+d)^2=9+6d
d2=0d^2=0

The answer has two parts. The 9 is the original output. The coefficient 6 tells us the first-order change: near 3, the squaring function changes by 6d6d when the input changes by dd. In the microstraightness equation, this says m=6m=6 at the input 3.

Now let the starting input be xx instead of 3. For f(x)=x2f(x)=x^2:

Square an input near x
f(x+d)=(x+d)2=x2+2xd+d2f(x+d)=(x+d)^2=x^2+2xd+d^2
expand
f(x+d)=x2+2xdf(x+d)=x^2+2xd
d2=0d^2=0
f(x+d)=f(x)+(2x)df(x+d)=f(x)+(2x)d
separate the original value from the change

This has the form f(x+d)=f(x)+mdf(x+d)=f(x)+md with m=2xm=2x. Because the starting input can vary, the local coefficient varies with it. This coefficient has a name.

A derivative at one input is a number: the slope there. But let the input move, and each point supplies its own slope. Those slope values together form a new function, ff'. Watch the point travel along each curve below. The purple tangent turns as the local slope changes; the function that records all those slopes emerges on the right.

The trigonometric outputs are a preview. In Chapter 2, we will derive them instead of asking you to take them on faith.

f(x)f(x)
f(x)f'(x)
Derivative
sinx\sin x
cosx\cos x
cosx\cos x
sinx-\sin x
x2x^2
2x2x
x3x^3
3x23x^2
exe^x
exe^x
lnx\ln x
1x\frac{1}{x}
1x\frac{1}{x}
1x2-\frac{1}{x^2}
tanx\tan x
sec2x\sec^2 x
Figure 1.4. Differentiation turns a function into its slope function. As the point moves along f, the tangent reveals the slope at each input; f′ collects those slopes into a new function.

For f(x)=x2f(x)=x^2, we found f(x)=2xf'(x)=2x. At x=3x=3, the slope is 6. At x=1x=-1, it is −2. The sign tells the direction; the size tells how steeply the output responds.

Notice what we did not do: we never divided by dd. We expanded the function and read the unique first-order coefficient.

Under the hood: why is the coefficient unique? Optional foundation window

In synthetic differential geometry, R\mathcal R names the smooth number line, and D={dR:d2=0}D=\{d\in\mathcal R:d^2=0\} is its first-order neighborhood of zero. The Kock–Lawvere axiom says that every map g:DRg:D\to\mathcal R has a unique form g(d)=a+bdg(d)=a+bd.

Apply this to g(d)=f(x+d)g(d)=f(x+d). Its constant term is f(x)f(x), and its unique coefficient is f(x)f'(x). This is the axiom behind the exact equation f(x+d)=f(x)+f(x)df(x+d)=f(x)+f'(x)d.

No division by dd is involved. If ad=bdad=bd for every dDd\in D, then the two expressions have the same first-order coefficient, so a=ba=b. This is sometimes called microcancellation.

There is one logical subtlety. The model has a nontrivial infinitesimal neighborhood, but we do not choose a particular dd and declare it distinguishably nonzero. The mainline only needs the neighborhood DD and the unique coefficient rule.

Practice (six core, two explorations)
Exercise 1

Core. For f(x)=3x+1f(x)=3x+1, identify the input and the output, then calculate the output for the input 4.

Exercise 2

Core. Classify each graph as smooth, cornered, or discontinuous: x2x^2, x|x|, and a step function.

Exercise 3

Core. Simplify (5+d)2(5+d)^2 using d2=0d^2=0.

Exercise 4

Core. Expand (x+d)3(x+d)^3 and read the coefficient of dd.

Exercise 5

Core. The derivative of x2x^2 is 2x2x. Find the slope at x=4x=4 and explain what it means.

Exercise 6

Core. Explain the difference between the exact first-order statement f(x+d)=f(x)+f(x)df(x+d)=f(x)+f'(x)d and the finite approximation f(x+Δx)f(x)+f(x)Δxf(x+\Delta x)\approx f(x)+f'(x)\Delta x.

Exercise 7

Explore. Expand (x+Δx)2(x+\Delta x)^2 for an ordinary finite Δx\Delta x. Which term is absent from the first-order calculation, and what does it represent geometrically?

Exercise 8

Explore. Why do we read coefficients instead of dividing an equation by dd?

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

Rates become totals through signed accumulation, moving endpoints, and antiderivatives.

Chapter 6

Integration Geometry and Techniques

Choose an antiderivative technique, then build areas, volumes, work, and averages from local contributions.

Chapter 7

Differential Equations and Physics Modeling

A local rate law and initial condition determine growth, cooling, and motion.

Chapter 8

Series and Approximation

Build Taylor polynomials from derivatives, bound their error, and decide when an infinite series truly represents a function.

Chapter 9

Multivariable and Vector Calculus

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

Chapter 10

Complex Analysis: Calculus in the Plane

Complex functions reshape the plane; complex derivatives and contour integrals reveal a rigid geometry.

Chapter 11

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.