Lesson 5
Operational amplifiers
Learn how to describe an ideal operational amplifier (Op Amp) using the o element. And practice what you learn in a variety of solved op-amp problems, both easy and hard.
Last updated 2023-07-08
In this lesson, you will learn how to describe an ideal operational amplifier — also called an Op Amp — using the o element. And you will practise what you learn in a variety of solved op-amp problems, both easy and hard.
5.1How to describe an ideal operational amplifier
There are many types of operational amplifiers. Symbulator can simulate the ideal, linear type.
What answers do you get
For each ideal op amp in a circuit, Symbulator gives the following answers:
- The current through the output node, flowing from the output node outwards. For an op amp called o, that is
io. - The power consumed by the visible part of the op amp. For an op amp called o2,
po2; the power delivered is the negative of that. - And, as with every element's nodes, the voltage of each of its nodes with reference to ground. For node o,
vo.
Livin' on the edge
Since I was born to be bad, I like to play with node names to get the answers as close to the book as possible. So do not be surprised if I call one op amp "o" and name its output node "o" as well. That way I can ask for vo and io and get the output voltage and current. But realise this: vo asks for the voltage in node o, while in io the o stands for the element o.
In Symbulator 9 the two cannot collide: Results lists node voltages and element quantities separately, so a node called o and an op amp called o never share a name.
Bo2's Drill Exercise 3.2
Open in app ↗Open in split view
For the op-amp circuit shown, find vo and the power absorbed by the op amp.

Bo2's Drill Exercise 3.2
Solution
My solution:
e,1,0,.1
r12,1,2,1'k
r2o,2,o,10'k
r30,3,0,1'k
r3o,3,o,20'k
o,3,2,oRead vo and po in Results:
vo= -2.1 Vpo= -0.00063 W
Which are correct. The voltage in node o is –2.1 V, and the op amp is absorbing –.63 mW, which is to say it is delivering .63 mW of power to the circuit.
5.2Instructive Op Amp examples
Solved Op Amp problems
Bo2's Drill Exercise 3.11 (Thévenin)
Open in app ↗Open in split view
Find the Thévenin equivalent.

e,1,0,vs
r1,2,0,r1
r2,2,3,r2
o,1,2,3Set Type of analysis to Find equivalent and Type of equivalent to Thévenin / Norton. Two node boxes appear: put 3 in the first and 0 in the second — the pair of terminals you are looking into.
This one catches people out, and Symbulator says so:
with a note above the answers: the short-circuit current is unbounded, so the equivalent is a voltage source with nothing in series.
That is not a failure to solve. An ideal op amp holds its output voltage whatever current is drawn, so a short across its output carries an unbounded current, which is exactly a source with no resistance in series: REQ = 0 Ω. Symbulator finds it by putting a resistance across the terminals and letting it fall to zero. VTH matches the book's answer.

AS2's Example 5.2
Open in app ↗Open in split view
Find vo and io.

e,2,0,1.
r5,1,0,5'k
r4,1,o,40'k
r2,o,0,20'k
o,2,1,oThe answers you want are vo and io, in Results.
The answer is vo = 9V and io = 0.65mA. This is correct.
Bo2's Figure 3.3 (Inverting)
Open in app ↗Open in split view
Find the gain of the overall circuit, vo/vS.

e,2,0,vs
r1,2,1,r1
r2,1,o,r2
o,1,0,oAsk Evaluate for:
vo/vsWe get
which is correct, as can be seen in the book's answer above.
AS2's Figure 5.10 (Inverting)
Open in app ↗Open in split view
Find vo.

e,2,0,vi
r1,2,1,r1
rf,1,o,rf
o,0,1,oThe answer you want is vo, in Results.
This problem is almost identical to the one above. The answer we get is correct:
AS2's Example 5.3 (Inverting)
Open in app ↗Open in split view
If vi is 0.5V, calculate the output voltage vo and the current in the 10 kΩ resistor.

e,2,0,.5
r1,2,1,10'k
rf,1,o,25'k
o,0,1,oThe answers you want are in Results:
This is correct.
TR5's Exercise 4-11 (Inverting)
Open in app ↗Open in split view
Find vO when vS is 2V, -4V and 6V. Notice the output of the op amp is limited to ±15V.

