I am trying to solve the following integral:

$$\int \:\frac{3x^2+1}{x^3+2}dx$$

I am not sure how to do it. I tried using partial fractions but you can not factor $x^3+2$, and changing the variable with $u$ does not seem to work either. Anyone has any ideas?

  • $\begingroup$ The easy part is $\frac{3x^2}{x^3+2}$ indeed $(\log x^3+2)'=\frac{3x^2}{x^3+2}$. $\endgroup$
    – user
    Jul 23 '18 at 21:02
  • $\begingroup$ But I guess that does not help at all because the remaining integral would be $ \int \frac1{x^3+2}\mathrm{d}x$ and I am not sure how to solve this. $\endgroup$
    – mrtaurho
    Jul 23 '18 at 21:03
  • 3
    $\begingroup$ You can factor any polynomial over $\mathbb{R}$ into linear or 2nd degree polynomials. Here,you can factor $x^3+2=(x+\sqrt[3] 2)(x^2-\sqrt[3]2x+\sqrt[3]4)$, if its any help. $\endgroup$
    – Sar
    Jul 23 '18 at 21:04
  • $\begingroup$ Separate the two and in the second integral take sub $1+2/x^3=t$ $\endgroup$
    – Pi_die_die
    Jul 23 '18 at 21:13
  • $\begingroup$ This is it ! You can combine gimusi's trick and Dr. Sonnhard Graubner's answer. The linear and quadratic factors are mutually prime so you get $$\frac{1}{x^3+2}=\frac{A}{x+\sqrt[3]{2}}+\frac{Bx+C}{x^2-\sqrt[3]{2}x+2^{2/3}}$$ the second can be written $$\frac{\lambda Q'}{Q}+\frac{\mu}{Q}$$ where $$Q(x)=x^2-\sqrt[3]{2}x+2^{2/3}$$ $\endgroup$ Jul 23 '18 at 21:19

Wolfy gives a number of forms, the first of which is

$ \log(x^3 + 2) - \dfrac{\log(2^{1/3} x^2 - 2^{2/3} x + 2)}{6\ 2^{2/3}} + \dfrac{\log(2^{2/3} x + 2)}{3\ 2^{2/3}} + \dfrac{\tan^{-1}(\frac{2^{2/3} x - 1}{\sqrt{3}})}{2^{2/3} \sqrt{3}} +C $


Hint: write your integral in the form

$$\int \frac{3x^2+1}{(x+\sqrt[3]{2})(x^2-\sqrt[3]{2}x+2^{2/3})}dx$$

  • $\begingroup$ I guess you could apply partial fractions to this "new" but it seems to me that this gets really messy. Is there no other way? $\endgroup$
    – mrtaurho
    Jul 23 '18 at 21:11
  • $\begingroup$ I think here in this case is no other way, let me say i know no other way. $\endgroup$ Jul 23 '18 at 21:14
  • $\begingroup$ Yes. Technically you can factor anything and apply partial fractions in the real numbers, but I was trying to avoid this. I suppose there truly is no other way. Thanks for your help! $\endgroup$
    – Francis
    Jul 23 '18 at 21:15
  • 1
    $\begingroup$ You can clean things up a little by doing a substitution $u = \frac{1}{\sqrt[3]{2}}x$ first; doesn't help a lot, but it makes the numbers better. $\endgroup$
    – Reese
    Jul 23 '18 at 21:19

Substitute $u=x^3$ and you can reduce it down to:


I believe it can be taken from here


$$I=\int \frac{3x^2+1}{x^3+2}dx=\int \frac{3x^2}{x^3+2}dx+\int \frac{dx}{x^3+2}$$ $$I=\log(x^3+2)+\int \frac{dx}{x^3+2}$$ For the remaining integral, let $$x=\sqrt[3]2\, t\implies dx=\sqrt[3]2\,dt$$ $$J=\int \frac{dx}{x^3+2}=\frac{\sqrt[3]2}2 \int \frac{dt}{t^3+1}$$ Now $$t^3+1=(t-1)(t-a)(t-b)$$ Partial fraction decomposition $$\frac 1 {t^3+1}=\frac{1}{(a-1) (a-b) (t-a)}+\frac{1}{(b-1) (b-a) (t-b)}+\frac{1}{(a-1) (b-1) (t-1)}$$ Integrate to get a weighted sum of logarithms with complex values (the weights are complex too) and recombine them to get the answer already given.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.