\displaystyle u_C=\frac{1}{RC}\int_0^t u-u_C\,\mathrm{d}t+u_C(0)