How does an Op-Amp "find" equilibrium (w/ Negative Feedback)?

Click For Summary
An op-amp achieves equilibrium through negative feedback, which stabilizes the output voltage by continuously adjusting the differential input voltage. When a step input is applied, the op-amp initially responds to the large differential voltage, driving the output toward a high value until the feedback reduces the differential input to a minimal level. This process involves a phase delay and can lead to overshooting or oscillation if not properly compensated. The equilibrium point is reached when the feedback current balances the input current, resulting in a stable output voltage that closely matches the desired gain. Understanding this behavior requires recognizing the interplay between feedback and the op-amp's internal characteristics, rather than relying on iterative models.
  • #31
The reason i wrote my too-long post the way i did is
when i read this

TimNJ said:
...but I am struggling with one concept. Say we apply a 1V step input, with an Aol of 1000, and a feedback factor of 0.5 (so ideal closed loop gain of 2), how does the op-amp "know" to stop rising at Vout = 1.996V?

The finite gain equation says Vout = Aol(V+ - V-), but in this case if V+ = 1V, and V- = 0.5(Vout), then Vout would have to be 1.996V in order for it to simultanteously be 2V. ? Since the input differential is dependent on the output, what is this equation even saying?

The op-amp does not "know" you want 2V on the output, per say...so what's stopping it from rising to 1.997V, and producing 1.5V on the output?

i tried to re-create his dilemma in my own mind to see from where he is coming.
This i could not follow
" then Vout would have to be 1.996V in order for it to simultanteously be 2V. ? Since the input differential is dependent on the output, what is this equation even saying? "
so i decided 'This fellow needs to go back to his very basics.'
And that's where i tried to take him.

"Inputs are equal" is just a restatement of 'infinite gain' that alleviates the need to deal with the concept of infinity.
I came up from tubes where gain of a hundred in one device is phenomenal and i at first rejected as absurd the notion of infinite gain in something the size of a pencil eraser.. Caused me trouble for some time , using instead 'inputs will be driven equal' got me past that mental stumbling block.

I thought he needed similar help.

I take your point, i could have finished my post by addressing his Avol of only 1000. To me that's the next step, going from the ideal to a real model, and I tend to do one step per post.btw it was your post 8 that prompted me to say this in my post 19 :
Forget iterations and approach to equilibrium , that's too much math.

old jim
 
Last edited:
  • Like
Likes dlgoff
Engineering news on Phys.org
  • #32
Hello Tim - perhaps a graphical solution (visualization of the problem) may help?
In the attachement I have scetched two lines which reflect the electrcal rules which matters:
(1) the open-loop gain Ao (example: 1000) and (2) the voltage divider k of the feedback circuit - expressed also using the terms Vout and Vd (diff. voltage).

Therefore, both lines may be shown in a common diagram - and the resulting operational point is where both lines are crossing each other.
This is the only point which fulfills both equations.
Now - it is a simple matter to calculate the wanted pair of output voltage (Vop) and input diff. voltage (Vd,op). See the formulas on the paper.
Using the given values (your example), we arrive - of course - at the values as given already in my post as referenced in your first contribution:
Vop=1.996 volts and Vd,op=0.001996 volts.

More than that, it is very easy to verify that the result is stable because the sign of both slopes is different
(in case of instability the slope would have the same sign). Of course, the line (1) is not drawn true to scale. If you would draw it true to scale you can visualize the tiny difference between Ao=1000 and Ao infinite.
 

Attachments

  • Operational_point_page_001.jpg
    Operational_point_page_001.jpg
    23.6 KB · Views: 489
Last edited:
  • Like
Likes TimNJ
  • #33
@TimNJ

Still here ?

Halloooo !
Z0siJAG.gif
 
Last edited by a moderator:
  • #34
Wow. Just wow. I never thought that it would come to a p!ssing match over which model is better. We all (should) know that an op-amps open loop gain is not really infinite like often implied. We also should know that it isn't true that no current ever enters or leaves inputs. We also should know that when operating the inputs will not exactly track each other perfectly. All of those things imply impossible situations in the real world. However, that is the exact reason op-amps are such wonderful devices. Those wild limits in these three rules allow us to take some pretty serious short cuts in amplifier design. More than anything I believe that an op-amp shows the benefits of negative feedback with these 3 rules.
 
  • Like
