Engineering Understanding High Entropy Expressions in Circuit Analysis

  • Thread starter Thread starter peasngravy
  • Start date Start date
  • Tags Tags
    Voltage
AI Thread Summary
The discussion revolves around a complex circuit analysis problem involving operational amplifiers (op-amps) and filters. The original poster is confused about estimating quiescent voltages and overall voltage gain, particularly regarding the frequency of operation. Participants suggest starting with the bias points and understanding the op-amp configurations to calculate gain. They emphasize the importance of recognizing the circuit's low-pass and high-pass filter characteristics and how to apply nodal analysis and complex impedance in calculations. The conversation highlights the challenges of advanced circuit analysis while providing guidance on approaching the problem systematically.
  • #51
peasngravy said:
So R1 and R12 have a ratio of 0.4 - I am not quite sure how to factor in the impedance of c9 and r3.

The ratio of 0.4v is quite close to what my pspice model suggests as the input (430mv)

After that - I think I have to calculate the series capacitance of c5+c8 and then use that figure to calculate the impedance of the rc series along with r6 which should be my Rin for the second op amp?
The key problem for solving the 2nd amp is dealing with the C5/C8 network at the input. Because the virtual ground of the 2nd amp will keep the AC (signal) voltage = 0 at the input (BTW, don't confuse this with the non-zero DC voltage there), this problem amounts to given a signal voltage applied at the 1st amp output, what will the current flow be into the 2nd amp. That current will have to flow through the feedback components to create the output voltage. Something like this picture:
img001 (2).jpg


edit: note that you will end up with an equivalent impedance Zeq = Vi(jω)/Io(jω), although I phrased it as an admittance (i.e. find Io given Vi); whatever, there sort of the same, in a reciprocal fashion, LOL. Then you can pretend it is a two terminal complex impedance, if you like to think of things that way. BTW this Zeq simplification only works for Vi and Io, it won't be correct if you want to know other things in the network, like the current through R13, etc.
 
Last edited:
  • Like
Likes peasngravy
Physics news on Phys.org
  • #52
peasngravy said:
So R1 and R12 have a ratio of 0.4 - I am not quite sure how to factor in the impedance of c9 and r3.

The ratio of 0.4v is quite close to what my pspice model suggests as the input (430mv)

After that - I think I have to calculate the series capacitance of c5+c8 and then use that figure to calculate the impedance of the rc series along with r6 which should be my Rin for the second op amp?

The ratio of R1 and R12 is not relevant. Forget about the quiescient DC voltages in the circuit. Have a look here: https://en.wikipedia.org/wiki/Voltage_divider

In Figure 1 on that page let Z1 be the impedance magnitude of the series combination of C9 and R3, and let Z2 have the value of R1 and R12 in parallel. Then if 1 volt is applied to Vin in Figure 1, the output voltage will be applied to the "+" input of the first opamp. Multiply that value times the gain of the opamp and you have the gain from Vin of your circuit to the output of the first opamp. The voltage at the output of the first opamp is applied to the left side of C5. Then you calculate the gain from that point to the output of the second opamp.

To calculate the gain of the second opamp, follow the advice of DaveE and calculate the current in R6. Multiply that current times the impedance magnitude of the C7 R9 pair (remember that they're in parallel) and you have the voltage Vout at the output of the second opamp.
 
  • Like
Likes peasngravy
  • #53
The key problem for solving the 2nd amp is dealing with the C5/C8 network at the input. Because the virtual ground of the 2nd amp will keep the AC (signal) voltage = 0 at the input (BTW, don't confuse this with the non-zero DC voltage there), this problem amounts to given a signal voltage applied at the 1st amp output, what will the current flow be into the 2nd amp. That current will have to flow through the feedback components to create the output voltage. Something like this picture:

img001-2-jpg.jpg
edit: note that you will end up with an equivalent impedance Zeq = Vi(jω)/Io(jω), although I phrased it as an admittance (i.e. find Io given Vi); whatever, there sort of the same, in a reciprocal fashion, LOL. Then you can pretend it is a two terminal complex impedance, if you like to think of things that way. BTW this Zeq simplification only works for Vi and Io, it won't be correct if you want to know other things in the network, like the current through R13, etc.

As this is time dependent due to the capacitors, is there any particular point in time I should choose for this? Or does jω negate the need for this?
I can't find a way to use j, excel and my calculator do not like it

Edit - i will show my working up to this point. I am very close now, thank you allfor guiding me this far

Series combination of C9 and R3 forms ad RC series with the magnitude of Z, which forms a voltage divider with the parallel combination of R1 and R12
1606304623790.png
So AC voltage at output of first op amp = 515.79 * 177.658 = 91.765V

I had written this in word and for some reason the equations don't copy over so had to screenshot
 

Attachments

  • 1606304639494.png
    1606304639494.png
    5.1 KB · Views: 168
Last edited:
  • #54
Your procedure is correct, but there are some small arithmetic errors.

The value 515.79 should be .51579 in the following calculation, but even then the calculation you show is giving a slightly wrong result: .51579 * 177.658 = 91.765V should be as shown below:

Errors.png


But using .51679 instead of .51579 you should get:

.51679 * 177.658 = 91.812

Next calculate the C5 R13 C8 R6 impedance input to the second opamp. DaveE gave the procedure.
 
Last edited:
  • #55
peasngravy said:
I can't find a way to use j, excel and my calculator do not like it
What calculator are you using? My HP-42 (simulator on my smartphone) has "Complex" mode.

And Excel has a COMPLEX function. Just look it up in Excel Help:

1606315470406.png


peasngravy said:
I am very close now, thank you allfor guiding me this far
:smile:
 
  • Like
Likes peasngravy
  • #56
Are C5/R13 and C8/R6 just two impedances in parallel?
 
  • #57
peasngravy said:
Are C5/R13 and C8/R6 just two impedances in parallel?
Calculate an equivalent for C8 R6 and then that equivalent is in parallel with R13 giving another equivalent. Then that equivalent forms a voltage divider with C5. The output of that voltage divider is a voltage which drives a current through C8 and R6. Divide the voltage out of the voltage divider by the equivalent impedance magnitude of C8 R6, giving you a current. Multiply that current times the equivalent impedance magnitude of C7 R9 and you have the gain of the second opamp.
 
  • Like
Likes peasngravy
  • #58
C8 R6 = 33783.64566
C8 R6 in parallel with R13 = (33783.64566*10000)/(33783.64566+10000) = 7716.042178

Using this formula:
1606325373203.png

With Xc of C5 being 1/(2 pi fC) = 3386.2754

Vout = 91.812 * (3386.2754/7716.042178) = 0.4388617V

Dividing by Z of C8 R6, for current = 0.00001299A
Impedance of C7 R9 = 990580.99 ohm

Gain of 2nd op amp = 0.00001299 * 990580.99 = 12.86800311

Gain of 2nd op amp * Vin = 1170V
 
Last edited:
  • #59
Thanks for that - i was trying to simply use a cell to calculate the square root of -1 which obviously is not possible, but I thought excel would recognise it, I didn't realize there was a specific function
 
  • #60
peasngravy said:
C8 R6 = 33783.64566
C8 R6 in parallel with R13 = (33783.64566*10000)/(33783.64566+10000) = 7716.042178

Using this formula:
View attachment 273118
You are correct up to this point, but this formula is not what we want to use here.

peasngravy said:
With Xc of C5 being 1/(2 pi fC) = 3386.2754

Vout = 91.812 * (3386.2754/7716.042178) = 0.4388617V
I'll show corrections in red.

Use the voltage divider formula from Wikipedia with the appropriate impedance magnitudes:
Vout = 1 volt *(7716.042178)/ (3386.2754+7716.042178) = 1 volt * .6949968 = .6949968
We will multiply by 91.812 later.

Dividing by Z of C8 R6, for current = .6949968/33783.64566 = .00002057198
Impedance of C7 R9 = 990580.99 ohm

Gain of 2nd op amp = 0.00002057198 * 990580.99 = 20.3782

Overall circuit gain = Gain of 2nd op amp * Vin = 20.3782 * 91.812 = 1870.96
The Vin used just above isn't the Vin of the overall circuit; it's the output of the first opamp.

This is somewhat in error because impedance magnitudes were used in calculations rather than
the complex impedances. This was done because apparently your course work hasn't taught you
how to use complex arithmetic when capacitors are in the circuit, but using impedance magnitudes is better than doing nothing. I suppose the final result can be called a reasonable estimate given the use of impedance magnitudes.

If you're interested, I will show how I solved the complete network using nodal analysis.
 
Last edited:
  • #61
Thank you!

Yes I'd be interested to see that if you have the time. I find this method of learning much better than simply reading pages and pages of notes
 
  • #62
peasngravy said:
Thank you!

Yes I'd be interested to see that if you have the time. I find this method of learning much better than simply reading pages and pages of notes
Here is how I solved your problem circuit; I used the nodes shown:
BigCirNodes.png


Big Circuit.png

Frequency Resp.png


Gains.png


The amount of complex algebra involved in this procedure would be impossible to do without
the help of a modern computer running a powerful mathematical software. :smile:
 
Last edited:
  • #63
That is very impressive - what software is that? At first glance it looks pretty complex but I think i could have fun messing around with that
 
  • #64
peasngravy said:
That is very impressive - what software is that? At first glance it looks pretty complex but I think i could have fun messing around with that
It's Mathematica. There are other programs with similar capability such as Matlab, Mathcad, Maple; these are commercial programs costing real money. There are free programs such as Macsyma, Octave and others.
 
  • #65
peasngravy said:
Are C5/R13 and C8/R6 just two impedances in parallel?
No, not really. First, because of the virtual ground of the op-amp, R6 & C8 can be treated as series impedances (as shown in my previous sketch).

The analysis of the rest of this network is more complicated. Frankly, at your level, it's really hard. So, before you can finish the problem you really have to deal with just the solution to this network; which we would call a "T-section", BTW. All of the other impedances you have calculate so far have terms on the order of ω, like (1 + jω⋅R⋅C). This T-section, when solved exactly, will have a quadratic term, with order ω2; something that looks like (1 + jω/(Q⋅ωo) + (jω/ωo)2). Frankly, this is a PIA to deal with. Sometimes if the circuit values are really different in their frequency response, you can approximate this with two 1st order functions. like (1 + jω⋅τ1)⋅(1 + jω⋅τ2). Unfortunately, I don't think you can do that for the component values you were given. Plus there's a whole additional lesson(s) involved in learning these techniques.

So, how should we proceed? Honestly, I don't think your instructor intends for you to solve this exactly. Or if he thinks you should, then he doesn't really understand the complexity of an exact solution. I'm a bit confused by the original question, myself. You said in post #1 "find the frequency of operation", I don't really know what he means by this. The frequency of operation implies some range of frequencies that the circuit is exposed to, or that the designer cared about. I would guess that he is asking for the what I would call the center frequency of the filter response. But, then I don't know why he didn't say that.

Anyway, I think as a result, we have assumed that you need an exact solution, it's the only way we can be sure to be correct. Maybe that's not what you need?

It's possible that he intended for you to refer to some reference online or in lectures about the solution to this "2nd order T-section high-pass filter", which, practically always are over simplified. Or maybe he expects you to give a rough approximation or do a simulation. None of these will really teach you how to really design or solve these filters the way professionals do ought to.

So, while I don't normally like to give an answer, as opposed to helping people figure problems out themselves, In this case I'll share my notes (not a compete solution), just so you can see the complexity and the general form of the answer to the hardest part of this circuit. Note that I didn't intend for this to be educational, it's just what I did for myself. The key step for me is using Thevenin's theorem to create the second schematic, which has reduced complexity, as well a s the current divider rule. These may seem cryptic to you if you haven't studied them yet. Also, don't be confused by my use of s (s = j⋅ω), a trivial substitution. Finally, I didn't check it twice, so I could have made a mistake, although it looks right vis-à-vis units and intuition.

img002.jpg
 
Last edited:
  • Like
Likes berkeman
  • #66
And the rest of my notes below. Sorry, I know y'all can't read this, but that's how lazy engineers work in real time, LOL. Plus we all speak the same language but with different dialects.

There are a couple of things to point out though. The big one is that the problem really needs to be broken down into separate sections, otherwise the analysis is too hard and you won't understand the results anyway. Sort of like putting it into a simulator and getting answers without much understanding of why. The other point is that the algebra is simplified if you know the form you want it to end up in, which IMO, should ALWAYS be a "factored pole-zero" form, also sometimes called the canonical form. This allows you to maintain the functional description of each subsection and is trivial to combine into the whole transfer function by multiplication (which I didn't do).

Still not finished, I'm loosing interest. Theoretically there are two quadratic responses, but the one in the first amp has such low Q, it can be simplified to two real poles (which I also didn't do). Plus I totally ignored the inversion at the last amp, which is why you ALWAYS have to check for dumb mistakes, we all make them, nearly every time.

img003.jpg
 
Last edited:
  • #67
DaveE said:
And the rest of my notes below. Sorry, I know y'all can't read this, but that's how lazy engineers work in real time, LOL. Plus we all speak the same language but with different dialects.

There are a couple of things to point out though. The big one is that the problem really needs to be broken down into separate sections, otherwise the analysis is too hard and you won't understand the results anyway. Sort of like putting it into a simulator and getting answers without much understanding of why. The other point is that the algebra is simplified if you know the form you want it to end up in, which IMO, should ALWAYS be a "factored pole-zero" form, also sometimes called the canonical form. This allows you to maintain the functional description of each subsection and is trivial to combine into the whole transfer function by multiplication (which I didn't do).

