Why is diagonalizing a matrix beneficial?

  • Context: Undergrad 
  • Thread starter Thread starter matqkks
  • Start date Start date
  • Tags Tags
    Matrices
Click For Summary

Discussion Overview

The discussion centers around the benefits and applications of diagonalizing a matrix, exploring its significance beyond merely finding matrix powers. Participants consider various theoretical and practical implications of diagonalization in linear algebra, including its role in simplifying matrix functions and solving systems of equations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Some participants suggest that diagonalization allows for the calculation of more complex functions of matrices, such as exponential functions, through power series expansions.
  • It is noted that diagonal matrices make it easier to determine intrinsic properties of linear maps, such as rank and determinant, since these can be directly computed from the diagonal elements.
  • One participant emphasizes that diagonalization can "uncouple" systems of linear equations, making them easier to solve by transforming the equations into a form where each equation involves only one variable.
  • There is a discussion about the limitations of diagonalization, with some participants pointing out that not all matrices can be diagonalized, but can instead be represented in Jordan Normal Form.
  • Some participants express uncertainty about the conditions under which certain functions can be applied to matrices, indicating the need for specific properties of the functions involved.

Areas of Agreement / Disagreement

Participants express a range of views on the benefits of diagonalization, with some agreeing on its advantages in simplifying calculations and solving equations, while others highlight the limitations and conditions necessary for diagonalization to be applicable. The discussion remains unresolved regarding the specific conditions under which certain mathematical functions can be applied to diagonalized matrices.

Contextual Notes

Participants mention that the process of diagonalization can be complex and may involve significant computational effort, especially in larger systems. There is also a recognition that while diagonalization is beneficial, it is not universally applicable to all matrices.

matqkks
Messages
283
Reaction score
6
Why do we need to diagonalise a matrix? What purpose does it serve apart from finding the powers of a matrix? Is there any tangible application of this?
 
Physics news on Phys.org
it allows us to define and calculate more complicated functions for matrices. The standard way to extend complicated functions to other systems, say finding cos(z) for z complex or eA for A a matrix or linear transformation is to expand the function in a power series:
[tex]e^A= I+ A+ \frac{1}{2}A^2+ \frac{1}{6}A^3+ \cdot\cdot\cdot+ \frac{1}{n!}A^n+ \cdot\cdot\cdot[/itex].<br /> <br /> And, of course, a diagonal matrix has its eigenvalues on the diagonal. That's not so important since usually you have to have found the eigenvalues to diagonalize the matrix.<br /> <br /> (Oh, and not all matrices <b>can</b> be diagonalized.)[/tex]
 
I think that what HallsofIvy wants to say is that, if

[tex]A=MDM^{-1}[/tex]

and D is a diagonal matrix with eigenvalues [tex]\lambda_i[/tex], then

[tex]f(A)=Mf(D)M^{-1}[/tex]

and f(D) is easy to calculate, because it's just the diagonal matrix with eigenvalues [tex]f(\lambda_i)[/tex].
 
Sometimes, there are properties of a matrix that are independent of the basis (i.e., properties that are intrinsic to the linear map it represents). For instance, the rank or the determinant. If you have a matrix in diagonal form, then those properties are easier to determine. For instance, the determinant will be just the product of the diagonal elements, and the rank will be the number of nonzero diagonal elements.
 
Petr Mugver said:
I think that what HallsofIvy wants to say is that, if

[tex]A=MDM^{-1}[/tex]

and D is a diagonal matrix with eigenvalues [tex]\lambda_i[/tex], then

[tex]f(A)=Mf(D)M^{-1}[/tex]

and f(D) is easy to calculate, because it's just the diagonal matrix with eigenvalues [tex]f(\lambda_i)[/tex].
No, that's not what I meant to say because, without specifying that f(x) is a function with some important properties, it just isn't true.
 
HallsofIvy said:
No, that's not what I meant to say because, without specifying that f(x) is a function with some important properties, it just isn't true.

I meant functions like the ones in your post, expressed as Taylor series, and of course whose domain must include the eigenvalues of the matrix you want to apply it... or am I getting something wrong?
 