Likes dlgoff and jim hardy
  • #35
Yes! I am still here! I am so grateful for the insightful discussion this has brought about. I was actually studying for an engineering exam and just couldn't get around to logging on to PF.

Just to clear a few things up, I understand the ideal model very well, and for the most part I understand the finite gain model too. If the op-amp had infinite gain, it could only operate at V(diff) = 0, or else the output would saturate. As a model and a tool for designing op-amp circuits, it's very useful and simple. Eventually, we learn about the finite gain model, where we say that its gain is still very large, but definitely not infinite. So we can in fact have linear amplication, so long as we keep V(diff) very small.

Jim, meBigGuy a huge thanks to you two. LvW, I think your graphical representation was exactly what I was looking for (and maybe others too). I think the toughest part in understanding everything is that these two equations are interdependent on each other, and that it doesn't make much sense to isolate them. However, your graph shows how changing certain values, i.e. Aol and K cause the operating point to shift up and down. Increasing K causes the operating point to drop, while increasing Aol causes the slope of the V(diff)*Aol line to increase and subsequently raises the operating point. Very nice way to view the operation of an amplifier. Thank you so much for taking time out of your day to draw that up.

Many thanks,

Tim
 
  • Like
Likes jim hardy
  • #36
I actually have the exact same question as TimNJ and am somewhat satisfied with the answers - but still a little unsure. What I think we have here is a control system. The "fundamental rule" that an op-amp tries to match inputs with the negative feedback is a bit misleading. There is oscillation in the control system which may decay over time. I am currently trying to write the transfer function for an op-amp using Mason's gain formula. Does anyone know of a helpful derivation I could reference?

I would also like to add that infinite gain is just a limit. Infinite gain implies, of course, zero voltage at the inputs, but if infinite gain is a limit - so too zero voltage must be a limit. I will add my transfer function if I can correctly derive it. It is unfortunate that op amps are taught this way. Why should we be forced to accept that an op amp with feedback matches input with no context. To the curious student that takes a second to consider such a claim - it appears mathematically preposterous.
 
  • #37
I believe I have achieved the correct derivation.

We consider some arbitrary amplification factor A which can take on any value at the moment.

Let us use Vo(s) to represent Vout in the Laplace domain, and Vin(s) for Vin. Note that to find the response of our system to say perhaps a unit step - we could substitute in 1/s for Vin(s) in the Laplace domain.

OK. Here we go. This is my first answer post on this forum so cut me some slack - but I think it’s pretty well done.

We know by definition that,

EQ 1. $$V_o(s) = A(V_{IN}-V_A)$$
Let’s see if we can get Va in terms of Vout
to make EQ 1. amenable to analysis.

Applying the voltage divider rule:
EQ2: $$V_A(s) = \frac {A\cdot R_g} {R_g + R_f} \cdot V_o(s)$$

Substitute and expand:
EQ3: $$V_o(s) = A \cdot V_{IN}(s) - \frac {A \cdot R_g} {R_g + R_f}V_o(s)$$

Collect Terms:
EQ 4: $$V_o(s)(1 + \frac {A \cdot R_g} {R_g + R_f}) = A \cdot V_{IN}(s)$$

Some Algebra...:
EQ 5: $$V_o(s) = \frac {A \cdot V_{IN}(s)} {1 + \frac {A \cdot R_g}{R_g + R_f}}$$

If we assume A is infinite, and this is critical, because in reality, this is not true - so let's apply a limit allowing A to approach infinity.
EQ 6: $$\lim_{A \to \infty} V_o(s) = \lim_{A \to \infty} \frac {A \cdot V_{IN}(s)} {1 + \frac {A \cdot R_g}{R_g + R_f}}$$

Since A is the driving term, all else fades away except for constants multiplying A, which in this case is Vin in the numerator, and the voltage divider fraction in the denominator.

EQ 7: $$\lim_{A \to \infty} V_o(s) = \frac {R_g + R_f}{R_g}\cdot V_{in}(s) = (1 + \frac{R_f}{R_g})\cdot V_{IN}(s)$$

Which is the proper equation we wanted to start with. So what so special about this equation? We could have easily derived it in the time domain for the same result and not used the Laplace domain. The problem is that we chose to force A to infinity. If we don’t force A to infinity and plug in a unit step for Vin we find that our Vout becomes