This may be the only non-linear problem you will see in this book, because I solved it before I realized it included the ±15V constraint. But anyway, here it goes.
e,1,0,vs
r1,1,2,10'k
r2,2,o,33'k
o,0,2,oPut vo in Evaluate and the given value in its Conditions box:
vovs = 2Then run it again with vs = -4 and once more with vs = 6.
The answers, vo = -6.6 V, 13.2 V and -19.8 V, are correct within the linear realm, but since the output is constrained to no more than 15V or less than -15V, the answer is vO=-15V for vS = 6V.
AS2's Practice Problem 5.3 (Inverting)
Open in app ↗Open in split view
Find the output voltage of the op amp (i.e. vo) and calculate the current through the feedback resistor (i.e. the 15 kΩ resistor).

My answer: Notice we used the m for milli in the value of the voltage source.
e,2,0,40'm
r1,2,1,5'k
rf,1,o,15'k
o,0,1,oThe answers are:
This is correct.
AS2's Example 5.4 (Inverting)
Open in app ↗Open in split view
Determine vo.

e6,1,0,6
r1,1,a,20'k
e2,b,0,2
rf,a,o,40'k
o,a,b,oThe answer you want is vo, in Results.
The answer, -6, is correct.
TR5's Example 4-14 (Inverting)
Open in app ↗Open in split view
Find the input-output relationship of the circuit.

The 'formal' way to symbulate this circuit would be as described below.
e,1,0,vs
r1,1,b,r1
r2,b,0,r2
r3,b,a,r3
r4,a,o,r4
o,0,a,o
rl,o,0,rlHowever, since we are only interested in the ratio of the input to the output, a smarter way to symbulate it is this:
e,1,0,1
r1,1,b,r1
r2,b,0,r2
r3,b,a,r3
r4,a,o,r4
o,0,a,o
rl,o,0,1Inverting, the quicker wayOpen in app ↗Open in split view
Ask Evaluate for vo/v1 and both approaches give the same answer:
which is correct, as can be seen by comparing it to the book's answer.

AS2's Practice Problem 5.4a (Transresistance)
Open in app ↗Open in split view
This is a current-to-voltage converter, also called a transresistance amplifier. Find vo/iS.

j,0,1,is1
r,1,o,r
o,0,1,oAsk Evaluate for:
vo/is1The answer is correct:
AS2's Practice Problem 5.4b (Transresistance)
Open in app ↗Open in split view
This is another transresistance amplifier. Again, find vo/iS.

j,0,1,is1
r1,1,2,r1
r2,2,0,r2
r3,2,o,r3
o,0,1,oAsk Evaluate for vo/is1. It gives
which is equivalent to the book's answer — the same expression, gathered differently.

Bo2's Example 3.1 (Non-Inverting Amplifier)
Open in app ↗Open in split view
Find vo/v1.

e,p,0,v2
r1,1,0,r1
r2,1,o,r2
o,p,1,oAsk Evaluate for:
vo/v1We get
which is correct.
AS2's Figure 5.16 (Non-Inverting Amplifier)
Open in app ↗Open in split view
Find vo.

e,2,0,vi
r1,0,1,r1
rf,1,o,rf
o,2,1,oThe answer you want is vo, in Results.
We get the right answer (below), an expression equivalent to the book's answer.
TR5's Example 4-13 (Non-Inverting Amplifier)
Open in app ↗Open in split view
Find Vo/Vs.

We can solve this problem in one simulation, as shown below.
e,1,0,vs
r1,1,2,r1
r2,2,0,r2
o,2,3,o
r3,o,3,r3
r4,3,0,r4Ask Evaluate for:
vo/vsWe get
which is correct, as can be seen by comparing it to the book's answer.

We can also solve it in stages, as shown below. First, simulate the left half.
e,1,0,vs
r1,1,2,r1
r2,2,0,r2the left halfOpen in app ↗Open in split view
Ask Evaluate for:
v2/vsWe get
which is correct for this part. Then, simulate the right half.
e,2,0,1
o,2,3,o
r3,o,3,r3
r4,3,0,r4the right halfOpen in app ↗Open in split view
Ask Evaluate for:
vo/v2We get
which is correct for this part. The product of these two partial answers produces the same expression shown above after the big simulation, and is the right answer.
AS2's Figure 5.17 (Voltage Follower)
Open in app ↗Open in split view
Find vo.

