The rectangular window function is a function that equals on an interval and everywhere else. It’s built from two Heaviside step functions:
Sometimes written where is the center and is the width.
Why “window”
It “windows” — gates — a function. Multiplying by keeps inside and zeroes it elsewhere:
This lets you express a piecewise function as a sum of pieces, each multiplied by its window.
Laplace transform
For :
(Subtraction is linear; each piece transforms via the standard Heaviside formula.)
Composing piecewise functions
A piecewise function with pieces on intervals can be written:
Each window picks out one piece. The window can be replaced by (left-going step) if needed for the formal definition.
For functions defined only on (the natural domain for Laplace problems), you can simplify:
The last piece is since it’s “on” forever after .
Example
The function
can be written as
Or simplified by recognizing that is “on” both before and after :
The window only adds starting at .
Taking Laplace:
The first term is . The second uses the second shifting theorem:
So .
Use cases
The rectangular window appears in:
- Piecewise-defined ODE forcing functions — discontinuous inputs can be written as a sum of windowed pieces, then Laplace-transformed.
- Signal processing — windowing a signal to look at it over a finite interval.
- Pulse description — a finite-duration rectangular pulse is exactly scaled by amplitude.
For the building-block step function, see Heaviside step function. For the limit case (an infinitely narrow window with infinite amplitude), see Dirac delta function.