Piecewise Modeling Lab
Use two linear rules split at x = c, then evaluate values and jump behavior.
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
- taxi pricing model - Two-regime linear cost model with breakpoint at x=5.
- bulk discount model - Rate change after threshold models bulk discount behavior.
- cooling phases - Piecewise decay model with slower slope in the second segment.