Transfer function of an ideal OP amp

In summary: Via KCL, I have:I(cap) + I(R1) = I(R2) Cdv/dt + (v0-vc)/r1 = (v0-vIN)/r2 which simplifies to:Cdv/dt = V0(1/R2-1/R1) + Vin(1/R1-1/R2)
  • #1
TimeToShine
38
1

Homework Statement



I have to find the transfer function of a linearly and ideally operating OP Amp.

http://i.imgur.com/u3f6E.jpg

Homework Equations





The Attempt at a Solution



I know that the current through the capacitor, R1, and R2 is the same, so i=C(dv/dt) = Vin/R1 = (VIN-V0)/R2, where do I go from here? Is the transfer function just V0/VIN in terms of R1, R2, C and dv/dt? When I equate the second and third equations I get V0/VIN = 1-(R2/R1) but I'm not sure if this is right.

For the second part, I assume I just find a value of R1 that gives a value of A = 20-& in the equation VIN=A(gain) V0
 
Physics news on Phys.org
  • #2
TimeToShine said:

Homework Statement



I have to find the transfer function of a linearly and ideally operating OP Amp.

http://i.imgur.com/u3f6E.jpg

Homework Equations





The Attempt at a Solution



I know that the current through the capacitor, R1, and R2 is the same, so i=C(dv/dt) = Vin/R1 = (VIN-V0)/R2, where do I go from here? Is the transfer function just V0/VIN in terms of R1, R2, C and dv/dt? When I equate the second and third equations I get V0/VIN = 1-(R2/R1) but I'm not sure if this is right.

For the second part, I assume I just find a value of R1 that gives a value of A = 20-& in the equation VIN=A(gain) V0

Welcome to the PF.

You are correct that the same AC current flows through C, R1 and R2. But the current is not Vin/R1. Vin is across both R1 and the capacitor, so that must show up in your equations.
 
  • #3
berkeman said:
Welcome to the PF.

You are correct that the same AC current flows through C, R1 and R2. But the current is not Vin/R1. Vin is across both R1 and the capacitor, so that must show up in your equations.



Sorry I didn't realize that, thanks.

So via KCL I can assume that Cdv/dt + Vin/R1 = (VIN-V0)/R2.

This results in a fairly awkward equation if I want to solve for V0(w)/VIN(w):

VIN(1/R2-1/R1) - Cdv/dt = V0/R2

I'm not sure where to go from here, I have no initial or final values for v(t) so i can't really do anything with the dv/dt.

thanks in advance.
 
  • #4
TimeToShine said:
Sorry I didn't realize that, thanks.

So via KCL I can assume that Cdv/dt + Vin/R1 = (VIN-V0)/R2.

This results in a fairly awkward equation if I want to solve for V0(w)/VIN(w):

VIN(1/R2-1/R1) - Cdv/dt = V0/R2

I'm not sure where to go from here, I have no initial or final values for v(t) so i can't really do anything with the dv/dt.

thanks in advance.

No no no no no no no. :smile:

Vin is NOT across R1. It is across both the cap and resistor. So the LHS of your first equation above needs to change...
 
  • #5
berkeman said:
Welcome to the PF.

You are correct that the same AC current flows through C, R1 and R2. But the current is not Vin/R1. Vin is across both R1 and the capacitor, so that must show up in your equations.

berkeman said:
No no no no no no no. :smile:

Vin is NOT across R1. It is across both the cap and resistor. So the LHS of your first equation above needs to change...
Wow, I'm not on the ball at all today.

Right, so i'll let the voltage across the capacitor be Vc.

via KCL I have:

I(cap) + I(R1) = I(R2)

Cdv/dt + (v0-vc)/r1 = (v0-vIN)/r2And the RHS is the same

This leads to:

Cdv/dt = V0(1/R2 - 1/R1) + Vin(1/R1 - 1/R2)

thanks in advance.
 
Last edited:
  • #6
TimeToShine said:
via KCL I have:

I(cap) + I(R1) = I(R2)

No. The current through the cap equals the current through each resistor. They are all in series (assuming the ideal opamp needs no input bias current).
 
  • #7
Sorry I meant equals, I had it in the first post I was just getting confused.

According to this Cdv/dt = (V0 - VIN)/R1 = (V0 - VR1)/ R2

where VR1 = (R1)Cdv/dt
 
  • #8
TimeToShine said:
Sorry I meant equals, I had it in the first post I was just getting confused.

According to this Cdv/dt = (V0 - VIN)/R1 = (V0 - VR1)/ R2

where VR1 = (R1)Cdv/dt

