The charge flowing through a resistance R varies with time t as Q=at−bt^2. Where a and b are positive constants. The total heat produced in R is