For this question the chain rule should be used, the chain rule is that dy/du*du/dx=dy/dx.
If we say u=(x2+2x) and therefore y=eu
Then du/dx=2x+2 and dy/du=eu.
Then dy/du*du/dx= (2x+2)eu, then we can sub u back into the answer to obtain dy/dx=(2x+2)e(x^2+2)