a)\(ĐKXĐ:x\ne0;-1\)
Ta có:\(\frac{x^3+1}{x}.\left(\frac{1}{x+1}+\frac{x-1}{x^2-x+1}\right)=\frac{x^3+1}{x}.\frac{\left(x^2-x+1\right)+\left(x+1\right)\left(x-1\right)}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\frac{x^3+1}{x}.\frac{x^2-x+1+\left(x^2-1\right)}{x^3+1}=\frac{2x^2-x}{x}=\frac{2x\left(x-1\right)}{x}=2\left(x-1\right)\)