Ceq=C1+C2C1C2
Using Kirchhoff's loop rule for series charging:
E−C1q−C2q−iR=0⟹E−Ceqq−Rdtdq=0
Integrating with initial condition q(0)=0:
q(t)=CeqE[1−exp(−RCeqt)]
Since the capacitors are connected in series, the same charge flows through both:
q1(t)=q(t)=CeqE[1−exp(−RCeqt)]