I apologise in advance if this is a naive question (which it probably is) but my maths is very rusty and my old notes and text books don't seem to cover this particular problem.

What is the correct approach to integrating the product of two exponential functions of the form below?

I have current, i(t) = 10e^-5000t

voltage, v(t) = 50(1-e^-5000t).

Power, p(t) = i(t).v(t)

Energy for t is greater than equal to zero is therefore the integral of p(t) for t = 0 to infinity.

I know that the answer is 50 mJ (or 0.050 joules) from calculating p(t) in a spreadsheet for small increments of t until p(t) tends to zero but cannot demonstrate it mathematically.

I've tried integrating by parts but this does not seem to close the deal as I always end up with a integral of the same or similar form to evaluate.

What is the blindingly obvious thing that I am missing ? Am i on the right track with integrating by parts or is there an easier reduction of the problem given the similarities between the two functions?

Many thanks