Still not finished, I'm loosing interest. Theoretically there are two quadratic responses, but the one in the first amp has such low Q, it can be simplified to two real poles (which I also didn't do). Plus I totally ignored the inversion at the last amp, which is why you ALWAYS have to check for dumb mistakes, we all make them, nearly every time.

View attachment 273138

Have you read posts #57 through #62? The original problem only called for estimates of gain.
 
  • #68
The Electrician said:
Have you read posts #57 through #62? The original problem only called for estimates of gain.
Sort of, enough to get the big picture, but not in detail. I know how these stories go. Nothing wrong with nodal analysis. If you are really familiar with it you can see some of the natural portioning in the matrix form (diagonals, and such). You get an A+ in my book because your matrix is full of variables (R3, C5, et. al.). It's a great way to get the answer, that's why all of the simulators are based on it. However, it isn't great for me at understanding the relationship between response parameters and the individual components.

I prefer the "design oriented" analysis approach championed by my prof. R.D. Middlebrook. Don't just get the answer, understand what each part does. But as I said, we do often speak different dialects. Your result is a Mathematica plot, mine is a formula that you could plot with a pencil and paper (if you are familiar with the canonical forms), or with any piece of math SW.

But, gain is a function of frequency in these circuits.
 
  • #69
I guess the part of this thread that I didn't really follow was why (somewhere in posts #50 - 60) we decided that the answer will be found by evaluating the gain at 1 Hz. Probably I missed the justification, or perhaps a computer told you that 1 Hz was the "frequency of operation".

