How do I show mathematically that Q is equal to the following in a damped oscillator?

The quality factor Q of a damped oscillator is defined as Q=2pi τ(tau) /T. Show mathematically that Q is equal to 2pi*)energy of oscillator/energy lost by oscillator over one period)