Why formulas do not explain circuits
====================================

The proposed [TI material](https://e2e.ti.com/blogs_/archives/b/precisionhub/posts/overlooking-the-obvious-the-input-impedance-of-a-difference-amplifier) brought up this question from 8 years ago and it caught my attention. Looking at the author's efforts to explain qualitative things (ideas) with quantitative means (formulas), I remembered that many times I tried to understand famous circuit solutions (Howland current source, improved Howland pump, etc.) from such TI, NI, AD and others company materials sources... and I have seen this approach everywhere. The same problem appeared when math entered simulators, and now it has become very relevant with the advent of artificial intelligence with its claims to "explain" and "understand".

My belief is that these are tools that only aid understanding... but do not replace it. ***Understanding means seeing the most general idea in a particular circuit solution that can be observed in many other implementations***. So let's see what the idea of the input resistance problem of this famous circuit is.

Basic idea
==========

The resistance of the inverting input of the op-amp differential amplifier is not constant but depends on how the input signals change. This phenomenon can be explained by the Miller effect in its generalized form in the Miller theorem. It states that if we connect in series to the input voltage source an additional proportional voltage source, we can artificially change the input resistance. If the source is connected so that its voltage is added to the input voltage, the resistance is reduced because the current is increased; if its voltage is subtracted from the input voltage, the resistance increases because the current decreases. In the particular case, the input resistance is modified because the input voltage Vin1 is applied to the R1 left end and a (copy of) part of the input voltage Vin2 is applied to its right end. In fact, R2 and the entire network R1-R2 are modified accordingly. Let's consider the most typical cases.

1."Frozen" op-amp (genuine resistance)
--------------------------------------

Let's initially imagine that the op-amp has stopped working and its output voltage is zero (I have simulated this in a somewhat "brutal" but reliable way by simply grounding the output). Both input voltage sources "see" 2 kΩ equal resistances: Vin1 sees R1+R2, and Vin2 sees R3+R4.

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/wS53s.png)

<!-- End schematic -->

The latter does not change because it is permanently grounded, so we will only deal with the former in the future.

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/oSxaL.png)

<!-- End schematic -->

Let's sweep Vin1 and plot the current to get an idea of the input resistance by the slope of the IV curve. Ignore the yellow horizontal line here and below; I put it only to "cheat" the CircuitLab autoscaling.

[![STEP 1.2][1]][1]

2.Single-ended input Vin1 (decreased resistance)
-------------------------

If we fix Vin2 (e.g. at 0 V), the op-amp maintains the voltage at the right end of R1 at 0 V (the so-called *virtual ground*).

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/x7UWE.png)

<!-- End schematic -->

In effect, the op-amp adds as much voltage as is dropped across R2, and thus compensates for it. The op-amp output can be considered as a "negative resistor" with -1 kΩ resistance that neutralizes the 1 kΩ "positive resistance" R2, and the resulting resistance is zero.

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/JJbo5.png)

<!-- End schematic -->

Figuratively speaking, the right part of the circuit behaves like a "piece of wire".

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/RdATI.png)

<!-- End schematic -->

The IV curve of the input resistance is twice as steep.

[![STEP 2.1][2]][2]

3.Differential input (extremely decreased resistance)
--------------------

Vin2 = -Vin1 is a much more interesting case that has attracted the attention of the author who wrote the TI material. Here the op-amp is forced to drop its voltage further below zero (-2 V) to set -500 mV to its inverting input (which is no longer virtual ground).

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/KGoOE.png)

<!-- End schematic -->

In effect, the op-amp adds more voltage (2 V) than is dropped across R2 (1.5 V), and with the remaining 500 mV compensates part of the voltage drop across R1. The op-amp output can be considered as a "negative resistor" with -1.333 kΩ resistance that neutralizes the 1 kΩ "positive resistance" R2, and with the remaining -333 Ω compensates 333 Ω of the R1 "positive" resistance.

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/v130X.png)

<!-- End schematic -->

Thus the resulting input resistance is 667 Ω. Notice that there is still a virtual ground, but it is inside R1. In order to "see" it without opening R1, we can replace it with a potentiometer, and find it by moving the wiper.

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/1NErF.png)

<!-- End schematic -->

The input resistance IV curve is even more steeper as above.

[![STEP 2.2][3]][3]

4.Common-mode input (increased resistance)
------------------------------

Vin2 = Vin1 is analogous to the initial Case 1 but with a functioning op-amp that sets its output voltage to zero by itself. The "virtual ground" is "lifted" by 500 mV and the input resistance is 2 kΩ. 

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/vWKEP.png)

<!-- End schematic -->

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/LMDp3.png)

<!-- End schematic -->

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/JogmE.png)

<!-- End schematic -->

[![STEP 4.1][4]][4]

5.Vin2 = 2.Vin1 (infinite resistance)
-------------------

This is the famous *bootstrapping* arrangement where the op-amp maintains the voltage at the right end of R1 equal to the voltage (Vin1) of its left end. 

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/K0cRN.png)

<!-- End schematic -->

As a result, no current is drawn from Vin1... 

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/zw0DB.png)

<!-- End schematic -->

... the input resistance is infinite...

<!-- Begin schematic: In order to preserve an editable schematic, please
     don't edit this section directly.
     Click the "edit" link below the image in the preview instead. -->

![schematic](https://i.sstatic.net/YGC5w.png)

<!-- End schematic -->

... and the IV curve is horizontal. 

[![STEP 4.1][5]][5]

Conclusion
========

In the circuit of the op-amp differential amplifier, the op-amp modifies the input resistance of the inverting input by adding/subtracting its output voltage to/from the V1 input voltage. 


  [1]: https://i.sstatic.net/hy5LS.png
  [2]: https://i.sstatic.net/Lyjfp.png
  [3]: https://i.sstatic.net/ClJr5.png
  [4]: https://i.sstatic.net/BD632.png
  [5]: https://i.sstatic.net/8xK7I.png