A driving force causes the system to vibrate at a different frequency. For higher driving frequencies, the phase difference between the driver and the oscillations rises to π radians. For lower frequencies, the oscillations are in phase with the driving force. When resonance occurs, which is when it most efficiently transfers energy to the system, the phase difference will be π/2 radians.