In an ac circuit when the supply voltage frequency is equal to the resonant frequency,…