Down below is an inverting op-amp circuit with a capacitor C connected to the non-inverting input. I have to find the voltage at point A and express it using vin, C and R.

enter image description here

I tried to solve the problem using nodal voltage analysis:

(vin - va)/R = (va - vo)/R

vin = 2va - vo

va = (vin + vo)/2

However, I don't know what vo is, so I got stuck. The actual answer seems to be:

va = ((1/jwC) / (R + 1/jwC))vin

which looks like a voltage divider but I can't really figure it out.
I checked whether va and vb have similar values using ltspice. I found that they don't have the same values unless the capacitor is removed from the circuit.

enter image description here

What does connecting the non-inverting input to the inverting input do for inverting op-amp circuits?
What about the capacitor?
How should I analyze these types of circuits?

  • \$\begingroup\$ Have you considered common mode gain? \$\endgroup\$
    – Marla
    Commented Apr 19, 2023 at 2:21
  • \$\begingroup\$ I did not know about it. I'm looking it up now. \$\endgroup\$ Commented Apr 19, 2023 at 2:36
  • 3
    \$\begingroup\$ Note R3 = 10k in your simulation, not 100k. \$\endgroup\$
    – Richard
    Commented Apr 19, 2023 at 9:46
  • 1
    \$\begingroup\$ This is an all-pass filter (see en.wikipedia.org/wiki/All-pass_filter) \$\endgroup\$
    – Rmano
    Commented Apr 19, 2023 at 16:11
  • 1
    \$\begingroup\$ You do know \$V_o\$! It is \$(b-a)A_{OL}(f)\$, where the open loop gain A_OL(f)=A_OL(DC)*[pole at 10Hz or so]. You can also, instead and for simplicity's sake, assume \$A_{OL}(f)={\rm const}=\infty\$, giving a virtual short between a and b. The answers will be very similar for frequencies well within the op-amp's bandwidth, so the simplification has merit. \$\endgroup\$ Commented Apr 19, 2023 at 18:07

4 Answers 4


Your simulation won't work unless you connect the op-amp's power supply voltage sources to ground on the other side! Also, the source of negative supply will need to be non-zero.

Besides that, another reason you might see \$V_A \ne V_B\$ is the limited bandwidth and slew rate of the op-amp. It has its own imperfections which contribute to non-ideal behaviour, and cause \$V_A\$ to differ somewhat from \$V_B\$ at higher frequencies. If you want to see \$V_A = V_B\$, the simulation must be done at frequencies low enough that effects of bandwidth and slew-rate be negligible.

Your expression for \$V_A\$ is correct:

$$ V_A = \frac{V_{IN}+V_{OUT}}{2} $$

For \$V_B\$ I will assign \$Z_C\$ to represent the impedance of C, where

$$ Z_C = \frac{1}{j\omega C} $$

$$ V_B = V_{IN}\frac{Z_C}{R+Z_C} $$

Negative feedback causes the op-amp to equalise \$V_A\$ and \$V_B\$:

$$ \begin{aligned} V_A &= V_B \\ \\ \frac{V_{IN}+V_{OUT}}{2} &= V_{IN}\frac{Z_C}{R+Z_C} \\ \\ \end{aligned} $$

I won't show the working here, but I got:

$$ \frac{V_{OUT}}{V_{IN}} = \frac{Z_C-R}{Z_C+R} $$

After substituting in \$ Z_C = \frac{1}{j\omega C} \$:

$$ \frac{V_{OUT}}{V_{IN}} = \frac{1-j\omega CR}{1+j\omega CR} $$

It's quite easy to predict behaviour by inspection, and a little (far simpler) algebra. If we consider that the capacitor has 0Ω impedance at frequency, and ∞Ω at DC, then we have two equivalent circuits for those conditions:


simulate this circuit – Schematic created using CircuitLab

