I have a $2\times 2$ symbolic matrix for which I want to compute the eigenvalues. It is given as:
Clear[a, b, m]
m={{a, b}, {b, -a}}
and it spits out the eigensystem as
eigs = Eigensystem[m]
$$\begin{pmatrix} -\sqrt{a^2+b^2} & \sqrt{a^2+b^2} \\ \left\{-\frac{\sqrt{a^2+b^2}-a}{b},1\right\} & \left\{-\frac{-\sqrt{a^2+b^2}-a}{b},1\right\} \\ \end{pmatrix}$$
Although this is expected I have an issue. What I want to do is be able to send $b$ to $0$ after finding the eigenvectors, but given how it is that doesn't work for me. What can I do to enforce this assumption into the code?
b=0
you will encounter infinity. Is that what you want? $\endgroup$b
to zero prior to calculating theEigensystem
, i.e.,m = {{a, 0}, {0, -a}}; Eigensystem[m]
evaluates to{{-a, a}, {{0, 1}, {1, 0}}}
$\endgroup$