e,1,0,vi
o,1,o,oThe answer you want is vo, in Results.
The answer is correct:
TR5's Figure 4-32 (Voltage Follower)
Open in app ↗Open in split view


Alright, so first we simulate the (b) circuit, to find its maximum power and load power:
e,1,0,1.5
rs,1,2,2'kSet Type of analysis to Find equivalent and Type of equivalent to Thévenin / Norton. Two node boxes appear: put 2 in the first and 0 in the second — the pair of terminals you are looking into. Tick the question about the load, choose DC and run it.
The answer you want is pmax, in Results, and under it prl, the power in the load as Lesson 4 describes. Ask Evaluate for it with the load in the Conditions box:
prlload = 1000The answers we get, pmax = 2.8125e-4 W and prl = 2.5e-4 W in the 1 kΩ load, are correct. Now we simulate the (a) circuit.
e,1,0,1.5
rs,1,2,2'k
o,2,o,o
rl,o,0,1'kVoltage Follower, bufferedOpen in app ↗Open in split view
The answer you want is prl, in Results — the power consumed by the load resistor rl.
The answer, .00225, is correct. The apparent paradox — the load in (a) drawing more power than the source in (b) seems able to provide — evaporates once we remember that the ideal op amp in the schematic is only part of the truth: the real one has its own source of power, which makes up the difference.
AS2's Example 5.5 (Inverting)
Open in app ↗Open in split view
Find vo.

e1,1,0,6
r4,1,a,4'k
r10,a,o,10'k
e4,b,0,4
o,b,a,oThe answer you want is vo, in Results.
The answer, -1, is correct.
AS2's Practice Problem 5.5 (Non-Inverting)
Open in app ↗Open in split view
Calculate vo.

e,1,0,3
r4,1,2,4'k
r8,2,0,8'k
r2,3,0,2'k
r5,3,o,5'k
o,2,3,oThe answer for vo, 7, is correct.
Bo2's Example 3.2 (Adder or Summing)
Open in app ↗Open in split view
Find vo.

ea,3,0,va
eb,2,0,vb
r31,3,1,r1
r21,2,1,r1
r1o,1,o,r2
o,0,1,oThe answer you want is vo, in Results:
which is correct, as can be seen by comparing it to the book's answer.

AS2's Figure 5.21 (Adder or Summing)
Open in app ↗Open in split view
Find vo.

e1,b,0,v1
e2,c,0,v2
e3,d,0,v3
r1,b,a,r1
r2,c,a,r2
r3,d,a,r3
rf,a,o,rf
o,0,a,oAsk Evaluate for expand(vo). It gives
which is correct, as can be seen by comparing it to the book's answer.

AS2's Example 5.6 (Adder or Summing)
Open in app ↗Open in split view
Find vo and io.

e1,1,0,1
e2,2,0,2
r1,2,a,5'k
r2,1,a,2.5'k
r3,a,o,10'k
r4,o,0,2'k
o,0,a,oThe answers you want are in Results:
This is correct. Notice a current of 4.8mA is going into the op amp.
AS2's Practice Problem 5.6 (Adder or Summing)
Open in app ↗Open in split view
Find vo and io.

e2,2,0,1.5
e1,1,0,2
e6,6,0,1.2
r2,2,8,20'k
r1,1,8,10'k
r6,6,8,6'k
r8,8,o,8'k
r4,o,0,4'k
o,0,8,oThe answers you want are in Results:
This is correct. Again, the current is going into the op amp.
Bo2's Drill Exercise 3.3 (Difference or Differential)
Open in app ↗Open in split view


ea,4,0,va
eb,3,0,vb
r1,4,1,r1
r2,1,o,r2
r3,3,2,r1
r4,2,0,r2
o,2,1,ovo is the correct answer, equivalent to the book's answer above:
TR5's Exercise 4-13 (Difference or Differential)
Open in app ↗Open in split view
Find vo.

e1,3,0,v1
e2,4,0,v2
r1,3,5,10'k
r2,4,6,10'k
r3,5,o,40'k
r4,6,0,15'k
o,6,5,ovo is the correct answer:
AS2's Figure 5.24 (Difference or Differential)
Open in app ↗Open in split view
Find vo. (And keep the answer on screen: the next three problems reuse it.)

