Work with a nonsingular multivariate normal distribution, so is positive-definite. The claimed finite maximum-likelihood estimates also require the centered sample covariance matrix to be nonsingular; the exceptional case is discussed below.
Independence gives, up to a constant, the log-likelihood
Let and . The centered sum is zero, and expansion therefore gives
For every fixed positive-definite matrix , the extra quadratic term in the log-likelihood is , with unique maximum at .
Assume is positive-definite. Maximizing over now means minimizing . Put , another positive-definite matrix. Then
If are its eigenvalues, the variable part is . The scalar inequality , with equality only at , shows that this is minimized uniquely at , or . Thus
The divisor is because this is maximum likelihood estimation, not the unbiased covariance estimate with divisor .
The nonsingularity condition matters. The centered scatter has rank at most . If is singular, choose , retain positive covariance eigenvalues on its range and let a covariance eigenvalue on its null space tend to zero. The quadratic likelihood term remains finite, while . This is singular covariance and nonexistence of a Gaussian maximum likelihood estimate: there is no finite maximizer over nonsingular . Under a nonsingular Gaussian population, is positive definite almost surely when ; for it is necessarily singular. The asserted estimate and the inverse in the next part have their usual meaning under .