Two capacitors, one resistor and an ideal battery are connected through switches s1,s2 and s3 as shown in figure. Initially capacitor of capacitance 4C is charged, while other is uncharged. The upper plate of capacitor 4C is positive plate. Now, switches s1,s2 and s3 are closed simultaneously then find current in resistor and charge on capacitor 6C as a function of time.
This is not a homework question. I tried to find the current by first integrating and then differentiating but couldn't get the correct answer. I know about the formulae to be used. I formed 4 equations :
-(4q0+q2)/4C -iR +e =0
Where q1 is the charge on 6C at time t and q2 is the extra charge on q2 at time t.