Q. Evaluate $$\int \dfrac{x^2 + x}{e^x + x + 1} \,\mathrm dx.$$
I was reading this question, and the integral got me interested. I have tried all the integral methods I know, but it isn’t helping much with this problem. This started making me wonder whether this has a closed form.
Wolfram Alpha says that the series expansion of the integral at $x=0$ is $$\frac{x^2}{4} - \frac{x^4}{32} + \frac{x^5}{60} - \frac{x^6}{96} + \frac{x^7}{140} - \frac{5x^8}{1024} + O(x^9) + C.$$
So, basically I have two questions:
Q1. Does this integration have a closed form?
I have read that Risch Algorithm helps to determine whether a definite integral has a closed form or not. But as Wikipedia says
“The complete description of the Risch algorithm takes over 100 pages.”
I really don’t know anything about Risch Algorithm except its name. But my efforts and Wolframalpha’s answers are telling me that it doesn’t. If it doesn’t, how do I prove that it doesn’t exist?
Q2. How did WolframAlpha arrive at the series expansion at $x=0$?
Or a better question would be: Would it be possible to arrive at the same answer by hand?
Thank you for taking your time in reading this question. Any comments will be appreciated.