# What is the minimal polynomial AB?

Let $A\in M_{n}(R)$ with the minimal polynomial $x^{2}-1$ and $B\in M_{n}(R)$ with the minimal polynomial $x^{2}+1$. What is the minimal polynomial $AB$ if $AB=BA$?

-

I find the answer. The answer is $x^{2}+1$.