We have, f(x)=inte^xdxf(x)=∫exdx which comes out to be e^x +Cex+C where CC is the constant of integration.
We also have f(0)=-2f(0)=−2.Plugging in this value in the expression we derived earlier, we get e^0 +Ce0+C=-2 or CC=-2-1 which is -3. Thus,the expression comes out to be e^x -3ex−3