Could someone please confirm I am thinking along the right track here?

I have derived a function for determine the DC power stored in a capacitor for a series RC circuit.

The function looks like this: p (t) = VI*exp^mt(1-exp(mt)).

I would like to integrate this to obtain the energy stored in the capacitor. Would this have to be done using by substitution or by parts method?

Thank you in advance.