\(a)P=\left(\dfrac{x^2+2}{x^3-1}+\dfrac{x+1}{x^2+x+1}+\dfrac{1}{1-x}\right).\left(\dfrac{x^2}{x+1}+1\right).\left(x\ne1;x\ne-1\right).\\ P=\dfrac{x^2+2+x^2-1-x^2-x-1}{\left(x-1\right)\left(x^2+x+1\right)}.\dfrac{x^2+x+1}{x+1}.\\ P=\dfrac{x^2-x}{x-1}.\dfrac{1}{x+1}.\\ P=\dfrac{x\left(x-1\right)}{x-1}.\dfrac{1}{x+1}.\\ P=x.\dfrac{1}{x+1}.\\ P=\dfrac{x}{x+1}.\)
\(P=\dfrac{1}{4}.\Rightarrow\dfrac{x}{x+1}=\dfrac{1}{4}.\\ \Leftrightarrow4x-x-1=0.\\ \Leftrightarrow3x-1=0.\\ \Leftrightarrow x=\dfrac{1}{3}\left(TM\right).\)