Analytical attractive functions and their derivatives in bulk and nanoconfined pores. (23rd October 2019)