Assignment:
A 20 ohm resistor, a .05 farad capacitor, and an alternating power source equal to 40 cos(t) are placed in series. If the initial charge on the capacitor is 3 coulombs, find a general formula for the charge at any time t.
Provide complete and step by step solution for the question and show calculations and use formulas.