Flip a switch at one moment and off again later, and the input is a pulse. Step functions write that switching as math, and the Laplace transform turns each switch into a simple factor. The capacitor charges while the pulse is on, then drains.