This note is one of many taken during 2024
Integrals of Step Functions
The integral of the function
⌊x⌋ with respect to
x is equal to
∫⌊x⌋dx====n=0∑⌊x⌋−1n+(x−⌊x⌋)(⌊x⌋)21(⌊x⌋−1)(⌊x⌋−1+1)+(x−⌊x⌋)⌊x⌋(x−21)⌊x⌋−21⌊x⌋2(Constant of integration omitted)
A similar process can be done for the ceiling function
⌈x⌉.
∫⌈x⌉dx====n=0∑⌈x⌉n+(x−⌈(x)⌉)⌈x⌉21⌈x⌉(⌈x⌉+1)+(x−⌈x⌉)⌈x⌉(x+21)⌈x⌉−21⌈x⌉2I’ll spare the fine details on the final one. The ‘round to the nearest integer’ function
nint(x) can also be integrated.
∫nint(x)dx=x(nint(x))−21nint(x)2
This note is one of many taken during 2024