Basic Circuit Analysis - Transfer Function with Nodal Analysis

In summary, the conversation is about a winter break homework assignment for an EE college course, which involves finding the transfer function of a circuit using nodal analysis. The student is unsure if they are on the right track and asks for input. The conversation also includes a discussion about assumptions and errors in the equations. The expert suggests working on the last equation to find the transfer function and reminds the student to check the low and high-frequency limits. The student also mentions that the high-frequency gain does not need to be evaluated for this problem.
  • #1
SH1991
9
0
Hi guys, I have a winter break homework assignment for my EE college course. I've been given what seems to be a simple circuit analysis problem, but feel that I am making it much harder on my self by using nodal analysis. I have to find the transfer function of the circuit. My work has been scanned and attached, any input as to whether I am on the right or wrong track would be greatly appreciated.

Homework Statement



Determine the transfer function, Av(s)=Vo(s)/Vi(s), in terms of s, R1, R2, R3, C1, and C2.


Homework Equations



Assumptions:
ALF should be equal to (R3)/(R3+RZ) because the caps open at low frequencies.
RZ is R1 and R2 in parallel.

The Attempt at a Solution



Attachment 1
 

Attachments

  • EE HW 00 P1.png
    EE HW 00 P1.png
    56.6 KB · Views: 468
Physics news on Phys.org
  • #2
SH1991 said:
Hi guys, I have a winter break homework assignment for my EE college course. I've been given what seems to be a simple circuit analysis problem, but feel that I am making it much harder on my self by using nodal analysis. I have to find the transfer function of the circuit. My work has been scanned and attached, any input as to whether I am on the right or wrong track would be greatly appreciated.

Homework Statement



Determine the transfer function, Av(s)=Vo(s)/Vi(s), in terms of s, R1, R2, R3, C1, and C2.


Homework Equations



Assumptions:
ALF should be equal to (R3)/(R3+RZ) because the caps open at low frequencies.
RZ is R1 and R2 in parallel.

The Attempt at a Solution



Attachment 1

The equations for the two nodes Vo and Vx look okay. Are you going to add the equation at Vi into the mix as well?
 
  • #3
berkeman said:
The equations for the two nodes Vo and Vx look okay. Are you going to add the equation at Vi into the mix as well?

I was thinking on doing nodal at that node, but if I were to do nodal I would be running into a dead end because I would have a vx term in my equation and I have no where to substitute that into. I would also have a vo and vi term in that equation, but I can't solve for those because I am trying to solve for those terms for my end result. Am I making any sense or am I just confusing myself?
 
  • #4
SH1991 said:
I was thinking on doing nodal at that node, but if I were to do nodal I would be running into a dead end because I would have a vx term in my equation and I have no where to substitute that into. I would also have a vo and vi term in that equation, but I can't solve for those because I am trying to solve for those terms for my end result. Am I making any sense or am I just confusing myself?

No, I think that's reasonable. After I asked it, I realized that it might not really help, since you do not know the current through the Vi source, so writing an equation there would introduce an extra unknown Ii, not really helping to eliminate unknowns.
 
  • #5
berkeman said:
No, I think that's reasonable. After I asked it, I realized that it might not really help, since you do not know the current through the Vi source, so writing an equation there would introduce an extra unknown Ii, not really helping to eliminate unknowns.

Right, that's also another valid point as to why that nodal wouldn't be necessary. So I pretty much just have to grit my teeth and work this algebra out to find my transfer function?
 
  • #6
SH1991 said:
RZ is R1 and R2 in parallel.

RZ is R1 and R2 in parallel.

should be:

RZ is R1 and R2 in series.

which is what you have in the attachment; a small error.

But, my question is, why haven't done some algebra on your last equation and whip into the form:

Vo/Vi = an expression in s

Isn't that what the problem asks for?

Edit: I see that your last post occurred while I was working on mine. Apparently you have already decided that you need to do what I suggested.
 
  • #7
