We know that energy of a capacitor
Now, since d << R, the capacitance of the given capacitor can be calculated by the formula of a parallel plate capacitor. Therefore, if the dielectric is introduced upto a depth x and the length of the capacitor is l, we have,