We had to compute the integral $$\int \frac{3}{x^3-1} dx$$ I am just starting to learn about integration, and I have no idea how to begin. Can you please help me solve this? Even a hint would be very helpful. Thank you in advance!
P.S. This question is not really a duplicate because the numerator is 3 not 1, so it is harder. If it were 1, I could do it easily.
Using partial fraction decomposition, you get (as Macrophange said) $$\int (\frac {1}{x-1}-\frac {x+2}{x^2+x+1}) dx$$ The left is straightforward: $$\int (\frac {1}{x-1}) dx =\log |x-1|+C$$ The right is more complicated, because I cannot factor the demonstrator, and I tried the Chain Rule, which unfortunately did not work. (I got $u=x^2+x+1$ gives $du=(2x+1) dx$, which is not the denominator) However, I found that we can force this substitution to match partially, by $\frac {x+2}{x^2+x+1}=\frac{1}{2}\cdot\frac {2x+1}{x^2+x+1}+\frac{3}{2}\cdot\frac {1}{x^2+x+1}$. Now, on the first summand, applying the chain rule gives us $$\int (\frac{1}{2}\cdot\frac {2x+1}{x^2+x+1}) dx=\int (\frac{1}{2}\frac {du}{u})=\frac {1}{2} \log|u|+C=\frac {1}{2} \log|x^2+x+1|+C$$ The second term that is left, $\frac{3}{2}\cdot\frac {1}{x^2+x+1}$, looks suspiciously like the arctangent, but with an extra linear term. We can make it closer by completing the square in the denominator, which results in $$\frac {1}{(x+\frac {1}{2})^2+\frac {3}{4}}$$. We evaluate the antiderivative of this via trig substitution, and I don't think you have learned it yet. If you do, you can do the rest by yourself. The answer is a true monster: $$\log |x-1|-\frac{1}{2} \log|x^2+x+1|-\sqrt {3}\tan^{-1}(\frac {2}{\sqrt 3} (x+\frac {1}{2})+C$$ Whew!