SH1991 said:
Right, that's also another valid point as to why that nodal wouldn't be necessary. So I pretty much just have to grit my teeth and work this algebra out to find my transfer function?

I think so. The good news is that you already stated the low-frequency solution that you can check your final transfer function against, and you should be able to see what the high-frequency limit should be for the transfer function behavior as well, so you will be able to check that too.
 
  • #8
The Electrician said:
RZ is R1 and R2 in parallel.

should be:

RZ is R1 and R2 in series.

which is what you have in the attachment; a small error.

Good catch! I looked at the Rz statement, and couldn't figure out what it meant.
 
  • #9
The Electrician said:
RZ is R1 and R2 in parallel.

should be:

RZ is R1 and R2 in series.

which is what you have in the attachment; a small error.

But, my question is, why haven't done some algebra on your last equation and whip into the form:

Vo/Vi = an expression in s

Isn't that what the problem asks for?

Edit: I see that your last post occurred while I was working on mine. Apparently you have already decided that you need to do what I suggested.

Not quite sure why I typed parallel when I wrote series, my fault :redface:

berkeman said:
I think so. The good news is that you already stated the low-frequency solution that you can check your final transfer function against, and you should be able to see what the high-frequency limit should be for the transfer function behavior as well, so you will be able to check that too.

Always a nice check I've been taught. When at high-frequency, s→∞, so this would then mean that the caps short I believe. But in part b we need to find ALF so the high-frequency gain doesn't need to be evaluated.

---------------------------------------------------------

Glancing over my attachment without any scratch work, I am at a loss where to begin my algebra. I could either: 1. Separate the vo and vi terms on both the left and right, and then solve for vo's and vi's; or 2. Cross multiply the terms. This appears that it will be a disgusting problem...
 
  • #10
SH1991 said:
Glancing over my attachment without any scratch work, I am at a loss where to begin my algebra. I could either: 1. Separate the vo and vi terms on both the left and right, and then solve for vo's and vi's; or 2. Cross multiply the terms. This appears that it will be a disgusting problem...

Either way should work. I probably would take the cross-multiply approach, and try not to do much distribution of terms if not necessary. Then check your final Vo/Vi expression for the low- and high-frequency cases to get some confidence that there were no algebra errors along the way.
 
  • #11
berkeman said:
Either way should work. I probably would take the cross-multiply approach, and try not to do much distribution of terms if not necessary. Then check your final Vo/Vi expression for the low- and high-frequency cases to get some confidence that there were no algebra errors along the way.

I've tried the cross multiplication method, but may have botched up somewhere and made a silly mistake because this does not seem correct from what I've done in any previous circuit analysis' (although all circuits are different which I've learned the hard way). Any chance you can check my algebra on the work I've completed for any silly mistakes?
 

Attachments

  • EE HW 00 P1.2.jpg
    EE HW 00 P1.2.jpg
    25.3 KB · Views: 403
  • #12
If you're going to be doing a lot of this when you're back in class, you should learn to use a symbolic algebra program--your school may have one on the network. There are even some free ones on the web, such as Scilab or Macsyma. You'll avoid a lot of tedious algebra with its potential for error.

Using a symbolic algebra program, I solved your equation and also solved the problem with an alternate method. Some of your writing is a little hard to read, but I think it matches up with my result. See the attachment.
 

Attachments

  • Transfer.png
    Transfer.png
    3.8 KB · Views: 413
  • #13
The Electrician said:
If you're going to be doing a lot of this when you're back in class, you should learn to use a symbolic algebra program--your school may have one on the network. There are even some free ones on the web, such as Scilab or Macsyma. You'll avoid a lot of tedious algebra with its potential for error.

Using a symbolic algebra program, I solved your equation and also solved the problem with an alternate method. Some of your writing is a little hard to read, but I think it matches up with my result. See the attachment.

Nice I wasn't even aware of those programs, I'll have to take a look at them and use them as checks, thank you!

