Skip to content
/ Operational amplifier

Operational amplifier: basic circuits

An op-amp with negative feedback works in linear mode (ε = e+ − e− ≈ 0): the inverting amplifier has a gain of −R2/R1. Without feedback, it saturates at ±Vsat and acts as a comparator.

Circuit and source

Circuit diagram

Transient response

Click on a graph (curves or oscilloscope) to place cursors A and B, then drag them to move them.

Calculations

Export:

Sinusoidal steady state: Bode plot

How to do it

  1. Look at the inverting amplifier: input on Y1, output on Y2, gain −R2/R1 = −10.
  2. Change R1 or R2 and check the gain on the oscilloscope.
  3. Increase the generator amplitude: the output clips at ±15 V.
  4. Try the follower (example “Op-amp: voltage follower”) and build a non-inverting amplifier or a comparator.

Tips

  • An ideal op-amp's inputs draw no current: the junction rule at e− gives the gain directly.
  • The open-loop gain (100,000 by default) and the saturation voltage can be set by clicking the op-amp.
  • The Bode plot also works with an op-amp: active filters.

Frequently asked questions

Why is ε ≈ 0 in linear mode?

The open-loop gain is huge (10⁵ or more): for an output of a few volts, the differential voltage is only a few tens of microvolts.

What is the inverting amplifier formula?

v_out = −(R2/R1)·v_in, with R1 between the input and e−, R2 between e− and the output, and e+ grounded.

Is my data uploaded?

No, the simulation runs in your browser; the share link contains the circuit.