From the diagram above, if the potential difference across the resistor, capacitor and inductor are…