Operational Amplifier - The Op-Amp Building Block (2D)

A schematic op-amp with a live oscilloscope: inverting, non-inverting, summing and follower circuits, with finite gain, gain-bandwidth, slew rate and supply-rail clipping.

Live readouts

Numerical checks

  • running...
The science

The ideal rule. An op-amp amplifies the difference of its inputs, Vout = A (V+ − V−), with a huge open-loop gain A. With negative feedback the output moves until the difference is nearly zero, so V− ≈ V+ (the "virtual short"; in the inverting circuit the − input is a virtual ground) and no current enters the inputs. Solving the node equations gives: inverting G = −Rf/R1; non-inverting G = 1 + Rf/Rg; summing Vout = −Rf(V1/R1 + V2/R2); follower G = 1.

The real model used here. A single-pole amplifier A(s) = A0/(1 + s/ωp) with A0 = 2×105 and gain-bandwidth product GBW. The feedback network returns a fraction β of the output to the − input, so the closed-loop transfer function is H(jω) = α / (β + 1/A(jω)), which gives a DC gain error of about 1/(A0β) and a −3 dB bandwidth fc ≈ GBW · β: higher gain means less bandwidth. The time-domain trace integrates dVo/dt = ωp(A Vd − Vo) exactly for a held input over each small step, then applies the slew-rate limit |dVo/dt| ≤ SR (0.5 V/µs for a 741-class part) and the supply rails (output stops about 1.5 V short of ±Vcc). A sine of peak Vpk stays undistorted only up to the full-power bandwidth f = SR/(2πVpk).

Honest simplifications. No input offset, bias currents, noise, input/output resistance or common-mode limits; one pole only (no phase-margin or stability analysis, so a capacitive-load oscillation cannot occur here); the rail clip is a hard clamp with instant recovery (real parts can latch or recover slowly); resistors are ideal. The numerical checks listed under the controls compare the time-domain simulation with the exact complex formula above, with the slew limit and with the summing-amplifier DC formula.