The function is 
Let 
(Apply the derivative)
\
(The derivative power rule)
(Divide each side by 2)
(Substitute
and
)

(The integral exponential rule)
(Substitute
)
The integral is
.