The way I look at these problems, you can't really identify that frequency until you understand how all of the various poles and zeros in the response interact. OK, actually, I still don't know what that phrase means. But let's say it's at the maximum gain, how was that determined?

Of course if the question was "what is the gain at 1 Hz" then I would immediately start a numerical solution and would be comfortable with zero understanding of how the circuit works at any other frequency.
 
  • #70
DaveE said:
Sort of, enough to get the big picture, but not in detail. I know how these stories go. Nothing wrong with nodal analysis. If you are really familiar with it you can see some of the natural portioning in the matrix form (diagonals, and such). You get an A+ in my book because your matrix is full of variables (R3, C5, et. al.). It's a great way to get the answer, that's why all of the simulators are based on it. However, it isn't great for me at understanding the relationship between response parameters and the individual components.

I prefer the "design oriented" analysis approach championed by my prof. R.D. Middlebrook. Don't just get the answer, understand what each part does. But as I said, we do often speak different dialects. Your result is a Mathematica plot, mine is a formula that you could plot with a pencil and paper (if you are familiar with the canonical forms), or with any piece of math SW.

But, gain is a function of frequency in these circuits.

It's easy enough to get formulas from the matrix. Overall gain in canonical form (simpler formulas for the individual sections are available too):

Formula.png


I wasn't lucky enough to study under Middlebrook (not here anymore) but I'm familiar with his work. He would say that the overall gain expression is a high entropy expression.

