Prove that, if \(a\) is real, the equation \[(x^2+1)(x+1)=(a^2+1)(a+1)\] has one and only one real root.