# What is the primitive function of $xe^{x^2+2x}$?

I need to know the primitive function (Antiderivative) of this function: f(x)= $xe^{x^2+2x}$ without using integral please. Also, please how could I find the primitive functions of those kind like v(x)u(x) ? is there any technique concerning those types? Thanks in advance

• Rewrite as $(x+1)e^{x^2+2x}-e^{x^2+2x}$. The first has an easy antiderivative. The antiderivative of the second cannot be written as a closed form expression using elementary functions. Jan 29, 2016 at 18:39
• @Dr.SonnhardGraubner What error? let me explain to you, the function in the exercise was $\left(x+1\right)e^{x^2+2x}$ so it's equals to : $xe^{x^2+2x}+e^{x^2+2x}$ the second one, I mean $e^{x^2+2x}$ is easy to find and it's primitive is : $\frac{1}{2x+2}e^{x^2+2x}$ but the other, I failed to find it. Jan 29, 2016 at 18:45
• @AndréNicolas I didn't get it, why should I rewrite it like that? Jan 29, 2016 at 18:47
• @AmineMarzouki It was written that way to exploit the fact that one of the primitives of $u'(x)e^{u(x)}$ is $e^{u(x)}$. Jan 29, 2016 at 18:47
• @Dr.SonnhardGraubner Ooops I did a mistake, it's wrong, sorry Jan 29, 2016 at 18:48

From your comments, it seems that the original requested primitive was that of the function $f\colon x\mapsto(x+1)e^{x^2+2x}$. Decomposing it into $x e^{x^2+2x}$ and $e^{x^2+2x}$ wont yield a satisfying result, since the former will involve the error function. Instead, exploit the fact that the primitive of $u'(x)e^{u(x)}$ is $e^{u(x)}$. Here we can clearly see that $f(x)$ can be written as $\tfrac12(2x+2)e^{x^2+2x}$ which is $\tfrac{1}{2}(x^2+2x)'e^{x^2+2x}$. Can you now conclude what the primitive of $f$ is?