Regarding transient analysis of RC circuit
This is the well known capacitor paradox. The normal conventions of circuit theory break when you close the switch, because you have two different voltages in parallel and neither of them can change instantaneously. To use normal circuit analysis techniques you will need to introduce some additional assumptions or circuit elements that are not shown in the problem.