| Thread Closed |
diagonalizing a 3x3 second derivative matrix |
Share Thread | Thread Tools |
| Mar1-05, 10:25 PM | #1 |
|
|
diagonalizing a 3x3 second derivative matrix
I've been working on this problem lately where I've been looking at the second derivatives of 2D and 3D density fields. Now, the second derivatives of the field can be represented in a matrix, which can be thought of as an N-dimensional ellipse with the principal axes aligned along some angle in which the second derivative matrix is diagonal.
Anyway, I've solved the full problem in 2D (angle and all), but in 3D, I've only been able to diagonalize the matrix. I haven't yet figured out how to determine the angle that represents. Does an easy analytic solution exist for this or will I have to resort to numerical guesstimations? |
| Mar2-05, 06:15 AM | #2 |
|
|
Did you determine the eigenvectors of this matrix?
Knowing those, you can use the dot-product to determine the various direction cosines. |
| Mar3-05, 07:20 AM | #3 |
|
|
|
| Mar3-05, 11:10 AM | #4 |
|
Recognitions:
|
diagonalizing a 3x3 second derivative matrix
the answer he gave you was for a general situation. the eigenvalues are roots of the characteristic polynomial, which has a general formula, the same for all matrices.
|
| Mar3-05, 05:51 PM | #5 |
|
|
|
| Mar3-05, 10:07 PM | #6 |
|
Recognitions:
|
i still do not understand how a general method does not give you a general result. do you mean you wanted someone to write down the characteristic polynomial for you?
if so, it is just the determinant of the matrix [A - XId], where A is the matrix of second partials, or do you also want me to write down the determinant? |
| Mar4-05, 01:39 AM | #7 |
|
|
However, to find the eigenvectors, I then need to solve a linear system of equations which is usually singular. Since I can't do this with a simple inverse, writing a routine to do it is tricky. I can do it with gauss-jordan elimination, but that's not so simple to program, so I needed the fortran library to do that. I was hoping there was a simple general solution for the rotation angle in this problem (assuming the eigenvectors make up the rotation matrix), but I have yet to find one in 3-D. |
| Mar5-05, 03:56 PM | #8 |
|
Recognitions:
|
gosh how could I have been so careless. Please forgive me, i just lost my head.
now that i know you want eigenvectors, perhaps (in case your matrix is invertible) the formula involving determinants could help you. I guess you knolw there is a formula for the, solution of an invertible linear system called cramers rule. but i wouldn't want to waste your time, so just feel free to ignore this if it is not helpful. In case it m,ay be useful, here is a other short characterizatioon of an eigenvector for a symmetric matrix A, which however requires you to solve for thew points on the unit sphere where a derivative is zero: let v be a unit vector such that the function Ax.x is minimized over the unit sphere at x = v. Then v is an elgenvector for A. |
| Thread Closed |
| Thread Tools | |
Similar Threads for: diagonalizing a 3x3 second derivative matrix
|
||||
| Thread | Forum | Replies | ||
| Help! Diagonal matrix similar to upper triangular matrix? | Linear & Abstract Algebra | 1 | ||
| [SOLVED] Diagonalizing a 3x3 matrix | Precalculus Mathematics Homework | 4 | ||
| replacing total derivative with partial derivative in Griffiths' book | Advanced Physics Homework | 3 | ||
| The stiffness matrix in matrix analysis of strutures | Classical Physics | 0 | ||
| Matrix, making R2 to R3, finding standard matrix A! where did i mess up? | Calculus & Beyond Homework | 1 | ||