deriving the normal distribution probability density function formula