Answer
$
U_R=\frac{T}{2} I^2 R .
$
Work Step by Step
Over one cycle, the energy dissipated in the resistor is
$
U_R=\int_0^T P_R d t\\=I^2 R \int_0^T \sin ^2\left(\omega_d t-\phi\right) d t\\=\frac{T}{2} I^2 R .
$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.