Mathematics of the Neural Response