Consider a battery of voltage V which charges a capacitor of capcitance C through a resistor of resistance R. Derive an expression for the work done by the battery in charging the capacitor. Careful: in the process there is both energy dissipated in the resistor and stored in the capacitor. [Hint: Find the power output of the battery as a function of time, and integrate it to find the work done.]

thanks alot