What happens when you flip the inputs of an op amp?

  • Thread starter Abdullah Almosalami
  • Start date
  • Tags
    Amp Op amp
In summary, when you flip the inputs to an op-amp, the internal circuitry will produce something different than when the inputs are switched in the negative feedback configuration.
  • #36
jim hardy said:
View attachment 237612

Va = 0

and Vb = Vc + (Vout - Vc) X Ri/(Ri + Rf)

Vout = Avol X (Vb - 0)
Vout = Avol X (Vc + (Vout - Vc) X Ri/(Ri + Rf))

Gain = Vout/Vc = Avol X (1 + (Vout/Vc -1) X Ri/(Ri + Rf))
looks recursive to me. Check my algebra ?
old jim

My point was not that my assumptions were correct, but that the math itself was not wrong, as in there were no algebraic errors.

On your equations, how come you can use voltage division like that? If we can't assume that no current is flowing into the positive input of the op amp, then Ri and Rf are not necessarily in series, and so the voltage division formula doesn't work, right? And so, your equations here are based on the ideal rules.

But even if it were true, then continuing your math, this is what I get:

Op Amp Jim.jpg

Jim Equations.jpg


I'm not sure what the solution to A over here means, and how there can be 2 different amplifications, so perhaps this is a paradox because of some wrong assumptions, given I didn't make algebraic errors.
 

Attachments

  • Op Amp Jim.jpg
    Op Amp Jim.jpg
    20.4 KB · Views: 387
  • Jim Equations.jpg
    Jim Equations.jpg
    23.9 KB · Views: 399
Engineering news on Phys.org
  • #37
LvW said:
No - the problem is not the need for a "more accurate model". The opamp models provided by the manufacturers are very complex and accurate enough.
The reason for the observed (surprising) results are the properties of the various analyses.

That is a good point when considering simulations, and I've indeed missed that circuit analysis works under certain assumptions. You're very right. Thank you for bringing that up.

I suppose then would it be far too complex to try and to use an analysis that does also account for the unstable aspect of a circuit before steady-state?
 
  • #38
Abdullah Almosalami said:
On your equations, how come you can use voltage division like that? If we can't assume that no current is flowing into the positive input of the op amp, then Ri and Rf are not necessarily in series, and so the voltage division formula doesn't work, right? And so, your equations here are based on the ideal rules.

yes, i used ideal rules...

Abdullah Almosalami said:
I'm not sure what the solution to A over here means, and how there can be 2 different amplifications, so perhaps this is a paradox because of some wrong assumptions, given I didn't make algebraic errors.

Your algebra is so good it intimidates me, to be honest. I've not worked through it yet - you only posted it a moment ago.

I had prior knowledge that this circuit is bistable so had hoped my algebra would arrive at a quadratic so there'd be two solutions
but i didn't find one
but my algebra is notoriously strained, I'm math challenged and make dumb mistakes.

The circuit does not perform a linear multiplication
---see my post immediately previous--

i'll have to look at your algebra this evening, expecting company momentarily.

wow i had my algebra worked out ready to post last night but deleted it thinking it was superfluous...

meantime, see what you think of post # 35 where i tried to explain how to work the circuit in one's head.
That is a necessary thought step so we use our math correctly.
Previous posters have tried to explain that the circuit is not stable, ie the math it performs is not a linear multiplication.
So the algebraic expression Vout = VinX(-10) describes not its transfer function but the cusp on which it teeters.

upload_2019-1-22_11-19-27.png
 

Attachments

  • upload_2019-1-22_11-19-27.png
    upload_2019-1-22_11-19-27.png
    1.6 KB · Views: 382
Last edited:
  • Like
Likes Abdullah Almosalami
  • #39
GrahamN-UK said:
I wrote, in post #31:
"The Voltage Rule is not valid for a positive feedback amplifier and you cannot use it to analyse a positive feedback amplifier."
I have not mentioned Kirchhoff's circuit laws, let alone claimed they are invalid. My mention of "The Voltage Rule" does not refer to Kirchhoff's voltage law but to what the OP labelled as the "Voltage Rule of Ideal Op-Amps", Va = Vb,...
......
I hope people have some idea of correct circuit operation before they blindly throw equations into a simulator. How else will they know if the results are credible?