It became obvious after a while that the TS didn't know how to use complex arithmetic. He also didn't need to know what each part does beyond seeing that there are high pass parts and low pass parts. Without using phasors the only thing he could do is to convert those resistor-capacitor pairs into impedance magnitudes and use those in place of complex impedances. He assumed a frequency of 1 Hz (which he was able to justify) then analyzed the various parts and multiplied the individual gains to get an estimate of the overall gain. His final result was within 6 db of the correct value. Not too bad for an estimate by someone who didn't know how to use phasors. :smile:

The work you posted is well beyond the TS, as is the nodal analysis I posted. Maybe if he continues his studies he will someday be able to look back at this thread and say to himself "Now I see what they were trying to explain!".
 
  • Like
Likes DaveE
  • #71
DaveE said:
I guess the part of this thread that I didn't really follow was why (somewhere in posts #50 - 60) we decided that the answer will be found by evaluating the gain at 1 Hz. Probably I missed the justification, or perhaps a computer told you that 1 Hz was the "frequency of operation".

See post #30.
 
  • #72
The Electrician said:
See post #30.
Thanks, I did miss that. That's an OK approach since the assumption is clearly stated that there may be some error. In fact it's probably better for a quick estimate since an exact solution is a lot of work. I do like the idea of rough estimates before the analysis. Like "how many poles and how many zeros?"; "What does it do at 0 Hz or ∞ Hz?"; or "where in general are the poles & zeros".

