RC

Divide through by R:

RC

We recognise this as a first order linear differential equation.

Identify P and Q:

RC

Q = 0

Find the integrating factor (our independent variable is t and the dependent variable is i):

RC

So

RC

Now for the right hand integral of the 1st order linear solution:

RC

Applying the linear first order formula:

RC

Since i = V/R when t = 0:

RC

Substituting this back in:

RC

Solving for i gives us the required expression:

RC