Engineering Understanding High Entropy Expressions in Circuit Analysis

  • Thread starter Thread starter peasngravy
  • Start date Start date
  • Tags Tags
    Voltage
Click For 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.
  • #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
 
Physics news on Phys.org
  • #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 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
15
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K