EQ 8: $$B \cdot u(t)e^{-(\frac {A\cdot R_g}{R_g+R_f})t} + Au(t)$$
where B is some constant I'm too lazy to derive or restrain right now.
If we apply the Laplace frequency shift property. This indicates that if A is not infinite, that the op amp will forever stabilize, approaching, at an exponentially decaying rate, A*u(t). Making A infinite kills the exponential term (because of the negative sign in the exponent) giving the illusion of some instantaneous change in Vout from Vin that confuse TimNJ. The problem of course is that in practice, values are never infinite.

In addition, we didn’t have to use the Laplace domain to solve this system - we could have used algebra - but in my experience, the Laplace domain naturally generates sensible answers for systems involving feedback with much less effort than does the time domain.

Lastly, a bit more analysis reveals that an op amp with a non-infinite A will respond differently to inputs of different frequencies and will actually shift the frequency of the input. This is why I suppose data sheets often specify op-amps’s frequency response ranges.

Of course I could be wrong, so please correct me.
 
Last edited:
  • #38
TheYoshter said:
It is unfortunate that op amps are taught this way. Why should we be forced to accept that an op amp with feedback matches input with no context.
It's unfortunate being taught that way if mathematical explanations don't show where the ideal op-amp fails. Give me the Legacy Op-Amp Analysis any day.
 
  • Like
Likes davenn and jim hardy
  • #39
The Yoshter - there is (at least) one severe error in your contribution: A diagram is missing which defines the circuit and the several abbreviations you have used. I must admit, I am not motivated, therefore, to check your derivations.
More than that, from your results I`ve got the impression that you (probably) have analyzed a non-inverting opamp circuit., right?
I think, in each relevant textbook we find a similar analysis - starting with a finite open-loop gain Aol.
That is - more or less - common practice.
 
  • #40
dlgoff said:
Give me the Legacy Op-Amp Analysis any day.

In industry one seldom encounters a single op-amp, instead a concatenation of them. See AN31.
upload_2018-7-23_8-27-7.png


If he is to wrap his head around the device and be able to operate it in his mind he must go through it stage by stage. A mental model that works at a glance , like @dlgoff 's Legacy model, is necessary for that.

If one is to be well versed in Op-Amp circuits must be aware of the simplifying assumptions underlying that model. Finite AVOL is a refinement to it as is frequency response and phase margin, and they should be taught. But the infinite gain model gets him started and trains his brain to think like an op-amp.

Perhaps my experience, coming up from vacuum tubes as i described, handicapped me . Once i accepted infinite gain as a pedagogical math trick not a physical reality OpAmps became easy for me. But it was a difficult mental leap .

old jim
 

Attachments

  • upload_2018-7-23_8-27-7.png
    upload_2018-7-23_8-27-7.png
    12.9 KB · Views: 596
  • Like
Likes dlgoff
  • #41
jim hardy said:
Perhaps my experience, coming up from vacuum tubes as i described, handicapped me .
Nah. You were blessed.
 
  • Like
Likes Tom.G and jim hardy
  • #42
LvW said:
The Yoshter - there is (at least) one severe error in your contribution: A diagram is missing which defines the circuit and the several abbreviations you have used. I must admit, I am not motivated, therefore, to check your derivations.
More than that, from your results I`ve got the impression that you (probably) have analyzed a non-inverting opamp circuit., right?
I think, in each relevant textbook we find a similar analysis - starting with a finite open-loop gain Aol.
That is - more or less - common practice.
Sorry. This is the image from wikipedia.
220px-Operational_amplifier_noninverting.svg.png
 

Attachments

  • 220px-Operational_amplifier_noninverting.svg.png
    220px-Operational_amplifier_noninverting.svg.png
    1.7 KB · Views: 478
  • #43
TimNJ said:
...but I am struggling with one concept. Say we apply a 1V step input, with an Aol of 1000, and a feedback factor of 0.5 (so ideal closed loop gain of 2), how does the op-amp "know" to stop rising at Vout = 1.996V?
I think a good way of looking at the characteristic of a negative feedback amplifier is as follows.
Let the output voltage be 1 volt.
Then find what input voltage is required to obtain this. For instance, you could apply a variable voltage and observe the effect.
For 1V out, the amplifier itself must have an input voltage of 1 / 1000 = 1mV.
But your feedback circuit is applying -0.5V (opposing the input signal). So the input signal must be 0.501 V.
So the gain is 1 / 0.501 = 2 approx.
 
  • #44
