Capacitor for backup power

I would suggest it is not as simple as just adding a capacitor. First in needs to be a very big capacitor but most important of all there must be some way of detecting that the mains input has failed.

I used to design circuits like this when I worked in the set top box industry and they are not as simple as just adding a capacitor.