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 :
Answer: (B) $\dfrac{a^3R}{3b}$
Concept. Current $i = \dfrac{dQ}{dt}$; heat $H = \displaystyle\int i^2R\,dt$ over the whole time the current flows. Heat does not depend on the current's direction.
Step 1. Current. $i = a - 2bt$. The charge expression $Q = at - bt^2$ returns to zero at $t = a/b$ (the current reverses at $t = a/2b$), so the flow lasts from $t = 0$ to $t = a/b$.
Step 2. Heat.
$$H = R\int_0^{a/b}(a - 2bt)^2\,dt$$
Put $u = a - 2bt$, $dt = -\dfrac{du}{2b}$; $u$ runs from $a$ to $-a$:
$$H = \frac{R}{2b}\int_{-a}^{a}u^2\,du = \frac{R}{2b}\cdot\frac{2a^3}{3} = \frac{a^3R}{3b}$$
Answer. $\dfrac{a^3R}{3b}$ (Option B).
Solution by Sreeraj P, M.Sc Physics