For observations , the log-likelihood of the normal distribution model is
Differentiating first with respect to gives . Substituting this value and differentiating with respect to gives the normal mean and variance maximum-likelihood estimators