I've continued to work the problem out and when I try to get it in the form needed:
Av(s) = ALF([itex]\frac{1+a_1 s+a_2 s^2}{1+b_1 s+b_2 s^2}[/itex])
it does not seem like it will turn out correct. I tried to explain my thoughts on paper which may make it easier to understand. What I thought of is to divide both conductance terms in the numerator and denominator by their equivalent conductance, and do the same for the other terms throughout the numerator and denominator. The problem with this is that it does put it in the correct form, but there is no gain at low-frequency (ALF). Which leads me to my conclusion that what I am thinking is not a legal algebraic maneuver?

Edit: Just posted my scan of my work to show visualization.
 

Attachments

  • EE HW 00 P1.3.png
    EE HW 00 P1.3.png
    37.2 KB · Views: 434
  • #14
I don't think there's any way to avoid just slogging through a lot of messy algebra. Using a symbolic algebra program, it's not too hard, but without it I don't think I could be sure I hadn't made a mistake.

See the attachments for the method and result.

The first image is a little tall, but if you view it with Firefox, just hover your mouse pointer over the image and you should see a magnifying glass symbol; click it.
 

Attachments

  • Transfer2.png
    Transfer2.png
    38.4 KB · Views: 446
  • Transfer3.png
    Transfer3.png
    31 KB · Views: 422
  • #15
The Electrician said:
I don't think there's any way to avoid just slogging through a lot of messy algebra. Using a symbolic algebra program, it's not too hard, but without it I don't think I could be sure I hadn't made a mistake.

See the attachments for the method and result.

The first image is a little tall, but if you view it with Firefox, just hover your mouse pointer over the image and you should see a magnifying glass symbol; click it.

Apologies on the late response, I've been traveling for the holiday weekend today and just got a chance to sit down at my computer.

Gotcha, I do understand how you arrived at that final answer, but my question when I was looking at my gain equation, which you also have, is that why doesn't my predicted ALF in my original post appear to be the same as my derived ALF? This could be because of a mistake when going from resistances to conductances.
 
  • #16
SH1991 said:
Apologies on the late response, I've been traveling for the holiday weekend today and just got a chance to sit down at my computer.

Gotcha, I do understand how you arrived at that final answer, but my question when I was looking at my gain equation, which you also have, is that why doesn't my predicted ALF in my original post appear to be the same as my derived ALF? This could be because of a mistake when going from resistances to conductances.

In the first post, you said "ALF should be equal to (R3)/(R3+RZ) because the caps open at low frequencies.
RZ is R1 and R2 in parallel."

In the attachment to post #13, I don't see a derived expression identified as ALF so I can't offer an opinion as to "why doesn't my predicted ALF in my original post appear to be the same as my derived ALF?"

But the expression for ALF in the first image attached to post #14 does reduce to the same thing you had in post #1 when the substitutions relating conductances to resistances are made. See the attachment to this post.
 

Attachments

  • Evaluate.png
    Evaluate.png
    1.4 KB · Views: 453
  • #17
The Electrician said:
In the first post, you said "ALF should be equal to (R3)/(R3+RZ) because the caps open at low frequencies.
RZ is R1 and R2 in parallel."

In the attachment to post #13, I don't see a derived expression identified as ALF so I can't offer an opinion as to "why doesn't my predicted ALF in my original post appear to be the same as my derived ALF?"

But the expression for ALF in the first image attached to post #14 does reduce to the same thing you had in post #1 when the substitutions relating conductances to resistances are made. See the attachment to this post.

Here's my question in written form: Unless I've made an algebra mistake in doing what you've done using the computer, I come out with a similar ALF without a R3 in the denomenator :frown: although your solution matches my predicted low-frequency gain so I must have made a mistake somewhere.
 
Last edited:
  • #18
In the sixth line down, there are 3 terms in the denominator:

[itex]\frac{R1 R2^2}{R1 R2 R3}+\frac{R1 R2 R3}{R1 R2 R3}+\frac{R1 R2}{R2 R3}[/itex]

After some cancellation, the three terms appear to have become:

[itex]\frac{R2}{R3}+0+\frac{R1}{R3}[/itex]

But this is wrong; that middle term should have become 1 rather than zero:

[itex]\frac{R2}{R3}+1+\frac{R1}{R3}[/itex]

You will be kicking yourself for having made such a silly error, but we all do it. :uhh:

If such a silly error can be made during a relatively simple reduction as this, what hope is there of getting the larger mass of algebra correct without using a symbolic algebra program?

Years ago when I used to do this sort of thing by hand, I would get out my pad of engineering paper and work the problem once. I would then set that aside and solve it a second time without referring to the first worksheets. And then I would do it a third time, hoping for at least a 2 out of 3 agreement!
 
  • #19
The Electrician said:
In the sixth line down, there are 3 terms in the denominator:

[itex]\frac{R1 R2^2}{R1 R2 R3}+\frac{R1 R2 R3}{R1 R2 R3}+\frac{R1 R2}{R2 R3}[/itex]

After some cancellation, the three terms appear to have become:

[itex]\frac{R2}{R3}+0+\frac{R1}{R3}[/itex]

But this is wrong; that middle term should have become 1 rather than zero:

[itex]\frac{R2}{R3}+1+\frac{R1}{R3}[/itex]

You will be kicking yourself for having made such a silly error, but we all do it. :uhh:

If such a silly error can be made during a relatively simple reduction as this, what hope is there of getting the larger mass of algebra correct without using a symbolic algebra program?

Years ago when I used to do this sort of thing by hand, I would get out my pad of engineering paper and work the problem once. I would then set that aside and solve it a second time without referring to the first worksheets. And then I would do it a third time, hoping for at least a 2 out of 3 agreement!

Gahhh :grumpy: such a stupid mistake! My fault, I fixed my work and thankfully came out with the same low-frequency gain as I had predicted! Thank you very much for your help! It's very appreciated! One last question in regards to the two algebra simplifying programs you had suggested. Do you have a preferred program out of the two?
 

Attachments

  • EE HW.jpg
    EE HW.jpg
    14.3 KB · Views: 446
  • #20
I don't use either one of those myself, but there are others on the forum who do. Maybe someone will pipe up with a recommendation.
 

What is a transfer function in basic circuit analysis?

A transfer function in basic circuit analysis is a mathematical representation of the relationship between the input and output signals in an electrical circuit. It shows how the output signal changes in response to changes in the input signal.

What is nodal analysis in basic circuit analysis?

Nodal analysis is a method used to analyze electrical circuits that uses Kirchhoff's Current Law (KCL) to determine the voltage at each node in the circuit. This method is useful for finding the voltage and current values at different points in a circuit.

How is nodal analysis different from other circuit analysis methods?

Nodal analysis is different from other circuit analysis methods, such as mesh analysis or Thevenin's theorem, because it focuses on the voltage at individual nodes in a circuit rather than the current or voltage across components. It also allows for the analysis of circuits with multiple voltage sources.

What are the steps for using nodal analysis in basic circuit analysis?

The steps for using nodal analysis are as follows: 1. Identify all the nodes in the circuit.2. Choose a reference node and label it as 0V.3. Write KCL equations for each node (except the reference node) using Kirchhoff's Current Law.4. Solve the equations simultaneously to find the voltage at each node.5. Use Ohm's Law to find the current through each component in the circuit.6. Verify the results by checking that the sum of currents entering a node equals the sum of currents leaving that node.

What are the advantages of using nodal analysis in basic circuit analysis?

Nodal analysis has several advantages, including: - It is a systematic method that can be used to analyze any type of circuit.- It can be used to analyze circuits with multiple voltage sources.- It allows for the analysis of complex circuits with many components.- It provides a clear understanding of the voltage at different nodes in a circuit.- It can be easily applied to both DC and AC circuits.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
228
  • Engineering and Comp Sci Homework Help
Replies
7
Views
886
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
895
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
317
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
Back
Top