However, I do think that you need a step at the end to estimate how bad your estimate is; i.e. was a 1 Hz estimate reasonable, how do you know it shouldn't have been 2 Hz or 1/2 Hz, for example. Maybe I'm too picky.

Given the poorly worded problem, I'd give an "A" grade for effort in this approach. It is a reasonable estimate. If you were working for me designing control systems, I'd give you a "C-", because in the real world the estimate is a great first step, but it isn't the answer. And if you could only show me a SPICE simulation without any concept of what causes the result, or without doing an estimate like this, I might fire you.
 
  • #73
It's really interesting to see just how many ways there are to solve it. Seeing how Dave and the electrician both solved it differently was very cool, but also way above my level.

About the complex maths part of it - I'm not asking for an explanation of how to do this but I thought with complex mathematics you would be left with an imaginary number as part of you answer - how does that figure into the gain, or does it cancel out further down the line?

I am happy enough with the rough estimate that I have - this is just for my own interest now if you can be bothered :)
 
  • #74
Because you used impedance magnitudes throughout your calculations, your final result was a simple real number.

You are right to wonder about this. The typical result for gain of a complicated circuit like this would have a non-zero imaginary part. What this means is that the gain would have a non-zero phase angle.

The complex result I got for the overall gain is -751.706 - j 2430.6
I converted it to a magnitude of 2544.19 when I reported it.
 
  • Like
Likes DaveE
  • #75
peasngravy said:
It's really interesting to see just how many ways there are to solve it. Seeing how Dave and the electrician both solved it differently was very cool, but also way above my level.

About the complex maths part of it - I'm not asking for an explanation of how to do this but I thought with complex mathematics you would be left with an imaginary number as part of you answer - how does that figure into the gain, or does it cancel out further down the line?

I am happy enough with the rough estimate that I have - this is just for my own interest now if you can be bothered :)
The complex result in transfer functions is nearly exactly the same as complex impedances, not really any different than what you are already doing with phasors. It encodes gain (the magnitude of the complex result, √(Re2 + Im2) ) and phase shift (tan-1(Im/Re)). We use complex numbers for these calculations because it is much easier when you have to add and multiply elements (mostly addition, actually).
 
  • #76
The Electrician said:
I wasn't lucky enough to study under Middlebrook (not here anymore) but I'm familiar with his work. He would say that the overall gain expression is a high entropy expression.
Actually, I don't think so. He would say it could be high entropy if you describe the exact solution. But he would also champion making the appropriate approximations to focus on the salient results. The problem with this is you can only know how to make those approximations when you understand how the individual pieces relate to each other.

However, there are cases (like well designed filters) where the poles and zeros are all proximal and it is difficult to make valid approximations. In those cases there is no alternative to high entropy. The approximations can't actually make substantive changes to the result, of course.
 

Similar threads

Replies
1
Views
830
Replies
4
Views
990
Replies
7
Views
2K
Replies
6
Views
3K
Replies
8
Views
2K
Replies
1
Views
2K
Back
Top