I would like to derive the equation Vc=Vss+(Vi-Vss)*e^(-t/RC)
Vss is the steady state voltage
Vi is the initial capacitor voltage
Vc is the capacitor voltage
The Attempt at a Solution
I tried to find solution using laplace transform. E=iR+1/c∫idt.
Taking laplace, E/s=I(s)R+1/(cs)*I(s)-q(0+)/(cs)
Then taking inverse laplace
What is wrong? why am i not getting the correct answer? Please help...