Derive the inverting amplifier's gain from the golden rules.
Derive the non-inverting amplifier's gain.
Compare input impedance and available gain ranges.
Recognise the follower as a limiting case.
Two configurations account for most op-amp circuits, and both derive from Lesson 1's two lines in about three steps each. Start with the inverting amplifier.
The inverting amplifier: the − input is a virtual ground, so the input current has nowhere to go but through R_f.
The non-inverting input is grounded, so rule 1 puts the inverting input at 0 V too — a VIRTUAL GROUND: a node held at zero volts by the feedback, without being connected to ground. Then the current through Rin is vin/Rin, and rule 2 says none of it enters the op-amp, so all of it continues through Rf to the output. Ohm's law on Rf finishes the job:
Av=vinvout=−RinRfinverting amplifier
Now move the signal to the non-inverting input and ground the bottom of the input resistor instead. The circuit is the same skeleton with the signal injected in a different place — worth noticing, because the two circuits look far more different than they are.
The non-inverting amplifier: same skeleton, signal moved to the + input and R_1 grounded.
Rule 1 puts the inverting input at vin. That node sits at the top of R1, whose bottom is grounded, so the current through R1 is vin/R1 — and rule 2 sends all of it through Rf. The output is therefore vin plus the drop across Rf: