Bode Sensitivity Integral
Transcript
I hope this will be a bit of discussion also, I'm not going to talk for a full hour, maybe a half of that, at most. So I'm going to reflect a little bit about Bode and, I want to prove that Bode and his sensitivity integral in two different ways. And then I'm going to talk a little bit about the consequences and some recent work or more recent work about this implications. But let's start from the beginning. I'm.
Last night and I was trying to find Bode's integral in this picture of the curtain that I took and it took me a little bit awhile and then I saw it. It is on the curtain, I think. And like some guy is the one who draw it there. So this is what the Bode's integral state, says that we have a function S which we will, the sensitivity function, which if we take the logarithm of that and we integrate it from zero to infinity, it vanishes. That's what it's, what it says. Of course, I will come back and talk much more about that. But let's start with a little bit historical reflection about this amazing guy, Hendrik Bode. So he lived in the beginning of last century. He was growing up in the Midwest, but went quite early to the East Coast. He started at the famous Bell Labs
just after his master degree. And actually, what was interesting already at that time was that he then took a break from Bell Labs or if Bell Labs actually supported his Ph.D.. So he went to Columbia University, did a Ph.D. in physics, 1935, and then come back to Bell Labs. Then he joined Bell Labs Mathematical Research Group, a math group which has been very famous for many people who were there and their contribution. And he stays there, and he even took the leadership of that math research group at that point. And then he moved further up in the hierarchy and he was in the leadership of Bell Labs in general in the end of his term there. So he retired from Bell Labs at 62 years age. And I can maybe say also that Bell Labs basically started when Bode came
to Bell Labs. So he was there quite significant time. And then after his term at Bell Labs, he went to Harvard and to become a professional there, not so much in control, what more he was doing, systems engineering and so on. It was a professor teaching for a few years before he left. So what did he do in his career? I mean, he is famous for his early work on network theory, telecommunication and a number of control problems that he worked on, and he was very active during the during the Second World War
For instance, something called the artillery fire control problem, so you wanted to automate cannons basically shooting down and things like their missiles. And so and actually, he designed a system that was used in London to shoot down the V1 bombs that the Germans were sending over land on during the Second World War. For us in control he is very well known. He is of course, for the Bode plots. So he was the one who introduced these frequency plots that we are teaching in our basic control course, and concepts like to gain margins and phase margin and so on.
He published a number of very well cited papers, most of them, as you might know, that was this Bell Labs journals coming out, and most of them are actually in these journals. But he had a classical book network analysis and feedback amplifier design, which I will come back to the very end of my talk, but it's really a classical book in there in the area of control. What is fascinating by him was that already at that point, so almost 80 years ago or so he had, it was one of those who had an integrated view of the information, communication and control. So a bit like sometimes we attribute to Shannon as well or to be or so. And it's quote that actually he got a lot of stuff of very nice awards like the Edison Medal. And you see that was for the contribution of communication, computation and control. So it sounds almost like he could have had a career
in modern times now. He was also very broad. As you can see there he was not only a fellow IEEE but also of the American Physical Society, the American Mathematical Society. He also, I mean, the second part of his career, he really, as I said, he took up the leadership position. So this was an interesting photo I found out. So this is from 58, and he was then on this special committee on Space Technology. So, as you know, in the United States, they started this space race. So this committee was the predecessor to what later on became NASA. So. He was on the leadership of that, and actually this famous Von Braun is there in there in the back, this guy there.
So that was this German who was involved in actually designing these B1 and B2 bombs, one of these thousands of German engineers that the Americans took over to the US after the Second World War. That was a little bit about Bode, but let's now come to automatic control. So to appreciate the Bode's integral you have to know one slide of the automatic control basic course here. So I hope, my control colleagues excuse me. So we have the diagram that you see up to there to the right. So the classical feedback
control diagram. So what this control system design about it is that we have a Plan P, which is given as a rational function expressed in the Laplace domain. And then we would like to find a Controller C here such that the closed loop system fulfil some specifications. And these specifications are typically expressed in a function which we call the sensitivity function, which is given here and in the complementary sensitivity function which is given here. So what
should these two functions? They they depend, of course, not only on the plant but also on the controller C that we are designing. What would we like them to behave like? Yes, as you see up here, this sensitivity function is the how the disturbance D would enter Y. So we would like that to be small so that the output of the system is not affected by disturbance. And similarly, the complementary sensitivity function is there. The transfer function from noise here, measurement noise to the output. So we want that also to be small. But now, as you see, if we take S plus T here, it will be one plus PC over one plus PC, so it's equal to one. So we have a little bit of challenge because for any frequency omega here s plus t are always equal to one.
So, so that means that we cannot make them smaller, we cannot fulfill that simple specification that they express up here. So what do we do? And you basically take the basic control course and learn how to do design of control as in the frequency domain. So what you do is that you say that, OK, let's make the sensitivity small at low frequency. So that means that if we have disturbances, we have low frequency disturbances like a set point disturbance, then we would
be able to attenuate that by having the sensitivity of smaller, low frequency or a high, low gain, as I showed here. And then we let t be small at high frequency, so we attenuate noise. We say that measurement noise are high frequency, relatively speaking, and then we are able to attenuate that as well. And that means that typically you get sensitivity functions that looks like this and complimentary sensitivity function that looks like that. That's enough to see what you need to know for this,
this talk of basic control. Now to the result of Bode. So Bode proved this, this result here. So we say that we now have this loop gain as a set L(s), if we assume that is a transfer function and that this tells a relative degree of two or a larger. And then we assume that the closed loop system is stable, so s has no poles the right type thing, but the open loop system can be unstable and it has poles now in P1, P2, up to P2. Then it's so that's sensitivity function that we introduced up here,
right, that sensitivity function need always to fulfill this integral. So the integral over the logarithm of the sensitivity function over the frequencies needs to be equal to this constant. So if we have no right-hand poles of the open loop system, this will be equal to zero and it needs always to be equal to zero. If we have some unstable poles, we get the constant that reads that. So this is something fascinating. So this is a conservation law for feedback. So this tells us that whatever we do with feedback, this quantity always need to be conserved.
It's also called the waterbed effect, because what that tells us, if we look at the sensitivity function again, we see that we have this red sensitivity function. If we push it down at low frequency, it necessarily needs at some point to pop up. And if we don't push it down so much like the green one, it doesn't have to pop up so much. But basically the sum of what is above this zero dB line needs to be equal to what is below that line so that this was what Bode is telling us here.
And what are some consequences of that or how can we reflect on this? Yeah. Well, the thing is, when I talked about the control design problem in the beginning, we should choose C here. We see that this integral now tells us what is possible. So what are fundamental limitation of achievable control performance. What we can do with control, which might seem to be natural, particularly if you are in communication, because the most famous result in communication is probably Shannon's
result on the fundamental limitation of achievable channel capacity. How much information can you communicate over a digital channel? And that was actually Mikael Skoglund's curatin talk, we talked about that. From a controller viewpoint, what is a little bit fascinating is that even if Bode good and Shannon lift about the same time and they even wrote some paper together, Shannon's results form the basics of basically communication, and many people have been working on that, on that capacity and so on. While this Bode's integral haven't been really consider for a long time.
For some reason, which is a little bit hard to understand, but one can say almost like it was rediscovered in the 80s in the way I'm presenting it here today. So during the 60s and 70s, there was a lot of, you know, state based method developed L2 and other types of automated design methods that was very much focusing on how do we do better and better control design? Not so much about what can be achieved. Freudenberg and Doug Looze, so Freudenberg is University of Michigan, they wrote some papers in the early 80s and a very nice lecture notes Bring it for a long lecture notes in 88, where they derived some of these implication of Bode's sensitivity integral along the style I'm talking about here. These problems got very much
publicity by the first Bode lecture, so to give the Bode lecture is one of the nicest award in the control system society. And the first one who gave a Bode lecture was Gunther Stein, he worked his career at Honeywell, where he worked on aircraft control system, and I have quite some material from his work here. So he gave that lecture 89. It's recorded, it's available online. And he also wrote a little bit later or much later actually controlled system magazine paper, which is also a very nice
paper here. And I take in quite a few pictures from that paper. But basically his point and the point I'm trying to make here is this thing about that. You know, it's one need not just to have a sophisticated machine here to do some sort of a very advanced type of computation to come up with a controller. But you have to understand some basic principles on feedback and information. OK, so let's switch based a little bit. So let's prove this formula and I want to ask you both to prove
it here. I actually wrote it down on my slides so it is an exercise in complex analysis analytic function. If you have seen the Nyquist, when I proved the Nyquist criterion, it's a little bit similar flavor mathematically, but let's just go through it. So to simplify the proof, we assume that we only have one unstable pole instead of a number of unstable poles pk here. So let's say we have one such pole. I put it here, as you see along the real axis. And then I form a curve, I call these curve B here that encircles everything on the right hand side, except of that pole p
in this way. Now, if we, if we conceived our s or we consider the logarithm of s, that is an analytic function inside B here. So this is an analytic function inside B, we know that when we integrate around B here this integral that we have this circular integral that we have logarithm of s here needs to be equal to zero. That's what the course tells us. OK, so what can we get out of that? So now what we do is that we take each piece of this curve B be here and consider and reason a little bit about. And the first part is this Big R that we have here to the right. So if we integrate.
Over that, and we let R become very big, what happens then? Yeah, now we assume that we have relative degrees of the L of two or largest, which means that the same thing applies to s, right. So then when R becomes very big, this becomes very small and vanishes. So it basically means that we don't have to consider the integral along the Big R. Instead, we have three other pieces left. We have the pieces along the imaginary axis. These two pieces and then we have that piece,
which is this small part. Yes, the round p which I have magnified to the right here. So we should integrate along Roman one, Roman two and Roman three there. OK, so what? What can we do next? So what we do now is that we factor out that unstable pole from the sensitivity function, I didn't point that out. But let me just remind you that the unstable pole of the loop gain L here when we have one over one plus L, that unstable pole will become an unstable zero of the sensitivity function.
So that means that they have a factor of the sensitivity function, which is equal to s minus p. So I then write s as s minus p times S star, where S star now would be an analytic function in all of the right half thing. So I can right now the integral of that curve c as the integral over that s minus p part and the S star part, as you see there.
And then we do these actual computations, and that would have taken me another slide if I could do them explicitly. I didn't do them here. For those of you who studied data analytic function, complex analysis, risk calculus, you might remember that when you integrated over these type of the zeros off the functions, you then get something which has to do with how many revolution that you do. So basically that first integral that we had, we turn to two pi times T, which is the pole times J which is the square root of minus one. Right? So this we do, S star. Now I said that would be analytics. So it's not surprising that if we let Epsilon go to zero here, that would actually tend to zero. But of course, one need to prove that. So if you plug these two things together, there, you see now that the integral over lnS would be 10 to this
to this quantity minus two pi PJ. So this means now that what we end up with is that the sum of these two integral over the negative imaginary, positive imaginary axis would be equal to that quantity. So what is left now is you have to see that the left hand side you see, it's equal to that integral of the logarithm of the magnitude of S. And that's just a few a few steps of analysis
here, which you see, it's more straightforward. So that what now gives us this result for a single pole at P, If we would have multiple poles that we have in this expression, what we would have instead is that we would have to create a little bit more complex curve, right? So we avoid each one of these these poles independently, but otherwise it looks just the same. Remember also that if we don't have poles purely on the on the real positive axis there, but they are called conjugate,
they are always calling the conjugate right? So when we sum that them up, they will end up the sum of two such poles will always end up on the positive real axis. So that's how this result is proved. So when I look for when I went through this process, I won. I find this publication that shows that another proof, which I never saw before. But if you don't like complex analysis, you can actually prove the integral formula just by using various type of existing integral for a blast, so. So you basically then write out the rational function that s corresponds to and you introduce the zeroes and poles of the components that the numerator and denominator of that function, as you see here. And then you can express that in the poles and zeroes that you get and you're only interested in the in the unstable
poles here. So you end up with the same expression that we had previously. So that was the proof. Let's now talk a little bit about the consequences of this of this formula, and the consequences is not clear from before or a lot of right. If we now have unstable zeros right, half right zeros or non minimum face zeros or we have unstable poles, they make systems fundamentally hard to control. What we maybe don't see is directly from the formula, but I will show or illustrate a little bit how it can be derived from these formulas. And yeah, I showed you the sensitivity formula. There is something very similar one for the complimentary sensitivity, which includes the unstable zeros instead. But from these formulas, as well as from the definitions of phase and gain margins, you can now derive explicit conditions, which shows you how hard
these two control systems with right half zeros and post. And let's look at a few of these expressions here, and these are taken from Åström's paper he wrote on this topic 20 years ago in the European Journal of Control. So what can you say now if you have a plant you are controlling and you have one non-minimum phase zero?
Yes, in that case, and what we can reason express, the limitation on from that zero is if we look at how the sensitivity function must look like and what is the implication on the low-gain and the low-gain as I showed previously, typically look like, you see here, it has to be high at low frequency, it should go typically around a slope minus a half true that there cross over frequency and then it should decay a little bit more rapidly after this. So if we start to say use this in the design and we then fulfill some robustness margin expressed in the phase and gain margin here, we can actually compute
what implication this have. This not been the phase zero on the crossover frequency. So here we can show, for instance, that the crossover frequency must be less than that, not minimal phasezero. If you want a certain phase margin and very similarly, if we instead have an unstable system. So now you have a factor in the plant, which is unstable, then we derive. We can get exactly the opposite result saying that there that the crossover frequency means to be higher than where that pole is located.
And notice that these consequences are quite natural. So if we have a zero, which is in the right hand plane and it's rather slow, if you can compare that with having a system you are controlling, which have a bit of a delay. And if you have a delay, you cannot use very high gain when you are controlling that. So that would give you a problem and then be similar. If you have an unstable system that you are controlling, you need to rapidly control it. You need to have high gain.
So, so it's natural that we do loop. But of course, out of this back of the envelope calculation here on right up zero and poles, we see that we could get into problems. What happens if we have both? So if we both have a right half-plane zero and a right half-plane pole, we can get into a situation now depending on the ratio of the zero and the pole where we cannot get any phase margin at all. So which means that we basically cannot robustly stabilize the system. So and remember that
the bad thing is to have P large mean that we have a fast, unstable pole. Bad thing is to have the zero close to the regions of Z small. So this means that the difficult part here is the two, for instance. That's impossible because phase margin is minus six in this particular case, if it's larger here, it becomes it becomes easier. But you see, we can compute this in this case. In a classical example that we use when we teach. This is the impossibility
to actually balance a short, inverted pendulum in your own hand. And you know, you cannot do that with something as short as a pen. It's impossible. And this is basically the proof for why we can do that. So does this type of result, do they have any practical implications? Yes, that was exactly what Stein show in his, you know, his Bode election, he took a couple of examples to show this one that he has personally been involved with. You might have seen this airplane, and it was a research airplane that was developed by the U.S. Defense Agency called X 29. It was on purpose, designed unstable, and it had this particular forward swept wing
formation. Of course, depending on the operating conditions, so what speed, what height and so on. You have different dynamics. But under certain operating conditions, you get something exactly like in the case we saw on previous slides. So you have an unstable zero, you have an unstable pole. So there are limitations to what you can actually achieve by controlled design. But what was fascinating with this particular system was that there was somehow competition. There were several design groups, industrial groups that worked on the control design, and there were apparently a heated debate about which method was best and who could design the best control and so on. And it was only late in this phase where actually this was realized that the specification that one tried to achieve was impossible. That one actually could prove that they were they were impossible.
Another a little bit similar situation we are all familiar with is the Chernobyl disaster. So what was particular about Chernobyl was that under certain operating conditions there, this plant became unstable. You might have seen this if you watch that recent movie about the Chernobyl accident, that there was this experiment being done in Chernobyl where the feed water. So these are the actual curves from the operation of Chernobyl. And you know, you need water in in the air to avoid really like
the reaction. It's not taking off too much. But what they what they did was that during this manual experiment that inserted the control rods and they lowered the feed water, so they created a situation where which was OK. But the problem was that they then removed the control rods. And so they were down with very, very low power production in the in the system. So so the top floor theory is over some minutes and then we continue down here. You see the power. There
were basically no power production, but the controller rods were almost out of the of the plant and then they realized that something bad was going on and they tried manually now to start injecting the control rods into the nuclear reactor again. But there was limitation that with the speed which you can enter these rods into their reaction and you see here that they are entering the maximum speed, but that was not enough. And then the reaction took off here,
and we see a perfect exponential function happening here just before the whole thing exploded. So it's another illustration about how critical it is if we have saturation limitation, which we basically always have under on stability and actually the name of the paper that can sustain road for the control system magazine is called disrespect the unstable. OK, let's jump to two other things I would like to talk about. One is not Bode's sensitivity integral, but Henrik Sandberg's sensitivity
integral. So it's Henrik, our work colleague. I don't know if Hendrik is here today, but he actually wrote a very nice paper as part of his thesis work on extending Bode's integral to time periodic systems. So what is a linear time periodic system? Yeah, we can express that in the impulse response of the system. So we say that we have a linear system given by this expression here,
but the impulse response now is periodic and have periodicity capital T. If you have such a system, you can take the Laplace transform. You can define our transfer function for that system. The transfer function will not be as the usual transfer function we are used to it, but it will instead be an infinite dimensional transfer function, is called the harmonic transfer function. So you see you have an infinite matrix basically expanding in all directions of this Laplace transform
off the of the impulse response up there. So what one can do is to express with this transfer function, we can compute the sensitivity function and then express the sensitivity integral in this form. So that's basically what it says here. So we have now a sensitivity operator that we consider it tested. We have to assume, yes, as previously that this is stable. And if it is, then we have a sensitivity integral, which looks very similar to what you have seen at the right.
Now it's multiple variables. We have a determinant there to operate on this and then we have the integration over the half of the frequency that we, of the period that we have. So this is this is much, much harder to prove than Bode's sensitivity integral. So I won't go through that proof. Basically, there are two things here which are difficult in the Bode's case. Remember that we needed that the relative degree now of the loop gain of the plant G, if you want had to be to a larger. What does that mean? The relative degree
when we now have this harmonic transfer function. So I need to define that in a proper way so that when you now integrate and you go to infinity, this is well positioned. Well post here. And the same thing is also about the closed loop system. You have to be a bit careful. But basically otherwise, the interpretation of this sensitivity and integral for periodic system is it's very similar as before. So, for instance, we have now the waterbed effect that we can express through there through this operator instead of this sensitivity operator. Yes. As you saw previously, if we push it down at some frequency, it needs to pop up at other, at other frequency there.
OK, let's look at some other limitations of similar styles, the one that you saw was derived earlier there. How one can extend some of what you seen previously to MIMO system and express them in there in the time domain. So to appreciate this, we need to have to remind ourselves what is a zero and a pole of a transfer function matrix. Yes, so zero is something which we plug it into the transfer function matrix G here, it vanishes. And when we take a constant of extra psi
and take the scalar product, we have that matrix and we call now Z of course, we call the zero in this case. The PSI here is then called the zero direction. So for my MIMO system, transfer function matrix or a plan to always have a zero together with a zero direction and very similar, we can also define polls by looking at the inverse. Then off of the right, we have a pole and we have a pole direction.
So let's do a very simple computation on this, on the complementary sensitivity function that we have. So if I now write out what is the complementary sensitivity function T, so for a MIMO system, I would get this GC and then multiply by the inverse here of the sensitivity function. And then if I plug in the zero z here, right, and I multiply by psi transpose this first part here vanishes. So the right hand side become equal to zero, which means that when I multiply also the complementary sensitivity function by psi transpose when I evaluated a Z that is equal to zero. Now I can plug in the definition of these Laplace transform evaluation that they have. And let's say that I do that when I'm hitting the system with a step. So I take now a Step R.
And I and I multiply the left hand side here from the right with R. In that case, I will get an output. Why? Let us transform of that output. So I get psi transpose y, but then I can't use a definition now of the Laplace transform. So I use the definition of Y of a z and that is equal to this expression. So you see from that calculation that when I take psi transpose and multiply that with this integral, it has to be equal to zero. So for any response I have here, I get some sort of a little bit similar, like the previous integrals, I have integrals here,
which are independent of the controller I use. They depend on the right-hand plane zero. So there are some connection by this integral here how psi transpose direction of the zero, the zero and the output of the system. How they are interconnected. So this we can now, for instance, by approximating the integral that we have here, we can derive some results which are easier to interpret and work with to see what type of set point responses y we can actually get.
And if we do that, we get the theorem. And so the theorem here states the following. So if we now have this G, we have a right half plane zero z and direction psi, we have the relations. So you look to the left of this inequality. What you have here, you have a few psi and then you have the overshoot of the response. Sorry, the undershoot of the response. You have the interaction to the other output of the system. So we say something here like the undershoot in one channeling y1.
And the interaction with the other outputs, so y2 here, the size of that. These two quantities needs to be greater than larger when something we have on the right hand side. Epsilon, on the right hand side is just the ringing effect that we have, so let's say that we put Epsilon equal to zero here. Then you see that you get something on the right hand side, which is just one over e to the power of z t settling time minus one. So when the zero here, whe Z here goes to zero, we see that then necessarily we need to have a large undershoot in the system. So y1 needs to be above a certain quantity which is given by the right hand side. In case we didn't
have the sum, we didn't have the sum. If we have a SISO systems, SISO system means that we don't have y2 here. So this gives the fundamental limitation for this type of set point responses. Is that what we can achieve and how it depends on the zero. But if we have a MIMO system, we can help the left hand side. We can help the undershoot here on the left hand side by actually let there be some interaction there. So we can have a smaller undershoot here by having a larger connection. So the same direction. The other things, there is a trade off. So in some sense or in this formal sense, MIMO systems are easier to control than SISO systems.
So the whole story here works perfectly fine. Also for right-hand plain pole, with suitable adjustments. So now instead of the undershoot that we get for right-hand plain zero, for RHP poles. We get overshoots instead, so we necessarily have an overshoot in the set point response. But otherwise, we have a similar trade-off that we can do. Expressions are different, as you see here, but there is a similar type of implementations that we can do here.
OK, so we've got that, yes, we'd like to make a come back to Bode here because I'm not sure if this was a legal archive or out of internet, but I was very happily surprised and seeing that it was possible to actually read this book on internet sites available on the link there to get through. If you Google the name of the book. But it's very nice when you go through that book, is that a few a few things I can reflect on. You can read the preface, which gives actually some historical vibrations here. So I mean, basically, this whole text was developed as a course that we were given at Bell Labs and also to other labs in the United States more or less during the Second World War and was very much towards, I'd say, improving amplifier design and so on that was used in various applications.
The book contains both a lot of mathematics. There are theorems for it, for various type of things, a lot of complex analysis and so on. So it's clear that he has a mathematical training. It's very obvious, but it's also a lot of hands on things, so that the rules of how to draw Bode diagram and tons of different diagrams and so on are available in there. You don't see so much discussion of Laplace transform and so on. You see more discussion or, of course, any computations.
It's much more on the design of amplifiers a lot of electronic circuits, the circuit designs and so on. But if you have some time over some time, please go through and have a look. It's a very nice. It's a very nice book. OK, Arvind. And so we've that's that was what I was going to talk about. I'm happy to if there is someone who I have some questions with comments.

Ask anything
We've read this whole study set, so questions about it get the best answers.