MATLAB: Can someone provide me the theory and math behind this function of eigen

eigenvalueseigenvector

[V,D] = eig(A,B)
returns diagonal matrix D of generalized eigenvalues and full matrix V whose columns are the corresponding right eigenvectors, so that A*V = B*V*D.

Best Answer

for each column number j,
A*V = B*V*D
implies
A*xj = lambdaj*B*xj
where
xj = V(:,j)
lambdaj = D(j,j)
This is just a generalization of normal eigen value problem.
A*xj = lambdaj*xj
If B is invertible, V and D is the same as standard eigen vectors/values of M := inv(B)*A.
Related Question