e1,d,0,v1
e2,c,0,v2
r1,d,a,r1
r3,c,b,r3
r2,a,o,r2
r4,b,0,r4
o,b,a,oThe answer you want is in Results:
This expression is equivalent to the book's answer.

AS2's Figure 5.24 (Subtractor)
Open in app ↗Open in split view
For the same circuit of the previous problem, find vo when R1=R2 and R3=R4.
The expression for vo is still in Results from the previous problem, so we only do this:
Ask Evaluate for expand(vo) and give it both equalities in the Conditions box:
r2 = r1
r3 = r4The answer we get is correct:
AS2's Example 5.7 (Difference or Differential)
Open in app ↗Open in split view
Design an op amp circuit with inputs v1 and v2 such that vo = -5v1 + 3v2.
My solution follows. The problem statement is a fancy way of saying: for the circuit of the previous problem, find the resistor values that give an output vo = -5v1 + 3v2. Not strictly a Symbulator problem, but it shows how Symbulator fits into design problems.
First we take that part of vo that is a factor of v1, and make it equal to -5. Thus:
Conditions again, this time on the inputs rather than the resistors: v1 = 1 and v2 = 0. Then vo is
which is equivalent to the book's expression, and it is that which has to equal −5.
Symbulator will not always arrange an expression the way the book does. To rearrange it, Evaluate takes simplify(), collect(), expand(), factor() and apart().
We get
Now make that part of vo that is a factor of v2 equal to
- Thus:
With v1 = 0 and v2 = 1 instead, vo is
which is equivalent to the book's expression, and it is that which has to equal 3.
the v2 factorOpen in app ↗Open in split view
We get
Now, since you have two equations, you can solve for two unknowns. Of the four resistors you get to choose, two can be whatever you want. The book recommends R1 = 10 kΩ and R3 = 20 kΩ. Now let's find R2 and R4.
Write the two equations out in the Solve card, which solves a system that is not a circuit:
-r2/r1 = -5
r4*(r1 + r2)/(r1*(r3 + r4)) = 3with r2, r4 as the unknowns. The answer is a design rule rather than a pair of numbers:
Put the book's r1 = 10 kΩ and r3 = 20 kΩ into it and you get 50 kΩ and 20 kΩ.
Now, if this problem was part of a test, I'd like to verify that the answer is correct. To confirm this, simulate the circuit using the four values given above for the resistors.
e1,d,0,v1
e2,c,0,v2
r1,d,a,10'k
r3,c,b,20'k
r2,a,o,50'k
r4,b,0,20'k
o,b,a,ochecking the designOpen in app ↗Open in split view
vo is the desired output:
The resistor values are correct.
AS2's Practice Problem 5.7 (Difference or Differential)
Open in app ↗Open in split view
Design a difference amplifier with gain 4.
My solution follows. Again the statement is a fancy way of saying: for the circuit of the previous problem, find the resistor values that give an output vo = 4 (v2-v1), that is, -4v1 + 4v2. Same as before.
Exactly as in the previous problem: solve the circuit twice with conditions on the inputs — v1 = 1, v2 = 0, then v1 = 0, v2 = 1 — and read vo each time. The two factors are the same as before, so the two design equations are the same shape with 4 in place of 5 and 3.
This time the book asks that you use R1 = 10 kΩ and R3 = 10 kΩ. So we do that.
In the Solve card:
-r2/r1 = -4
r4*(r1 + r2)/(r1*(r3 + r4)) = 4with r2, r4 as the unknowns. It answers
which at 10 kΩ each is 40000 Ω and 40000 Ω.
AS2's Practice Problem 5.8 (Instrumentation)
Open in app ↗Open in split view
Find io.

e1,1,0,8.
e2,2,0,8.01
o1,1,3,3
o2,2,4,4
r1,3,5,20'k
r2,4,6,20'k
r3,5,o,40'k
r4,6,0,40'k
o3,6,5,o
r5,o,0,10'kThe answer you want is ir5, in Results.
In the schematic, the current io corresponds to ir5. The answer, 2e-6, is correct.
Bo2's Example 3.3 (Cascade)
Open in app ↗Open in split view
Find vo in terms of the conductances and the applied voltage vS.