Note: For the DC version (right) I'm able to remove the lower input resistor, since it passes no current, and has no potential difference across it. Therefore \$V_B=V_{IN}.\$

On the left, at frequency, this is simply an inverting amplifier with unity gain:

$$ V_{OUT} = -V_{IN} $$

On the right, at DC (or very low frequency), we still have the conditions \$V_A = V_B\$, and \$V_B = \frac{1}{2}(V_{IN} + V_{OUT})\$, but we also see that \$V_B = V_{IN}\$. Therefore:

$$ \begin{aligned} V_A = V_B &= V_{IN} \\ \\ \frac{V_{IN}+V_{OUT}}{2} &= V_{IN} \\ \\ V_{OUT} &= +V_{IN} \\ \\ \end{aligned} $$

This is a very interesting configuration. It inverts at high frequency, but not at low frequency, and it has unity gain at all frequencies.

That's what the simulation says, too. With \$R=10k\Omega\$ and \$C=1nF\$:

enter image description here enter image description here

  • 3
    \$\begingroup\$ It's often called an "all-pass" filter; it is quite useful just to shift phases of signals (for example, to obtain sine and cosine synchronized, or things like that). If you take the modulo of your transfer function, you can see that it's always 1 (0 dB) quite easily. \$\endgroup\$
    – Rmano
    Commented Apr 19, 2023 at 16:10
  • 1
    \$\begingroup\$ There is another very interesting property of the most right circuit (DC) with Vout=+Vin - when compared with the classical unity positive gain stage: The loop gain is lower and can be adjusted (R3, R4) according to your specific stability requirements. This topology works like an externally compensated opamp. Hence, also uncompensated opamps can be used. \$\endgroup\$
    – LvW
    Commented Apr 20, 2023 at 9:34
  • 1
    \$\begingroup\$ @LvW You remind me of an internship I did at a defense contractor, Marconi, in 1990. There were always hotshot EE outside consultants around, from Philips and Ferranti and other big names. There was trouble with some torpedo subsystem, so meeting called. One of the consultants took about 5 minutes looking at the schematic, and declared confidently that we were using compensated op-amps, and shouldn't be so careless. He declared "obviously you need" this very circuit in the feedback, to "compensate for the compensation". Fresh out of university, this was sorcery to me. \$\endgroup\$ Commented Apr 20, 2023 at 11:53
  • 1
    \$\begingroup\$ Actually, still is sorcery, a little bit. \$\endgroup\$ Commented Apr 20, 2023 at 11:57
  • \$\begingroup\$ I forgot to mention:.....uncompensated opamps have much better slew rates. I suppose, this was an important issue within the example you have mentioned. \$\endgroup\$
    – LvW
    Commented Apr 20, 2023 at 14:25

Please redraw the circuit as shown below.Find the voltage at VB,that will be equal to VA because the opamp is in negative feedback here.You can apply virtual short concept.

enter image description here


This configuration is extremely interesting and basic for a class of analog circuits. That is why I prepared this story illustrated by numerous experiments.

Basic idea

It is a little "algebraic":

First we decrease the quantity X with a varying coefficient K (0 ÷ 1), then we increase it twice and subtract from it the input quantity X:

X -> K.X -> 2K.X -> 2K.X - X -> (2K - 1).X

Thus, for three typical values ​​of k (0, 0.5 and 1), we obtain a gain of -1 (inverter), 0 ("zeroer") and 1 (follower).

Common-mode differential amplifier...

We can see this idea in the classic 4-resistor op-amp differential amplifier when two equal input voltages Vin1 = Vin2 are applied (the so-called "common mode")...


simulate this circuit – Schematic created using CircuitLab

... with a common input voltage source...

... by replacing the two input sources with only one common source Vin; hence the name "common". Here this situation is undesirable and must be suppressed (the output voltage must be zero). Therefore, K = 0.5 is chosen for the circuit to work as a "zeroer". Thus we get the famous circuit with four identical resistors. For simplicity, in the schematic below, I have used the favorite resistance value of 1k and voltage 1V.


