ĐK \(a\ne\left\{-1;1\right\}\)
a. Ta có \(Q=\frac{a^3-3a^2+3a-1}{a^2-1}=\frac{\left(a-1\right)^3}{\left(a-1\right)\left(a+1\right)}=\frac{\left(a-1\right)^2}{a+1}\)
b. Khi \(\left|x\right|=5\Rightarrow\orbr{\begin{cases}x=5\\x=-5\end{cases}}\)
Với \(x=5\Rightarrow Q=\frac{\left(5-1\right)^2}{5+1}=\frac{16}{6}=\frac{8}{3}\)
Với \(x=-5\Rightarrow Q=\frac{\left(-5-1\right)^2}{-5+1}=\frac{36}{-9}=-4\)