Two things. First, use the "virtual ground" property at the - input node of the opamp. Since the + terminal is connected to ground, what is the voltage always going to be at the - input (due to the negative feedback and infinite gain of the ideal opamp)? That helps simplify the equation for the current through R2.

Second, you really do need to combine the cap and R1 together as the LHS of an equation. When you try to say things individually about them, you make errors (because the voltage at the point between them would need to be an additional variable if you want to treat them separately. Use the vitural ground property of the - input node to write an equation for the voltage Vin across both C and R1 and the current that flows through both of them.
 
  • #9
berkeman said:
Two things. First, use the "virtual ground" property at the - input node of the opamp. Since the + terminal is connected to ground, what is the voltage always going to be at the - input (due to the negative feedback and infinite gain of the ideal opamp)? That helps simplify the equation for the current through R2.

Second, you really do need to combine the cap and R1 together as the LHS of an equation. When you try to say things individually about them, you make errors (because the voltage at the point between them would need to be an additional variable if you want to treat them separately. Use the vitural ground property of the - input node to write an equation for the voltage Vin across both C and R1 and the current that flows through both of them.

If I remember correctly it's V input = V output = 0 in an ideal OP Amp so the potential at the node above the - op amp terminal is 0. This means that the current through I2 is

V0 - 0/R2 = V0/R2.

The Capacitor and resistor in series are a basic RC circuit, and the voltage across them is the same

Vc = Vin[1 -exp[-t/RC]]where R is R1 and C is the capacitance.

I know that this is the voltage across the capacitor but I'm not sure how exactly to combine the resistor and capacitors voltages and even if I do would dividing by the resistance R1 suffice to find the total current flowing into the node?

Regardless, I now have

Cdv/dt = (Vin-0)/R1 = (V0-0)/R2

Cdv/dt = Vin/R1 = V0/R2

So I can conclude that V0/VIN = R1/R2.
 
Last edited:
  • #10
TimeToShine said:
If I remember correctly it's V input = V output = 0 in an ideal OP Amp so the potential at the node above the - op amp terminal is 0. This means that the current through I2 is

V0 - 0/R2 = V0/R2.

The Capacitor and resistor in series are a basic RC circuit, and the voltage across them is the same

Vc = Vin[1 -exp[-t/RC]]where R is R1 and C is the capacitance.

I know that this is the voltage across the capacitor but I'm not sure how exactly to combine the resistor and capacitors voltages and even if I do would dividing by the resistance R1 suffice to find the total current flowing into the node?

Regardless, I now have

Cdv/dt = (Vin-0)/R1 = (V0-0)/R2

Cdv/dt = Vin/R1 = V0/R2

So I can conclude that V0/VIN = R1/R2.

You have the output equation correct.

The input equation is not right still. It's probably best to devine a new voltage at the node between the cap and R1. That way you can write the Cdv/dt using the voltage just across the capacitor. The voltage across the resistor is then related to Vin and Vc.
 
  • #11
berkeman said:
You have the output equation correct.

The input equation is not right still. It's probably best to devine a new voltage at the node between the cap and R1. That way you can write the Cdv/dt using the voltage just across the capacitor. The voltage across the resistor is then related to Vin and Vc.
Thanks.

I'll call the node potential between the capacitor and the resistor E.

Cdv/dt = (E - 0)/R1 = V0/R2

Edit: Sorry it's very long winded.
Cdv/dt = E/R1 = V0/R2

You then said to relate the voltage across the resistor (E) to Vin and Vc. I'm not sure at how to do this but i'd guess thatVin - E = Vc
Vc - Vr1 = E

E = Vin - Vc = Vc - VR1

2Vc = Vin+VR1

but VR1 = E-0 = E

2Vc = Vin + E

but from Vin-E=Vc we get E = Vin - Vc

so

2Vc = Vin + Vin - Vc
3Vc = 2Vin

Vc = 2/3 Vin

E = Vin - Vc = Vin-2/3Vin = 1/3 Vin

ThereforeCdv/dt = E/R1 = V0/R2

(1/3Vin)/R1 = V0/R2

Giving:

V0/Vin = R2/3R1

Edit: Sorry it's very long winded
 
Last edited:
  • #12
I'm sorry, I didn't track your last post at all.

If you call the voltage between the cap and R1 "Ve", then the v(t) across the capacitor is Vin(t)-Ve(t). And the voltage across R1 is Ve(t)-0V. Does that change your equations?
 
  • #13
berkeman said:
I'm sorry, I didn't track your last post at all.

If you call the voltage between the cap and R1 "Ve", then the v(t) across the capacitor is Vin(t)-Ve(t). And the voltage across R1 is Ve(t)-0V. Does that change your equations?
Vin(t) - Ve(t) = Vc(t) (eq1)

Ve(t) - 0 = Vr1(t) (eq2)

Another equation that should work isVc(t) - Vr1 = Ve(t) (eq3)

using eqs 2 and 3

Ve(t) = Vr1(t)
and
Ve(t) = Vc(t) - Vr(1)

therefore

Vr1(t) = Vc(t) - Vr1(t)
Vc(t) = 2Vr1(t) (eq4)

Does up to here make sense?

from eqs 1 and 3

Ve(t) = Vin(t) - Vc(t) = Vc(t) - Vr1(t)

from eq 4, Vc(t) - Vr1(t) = 2vr1(t) - vr1(t) = vr1(t)

giving:Vin(t) - Vc(t) = Vr1(t)

since vc(t) = 2vr1(t)

vin(t) = 3vr1(t)

Vin(t)/3 = vr1(t)

and

Vc(t) = 2/3 Vin(t)ALSO V(E) = Vin(t) - Vc(t)
Vin(t) - 2/3 Vin(t)
Ve(t)= 1/3 Vin(t)

So going back to the original equations:

Ve(t)/R1 = V0/R2

Giving V0(t)/Vin(t) = R2/3R1Yes it yielded the same equations.
is up to here correct?
 
Last edited:
  • #14
bump.
 
  • #15
TimeToShine said:
Vin(t) - Ve(t) = Vc(t) (eq1)

Ve(t) - 0 = Vr1(t) (eq2)

Another equation that should work is


Vc(t) - Vr1 = Ve(t) (eq3)

using eqs 2 and 3

Ve(t) = Vr1(t)
and
Ve(t) = Vc(t) - Vr(1)

therefore

Vr1(t) = Vc(t) - Vr1(t)
Vc(t) = 2Vr1(t) (eq4)

Does up to here make sense?

from eqs 1 and 3

Ve(t) = Vin(t) - Vc(t) = Vc(t) - Vr1(t)

from eq 4, Vc(t) - Vr1(t) = 2vr1(t) - vr1(t) = vr1(t)

giving:


Vin(t) - Vc(t) = Vr1(t)

since vc(t) = 2vr1(t)

vin(t) = 3vr1(t)

Vin(t)/3 = vr1(t)

and

Vc(t) = 2/3 Vin(t)


ALSO V(E) = Vin(t) - Vc(t)
Vin(t) - 2/3 Vin(t)
Ve(t)= 1/3 Vin(t)

So going back to the original equations:

Ve(t)/R1 = V0/R2

Giving V0(t)/Vin(t) = R2/3R1


Yes it yielded the same equations.



is up to here correct?

Equation 3 looks wrong to me. The voltages across the capacitor and R1 add up to Vin...
 

Related to Transfer function of an ideal OP amp

1. What is a transfer function?

A transfer function is a mathematical representation of the relationship between the input and output signals of a system. In the case of an ideal operational amplifier (OP amp), the transfer function describes how the output voltage of the amplifier varies in response to changes in the input voltage.

2. What is an ideal OP amp?

An ideal OP amp is a type of electronic amplifier that has infinite open-loop gain, infinite input impedance, and zero output impedance. It also has no offset voltage or current and has infinite bandwidth. In theory, an ideal OP amp can amplify any input signal without any distortion.

3. How is the transfer function of an ideal OP amp calculated?

The transfer function of an ideal OP amp can be calculated using the relationship Vout = A * (Vp - Vn), where A is the open-loop gain of the amplifier and Vp and Vn are the input voltages at the non-inverting and inverting terminals, respectively. This equation assumes that the input impedance is infinite and the output impedance is zero.

4. What is the significance of the transfer function in circuit analysis?

The transfer function of an ideal OP amp is a useful tool for analyzing and designing electronic circuits. It allows engineers to predict the behavior of the circuit and determine the output voltage for a given input voltage. The transfer function also helps in identifying potential sources of error or distortion in a circuit.

5. How does the transfer function of an ideal OP amp affect circuit stability?

The transfer function of an ideal OP amp can affect circuit stability in two ways. First, since the open-loop gain is infinite, any small changes in the input voltage can result in a large change in the output voltage, potentially causing instability. Second, the presence of feedback in a circuit can alter the transfer function and influence the stability of the circuit. Careful consideration of the transfer function is essential in designing stable circuits using ideal OP amps.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
18
Views
2K
  • 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
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
21
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
Back
Top