I'm struggling to understand the reason why I'm getting different results with two apparently similar ways to compute the power consumption (over multiple time intervals) of an electrical circuit.
Let's assume I have a DC circuit with one power supply and one 10-ohms resistor. During the first 3 seconds the voltage is 5V. Then, during 1 second the voltage is 3V. I want to compute the average power over both intervals. Next, I describe both ways to compute the power that I was using:
1) P1 = V1 * V1/R = 5 * 5/10 = 2.5W
P2 = V2 * V2/R = 3 * 3/10 = 0.9W
Pavg = 3/4 * P1 + 1/4 * P2 = 2.1W
2) Vavg = 3/4 * V1 + 1/4 * V2 = 4.5
Pavg = Vavg * Vavg/R = 4.5 * 4.5/10 = 2.025W
I guess I'm missing something in here... Actually, I'm not even sure which method is the correct one (2.1W vs 2.025W). I would really appreciate it if anyone could point out what I'm doing wrong.