Electromagnetic response functions from their integral transforms