analytical integration of neg exp detfun