could anyone explain with detail the purpose of the input and output capacitors of the 7805 voltage regulator? I mean, why the input cap must be ceramic and the output should be a ceramic in parallel with an electrolytic, being this ceramic around some nF and the electrolytic around some uF. Almost all the explanations i could find online are just "to improve stabilty" or "to improve the transient response" but they don't explain anything beyond that.
examples:
http://savedonthe.net/image/1593/7805.png
A capacitor (in this configuration) smooths the input and output voltages.
A ceramic capacitor has low ESR but also low capacity, however it reacts fast (because of the low ESR).
An electrolytic is the opposite, comparatively high ESR, high capacity, however reacts slow (because of the high ESR).
Without the capacitors, noise on the input and current draw fluctuations in the demand on the output can both cause poor regulation.
In simplified terms, the capacitors react faster than the regulator and fill in the gaps while the regulator catches up with the demands.