I don't understand why this is so hard? The "legacy" rules about op amp analysis work great for understanding the point of an op amp, although of course they need to modified when doing something practical. Seriously. Set the two input terminals equal, assume zero input current and boom, you're done. If you have finite opamp gain (which is almost never a problem in board-level design) then you just set the inverting input to vout/A (or if you have a non-inverting input, well shame on you).

@dlgoff , one thing I really liked about your link was how it discussed the dangers of the "virtual ground", even though it is an incredibly powerful concept when you're getting started (and for 95% of practical analysis). Based on a similar discussion of common-mode dragons, Jim Williams of Linear Tech (RIP) used to have what he called Williams' Rule: Always invert (unless you can't).

Most of the stuff I do is fully differential so I sometimes forget about what a beautiful thing an inverting input is.
 
Last edited:
  • Like
Likes Averagesupernova, dlgoff and jim hardy
  • #45
TheYoshter said:
Lastly, a bit more analysis reveals that an op amp with a non-infinite A will respond differently to inputs of different frequencies and will actually shift the frequency of the input.

What do you mean when you say "...will actually shift the frequency of the input."? Are you saying that, for example, an input sine wave of frequency F will result in an output sine wave of some frequency other than F?
 
  • #46
The Electrician said:
What do you mean when you say "...will actually shift the frequency of the input."? Are you saying that, for example, an input sine wave of frequency F will result in an output sine wave of some frequency other than F?

I think TheYoshter typo-ed. He certainly meant to say "shift the phase of the input", since we're talking about linear models here.

You *can* build mixer and oscillators out of op amps but here we are talking about simple amplifiers.
 
  • #47
  • Like
Likes dlgoff
  • #48
This is a common problem in control systems in general. The way to do it, in a general way for any real input, is to look at the phase portrait of the linear system. See the links below for more information. This map will show all the intermediate values the system will take when starting at a given input on its way to stability, or if it will even reach stability.

http://www.math.psu.edu/tseng/class/Math251/Notes-PhasePlane.pdf
https://en.wikipedia.org/wiki/Phase_space
 
  • #49
TimNJ said:
I'm just not sure how the op-amp says "this is a good place to stop!" when reacting to that step input.
Thanks a lot.
Tim

Mathematically, it all checks out...My issue is, what physical phenomenon is causing the op-amp to settle at that (seemingly random) voltage? There is no little man inside the op-amp that you say "Hey I'd like to amplify this signal with a gain of 2". So what's the reason it does actually get very close to the voltage you want?.

I would like to take a simple stab at this. Eliminate all the math and complex theory. Perhaps it will be "too simple." Perhaps it will help. Perhaps it won't be worth much at all.

You are generally dealing with voltages. The nature of voltage is that it is point to point. Nature wants that voltage between two points to be zero, so the excess electrons flow from the cathode to the anode. What ends up happening is that the voltage on the input relative to your reference (negative, 0v, Gnd, whatever you want to call it) adjusts itself via the differential circuitry in the amplifier to attempt to bring the potential on your input compared to the potential on your output to zero. The circuitry around the op-amp has everything to do with this, and as I said, this is a very simple breakdown. But if you look at the inverting amplifier from that perspective and work backwards, the rest may begin to make sense. Just to reiterate, the circuit naturally wants the Vin and Vout to be zero. The driving force behind this is the nature of voltage itself.

Just read back some, and sorry, that bit won't help much with your engineering exam, but it will come in handy when conceptualizing.
 
  • #50
sparkie said:
the differential circuitry in the amplifier to attempt to bring the potential on your input compared to the potential on your output other input to zero.

It's a differential amplifier - amplifies the difference between the two inputs. old jim
 
  • Like
Likes dlgoff, LvW and Tom.G
  • #51
jim hardy said:
It's a differential amplifier - amplifies the difference between the two inputs. old jim
Thank you.
 
  • Like
Likes jim hardy

Similar threads

Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
15
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
6K
  • · Replies 6 ·
Replies
6
Views
8K
  • · Replies 11 ·
Replies
11
Views
3K