Step 1: Determine the additional charge.
The difference in charge (\(\Delta q\)) introduced by the dielectric is calculated as:
\(\Delta q = (KC - C)V\)
Where K represents the dielectric constant, C signifies the capacitance, and V denotes the voltage.
\(\Delta q = (2 \times 40 \times 10^{-6} \text{ F} - 40 \times 10^{-6} \text{ F}) \times 100 \text{ V}\)
\(\Delta q = (80 - 40) \times 10^{-6} \text{ F} \times 100 \text{ V}\)
\(\Delta q = 40 \times 10^{-6} \text{ F} \times 100 \text{ V}\)
\(\Delta q = 4000 \times 10^{-6} \text{ C} = 4 \times 10^{-3} \text{ C} = 4 \text{ mC}\)
Step 2: Calculate the alteration in electrostatic energy.
The change in electrostatic energy (\(\Delta U\)) is computed using the formula:
\(\Delta U = \frac{1}{2} C' V^2 - \frac{1}{2} C V^2 = \frac{1}{2} (KC - C) V^2 = \frac{1}{2} (K - 1) C V^2\)
\(\Delta U = \frac{1}{2} (2 - 1) (40 \times 10^{-6} \text{ F}) (100 \text{ V})^2\)
\(\Delta U = \frac{1}{2} (1) (40 \times 10^{-6} \text{ F}) (10000 \text{ V}^2)\)
\(\Delta U = \frac{1}{2} (40 \times 10^{-2}) \text{ J}\) \(\Delta U = 20 \times 10^{-2} \text{ J} = 0.2 \text{ J}\)
A circuit consisting of a capacitor C, a resistor of resistance R and an ideal battery of emf V, as shown in figure is known as RC series circuit. 
As soon as the circuit is completed by closing key S₁ (keeping S₂ open) charges begin to flow between the capacitor plates and the battery terminals. The charge on the capacitor increases and consequently the potential difference Vc (= q/C) across the capacitor also increases with time. When this potential difference equals the potential difference across the battery, the capacitor is fully charged (Q = VC). During this process of charging, the charge q on the capacitor changes with time t as
\(q = Q[1 - e^{-t/RC}]\)
The charging current can be obtained by differentiating it and using
\(\frac{d}{dx} (e^{mx}) = me^{mx}\)
Consider the case when R = 20 kΩ, C = 500 μF and V = 10 V.