If \( X_i\) is distributed as normal with mean \(\mu\) and variance-covariance matrix \(D\),where \(D\) is the diagonal matrix, then show that \(X^TD^{-1}D\) is distributed as noncentral \(\chi^2\) with k degrees of freedom and noncentrality parameter \(\mu^TD^{-1}\mu=\lambda.\)