Graham - I do not want to "fight" wth you and perhaps there was a misunderstanding between us.
(1) At first - just a clarification: Any "voltage rule" (whatever it may be) is a result of Kirchhoffs laws. So - as you certainly know - the approach Va=Vb (V+=V-) is nothing else than the result of applying the voltage divider formulas and the superposition rule to the circuit under discussion.
(2) Now my point: Let`s assume that a student has learned that an idealized opamp provides an output signal even if the voltage difference at the input disappears (and - yes - mathematics allow that the product of zero x infinite may give a finite value). More than that, somebody has told him that this rule (Va=Vb) is valid only for negative feedback. However, the student does not simply believe such a claim - instead, he tries to to convince himself if this is true - and WHY !
(3) Therefore, he starts a calculation for resistive positive feedback (as shown in the task description) - and arrives at the result gain= - R2/R1. And now? His question: "Have I made an error?"
I think, in this case, it is not sufficient just to tell him that he has used a formula that is not valid...he will immediately ask: Why not? Is the result wrong? My answer : No - it is not wrong, but unrealistic because of several simplifications (implicitely contained in the calculation approach).
(4) All I wanted to say is that such a static calculation cannot reveal instabilities of the circuit - and I have explained WHY (missing power switch-on, no noise, no supply voltage variations).

For my opinion, it is not enough simply to state that Va=Vb would be not valid for positive feedback (as you did) without giving a corresponding explanation!

However, to be exact: It is valid...and we do not make any mathematical error if we apply such a rule. And - as you know - all the simulation programs do the same!
However, we must know that the result was found under idealized environmental conditions only!
And we know from our experience that the result is unrealistic and cannot be used in practice (because we live in a real world).
And finally, we come to the conclusion, that we should not make use of this rule (Va=Vb) for positive feedback.
(By the way: We should not forget that there are circuits with positive and negative feedback at the same time! In this case, it is important to know which type of feedback is dominating).

Now - do you see the difference in our approach for answering the question?
You are starting with the statement that Va=Vb would be not valid for positive feedback...and I try to explain the scenario and end up with the same conclusion.

Final comment (regarding your last quoted sentence): I completely agree with you. And that was the reason I have mentioned the fact that simulation programs cannot reveal such stability problems in case of Q-point or static DC analyses. Each user must know what he is doing, what the simulator can only do in the various analyses - and that it is absolutely necessary to evaluate the simulation results and check if they are plausible.

(Sorry for the long answer)
Regards
LvW
 
Last edited:
  • Like
Likes jim hardy
  • #40
jim hardy said:
meantime, see what you think of post # 35 where i tried to explain how to work the circuit in one's head.
That is a necessary thought step so we use our math correctly.
Previous posters have tried to explain that the circuit is not stable, ie the math it performs is not a linear multiplication.
So the algebraic expression Vout = VinX(-10) describes not its transfer function but the cusp on which it teeters.

I am just now getting that. Was working my way down, and replying as I went along, so if I had missed an important point in that post, my bad!

jim hardy said:
.

The first accidental millivolt (of either polarity )that appears on Vout will be coupled, attenuated elevenfold, to the +input
which will drive Vout in the same direction , and a lot further because of gain
then get coupled back again to + input
causing runaway in that direction..
That's what positive feedback does.
The output will drive to the amplifier's capability and remain there.

So the circuit is not stable as algebra implies.
Nor is it astable as intuition implies
It's bistable, will sit happily at one limit or the other until you apply enough Vin to overwhelm the feedback and make it flip to the other state.

As has been mentioned already, it's the well known Schmitt Trigger and Rin / Rfb sets the hysteresis.

old jim
Ok just read through it. And yes. Actually, even though I kind of got that positive feedback in general in any system would make things unstable, until you mentioned it here and put it into words, I didn't fully realize it, so thanks for that Jim. And I see! The bistable points A=0, and 1 are the stable points because a gain that is not either value would cause the output to go exponential! I suppose however that gains between 0 and 1 would cause the output to exponentially decay to 0, which is still stable (but not useful?), and it is the gains that are greater than 1 that would cause the unstable exponential growth. And actually, going back through the posts, I just now understood what this post was saying:

LvW said:
Yes - of course. A slight positive feedback will result in a stable amplifier (with reduced bandwidth) - as long as the loop gain is <+1.
However, it was my intention not to complicate the answer to the given problem and to be realistic - because the amount of positive feedback for the circuit under discussion is required to be smaller than 1/Aol (Aol=DC open-loop gain) for a stable bias point.

And indeed I haven't yet come across the Schmitt Trigger circuit, and I'm sure I'll have a much better perspective once I get around to studying that.
 
Last edited:
  • #41
Abdullah Almosalami said:
I suppose then would it be far too complex to try and to use an analysis that does also account for the unstable aspect of a circuit before steady-state?

it'd be a boolean expression
something like Vin + Vout/11 > 0

have you taken your logic course yet?

Think how you'd write a line of BASIC code to do the comparison.
 
  • Like
Likes Abdullah Almosalami
  • #42
Abdullah Almosalami said:
Was working my way down, and replying as I went along, so if I had missed an important point in that post, my bad!
i figured that, from reading your posts.
No "Bad" to ascribe to anyone.
Keep up the good work.

and thanks for the kind words.

Lavoisier said:
"We think only through the medium of words. --Languages are true analytical methods. --Algebra, which is adapted to its purpose in every species of expression, in the most simple, most exact, and best manner possible, is at the same time a language and an analytical method. --The art of reasoning is nothing more than a language well arranged."

i have to resolve my words against my algebra , and it's a struggle. I envy folks like you and LvW who are so fluent in the latter.

old jim
 
  • Like
Likes Abdullah Almosalami
  • #43
gneill said:
View attachment 233091
Turns out that this is not a good assumption in this case (that Vout is positive).

If we assume some gain ##A## for the op-amp, then since the (-) input is grounded then the (+) input must be at ##V_{out}/A##.
upload_2018-10-30_9-37-18-png.png

Write KCL for the (+) input node, see what you find. What happens when ##A## gets very large?

Here is a copy of an earlier post #9 by @gneill. Look at the op-amp symbol and the formula in it that defines the output voltage source as "A(V+ - V-)".
Does that match what you have implemented in your algebra? If not, why not?
 

Attachments

  • upload_2018-10-30_9-37-18-png.png
    upload_2018-10-30_9-37-18-png.png
    2.5 KB · Views: 415
Last edited:
  • #44
Question: For the purpose of finding the gain formula for the attached circuit - is it allowed to set Vp=Vn [or (Vp-Vn)=Vout/Aol] for the most left amplifiier ?
 

Attachments

  • Feedback.JPG
    Feedback.JPG
    9.6 KB · Views: 292
Last edited:
  • #45
GrahamN-UK said:
To analyse the positive feedback rule you'll need to use the formula gneill gave you in post #2: Vout = A(V+ - V-).
The relation Vout = A(v+ - v-) is incomplete, it's a simplification. There are strong conditionals attached to it restricting it to only those instances where Vout is not pinned near either rail.

A more complete representation would be Vout = A(v+ - v-) iff (Vo max> Vout > Vo min)

So before applying that simplified rule, you must first establish that Vout is going to lie within the allowable range, and if it doesn't then that rule doesn't apply.

-edited-
 
  • Like
Likes Asymptotic, alan123hk and jim hardy
  • #46
LvW said:
Question: For the purpose of finding the gain formula for the shown circuit -is it allowed to set Vp=Vn for the most left amplifiier?

My old adage:
"Ir is the duty of the operational amplifier circuit designer to wrap his amplifier with a circuit that allows the amplifier to drive its inputs equal,
else his operational amplifier circuit cannot perform the desired operation."

So yes, that is what you should do.

And i just learned a new word from @NascentOxygen

upload_2019-1-23_8-3-15.png


Thanks !
 

Attachments

  • upload_2019-1-23_8-3-15.png
    upload_2019-1-23_8-3-15.png
    7.5 KB · Views: 395
  • Like
Likes Asymptotic, alan123hk and NascentOxygen
  • #47
NascentOxygen said:
The relation Vout = A(v+ - v-) is incomplete, it's a simplification. There are strong conditionals attached to it restricting it to only those instances where Vout is not pinned near either rail.

A more complete representation would be Vout = A(v+ - v-) iff (Vo max< Vout > Vo min)

So before applying that simplified rule, you must first establish that Vout is going to lie within the allowable range, and if it doesn't then that rule doesn't apply.

Yes, of course, though I think one of your comparison signs needs turning round:
(Vo max > Vout > Vo min)

This applies to both positive and negative feedback circuits, though the output will be clipped less often in a negative feedback circuit (because operation will be in the linear region as long as the circuit isn't overloaded.)
 
  • #48
NascentOxygen said:
So before applying that simplified rule, you must first establish that Vout is going to lie within the allowable range, and if it doesn't then that rule doesn't apply.

I think, such a "rule" is self-evident as it applies to all amplifiers - not only opamps.
 
  • #49
LvW said:
I think, such a "rule" is self-evident as it applies to all amplifiers - not only opamps.
Evidently not so self-evident, as OP is applying it where it is not applicable—in his positive f/b circuit.
 
  • #50
GrahamN-UK said:
Yes, of course, though I think one of your comparison signs needs turning round:
(Vo max > Vout > Vo min)
Indeed, it does need fixing. Thanks.
 
  • Like
Likes Klystron
  • #51
In my experience, accidentally switching a bread-boarded op-amp's inputs generally led to the output slewing towards one or other power rail, then staying there until my embarrassed intervention.

( Not surprisingly, I was very fond of 741 type, which generally survived such abuse. More modern designs may be less forgiving... )

That said, a little, very carefully applied positive feedback may do wonders in appropriate cases. Oscillators, Schmitt Triggers etc etc. Their constraint was often the slew speed, as rail-to-rail working for an over-driven op-amp may be surprisingly slow.

( Analogy was it got to climb out of the hedge and look around... )

Um, yes, I know the 'trad' 741 didn't go rail-to-rail. But it generally went far and fast enough to out-run my 'driver' stuff...
 
  • Like
Likes Abdullah Almosalami
  • #52
GrahamN-UK said:
This applies to both positive and negative feedback circuits, though the output will be clipped less often in a negative feedback circuit (because operation will be in the linear region as long as the circuit isn't overloaded.)

And then there's the little matter of "Latchup"
some op-amps when overdriven severely will reverse their operation, effectively swapping the signs on the input pins
requiring a power off to return to normal.Ahhh the endless tricks Mother Nature has up her sleeve to torture us !.
I guess the price of complexity is its pitfalls.
 
  • Like
Likes Abdullah Almosalami
  • #53
NascentOxygen said:
Evidently not so self-evident, as OP is applying it where it is not applicable—in his positive f/b circuit.
That is the question which was discussed here...but you agree that (without knowing much about positive f/b) Kirchoffs laws can be fulfilled without internal contradiction? That was the core of the OPs question.
 
  • #54
OT:
jim hardy said:
I second that.

In addition to Sophie's Regenerative Radio Receiver

there's the magnetic amplifier
wherein positive feedback around a low gain element (resembling a transformer) gives it high gain
and that high gain inductive element can then be wrapped with a circuit that let's it enforce a null, ie "operate" .
It was the basis of early submarine reactor instrument systems and an early commercial nuke plant Yankee Rowe...

http://exvacuo.free.fr/div/Sciences/Dossiers/EM/Magnétisme/George B Trinkaus - Magnetic amplifiers.pdf

===

Thank you, thank you for this. I remember seeing old, old pics and circuits of impressively large, electric-driven machinery controlled by a safe, low-voltage rheostat. A simple 'Auxiliary' winding on power transformer / auto-transformer / 'choke' neatly 'throttled' the core's transfer capacity, elegantly regulating the equipment. No scary 'tap changes' required...

IIRC, I got into a rather nasty exchange on AN Other forum before convincing my detractors that such 'Steam Punk' was viable, never mind the 'industry standard' for some decades...

Feral kin to this are the VLF / ELF 'ground currents' induced by solar storms which may overload power-grid transformers. IIRC, wary core re-design for more 'near-DC tolerance', improved cooling and better monitoring (*) have significantly reduced the potential for widespread, oft-cascading mayhem...
;-)

*) As I understand it, remotely measuring such low frequencies contaminating multi-kilovolt power grids is non-trivial...
 
  • #55
Abdullah Almosalami said:
I have certainly more than understood that the ideal model only works for negative feedback.

Ah, we need to break down which bits of the ideal model we are talking about.

Wikipedia lists a number of attributes of an ideal op-amp model at:

https://en.wikipedia.org/wiki/Operational_amplifier#Ideal_op-amps

First, it has a bulleted list, of things that apply irrespective of the feedback type - positive, negative or none at all.

Then it summarises the operation in two golden rules:

I In a closed loop the output attempts to do whatever is necessary to make the voltage difference between the inputs zero.

II The inputs draw no current.

Then the next paragraph tells us "The first rule only applies in the usual case where the op-amp is used in a closed-loop design (negative feedback, where there is a signal path of some sort feeding back from the output to the inverting input)."It's this last part about the output attempting to do whatever is necessary to make the voltage difference between the inputs zero or, in terms of your post #1 Va = Vb, that I'm trying to establish your understanding of.

We are agreed that for negative feedback the ideal model says Va = Vb.
What do you consider happens for positive feedback? Is it:

1. The rule is no longer ideal, but Va is still approximately = Vb
2. The rule is completely broken and Va doesn't have to be anywhere near Vb.

I'm afraid I can't read the subscripts in your post #13 but the second part of post #1 suggests you are using case 1 above. Unfortunately this is false; case 2 is what is actually happening and your use of the Va = Vb rule for positive feedback in your analysis is why you are getting the erroneous result.

Jim Hardy in post #35 has provided a narrative description of what happens to the voltages in a positive feedback circuit if the output voltage is disturbed. Can you repeat that exercise for yourself and agree with his description? Can you extend that description yourself to a negative feedback amplifier? If the output voltage has settled at the expected value for a given input voltage what will happen if the output voltage becomes a little more positive? When that feeds back which way will Va shift? Remembering that Va is at the inverting input to the op amp, which way will that shift the output? Which way will the feedback move Va - towards Vb (0 volts) or away from it. Try the exercise again with a negative dip in the output voltage. Does the circuit move back to the expected value or does the feedback move the output voltage further away from the expected value?

If you don't like a thought experiment try a real one. Build the circuit on a breadboard or in a simulator. Put in some input voltages. Measure the output voltage and the voltage on the non-grounded op-amp input for positive and negative feedback. What happens? Does Va = Vb for both types of feedback? What happens to the non-grounded input in positive feedback when the output clips and you keep increasing the magnitude of the input voltage?

Abdullah Almosalami said:
What I have repeatedly said is that I want to know if there is a model, perhaps more complex, that does model a general case of either positive or negative feedback. And the idea of enforcing null, as Jim and others have said, conceptually makes sense. But again, what I would like to know is what is an actual model that can put these concepts to actual quantities.

There are two modes of operation for an op-amp:

1 Negative feedback, stable, moderate gain controlled by the input and feedback resistors,
2 Positive feedback, operation as a Schmitt trigger circuit, with hysteresis (change in threshold voltage) controlled by the circuit resistors.

You seem to be looking for an option 3:

3 Positive feedback, stable gain controlled by the input and feedback resistors,

I'm afraid option 3 doesn't exist. There isn't some elusive better op-amp model we are keeping from you that will make this work.

You seem to have a problem understanding feedback. Don't worry; your time as a student is for learning these things. A couple of people in this thread have also mentioned difficulties understanding it. You've already gone down the route of trying ever-increasing amounts of algebra; I'm not sure that any more complex algebraic models are going to help. Try the thought experiments outlined by Jim Hardy and myself to see if you can puzzle out feedback operation. Back them up with actual or simulated results.
Abdullah Almosalami said:
And here is why I must say no. I am not satisfied with just being told that this is how it works. I do want to know the details. Perhaps I may not understand them now but given enough time, I certainly will.

There should be more complex material with op-amps later in your course, so cracking basic feedback operation now will help you when you encounter that.

(I won't be able to make any more long contributions to this thread.)
 
  • Like
Likes jim hardy
  • #56
GrahamN-UK said:
There are two modes of operation for an op-amp:

1 Negative feedback, stable, moderate gain controlled by the input and feedback resistors,
2 Positive feedback, operation as a Schmitt trigger circuit, with hysteresis (change in threshold voltage) controlled by the circuit resistors.

You seem to be looking for an option 3:
3 Positive feedback, stable gain controlled by the input and feedback resistors,
I'm afraid option 3 doesn't exist. There isn't some elusive better op-amp model we are keeping from you that will make this work.

(A) Some comments:
1. Stable - only as long as DC stability (of the operating point) is concerned ; on the other hand - negative feedback will always reduce the dynamic stability margin.
3. Option 3 does exist - positive feedback still allows stable amplification if the loop gain magnitude is <1 (feedback factor k< 1/Aol).

(B) General remark:
To me, the most important and most interesting question to be answered is:
Before we start to analyze a circuit, is it necessary to know beforehand whether it will work stable or unstable?
With other words: If we apply the classical methods of circuit analysis, will the result contain any indication that the circuit cannot work as expected because it is unstable (no DC operational point within the linear range or dynamic instability/oscillation) ?

To me, this is an important question because there are many cases in which we cannot predict by visual inspection if a (complex) sysytem is stable or not.
And therefore the question arises (and this thread is a good example) :
Is it really "wrong" to start always with established methods (even if we are not sure about the stability properties)?

My answer: No - we are making no error using classical methods (in our case: (Va-Vb)=1/Aol or even Va=Vb) because a diligent evaluation of the result will show that "something is wrong". Hence, it is not required to know in advance if the circuit will be unstable.
In the present case:
(a) DC analysis (and hand calculations): Negative gain in spite of applying the input voltage to the non-inv. input (a kind of contradiction).
(b) AC analysis: Rising phase response (not as expected assuming a real opamp model with lowpass properties)
(c) Tran analysis: No stable DC operational point within the linear transfer range.
 
  • Like
Likes alan123hk
  • #57
I wrote:
[OP] seems to be looking for an option 3:
3 Positive feedback, stable gain controlled by the input and feedback resistors,
I'm afraid option 3 doesn't exist. There isn't some elusive better op-amp model we are keeping from you that will make this work.

LvW said:
(A) Some comments:
...
3. Option 3 does exist - positive feedback still allows stable amplification if the loop gain magnitude is <1 (feedback factor k< 1/Aol).

Theoretically so, yes. But a typical open-loop gain for an op-amp at DC/low frequency is around 10^5
e.g. https://en.wikipedia.org/wiki/Open-loop_gain

So it only takes a tiny amount of positive feedback before the loop gain rises above 1 and the Barkhausen stability criterion has been broken. So this isn't a practical situation for an op amp, which is what we are discussing in this thread.

For a single active device amplifier (e.g. a single transistor or valve/tube stage) with a much lower open-loop gain, positive feedback is more practical. Hence its use in regenerative stages in old radios mentioned by sophiecentaur and Jim Hardy in posts #20 & #22.

However, if you look back at old radio journals, you'll find even single device regenerative amplifiers had a reputation for being unstable and easily bursting into oscillation. Hence they disappeared from commercial use once superhet designs became practical. (You can still find hobbyist designs for them.)
 
  • #58
GrahamN-UK said:
However, if you look back at old radio journals, you'll find even single device regenerative amplifiers had a reputation for being unstable and easily bursting into oscillation. Hence they disappeared from commercial use once superhet designs became practical. (You can still find hobbyist designs for them.)

There is no need for me to "look back at old radio journals" ...I have listened to such radio devices (no superhet, but "Geradeaus-Empfänger" in German) in the early fifties of the last century. They were called "Goebbels-Schnauze" (Goebbels-snout) after the Nazi minister for public propaganda. There was a tiny knob for introducing a slight positive feedback which was used to narrow the bandwidth for better frequency selection (AM, of course).
 
  • Like
Likes GrahamN-UK
  • #59
LvW said:
There was a tiny knob for introducing a slight positive feedback which was used to narrow the bandwidth for better frequency selection (AM, of course).

In English, such circuits tend to be known as Q-multipliers. Too much Q and your amplifier becomes an oscillator, of course.

https://en.wikipedia.org/wiki/Q_multiplier
 
  • #60
Abdullah Almosalami said:
I'm not sure what the solution to A over here means, and how there can be 2 different amplifications, so perhaps this is a paradox because of some wrong assumptions, given I didn't make algebraic errors.

There is an algebra error. The fourth step from the bottom uses the substitution Vo=A(Vc) but the correct substitution is Vo=A(Vb), defined in your step 3. (Assuming I am reading your handwriting correctly that this. The subscripts are a bit small on my screen.)

This circuit can be perfectly stable.

The correct way to analyze the operating point is KCL at B. (b-c)/Ri = (o-b)/Rf substitute b=o/A and solve yielding o=A*c*Rf/(Rf+Ri-A*Ri) (thanks wolfram alpha!) As lim A->inf you get Vo=-c*Rf/Ri which is the correct answer.

Spot check in spice if you like. A=10, c=1, Ri=Rf=1K and alpha says Vo=-5/4V

% cat amp.sp
*
E1 o 0 b 0 10
V1 c 0 1
R1 b c 1K
R2 b o 1K
.op
.end

produces

* "simulator" "HSPICE"
* "version" "M-2017.03-2 linux64"
* "format" "HSP"
* "rundate" "14:46:43 01/24/2019 "
* "netlist" "amp.sp "
* "runtitle" "*"
* time = 0.
* temperature = 25.0000
*** BEGIN: Saved Operating Point ***
.option
+ gmindc= 1.0000p
.nodeset
+ b =-125.0000m
+ c = 1.0000
+ o = -1.2500
*** END: Saved Operating Point ***

So spice and wolfram agree.

But you will probably not see this in lab unless you're very careful for many reasons.

For example, these equations use an ideal amplifier which can produce any output and has infinite bandwidth and never turns on or off. You're amplifier likely has A >> 10. Which means Vo will likely want to be outside the power rails which means the physical opamp can't produce that voltage. Unless you make the input very small there will be no stable Vo but it can be done. (Google how to measure an amplifier's offset voltage, which could be positive or negative, for an example)

Most importantly the amplifier has to transition from unpowered to powered which is an AC event, but this is a DC analysis so it doesn't describe that situation. In AC this circuit is likely unstable depending on the specifics of the amplifier's construction. Turn on can be done but it is very tricky to do without getting stuck at one of the power rails.
 
  • Like
Likes Tom.G
  • #61
eq1 said:
There is an algebra error. The fourth step from the bottom uses the substitution Vo=A(Vc) but the correct substitution is Vo=A(Vb), defined in your step 3. (Assuming I am reading your handwriting correctly that this. The subscripts are a bit small on my screen.)

here's the bottom five steps. Can you highlight your observation ?

upload_2019-1-24_19-1-47.png
eq1 said:
The correct way to analyze the operating point is KCL at B. (b-c)/Ri = (o-b)/Rf substitute b=o/A and solve yielding o=A*c*Rf/(Rf+Ri-A*Ri) (thanks wolfram alpha!) As lim A->inf you get Vo=-c*Rf/Ri which is the correct answer.

I too solved for Vout using KVL for b, took limit as gain approaches infinity...
with infinite gain it's## Vin X (1 - \frac {Rfb + Rin}{Rin} ) ## which resolves to the same expression as yours
and only proves that Kirchoff's Laws agree.

eq1 said:
This circuit can be perfectly stable.
i strongly disagree. See post 35.

Sitting on a cusp is not stable.
and it is a disservice to a beginner to infer otherwise.

upload_2019-1-24_19-50-38.png

This circuit does not develop any restoring forces to return it to equilibrium..
It does the opposite, develops a disrupting force that drives it away from equilibrium toward infinity
but it hits the power supply rail first.

It's a disservice to a beginner to claim otherwise.

Vo=-c*Rf/Ri is NOT the mathematical operation that this circuit performs. To perform that one requires negative feedback.

What this circuit does mathematically is a logical computation with only two output states,
True and False,
represented by the maximum and minimum output values of Vout

"output state" = Vin + (Vout-Vin)X(Rin/(Rfb +Rin) > 0

where "output state" is a logical variable and the voltages (and R's) are real ones.
and (Vout-Vin)X(Rin/(Rfb +Rin) is just the voltage across Rin

Ahhhh, nostalgia.
I always modeled my circuits in Basic on my TI-99/4A,
and that Basic would assign to "output state" integer value,
either 0 (no bits set) for FALSE or -1 (all bits set for TRUE. .
That Basic was interesting , you could mix logicals and reals in an equation which was sometimes handy. But that's another story.

Anybody see algebra goofs or typos ? Please advise.

old jim
 

Attachments

  • upload_2019-1-24_19-1-47.png
    upload_2019-1-24_19-1-47.png
    22.4 KB · Views: 387
  • upload_2019-1-24_19-50-38.png
    upload_2019-1-24_19-50-38.png
    12.2 KB · Views: 418
Last edited:
  • Like
Likes Tom.G
  • #62
LvW said:
Question: For the purpose of finding the gain formula for the attached circuit - is it allowed to set Vp=Vn [or (Vp-Vn)=Vout/Aol] for the most left amplifiier ?
Op Amp2.jpg

It is allowed to set (Vp=Vn) or (Vout=A(Vp-Vn)) for performing the circuit analysis.
Vout = A(Vp-Vn) is the basic definition of an ideal operational amplifier.
Vp = Vn is based on the very high open-loop gain, the potential difference between its inputs tend to zero when a feedback network is implemented.

LvW said:
Before we start to analyze a circuit, is it necessary to know beforehand whether it will work stable or unstable?
There is no need to know it as you have already given the answer on #56.
I totally agree with your analysis.
We find the steady-state result for the given circuit by Kirchhoff's laws but no guarantee for stability, therefore, a verification of loop gain < 1 is necessary afterward. If the loop gain > 1, then the circuit is unstable, It cannot be used as a stable linear amplifier with the relationship given by steady-state analysis.

For example, the single stage non-inverting positive feedback amplifier that OP mentioned on #1, the feedback factor is obviously Ri/(Ri+Rf), let's assume the gain of the ideal Op Amp be G, then loop gain = G*Ri/(Ri+Rf), which must be less than 1 for stable operation, namely G*Ri/(Ri+Rf)<1 or G<(Rf/Ri+1). Therefore, when G becomes positive infinity, the amplifier is unstable for any positive values of Rf and Ri.

On the other hand, the single stage inverting negative feedback amplifier has loop gain = -G*Ri/(Ri+Rf) which must be less than 1 for stable operation, namely -G*Ri/(Ri+Rf)<1, or -G<(Rf/Ri+1), so that it must be stable for any positive values of Rf and Ri since the left hand side is either 0 or any negative number.
 

Attachments

  • Op Amp2.jpg
    Op Amp2.jpg
    10.1 KB · Views: 477
Last edited:
  • Like
Likes LvW and jim hardy
  • #63
sophiecentaur said:
"Not in reality"? It's the basis of the very familiar Schmidt Trigger circuit. Lookitup.

Smith.jpg


This is indeed a Schmitt Trigger circuit. The critical design equation is also related to Vout = -(R2/R1)*Vin.
Since OP's main focus seems to be related to the contradiation of equation derivation, I just mean that Vout = -(R2/R1)*Vin given by steady-state analysis doesn't mean we can realize a stable linear amplifier with that relation.
 

Attachments

  • Smith.jpg
    Smith.jpg
    23.9 KB · Views: 547
  • Like
Likes jim hardy
  • #64
jim hardy said:
here's the bottom five steps. Can you highlight your observation ?

I'm on an iphone so I can't mark up the image (or at least I don't know how to) but in second line from the top A*Vo/Vc is reduced to A*A in the line below. This is not a valid substitution because vo=A(Vb-Va)=A*Vb

jim hardy said:
This circuit does not develop any restoring forces to return it to equilibrium..
It does the opposite, develops a disrupting force that drives it away from equilibrium toward infinity
but it hits the power supply rail first.

The circuit as drawn is absolutely stable because an ideal opamp has infinite bandwidth and therefore has no phase delay so it can't be unstable.

For a real opamp... is the circuit stable? My answer is: it depends!

What does it depend on? Which opamp obviously (as I'm sure you know, attenuators exist too!), how it is powered, and what the valid input is (say I restrict the input to +-1mV, power from +-10V, and have A=1000, no hitting the rail here), is it internally compensated, is it even voltage mode, etc. etc.

But we also need to agree on the definition of stability. I understand the intuitive appeal of that definition but, with respect to Merriam-Webster, I would interject that it has limited value. For example, is a resistive divider stable? I would argue it is but I am not sure how I use that definition to demonstrate it. I think a better, but still intuitive, definition is "bounded input gives bounded output" [1] but there are other choices. Wikipedia lists 8! [2] Also note, by this definition an oscillator is stable. (Probably by Merriam's too as I think they conceded periodic motion as a type of equilibrium.)

[1] https://en.wikipedia.org/wiki/BIBO_stability
[2] https://en.wikipedia.org/wiki/Stability_theory
 
  • #65
eq1 said:
The circuit as drawn is absolutely stable because an ideal opamp has infinite bandwidth and therefore has no phase delay so it can't be unstable

I agree that an ideal opamp has infinite bandwidth and therefore has no phase delay it must be unstable. We refer to the dynamic system when talking about stability. If the system does not have any time dependent characteristic, then it has no stability issues.

Therefore, I just try to approximate the dynamic system when I apply the loop gain to analyze the system which does not include any time-dependent characteristic.

This reminds me of the question raised by OP, we can't describe the behavior of dynamic system in reality without using a dynamic model.

To get closer to reality, I think it would be helpful to add a little delay (td) to the ideal OpAmp, just redefine the equation to Vout(t) = Gain*Vin(t-td), and then we should be able to get the desired results through analysis or simulation. There are of course many other methods, such as adding RC delay circuit at the output and so on.
 
Last edited:
  • #66
eq1 said:
......
Most importantly the amplifier has to transition from unpowered to powered which is an AC event, but this is a DC analysis so it doesn't describe that situation. In AC this circuit is likely unstable depending on the specifics of the amplifier's construction. Turn on can be done but it is very tricky to do without getting stuck at one of the power rails.

When a circuit with feedback is unstable - it is unstable and, hence, cannot be used as a linear amplifier...and it does not matter if the input signal is small or large or if it is DC or AC...
* DC instability (static) means: No fixed (stable) DC operating point within the linear transfer range
* AC instability (dynamic) means: Self-excitement (oscillations) around a stable bias point.
 
  • #67
eq1 said:
The circuit as drawn is absolutely stable because an ideal opamp has infinite bandwidth and therefore has no phase delay so it can't be unstable.
It's surely not so much a matter of stability as Linearity. The output of any amplifier will eventually be limited by the power supply volts. When there is positive feedback, the input volts need to go far enough 'the other way' to pull the output volts away from the supply rail and onto the other one. It is hard to remove the time dependent aspect of the circuit and the input signal would have to change fast enough (and with prediction) to bring the output volts back to Zero.
As has been mentioned already, it's the problem of balancing a pencil on its point - but worse; it involves getting the pencil upright from a near-horizontal position and then catching and maintaining it in the vertical position.
 
  • Like
Likes Asymptotic
  • #68
sophiecentaur said:
As has been mentioned already, it's the problem of balancing a pencil on its point

Yes. I agree. It's exactly analogous to that. The problem originally presented is the equivalent of asking is there a mathematical solution to balancing an idealized pencil on an idealized surface to which I answer, yes, there is a mathematical solution to that idealized problem. Does that mean I can balance a pencil on my desk right now? No, it does not. But that idealized problem does have a solution.

sophiecentaur said:
it involves getting the pencil upright from a near-horizontal position and then catching and maintaining it in the vertical position.

Maybe. Then again. Maybe this pencil is in 0g and it's already upright. We don't know because those details have not been provided so why assume them. And that's my point and why I answer it depends. If one puts a 741 in place of the ideal opamp will it be stable? No definitely not. So maybe don't put a 741 there. What circuits are legal to place there? Unknown. The problem does not specify that.
 
  • Like
Likes sophiecentaur and LvW
  • #69
sophiecentaur said:
As has been mentioned already, it's the problem of balancing a pencil on its point - but worse; it involves getting the pencil upright from a near-horizontal position and then catching and maintaining it in the vertical position.

There is a similar problem:
There are some circuits with feedback fulfilling Barkhausens oscillation criterion - however, the circuit does NOT oscillate (real opamp model), but goes into saturation. But for an IDEAL model it oscillates (in simulation). Tricky situation - in particular to find an explanantion.
 
Last edited:
  • Like
Likes sophiecentaur
  • #70
i repeat

jim hardy said:
So the circuit is not stable as algebra implies.
Nor is it astable as intuition implies
It's bistable, will sit happily at one limit or the other until you apply enough Vin to overwhelm the feedback and make it flip to the other state.

As has been mentioned already, it's the well known Schmitt Trigger and Rin / Rfb sets the hysteresis.
 
  • Like
Likes sophiecentaur and dlgoff

Similar threads

  • Electrical Engineering
Replies
3
Views
839
  • Electrical Engineering
Replies
6
Views
3K
Replies
9
Views
4K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
6
Views
1K
Replies
6
Views
2K
Replies
31
Views
3K
  • Electrical Engineering
Replies
9
Views
3K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
4
Views
1K
Back
Top