Bode plot of transfer function

In summary, the homework statement is that a student has to approximate the frequency response by using bode plots. The student became stuck on plotting the bode plot and is unsure if their transfer function is correct. They recommend reading a pdf on the basics of bode plots before continuing. The student also noticed that the plots did not compare to their real-life results and that there are errors in the calculations. The student found the static gain and zero to be wrong in the plots. The student recalculated the values of the transfer function and found that the amplitude plot should remain constant until the frequency of the zero. After that, it should start rising and then remain constant after that. The student also noticed that the phaseplot starts
  • #1
Mitchy190
42
0

Homework Statement



I have the transfer function:

Transfer function.png


for the circuit:

circuit.png


The component values are know, and are:

R1 = 47kΩ
R2 = 4K7Ω
C = 10nF

Homework Equations



Transfer function.png

The Attempt at a Solution



I have derivied the transfer function but have become stuck on plotting the bode plot.

I understand that the function has one pole at

[itex]\frac{-1}{R_{1}C}[/itex]

And one zero at

[itex]\frac{-1}{R_{3}C}[/itex]

But I am unsure on the next step, and some advice would help. Thanks (:
 
Physics news on Phys.org
  • #2
Hi,

Can you be more specific about your doubt? What got you stuck in the plotting of the Bode plot?
 
  • #3
I do not know how to go about approximating the magnitude (in dBs) and phase response from the transfer function I have.

I have to approximate the frequency response by using bode plots.

I think I can treat the numerator and denominator as separate fuctions H(jw)1 and H(jw)2

as

H(jw) = a + jwb/c + jwd
with one pole and one zero can be solved by taking it as the product of two separate functions:
H(jw) = H1(jw)H2(jw)
where
H1(jw) = a + jwb
and
H2(jw) = 1/c + jwd

But here I become stuck and confused. I don't know why the above is useful or how to work out the bode plot from it.
 
  • #4
You can split your function in two new functions as you did. However you don't get any particular advantage by doing that, specially in this case where the transfer function is relatively simple. Essentially what you need to have in mind when doing the bode plot by hand is that:

-Either the amplitude and phase plots are asymptotic approximations of the real plot
-What you plot in the y-axis of the amplitude plot is, like you said, |H(jw)| in dBs in other words 20log(|H(jw|)
-The x-axis represents the frequency and is in a logarithmic scale
-In the phase plot what you represent in the y-axis is arg(H(jw))
-The poles and zeros have different effects in the bode plot. To do the bode plot you have to know these effects. You can quickly search the web to find out this. If you want to know why the zeros and poles have these effects i can recommend you for example the book "Basic Engineering Circuit Analysis", J. David Irwin, pages 427-435, or try to find something in the web.

What i recommend you to do first is to read this pdf:

http://www.ece.utah.edu/~ee3110/bodeplot.pdf

It explains the basics and has some examples.

Hope this helps.
 
  • #5
Thank you!

I am now unsure that my transfer function is actually right, I have plotted a bode for the magnitude and it does not compare to my real life results at all, which i am assuming are right.

I worked out the bode plot by

[itex]|H(Jω)| = 20Log(|A|) + 20Log(|1 + jωRC|) - 20Log(|1 + jωR_{3}C|)[/itex]

And I got these results

View attachment 46466

The real measured results I obtained are:

View attachment 46467

As you can see they look completely different? Is my transfer function wrong, or is it the method in which I have plotted the bode?

Thanks.
 
  • #6
It gave me the same transfer function you got with the only difference that [itex]A=\frac{R_{2}}{R+R_{2}}[/itex]. However as [itex]R=R_{2}=47[kΩ][/itex] this doesn't make any difference. So it seems to me that according to the data and circuit you gave that the transfer function is right

Regarding to the plots you posted i noticed the following:

-the static gain A is equal to 0.5 what implies that [itex]20log(|A|)\approx -6.02 [/itex].However in the calculation you made it gave -20.8. It seems to me that is a wrong value.

-In the first post you made the frequency of the poles were in rad/sec, but in the plots the frequency is in Hertz.

-the zero is at the frequency [itex]\frac{1}{RC}\approx 2127 [rad/sec] \approx 338[Hz][/itex] and the pole at the frequency [itex]\frac{1}{R_{3}C}\approx 4255 [rad/sec] \approx 677[Hz][/itex]. Using the asymptotic approximation the amplitude plot should remain constant with a value of [itex]20log(|A|)[/itex]until the frequency of the zero. Then due to the zero it should start rising at 20 dB/dec until the frequency of the pole, remaining constant after that(because the pole adds -20dB/dec). When [itex]w\rightarrow \infty \Rightarrow 20log(|H(jw)|)\rightarrow 0[/itex], so the amplitude plot you measured seems to give what was predicted theoretically except in the fact that the static gain is of -12 instead of -6.

-after making the table for the numerator and the denominator of the transfer function as you did, it gave me different results. Try to recalculate the values to see if you get the correct amplitude plot.

-in the phase plot, it should begin by rising because the zero appears first than the pole, and then start falling one decade before the frequency of the pole. However in the phase plot you measured it starts by falling first. According to the circuit and the component values you gave this should not happen.

Note: Just to be sure by 4K7Ω you mean 47000 [Ω] right?
 
  • #7
Thank you for your reply (:

R1 = 47k = 47000 ohms

R2 = 4k7 = 4700 ohms

C = 10nF

And I think that is why you got -6.02 for the dc gain.

[itex]\frac{R_{2}}{R + R_{2}}[/itex] = [itex]\frac{4700Ω}{4700Ω + 47000Ω} = \frac{1}{11}[/itex]

[itex]\textit{-20log(A) = -20.828}[/itex]Im still unsure where I have gone wrong, I just know I have, I think. I think the one where the frequency and phase response are given is right, but i didn't approximate that (which i need to do).

Have you gotten any ideas?
 
Last edited:
  • #8
Yup the error in the static gain was the resistance R2. Now the amplitude plot is equal to the one you measured. However the calculations you made in that table for the numerator and the denominator of the transfer function, are still giving me different results. Did you used w=1,10,..[rad/sec] or f=1,10,... [Hz]?
 
  • #9
So you are getting the same result as me now? As in you are getting the shape of the black line for the overall magnitude response?

Everything is in hertz on both graphs, so I varied ω (f) over 10hz --> 1000000hz to get my results.. I get the same shape graph in radian/second anyway.
 
  • #10
Nope I am getting the blue one, in the real measure. I am seeing your other post at the same time too and the last plot you posted its what is giving to me. How are you calculating |1+jwRC| ?
 
  • #11
[itex]|H(Jω)| = 20Log(|A|) + 20Log(|1 + jωRC|) - 20Log(|1 + jωR_{3}C|)[/itex]

to get the equation above I did the below:

Start with:
H(jω) = R2/(R2+(R*1/jωC)/(R+1/jωC)) (note that R1 is only named R in the picture)

pick the term (R*1/jωC)/(R+1/jωC) multiply nom. and denom. by jωC to get
(R*1/jωC)/(R+1/jωC) = R/(1+jωRC)

You now have H(jω) = R2/(R2+(R/(1+jωRC))

multiply nom. and denom. by (1+jωRC) and you'll get
H(jω) = (R2*(1+jωRC))/(R2*(1+jωRC)+R)

multiply the parentheses in the denom into the long form and you'll get
H(jω) = (R2+jωRR2C))/((R+R2)+jωRR2C)

now divide nom. and denom. by (R+R2) and get
H(jω) = (R2/(R+R2) * (1+jωRC)) / (1+(R2/(R+R2))*jωRC)

simplify by substituting (R2/(R+R2) = A, R3 = (RR2/(R+R2) to get
H(jω) = A *(1+jωRC) / (1+ jωCR3)
 
  • #12
No I was asking if you are calculating 20log(|1+jwRC|) as 20log(sqrt(1+(wRC)^2))?
 
  • #13
cathode-ray said:
No I was asking if you are calculating 20log(|1+jwRC|) as 20log(sqrt(1+(wRC)^2))?

Oh sorry, yes I am.

20*LOG10(SQRT(1+w/2127.659))

2127.659 = 1/RC
 
  • #14
Oh but is not 20*LOG10(SQRT(1+w/2127.659)) its 20*LOG10(SQRT(1+(w*47E3*10E-9)^2).
 
  • #15
That may be where I'm wrong!

I thought it was 20*LOG10(SQRT(1+w/2127.659))

As I thought when the imaginary part is equal to the real you get the break frequencies, and the frequency at that point is w = 1/RC ?

Anyway, made the correction?

Is this what you have?

View attachment 20log.doc
 
  • #16
Yup, thinking that way, when the real part is equal to the imaginary you have either a pole or a zero.
I think you posted here the wrong attachment cause that one is the initial one...
 
  • #17
I saw what you posted in the other thread and it is what i have.
 
  • #18
Then I do not understand why the below is not correct

20*LOG10(SQRT(1+w/2127.659))

2127.659 = 1/RC

My bad,

View attachment 20logg.pdf
 
  • #19
The only mistake you made in 20*LOG10(SQRT(1+w/2127.659)) is that you not squared the imaginary part. I wrote 20*LOG10(SQRT(1+(w*47E3*10E-9)^2) which is equal to 20*LOG10(SQRT(1+(w/2127.659)^2). I used the multiplication because 2127.659 is an approximated value and 47E3*10E-9 is the exact value.

Note: |a+jb|=sqrt(a^2+b^2)
 
  • #20
Ahh i see! Thanks for you help dude.

Managed to plot the phase response to I think.

What do you think?

View attachment phase1.pdf
 
  • #21
Im glad i could help :)

I saw your table and you made a mistake in the calculation of the argument. Given a complex number the argument is given by:

arg(a+jb)=arctan(b/a)

and given two complex numbers z1,z2 you have the following properties:

arg(z1*z2)=arg(z1)+arg(z2)
arg(z1/z2)=arg(z1)-arg(z2)

so applying this to the transfer function you get:

arg(H(jw))=arg(A)+arg(1+jwRC)-arg(1+jwR_3C)=0+arctan(wRC)-arctan(wR_3C)

In your table you should have then:

tan^-1(wRC) || -tan^-1(wR_3C)

Note:arctan and tan^-1 its the same
 
  • #22
cathode-ray said:
Im glad i could help :)

I saw your table and you made a mistake in the calculation of the argument. Given a complex number the argument is given by:

arg(a+jb)=arctan(b/a)

and given two complex numbers z1,z2 you have the following properties:

arg(z1*z2)=arg(z1)+arg(z2)
arg(z1/z2)=arg(z1)-arg(z2)

so applying this to the transfer function you get:

arg(H(jw))=arg(A)+arg(1+jwRC)-arg(1+jwR_3C)=0+arctan(wRC)-arctan(wR_3C)

In your table you should have then:

tan^-1(wRC) || -tan^-1(wR_3C)

Note:arctan and tan^-1 its the same

Ahh yes! Thank you, I have corrected that (:

The formula in my table, for the actual column is =-arctan((ω/23404.235))

where,

23404.255 = 1/R_3*C
 
  • #23
Also I was just wondering, on my friends graph the phase starts to shift at 10 hertz and on my graph it starts to at 100 hertz?

Do you know which one is correct?

The formulas below show how I am working out mine:

ATAN(((w*R*C)))

-ATAN(w*4700*R3*C)

then,

ATAN(w*R*C) - ATAN(w*4700*R3*C) = arg(H(jw))
 

1. What is a Bode plot of transfer function?

A Bode plot of transfer function is a graph that represents the frequency response of a system, showing how the output of the system changes in response to different input frequencies. It is used to analyze the stability, gain, and phase shift of a system.

2. How is a Bode plot of transfer function created?

To create a Bode plot of transfer function, the transfer function of the system is first converted into a frequency domain representation using the Laplace transform. Then, the magnitude and phase of the transfer function are plotted against frequency on a logarithmic scale.

3. What information can be obtained from a Bode plot of transfer function?

A Bode plot of transfer function provides information about the frequency response of a system, including the gain, phase shift, and bandwidth. It can also help identify the stability and resonant frequencies of a system.

4. How does the shape of a Bode plot relate to the characteristics of a system?

The shape of a Bode plot can provide insight into the characteristics of a system. For example, a steep slope in the magnitude plot indicates a high gain, while a phase shift plot crossing the 0 degree line indicates a stable system. The presence of a peak in the magnitude plot can indicate the resonant frequency of the system.

5. What is the difference between a Bode plot and a Nyquist plot?

While both Bode and Nyquist plots are used to analyze the frequency response of a system, they display different information. A Bode plot shows the gain and phase shift of a system, while a Nyquist plot shows the relationship between the input and output signals in the complex plane. Bode plots are typically used for single-input, single-output systems, while Nyquist plots are used for multi-input, multi-output systems.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
0
Views
512
  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
Back
Top