e,1,0,vs
r12,1,2,1/g1
r14,1,4,1/g2
r4o,4,o,1/g3
r2o,2,o,1/g4
r23,2,3,1/g
r34,3,4,1/g
o1,0,2,3
o2,0,4,ovo is:
which is correct, as can be seen by comparing it to the book's answer.

Bo2's Drill Exercise 3.4 (Cascade)
Open in app ↗Open in split view


e,1,0,vs
r1,2,o,1/1
r2,1,2,1/2
r3,2,3,1/3
r4,4,0,1/4
r5,4,o,1/5
o1,0,2,3
o2,3,4,ovo is correct:
AS2's Example 5.9 (Cascade)
Open in app ↗Open in split view
Find vo and io.

e,1,0,20'm
o1,1,2,a
o2,a,b,o
ro,o,b,10'k
r4,b,0,4'k
r2,a,2,12'k
r3,2,0,3'kvo is .35 and iro is 2.5e-5. This is correct.
AS2's Practice Problem 5.9 (Cascade)
Open in app ↗Open in split view
Determine vo and io.

e,1,0,4
o1,1,2,2
o2,2,3,o
ro,3,0,4'k
r6,3,o,6'kThe answers you want are vo and iro, in Results.
The answer is vo = 10 V and iro = 1/1000 A, that is 1mA. This is correct.
AS2's Practice Problem 5.10 (Cascade)
Open in app ↗Open in split view
If v1 = 2V and v2 = 1.5V, find vo in the circuit.

e1,1,0,2
e2,2,0,1.5
o1,1,3,3
r1,2,5,10'k
r2,3,6,20'k
r5,5,4,50'k
o2,0,5,4
r3,6,4,30'k
r6,6,o,60'k
o3,0,6,oThe answer you want is vo, in Results.
The answer, 9, is correct.
TR5's Example 4-16 (Cascade)
Open in app ↗Open in split view
Derive an expression for vo in terms of the two inputs.

e1,2,0,v1
e5,3,0,5
r1,2,4,5'k
r2,3,4,10'k
o1,0,4,a
r3,4,a,10'k
r4,4,o,20'k
o2,a,5,o
r5,5,o,20'k
r6,5,0,10'kAsk Evaluate for expand(vo) with Rounding set to approx (full precision) in Settings. The answer is arranged differently from the book's, which is a matter of presentation rather than of arithmetic.
The answer is correct:
TR5's Exercise 4-14 (Cascade)
Open in app ↗Open in split view
Derive an expression for vo in terms of the inputs v1 and v2.

e1,3,0,v1
r1,3,4,10'k
o1,0,4,5
r2,4,5,40'k
r3,5,7,20'k
e2,6,0,v2
r4,6,7,10'k
r5,7,o,40'k
o2,0,7,oAsk Evaluate for expand(vo).
The answer is correct:
AS2's Example 5.10 (Cascade)
Open in app ↗Open in split view
If v1 = 1V and v2 = 2V, find vo in the circuit.

e1,1,0,1
e2,2,0,2
r2,1,3,2'k
r4,2,4,4'k
r6,3,a,6'k
r8,4,b,8'k
r5,a,c,5'k
r15,b,c,15'k
r10,c,o,10'k
oa,0,3,a
ob,0,4,b
oc,0,c,oThe answer, 8.667, is correct.
TR5's Example 4-17 (Cascade)
Open in app ↗Open in split view
Derive an expression for vo in terms of the inputs v1 and v2.

r1,5,0,r1
r2,5,a,r2
r3,a,6,r3
r4,6,o,r4
e1,3,0,v1
e2,4,0,v2
o1,3,5,a
o2,4,6,oThe answer you want is vo, in Results.
We get the right answer. Let's compare it with the book's answer.

Our answer, expanded via expand(vo), is shown below:
Playing with it by hand we get a form that, in my opinion, is prettier ;-) than the book's:
TR5's Example 4-18 (Multiple)
Open in app ↗Open in split view
Derive an expression for vo in terms of the inputs v1 and v2.

e2,a,0,v2
e1,f,0,v1
o2,a,c,b
o1,f,d,e
r1,b,c,r1
r2,c,d,r2
r3,d,e,r3To find vo, we ask Evaluate for vb-ve. We get an expression that can easily be rearranged to look like this:
This is exactly the answer from the book:

If you are ever in doubt whether two expressions are the same, subtract one from the other in Evaluate: if the answer is 0, they are the same.