Piecewise Modeling Lab

Use two linear rules split at x = c, then evaluate values and jump behavior.

Loading interactive simulation...

Discontinuous Subdomain Calculus 🖖

Piecewise functions formally model abrupt systemic phase shifts. By defining analytical rules across disjoint intervals, we confront essential discontinuities. Evaluating the one-sided limits at the breakpoint determines if the system preserves topological continuity or fractures.

One function, two rulebooks 🖖

A piecewise model uses one linear rule below the breakpoint c and a different one above it โ€” like a taxi meter that charges one rate at first and a cheaper rate later. The two pieces meet smoothly only when they agree at c: continuous exactly when m1ยทc + b1 = m2ยทc + b2. Otherwise the readout shows a jump โ€” the graph teleports up or down at the seam.

The kink that powers deep learning 🖖

The activation function behind most modern neural networks, ReLU, is just a piecewise linear function: slope 0 while x is negative and slope 1 once it turns positive, joined at the breakpoint x = 0. It is continuous there yet has no derivative โ€” a sharp corner, not a smooth curve. Stack millions of these units and the whole network still computes one enormous continuous piecewise-linear function.

Example problems