The Ideal Op-Amp and the Virtual Short
Design the gain with one resistor ratio
The figure is a non-inverting amplifier: the input enters at the + terminal, and the output returns through two resistors to the − terminal. Change the feedback ratio Rf/Rg and the length of the gold arrow at the output, the gain, grows to (1 + Rf/Rg) times. Find the ratio that makes the output exactly 3 times the input, so the arrow's tip reaches the dashed mark.
Two rules: virtual short and 0 input current
An ideal op-amp amplifies the tiny voltage difference between its two inputs by a nearly infinite amount. When the output returns to the inverting input through feedback, the op-amp adjusts its output in the direction that shrinks that difference toward 0, and as a result the two input voltages become equal. This is the virtual short. In addition, the input resistance is infinite, so no current at all flows into the input terminals.
The two rules turn gain into a resistor ratio
In a non-inverting amplifier the input goes to the + terminal, and the output sends the voltage divided by Rf and Rg back to the inverting input. Because of the virtual short, the inverting input sits at the input voltage, and because the input current is 0, the current through Rg flows on through Rf unchanged. Solving these two conditions gives an output 1 + Rf/Rg times the input. The op-amp's huge gain drops out of the equation, leaving only the ratio of the external resistors.
That is why the circuit is stable and predictable
The gain of each individual op-amp varies from part to part and drifts with temperature, yet the gain of an amplifier built with feedback is set by the ratio of two resistors. Choose precise resistors and you get a precise gain. The virtual short is the first key to solving countless circuits, such as inverting amplifiers, summers, and integrators; from circuit to circuit, only where the input goes and how the feedback is wired change.
Back to the first screen
As you changed the feedback ratio, the gold arrow lengthened and the output grew to (1 + Rf/Rg) times the input, reaching exactly 3 times, and the dashed mark, at Rf/Rg = 2. The op-amp's own colossal gain appeared nowhere in the result. Because negative feedback tied the two inputs together and kept the input current at 0, the gain depended on nothing but the ratio of two resistors.