$$f(z)=\frac{e^{z}}{z^{4}+9z^{2}}$$
For a simple pole alternate formula : $$\operatorname{Res}(𝑓(𝑧),𝑎) = \frac{𝑃(𝑎)}{𝑄′(𝑎)}$$ While the general formula for finding residue still holds.
The answer is coming very different for simple pole $z=3i$ from the general residue formula and the alternate formula.
I got e^3i / -36+54i and e^3i / 54i respectively.
Same issue with many problems.
Are there any limitations to the alternate formula? if so please state that.