in a certain problem I had to differentiate the following function :
$$\xi (s) = se^{\frac12 s^2}+ 2e^{\frac12 s^2}$$
I got $$\xi '(s) = (s^2+2s+1)e^{\frac12 s^2}$$
but it seems much harder to go backwards
how do you integrate this kind of functions ?
Let $$I=\int s(s+1)e^{\frac 12s^2}ds$$ and $$J=\int (s+1)e^{\frac 12s^2}ds$$
Do $I$ by parts with $u=s+1$ and get $$I=(s+1)e^{\frac 12s^2}-\int e^{\frac 12s^2}ds$$
Do $J$ by splitting it as $$J=\int se^{\frac 12s^2}+\int e^{\frac 12s^2}ds$$ $$=e^{\frac 12s^2}+\int e^{\frac 12s^2}ds$$
Then $$I+J=(s+2)e^{\frac 12s^2}$$