The simplest type of diagonal matrices is the set of all real numbers R = M(1,R). In a sense, diagonal matrices are easier to work with, whether you are multiplying or solving a system of equations, or finding eigenvalues, it is always better to have a diagonal matrix. If you can change the base of your vector space to obtain a diagonal matrix than most problems become trivial. However, not all matrices are diagonalizable. In that case you can always obtain a block matrix that is unitarily equivalent.
Vignon S. Oussa
 
Another way of looking at it is that diagonalizing a matrix "uncouples" the equations.

A general matrix can be thought of a representing a system of linear equations. If that matrix can be diagonalized, then we have the same number of equations but each equation now has only one of the unknown values in it. For example, the matrix equation
[tex]Ax= b= \begin{bmatrix}-1 & 6 \\ -4 & 6\end{bmatrix}\begin{bmatrix}x \\ y\end{bmatrix}= \begin{bmatrix}2 \\ 3 \end{bmatrix}[/tex].

That matrix, A, has eigenvalues 2 and 3 with corresponding eigenvectors <2, 1> and <3, 2> respectively. Let [tex]P= \begin{bmatrix}2 & 3 \\ 1 & 2\end{bmatrix}[/tex]. Then [tex]P^{-1}= \begin{bmatrix}2 & -3 \\ -1 & 2\end{bmatrix}[/tex] and [tex]P^{-1}AP= \begin{bmatrix}2 & -3 \\ -1 & 2\end{bmatrix}\begin{bmatrix}-1 & 6 \\ -4 & 6\end{bmatrix}\begin{bmatrix}2 & 3 \\ 1 & 2\end{bmatrix}= \begin{bmatrix}2 & 0 \\ 0 & 3\end{bmatrix}[/tex]

Now we can rewrite the equation Ax= b as [tex]A(PP^{-1})x= b[/tex] so [tex](P^{-1}AP)P^{-1}x= P^{-1}b[/tex] If we let [itex]z= P^{-1}x[/tex], here, [tex]z= \begin{bmatrix}z_1 \\ z_2\end{bmatrix}= \begin{bmatrix}2 & -3 \\ -1 & 2\end{bmatrix}\begin{bmatrix}x \\ y\end{bmatrix}[/tex], then [tex]P^{-1}b= \begin{bmatrix}2 & -3 \\ -1 & 2\end{bmatrix}\begin{bmatrix}2 \\ 3\end{bmatrix}= \begin{bmatrix}-5 \\ 4\end{bmatrix}[/tex] so the matrix equation becomes [tex]\begin{bmatrix}2 & 0 \\ 0 & 3\end{bmatrix}\begin{bmatrix}z_1 \\ z_2\end{bmatrix}= \begin{bmatrix}-5 \\ 4\end{bmatrix}[/tex] which is exactly the same as the two equations [tex]2z_1= -5[/tex] and [tex]3z_1= 4[/tex] which are "uncoupled"- they can be solved separately. After you have found z, because [tex]z= P^{-1}y[/tex], [tex]y= Pz= \begin{bmatrix}2 & 3 \\ 1 & 2\end{bmatrix}\begin{bmatrix}z_1 \\ z_2\end{bmatrix}[/tex].<br /> <br /> Of course the work involved in finding the eigenvalues and eigenvectors of a matrix and diagonalizing, here, is far more than just solving the equations- but think about a situation where your system has, say, 1000 equations in 1000 unknown values. Also, it is not uncommon that applications involve solving many systems of the form Ax= b, each with the <b>same</b> A and different bs. In a situation like that,the diagonalization only has to be done <b>once</b> for the whole problem.<br /> <br /> Also, there are important situations where we have systems of linear <b>differential equations</b>. The same things apply there- diagonalizing "uncouples" the equations.<br /> <br /> As I said before, not every matrix <b>can</b> be "diagonalized"- but every matrix can be put in "Jordan Normal Form", a slight variation on "diagonalized" where we allow some "1"s just above the main diagonal, which <b>almost</b> uncouples the equations- no equation involves more then two of the unknowns.[/itex]
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 14 ·
Replies
14
Views
5K