The simple problem eigenvalues problem defined as: $A-(x^2)*B = 0$, where $A$ and $B$ are matrices. How to use command
Eigenvalues[]in Mathematica to find $x$, but not this wayDet[A-(x^2)*B]=0because in help I saw 4 examples but just when $B$ is identity matrix or something like this? http://reference.wolfram.com/mathematica/ref/Eigenvalues.htmlIf the matrices $A$ and $B$ are large example $100 \times 100$, and I don't need all solutions $x$, how to use command
FindRoot[]to get just first few positive solutions, example first two positive roots, and combine with eigenvalues?Can command
SchurDecomposition[]can help me for this problem and how?
Thank you in advance.
To settle this:
Mathematica is quite capable of computing the eigenvalues of matrix pencils (i.e., the generalized eigenproblem).
Eigenvalues[]/Eigenvectors[]/Eigensystem[], as well asCharacteristicPolynomial[]andSchurDecomposition[], are all able to handle matrix pencils, as long as the matrix contains inexact elements. For instance:Eigenvalues[]and its cognate functions are capable of returning the first few or last few eigencomponents by taking a second integer parameter.Eigenvalues[{matA, matB}, 3]for instance means "return the three largest (in magnitude) eigenvalues", andEigenvalues[{matA, matB}, -1]means "return the tiniest eigenvalue".SchurDecomposition[]is an eigenvalue-revealing decomposition. For a pencil $(\mathbf A,\mathbf B)$,SchurDecomposition[]finds four matrices $\mathbf Q,\mathbf S,\mathbf P,\mathbf T$ such that $\mathbf A=\mathbf Q\mathbf S\mathbf P^{\dagger}$ and $\mathbf A=\mathbf Q\mathbf T\mathbf P^{\dagger}$, with $\mathbf Q,\mathbf P$ unitary/orthogonal and $\mathbf S,\mathbf T$ upper (quasi-)triangular (depending on the setting of the optionRealBlockDiagonalForm), and $\dagger$ denoting a Hermitian (conjugate) transpose.There are applications where it is better to have a Schur decomposition than an eigendecomposition (and a Schur decomposition certainly takes less effort to compute, as well as less susceptible to numerical instability). Which of the eigendecomposition or the Schur decomposition should you use depends on what you really want to do, which you haven't mentioned...