How is a matrix diagonalised?

  • Context: Undergrad 
  • Thread starter Thread starter eluu
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary

Discussion Overview

The discussion revolves around the process of diagonalizing a matrix, specifically focusing on the formation of the diagonal matrix D from eigenvalues and the corresponding matrix P from eigenvectors. Participants explore the implications of ordering eigenvalues and the resulting effects on matrices D and P.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant expresses confusion about how the diagonal matrix D is formed from eigenvalues and questions whether different arrangements of eigenvalues lead to different diagonal matrices.
  • Another participant clarifies that the eigenvalues can be arranged in any order to form D, but emphasizes that the corresponding eigenvectors must be placed in the same order in matrix P.
  • Some participants note that different arrangements of eigenvalues yield different diagonal matrices, but the matrix P must also change accordingly to maintain the relationship A = PDP^-1.
  • A participant raises a concern about obtaining different results when raising the matrix A to a power using different arrangements of eigenvalues and eigenvectors.
  • Another participant explains that while different orders of eigenvalues produce different D and P matrices, the overall result of PD^nP^-1 remains consistent for diagonalizable matrices.
  • One participant shares a specific example with calculations, illustrating how different arrangements affect the outcome of matrix multiplication.
  • Another participant realizes a mistake in their approach to matrix multiplication and acknowledges the correct formula for raising the matrix to a power.

Areas of Agreement / Disagreement

Participants generally agree that the order of eigenvalues affects the arrangement of D and P, but there is no consensus on a definitive method for arranging them to achieve consistent results in all cases. Some participants express confusion and uncertainty about the implications of these arrangements.

Contextual Notes

There are unresolved questions regarding the best practices for ordering eigenvalues and eigenvectors, as well as the implications of these choices on matrix operations. Some participants have noted discrepancies in results based on different arrangements, indicating a need for further clarification.

Who May Find This Useful

This discussion may be useful for students and practitioners in linear algebra, particularly those studying matrix diagonalization and its applications in solving matrix equations.

eluu
Messages
9
Reaction score
0
Hey guys, I'm having trouble trying to understand how the diagonalised matrix is produced

e.g.

A =
1 | 3 | 0
3 | -2 |-1
0 | -1 | 1

I've calculated the eigenvalues to be 1, -4, 3

My question is, how do we know that
D =
1 | 0 | 0
0 | 3 | 0
0 | 0 | -4

and not any other combination of 1, 3, -4 along the diagonal, or does it make no difference?
 
Last edited:
Physics news on Phys.org
I'm not sure I understand your question. Why does "diagonalize a matrix" mean to you?
 
Using the eigenvalues to form the main diagonal of a matrix, you form D. Then determine the eigenvectors corresponding to those eigenvalues to create P (remember to keep the eigenvectors in order corresponding to the entries in D). Then invert P to find P^-1. This should yield the equation A=PDP^-1

Good Luck!
 
Nick M said:
Using the eigenvalues to form the main diagonal of a matrix, you form D

So it doesn't matter the order in which you order the eigenvalues? Cos that would produce a slightly different diagonal
 
eluu said:
So it doesn't matter the order in which you order the eigenvalues? Cos that would produce a slightly different diagonal

when you get the e.values and their corresponding e.vectors, to form D you would have to put the e.vectors in the corresponding column. That is, if you put the first e.value in the first column, you put the e.vector in that same column for P.
 
rock.freak667 said:
when you get the e.values and their corresponding e.vectors, to form D you would have to put the e.vectors in the corresponding column. That is, if you put the first e.value in the first column, you put the e.vector in that same column for P.

I understand this but is there more than one answer for D?

Using my example in the 1st question i could get

1 | 0 | 0
0 | 3 | 0
0 | 0 | -4

or

1 | 0 | 0
0 | -4 | 0
0 | 0 | 3

etc..simply by assigning a different first eigenvalue from either 1, 3, or -4
 
eluu said:
I understand this but is there more than one answer for D?

Using my example in the 1st question i could get

1 | 0 | 0
0 | 3 | 0
0 | 0 | -4

or

1 | 0 | 0
0 | -4 | 0
0 | 0 | 3

etc..simply by assigning a different first eigenvalue from either 1, 3, or -4

yes there is, but the matrix P would change as well. In the first matrix the e.value of 3 is in column 2, so in P, you'd put the e.vector that corresponds to 3 as the column 2.

for the 2nd matrix, 3 is in the 3rd column,so you'd put the e.vector for 3 in the 3rd column
 
Ok thanks cos i was getting worried i wasn't getting the same answers for P and D that is given in one of the tutorial books that I'm using where my answers just differed by column arrangements
 
Hey, I have a similar question to this but the posts here doesn't seem to solve my problem. I need to solve a matrix to to a certain power by using the diagonal matrix. It seems with different arrangement of eigenvalues gives me different answers. Out of the different arrangment they seem to be only one arrangement that gives an answer that correspond to the value achieved through matrix multiplication. But I can't see the pattern to identify the correct pattern for the general matrix. I tried to arrange it from the smallest to the largest but it sometimes work and sometimes it doesn't.

Is there an actual proper way to arrange eigenvalues and eigenvectors to form the diagonal matrix and the vector which contains the eigenvectors?
 
  • #10
I think I should have given an example.
Let A be
l 1 -2 l
l -2 4 l
with Eigenvalue 0 and 5
if 0 I set it as
l 2 l
l 1 l

if 5 I set it as
l 1 l
l -2l

if I set P
l 2 1l
l 1 -2l
with D as the diagonal matrix then A^3= (P^-1)D^3P
A^3 =
l 25 -50l
l-50 100l
this is correct if u multiple A.A.A explicitly.

But if I set P
l1 2l
l-2 1l
then A^3 becomes
l25 50l
l50 100l
 
  • #11
Then you are doing a multiplication wrong somewhere.
If A is a diagonalizable matrix so that A= PDP-1 for some diagonal matrix D and invertible matrix P, then An= (PDP-1)(PDP-1)...(PDP-1) (n times)= PDnP-1.

Choosing different orders for the eigenvalues will give different diagonal matrices D and different P but for all of those PDnP-1 will be the same.

If you use
P= \left[\begin{array}{cc}1 & 2 \\-2 & 1\end{array}\right]
instead of
P= \left[\begin{array}{cc}1 & 2 \\-2 & 1\end{array}\right]
you will also need to swap the rows in D, using
D= \left[\begin{array}{cc}5 & 0 \\0 & 0\end{array}\right]
rather than
D= \left[\begin{array}{cc}0 & 0 \\0 & 5\end{array}\right]
Did you do that?
 
  • #12
Yeah I swapped P's columns and changed D. I first also thought I did some multiplication error but then I tried the multiplication with Maple and it seems no different to the paradoxical conclusion that I came to.
 
  • #13
oh wait, I think I have understood why my multiplication doesn't work. Just now, I used your forumale of PD^nP^-1 instead of P^-1D^nP which my lecturer gave to me. It turns out your forumale actually works.

Thanks a lot, now I can finally be relieved for my maths exam.
 
  • #14
MathsNoobie said:
oh wait, I think I have understood why my multiplication doesn't work. Just now, I used your forumale of PD^nP^-1 instead of P^-1D^nP which my lecturer gave to me. It turns out your forumale actually works.
Remarkable, isn't it!:rolleyes:

Thanks a lot, now I can finally be relieved for my maths exam.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
2
Views
2K