From the capacitor current to the voltage, the powers and the generator current: why it is solved this way