welcome back to control system lectures as always if you have any questions or comments on what I'm about to say please leave it in the comment section below and I'll address it in this lecture I want to present an introduction to frequency response methods and in particular I'm going to describe the bod plot how it's generated and used to visualize the frequency response of a system across the entire Spectrum I want to start by explaining another benefit of an LTI system if you design a linear time invariant system then there's only a limited number of
mathematical operations that you can use when building an LTI system you can only use one is multiplication by a constant the second is differentiation of the input signal the third is integration of the input signal and the fourth is adding uh two inputs together now you can always do division by multiplying by the reciprocal and you can also subtract by adding a negative number you might be wondering why it's important for me to start this lecture this way and why bring up the fact that a linear system can only consist of these six operations the
answer is that when you subject a sinusoid to these operations it doesn't change shape and part of not changing shape means that it also won't change frequency a sinewave input will always generate a sinewave output of the same frequency in fact the only two differences possible between an input sine wave and the output sine wave that's generated is the amplitude which is the height of the sine wave and the phase that is Shifting the sine wave in time in fact the sine wave is the only repeating wave form that doesn't change shape in a linear
system you can see here graphically what it means to change in amplitude and also to shift in phase let me give you a quick example so you can see what I mean if we take an input sine wave and subject it to these two separate paths the upper path is just multiplying it by a constant two and the lower path is integrating it and then summing them together produces the output if we make the input a pure sine wave of frequency 1 half radians per second then we could just calculate mathematically what the output would
be I'd like to make a quick not about frequency I'm going to refer to frequency in units of radians per second but this is proportional to Hertz so you can use either in this example all right back to solving this mathematically the output would then be the upper path which is a gain of two times the input plus the integral of the input with respect to time we can simplify this further by just taking the integral in the second half of the equation now in order to interpret this from here we're going to need some
help from some trig identities now I didn't remember this I had to actually go look this up but this trig identity that I'm going to be using is a sin of X plus b cosine of x equal the square < TK of a^2 + b^ 2 time the S of X Plus row where row is equal to the arc tangent of B over a now of course this is only true if a is greater than or equal to zero so let's apply this trig identity to our problem in our case a is equal to 2
and B is equal to -2 so the change in amplitude of the sine wave is just the square < TK of 2^2 + 2^ 2 is the < TK of 8times the S of 12 t plus the AR tangent of 2 over minus 2 which is the arctangent of minus1 if we write this in decimal format this is just equal to 2.83 * the S of 12T -78 5 radians now it should be obvious from this example that the sine wave that we input into the system is still a sine wave on the output however
the amplitude has increased from one in the original input to 2.83 that's the change in amplitude and the phase has been shifted by 785 radians notice also that the output has the same frequency as the input which is 1 12 radians per second now you can draw the input in the output in the time domain and it would look something similar to the graph that we've done above and that would work if you were only concerned with the response to a single frequency however more often than not you're going to be interested in the whole
frequency spectrum so how can you visualize the gain in phase shift across the entire Spectrum well one way to do that is with the B plot the bod plot allows frequency response information to be displayed graphically on two separate plots one for gain and one for phase both of which are plotted against frequency on a logarithmic horizontal axis but there's a caveat to plotting amplitude gain on a Bodi diagram we don't just plot the magnitude of the gain directly first we have to convert it into power and then we represent the power gain in decb
which is a logarithmic unit to convert the amplitude to decb you first take the log base 10 of the ratio of amplitudes and then multiply it by 20 if you're confused about where this equation came from let me just give you a quick history on decb when B telephone Laboratories was trying to quantify loss in audio levels through telephone circuits in the early 20th century they needed a unit of measurement and one that could cover a large range of audio power differences because the ear responds to sound pressure logarithmically using a logarithmic scale corresponds to
the way humans perceive sound they created a measurement called the transmission unit Tu where one Tu equal 10 times the log base 10 of the power loss and this was chosen because it approximately was the smallest power attenuation detectable to the average listener now to honor Bell lab's founder Alexander granell they later changed transmission unit to decibel or on10th of a bell where bell is just the log base 10 of the power ratio so to get from bells to debels you have to multiply by 10 also note that power in a sine wave is proportional
to the square of the amplitude of the sine wave so now we can write the decibel equation with respect to amplitude squared which is 10 log Bas 10 of the amplitude squared and just because of the properties of logarithms the exponential 2 just becomes multiplication and you get 2 * 10 which is 20 so let's get back to plotting on the bod plot if we convert convert the gain from amplitude into Deb we can plot the gain for the that frequency Omega and for Omega of 12 we can calculate the gain to be approximately 9
DB so on our gain plot we could find where 9 DB would be on the vertical axis and where 0.5 radians per second would be on the horizontal axis and put a little X there you can do the same for frequency but you first have to convert 785 radians into degrees because it's traditionally shown in degrees and that's -45 this is the frequency response for a single S Wave but remember we're interested in plotting the gain in Phase across the entire Spectrum so instead of running through the example above an infinite number of times each
at a different frequency we could have just set it to a variable like Omega and solved the system for any frequency so if we had done that and we had a lot of time we could have plotted a gain in Phase plot that looks something like this for our particular system and with the exception of being timec consuming for this simple example solving the response to the sine wave input was relatively straightforward well except for having to remember that crazy trigonomic identity from earlier there is a way of solving this without having to remember those
identities and still produce the same relationship with frequency and that's by referring to the system's transfer function if we take the llao transform of the system above the gain of two stays a two and the integral becomes 1 / s now writing the transfer function for a system like this can be done the output y of T is equal to 2 * the input U of T plus U of T / s a few algebraic steps here and you can solve for y of T over U of T which is the transfer function which is
equal to 2 s + 1 / s recall that the llao transform s is a complex variable Sigma plus J Omega however when we're talking about frequency response of a system we are talking about the state steady state response that is once all the transients have died out or in other words when the exponential term Sigma is zero so for steady state Behavior s just becomes J Omega steady state phase and gain can be calculated directly from a transfer function by setting s to J Omega that makes the transfer function become 2 + 1 over
Omega J where two is the real component and one over Omega is the imaginary component if we then plotted these real and imaginary components on a real and imaginary axis then we can calculate gain and phase geometrically from this plot so here our real component is two and for Omega of 1/2 from our example above one over Omega would also be uh well it's -2 I'm sorry I made a mistake here this 2+ 1 over Omega should actually be a minus because J * J is uh1 so it's -2 on the imaginary axis for Omega
of .5 and if we draw a line from the origin of the axis to that point then the length of the line is the gain of the system and the length can be calculated by just taking the square root of the real component squared plus the imaginary component squared this is just the Pythagorean theorem and the phase is the angle between that line and the positive real line and you can solve for this using the arct tangent I'm using arct tangent 2 in this case only because it keeps track of the sign of the inputs
and so you don't have to worry about whether a is positive or negative like we did up above so again the length of this line is the gain and the angle off the positive real line is the phase so you can see in this example that the real component doesn't change with frequency only the imaginary component and if we sweep through frequencies from near zero all the way up to near Infinity you can get a visual understanding of what the gain in the phase are doing for this particular system at Omega of near zero the
imaginary component is almost infinite and at an Omega of near Infinity the imaginary component is near zero and if you drew that red line from the origin starting with Omega of zero down at near Infinity which would be a near vertical line infinitely long you you would see that they would get shorter and shorter and shorter and shorter and finally ending with a length two if we go back up to our plot you can see that's exactly what the gain is doing the limit as frequency approaches Infinity goes to 6 DB which is a gain
of two and off to the left as frequency approaches zero the gain goes off to Infinity also if you look at Phase here you can see that phase starts out at 90° and then goes to 0 degrees and again that's exactly what our plot is doing and that's how you can represent a large amount of frequency response data through a system in fact that's exactly how a graphing program such as matlb would calculate the bod plot from a transfer function doing this by hand though still seems like it would take a long time but luckily
there is yet another way to graph the frequency response across the Spectrum and not only is this a much faster way but it also gives you an intuitive understanding into the frequency response of the system and you do this only by looking at the transfer function by following a few rules of thumb you can graph the bod plot by hand using straight line representations and I'll show you that in the next video for now as always thanks again for watching and don't forget to subscribe