simulate this circuit

As we can see in the graph below, when we change the input voltage (for example, from -1 V to 1 V) by the help of the CircuitLab DC sweep simulation, the output voltage stays zero since the circuit is balanced.


... with a variable non-inverting gain

But there is a very powerful inventive principle that can be figuratively called "turning harm into good". In fact, we widely use it in life; there are even such proverbs, "When life gives you lemons, make lemonade":-)

So, if we replace the resistors R3 and R4 with a potentiometer P and start changing its K in one (K > 0.5) or the other (K ​​< 0.5) direction, the differential amplifier will be deliberately unbalanced and its output voltage will change when the input voltage varies. Thus we will get a non-inverting or inverting amplifier.

So this "new" type of amplifier is an unbalanced differential amplifier.


simulate this circuit

I have set the pot ratio K (wiper position) as a second parameter with a step of 0.2 in the DC sweep simulation. When K = 0, the circuit is an inverter (blue curve below); when K = 1, it is a follower (brown).


... with a discrete non-inverting gain

R4 -> switch. If we replace R4 with a switch, the circuit will work in its two extreme states.

Odd voltage follower (gain 1)

SW open. When the switch is open a very strange configuration is obtained. The non-inverting input is connected through R3 to the input source and the left terminal of R1. The inverting input is connected to the right terminal of R1. Thus the op-amp is forced to maintain zero voltage across R1. For this purpose, it keeps its output voltage equal to the input voltage, i.e. it acts as a (really, quite odd) voltage follower.


simulate this circuit

There are two unique phenomena in this arrangement:

  • The voltages at all points are the same
  • No currents flow

So this is an equipotential and no current circuit.

In the picture below, the two graphs (of the input and output voltage) are on top of each other and only the upper one (of the output voltage) is visible. This will also happen in other pictures below.

STEP 4_1

R3 -> piece of wire. Since practically no current flows through R3, it can be replaced with a piece of wire and the circuit simplified. But it looks no less strange than before. It is an "inverting amplifier" that keeps the voltage on its virtual "ground" equal to the input voltage... and as a result it has become a follower.


simulate this circuit

Graphical results are exactly the same and confirm this.

STEP 4_2

R4 -> small capacitor. We are now getting closer to answering the OP's question. So, if we replace R4 with a small (only 10 pF) capacitor, nothing will change; the voltage at the non-inverting input will be equal to Vin again.


simulate this circuit

Let's first see it in the DC sweep simulation (ramp input voltage)...

STEP 4_3_1

... and then in the time domain simulation (sine input voltage). I remind you that the two graphs are on top of each other.

STEP 4_3_2

Classic inverting amplifier (gain -1)

SW closed. The non-inverting input is connected through to ground. R3 is in parallel with the input source and does not play any role. So the circuit is an inverting amplifier...


simulate this circuit

... as you can see from the graphs.

STEP 5_1

We can remove R3...


simulate this circuit

... and it does not affect the graphs.

STEP 5_2

R4 -> big capacitor. If we replace R4 with a big enough (1000 µF) capacitor, the non-inverting input will be actually grounded and its voltage will be zero. The circuit will be inverter as above.


simulate this circuit

I have used CSV source and time domain simulation since the DC sweep simulation does not work well.

STEP 5_3_1

And finally, let's examine the circuit in the classic way using a sine signal.


simulate this circuit

As you can see, it acts as a perfect inverter again.

STEP 5_3_2


I think you're doing it right. Do you remember the concept of low-pass filters? This is what you need for Vb. It is somehow like a voltage divider, but the capacitor will charge and discharge differently depending on the input frequency. Play around with the frequency and see how that changes Vb. On top of that, remember that the impedance of a capacitor is Zc=1/(jwC), Zr=R for resistance, and calculate Vo as the difference between the amplifier's inputs.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.