Introduction
The capacitor being charged, disconnects the voltage source by turning the Switch to position 2 to leave the discharge to take place through the resistance R.

Uc =f(t) during charging phase
The capacitor being charged, disconnects the voltage source by turning the Switch to position 2 to leave the discharge to take place through the resistance R.