A time varying current i is passed through a resistance R as shown in figure. What is the total heat generated in the resistance is











