\(P=\frac{\left(x^2+a\right)\left(1+a\right)+a^2x^2+1}{\left(x^2-a\right)\left(1-a\right)+a^2x^2+1}\)
\(=\frac{x^2+ax^2+a+a^2+a^2x^2+1}{x^2-ax^2-a+a^2+a^2x^2+1}\)
\(=\frac{x^2\left(a^2+a+1\right)+\left(a^2+a+1\right)}{x^2\left(a^2-a+1\right)+\left(a^2-a+1\right)}\)
\(=\frac{\left(x^2+1\right)\left(a^2+a+1\right)}{\left(x^2+1\right)\left(a^2-a+1\right)}\)
\(=\frac{a^2+a+1}{a^2-a+1}\)( không phụ thuộc vào biến )