Diagonal Matrix

DOWNLOAD Mathematica Notebook

A diagonal matrix is a square matrix A of the form

 a_(ij)=c_idelta_(ij),
(1)

where delta_(ij) is the Kronecker delta, c_i are constants, and i,j=1, 2, ..., n, with no implied summation over indices. The general diagonal matrix is therefore of the form

 [c_1 0 ... 0; 0 c_2 ... 0; | | ... |; 0 0 ... c_n],
(2)

often denoted diag(c_1,c_2,...,c_n). The diagonal matrix with elements l={c_1,...,c_n} can be computed in the Wolfram Language using DiagonalMatrix[l].

The determinant of a diagonal matrix given by diag(c_1,c_2,...,c_n) is c_1c_2...c_n. This means that diag(1,2,...,n)=n!, so for n=1, 2, ..., the first few values are 1, 2, 6, 24, 120, 720, 5040, 40320, ... (OEIS A000142).

Given a matrix equation of the form

 [a_(11) ... a_(1n); | ... |; a_(n1) ... a_(nn)][lambda_1 ... 0; | ... |; 0 ... lambda_n]=[lambda_1 ... 0; | ... |; 0 ... lambda_n][a_(11) ... a_(1n); | ... |; a_(n1) ... a_(nn)],
(3)

multiply through to obtain

 [a_(11)lambda_1 ... a_(1n)lambda_n; | ... |; a_(n1)lambda_1 ... a_(nn)lambda_n]=[a_(11)lambda_1 ... a_(1n)lambda_1; | ... |; a_(n1)lambda_n ... a_(nn)lambda_n].
(4)

Since in general, lambda_i!=lambda_j for i!=j, this can be true only if off-diagonal components vanish. Therefore, A must be diagonal.

Given a diagonal matrix T, the matrix power can be computed simply by taking each element to the power in question,

T^n=[t_1 0 ... 0; 0 t_2 ... 0; | | ... |; 0 0 ... t_k]^n
(5)
=[t_1^n 0 ... 0; 0 t_2^n ... 0; | | ... |; 0 0 ... t_k^n].
(6)

Similarly, a matrix exponential can be performed simply by exponentiating each of the diagonal elements,

 exp(T)=[e^(t_1) 0 ... 0; 0 e^(t_2) ... 0; | | ... |; 0 0 ... e^(t_k)].
(7)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.