Electrical – Confused how to derive output voltage from Op Amp and RC circuit

circuit analysiscurrent measurementoperational-amplifiervoltage measurement

So I'm trying to solve the following question:

Question

I'm very confused how they derived the equation for the output voltage. It was from my understanding that for an ideal op amp, the current through the positive terminal (because it's non-inverting) is \$0\$. Therefore, the current through the resistor \$R1\$ should be the same current through the capacitor. So how does any current flow through the 1k ohm resistor or \$R2\$? Because if any current did flow, wouldn't that violate KCL for the node on the bottom to which the source voltage, the capacitor, ground, and the 1k ohm resistor are connected to?

Best Answer

There are hidden power supplies connecting from the ground node to the positive and negative supply pins of the op-amp. Current to the output pin of the op-amp flows from these supplies.

I'll redraw the circuit including these supplies:

schematic

simulate this circuit – Schematic created using CircuitLab

Now can you see how current from the op-amp output can flow back to the op-amp's positive supply pin?