derive the formula for multivariate normal distribution