Here is a short tutorial on why DC/DC buck converters need capacitors on the input and how it works in a power design.
In Figure 1, above, we include a relatively simple model of a real capacitor to illustrate its nature. It consists of four impedances, connected as shown. The impedance on the left is the ESR, the ...