In the previous lecture we invoked the idea of transfer function, the importance of transfer function is that if we know the input function or the forcing function which is applied to the system then with the help of the transfer function and the laplace transform of the input function or the forcing function we can determine the dynamics of the evolution of the system as a response to the forcing function, so what are the different types of idealized forcing functions that we can have? So, let us look into five different types of forcing functions which we can imagine. The plots are in front of you, the first one is the ideal step function.
In the previous lecture, we took the example of the liquid level system and we said that imagine that there is a situation where suddenly in input flow stops. So, within no time you have changed your quantity which was at steady state to a new steady state quantity. Now, you can have a positive magnitude or you can have a negative magnitude, previous example the magnitude was negative but here what you can see in the plot is an ideal step function of magnitude A.
So, we always start our analysis at time t is equal to 0 or whenever this change happens you assign that particular time as 0 and before 0 my u here is in deviation variable form, so there was no deviation before the time 0 so, the quantity of the forcing function was 0 and then suddenly at t is equal to 0 you increase your forcing function to magnitude A and then you hold it there, the forcing function continues to have that value at A, so this is the ideal step function. Instead of holding it forever at a you may bring it back again to 0, so what is going on at time t is equal to 0 before t is equal to 0 and physically there is nothing called t less than 0 so, whenever the disturbance occurs you call that time as 0 and that is possible as we discussed in the previous lecture. So, at time t is equal to 0 you give a positive step of A, you hold it for time say b and then again you give A negative a step from considering the A as 0 you give negative A, so that your system comes at 0 and then again you hold it, so that gives rise to a ideal rectangular pulse function.
So, here you see that this is A, so this is plus A that you have given here up and from here you have given minus A and you come to 0, and this happens at time b, so you have two times here 0 and b, ideal rectangular pulse function. Ideal impulse function, within no time you give a very large magnitude disturbance and then the disturbance again comes back to 0, such that the area under this disturbance is unity, so that is called the ideal impulse function. So, this width of the peak is 0, but the area is unity, so that is the ideal impulse function.
What is ideal ramp function? You had a steady state and then you start giving disturbance that at a constant rate your forcing function keeps on increasing, so therefore an ideal ramp function is characterized by this gradient and this gradient is constant, it does not change with time. Finally, an ideal sine function, so at time t is equal to 0 you start this input function to have these oscillations and these oscillations would be characterized by the amplitudes of oscillation say this is A, so your formula would be A sine and frequency of oscillation omega t, so this is u of t.
So, these are the various ways and there can be other ways as well, the popular ones have been shown here. So, subject to all of these input functions we should be in a position to know the response of the system. So, let us look into the response of the system, if the system is say first order.
So, if I have a first order system how can I, can I write a general transfer function and from the general transfer function how can I use the previous forcing functions to determine the dynamics? So, we said that our general first order equation in transform domain can be written as dx by dt is equal to ax plus bu. Now what we will do is to analyze the system in transform domain I will need to rearrange this equation and put the equation in a specific form and secondly, we would assume that the governing equation is in deviation variable form, so that the life becomes easy to do transformations.
So, imagine that my system is given as a1 dy by dt plus a0 y is equal to bu, so if this is the governing equation then what I do is I write this as a1 by a0 dy by dt plus y is equal to b by a0 u. It is not very difficult to see that u is the forcing function here, so how would I determine the transfer function? I will take the laplace transformation and assuming that y and u are in deviation variable form I can do the laplace transformation of this equation simply as a1 by a0 s y bar of s minus y0 t will become 0 plus y bar of s is equal to b by a0 u bar of s.
Now appreciating the physical significance of these quantities which have been clubbed, I will assign some names to them So, a1 by a0 is assigned as tau and this is called the time constant of the system and b by a0 is assigned as capital K and this is called the gain of the system. So, therefore I can write this as tau s plus 1 y bar of s is equal to capital K u bar of s from where the general transfer function for a first order system can be written as y bar of s divided by u bar of s is equal to capital K upon tau s plus 1. It is important to remember that K is the gain of the system and tau is the time constant of the system, we will understand the physical significance of these two quantities a little later.
So, now the whole problem of getting the dynamical response of the system gets reduced to identification of K, identification of tau and putting the forcing function into laplace transform so that I can have y of s as K upon tau s plus 1 multiplied by the laplace transform of the forcing function u bar of s and then you take the inverse laplace, we will do this before that let us take an example. The example which is in front of you is the example which we solved long back in this course. I believe in the first week of this course in the state space domain analysis.
So, you have a body, a solid body which was at a temperature T0 and it suddenly dropped in a fluid of temperature to Tinfinity. So, now I would like to do the transform analysis of the system and what can be a situation which can happen, imagine that in the previous analysis we assume that T infinity is a constant, please refer back to that particular lecture and you would find that we very emphatically said that T infinity is a constant in this particular analysis. Now imagine that I have certain way of changing T infinity, so I have one heater within this particular reservoir which slowly heats the reservoir fluid itself at a constant rate with time.
So, T infinity will start rising with time, so what would be the response of the system, if I want to know this kind of answers I would need to resort to this analysis. So, let us try to pose this problem as a transform domain problem. So, my equation is dT by dt is equal to minus h As upon rho Vc T minus T infinity, so let me write this equation the equation is dT by dt is equal to minus h As upon rho Vc T minus T infinity.
This is the equation which has been given to me and let me rearrange this equation as dT by dt plus h As upon rho Vc times T is equal to h As upon rho Vc times T infinity. Now can we understand the significance of T infinity and why would T infinity act as a forcing function, from the state space domain analysis we saw that T infinity is the equilibrium temperature of the system. So, if I keep on changing T infinity my system would be forced to change the temperature because the system always has a tendency to catch up to T infinity and T infinity itself is changing, so therefore the system will keep on evolving depending upon how T infinity is in evolving and therefore T infinity here is acting as a forcing function, I put it on the right-hand side, so it is equivalent to u which I had said before.
So, let me write this equation in the deviation variable form, for doing that let me write this as Ts dt is plus h As upon rho Vc Ts is equal to h As upon rho Vc T infinity steady state, so equation 1, equation 2 and equation 3. I will subtract equation 3 from equation 2, I get d by dt of T minus Ts plus h As upon rho Vc T minus Ts is equal to h As upon rho Vc times T infinity minus T infinity s and let us use our standard notations let T minus Ts be equal to y and T infinity minus T infinity s be equal to u. So, I can write the above equation as dy by dt plus h As upon rho Vc y is equal to h As upon rho Vc u and to determine the transfer function I changed this equation in the previous case to one particular form, I made the coefficients of y as unity.
So, from here I will write rho Vc upon h As dy by dt plus y is equal to u, fine. So, if this is the case then I can identify the gain of my system simply as unity, so this is a system which has K as unity and the time constant tau as rho Vc upon h As, from where I can write tau dy by dt plus y is equal to u, which means tau s plus 1 y bar of s is equal to u bar of s. From where I get the transfer function for my system as y bar of s upon u bar of s is equal to 1 upon tau s plus 1.
So, from this analysis we can say that the temperature variation in the solid body dipped in a reservoir with varying temperature of the reservoir is a first order system which has unity gain and which has a time constant given as rho Vc upon h As. The transfer function would follow the first order transfer function 1 upon tau s plus 1, 1 because the gain of the system is unity. So, now I can determine the time variation of the temperature of the system if I know the forcing function u of t.
Let us see how you would do that it is not very difficult to see that you have in this general case. For example, you have y bar of s upon u bar of s is equal to K upon tau s plus 1 and for a step function of magnitude A, what is u of t, you have the magnitude 0 when t is less than 0 and when t becomes equal to becomes greater than 0 the amplitude becomes A. So, t greater than 0, let me draw it this is u of t, this is t, so this point would be t is equal to 0 and this would be A, and we already derived the laplace transform of a constant function A in the previous lecture.
We know that u bar of s is equal to A upon s, so how would you determine the response of the system? Well y bar of s upon u bar of s is equal to K upon tau s plus 1, which means y bar of s is equal to K tau s plus 1 multiplied by A upon s which means y of t is inverse laplace of As upon s tau s plus 1. I leave this as an exercise for you to determine y of t by doing this laplace transformation, I give you a hint that for all of the problems of this sort you will have to do partial fractions and then invert the laplace transformation.
So, we will spend the time during these lectures on trying to understand the dynamical behavior rather than solving these trivial mathematical steps. So, the first thing which we can have look into is this response of the system to an ideal step function, so as I said the ideal step function goes like you have 0 in the deviation variable form but t less than 0 and at t greater than 0 you maintain a constant magnitude A. The functional form of u of t is given 0 for t less than 0, A for t greater than 0 and I told you the recipe of getting y of t.
If you do it correctly you will get y of t is equal to A times K multiplied by 1 minus t by tau. So, now let us see how does this response look like, so let us plot. f of x is equal to AK 1 minus e to the power minus x upon, let us denote tau by C, C.
So, this is the response and since everything is in the deviation variable form the disturbance starts at t is equal to 0 we would be bothered only about the first quadrant, the other quadrants do not matter. So, what is the meaning of gain K? The meaning of gain K is that if you provide the system with unit disturbance by how much does the final disturbance or new state of the system get amplified, and how would you know the ultimate fate, you will move towards t tends to infinity.
So, therefore this if you look at far right and this is the t tends to infinity. So, if I change gain from 1 which you can see here to 2 you see your ultimate response has gone from 1 to 2. I will make it 3, you see as time t tends to infinity you have gone to 3, so that is the meaning of gain K.
Then let us maintain the unit gain, so if you provide unit disturbance your output ultimate would be amplified only one times, I mean it would stick to one time of your given forcing function. Amplitude A, you see here at the far right the ultimate response is unity, because that is the forcing function amplitudinal force function you you provide and therefore it is not very difficult to see the effect of the significance of this if I make it 2 it has to ultimately catch up to 2, if I make it three it would ultimately catch up to 3 as time t tends to infinity, at far t for right side you the system is going towards that. So, let us again consider a unit step input with unit gain, now I will see the effect the importance of time constant and time constant is always a positive quantity.
So, let me maintain it between 0 and 5 for example So, let me animate it, so I am animating this and I am trying to see what happens as the response as the time constant increases or decreases. So, for a small time constant when the time constant is small the speed of your response is large; you see here I have put a very small time constant of 0. 02 and the system has immediately jumped because what is the system trying to do, you have forced the system to be at a new steady state which is unity and when your time constant is very small the system jumps and tries to come to the new steady state as quickly as possible and if I increase your system will ultimately reach that value of unity, but it is reaching there slowly.
What happens at time constant 1, what is the meaning of time constant you will see that in your system you have an exponential term 1 minus e to the power minus x minus t by tau. So, the time required, so here on the x axis you have the time, so this time constant 1 corresponds to a change in 63. 1 percent of or 63.
2 percent of the applied forcing function. So, if you apply a unit forcing function in one time constant it would reach 63. 2 percent of the total applied one, in the next time constant it would again cover 63.
2 of the left one. So, in the in the first, time constant everything was left you start from 0, so you start from here so this much was left, in the first time constant this much was left and then when you reached here this was 63. 2 percent of this entire box, first time constant.
Next time constant how much was left, only this much was left in the second time constant only this much was left and therefore this is the 63. 2 and this is left, this is covered and this would be again 63. 2 and this would be left and so on.
So, in every time constant your system would cover the 63. 2 of the left one and therefore what happens at four, time constants? At four, time constants you will reach 98.
2 percent of the applied response and so on. So, within five time constant you can assume not that it will happen you can assume that, so here you will see that at five, time constants you have reached 99. 3; this is this is 99.
3 percent of the applied forcing function. So, what you will see is that you have reached 99. 3 percent and since the system catches up exponentially you will actually require infinite amount of time to reach the absolute value of the applied forcing function.
So, since in five for time constants you reach 99. 3 percent of your applied step you assume that you have reached your new steady state. So, this was for the case when you applied unit step function, we will further take up the other cases of the idealized; the first order system subjected to idealized forcing function in the lectures to come, till then good bye.