I have a question about an exercise considering op amps.


simulate this circuit – Schematic created using CircuitLab

The task is to give an expression for V_OUT as a function of V_IN, V0, R1 and R2.

Could anyone explain me how to solve such a task? Because I've always had struggles with op amps.

Thank you for your help!


I tried to solve this task using superposition. My result was:


Is this correct?

  • 1
    \$\begingroup\$ I'm voting to close this question as off-topic because homework with no attempt at a solution \$\endgroup\$
    – Matt Young
    Commented Jul 12, 2017 at 2:24
  • \$\begingroup\$ Well I tried superposition now which gave me the result: V_OUT=V0-V_IN*((2*R2+R1)/(2R1+R2)). \$\endgroup\$
    – Viviane
    Commented Jul 12, 2017 at 2:44
  • \$\begingroup\$ Could you tell me if that's right? \$\endgroup\$
    – Viviane
    Commented Jul 12, 2017 at 2:45
  • 1
    \$\begingroup\$ Doesn't look correct to me, you have made a mistake gain of Vin to Vout \$\endgroup\$
    – sstobbe
    Commented Jul 12, 2017 at 5:11

1 Answer 1


I'll assume that it's an ideal OP-amp (voltage at (+)input = voltage at (-)input)

So, voltage dividing gives:


And for (-)input: current from left = current from right

\$\frac{V_{IN}-_{(-)}input}{R_1}= \frac{_{(-)}input-V_{OUT}}{R_2}\$

\$\frac{R_2(V_{IN}-_{(-)}input)}{R_1}= _{(-)}input-V_{OUT}\$

\$_{(-)}input - \frac{R_2(V_{IN}-_{(-)}input)}{R_1} =V_{OUT}\$

(+)input into (-)input

remember: (+)input = V0*R1/(R1+R2)
remember: (-)input = (+)input

\$V_0\frac{R_1}{R_1+R_2} - \frac{R_2(V_{IN}-V_0\frac{R_1}{R_1+R_2})}{R_1} =V_{OUT}\$

Tidy up:


Verified here

  • \$\begingroup\$ Instead of using voltage dividing at the +input I could've used kirchoffs current law (which I did use for the -input). But I used both to help as much as possible. Good Luck in your adventure of learning electronics :) And if you think my answer is correct, mark it as your answer. \$\endgroup\$ Commented Jul 12, 2017 at 20:37

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.