How does the energy buildup occur during resonance?

Answer

Through the constructive addition of energy over successive cycles, perfectly aligned with the system's internal rhythm.

When the driving frequency matches the natural frequency, every successive impulse arrives in phase with the existing motion, causing the energy being added to always reinforce the motion already underway.

How does the energy buildup occur during resonance?
causesystemresonanceamplification