Part III: Analog Electronics | Chapter 8

Operational Amplifiers

The ideal op-amp, golden rules, inverting and non-inverting configurations, summing and difference amplifiers, integrators, and differentiators

1. The Ideal Op-Amp

An operational amplifier is a differential-input, single-output voltage amplifier with very high open-loop gain \( A_{OL} \). The ideal op-amp has three defining properties:

Infinite Open-Loop Gain
\( A_{OL} \to \infty \)
Real: 10⁡–10⁢ V/V
Infinite Input Impedance
\( Z_{in} \to \infty \)
Real: 10⁢–10ΒΉΒ² Ξ©
Zero Output Impedance
\( Z_{out} = 0 \)
Real: ~75 Ξ©

The output is: \( V_{out} = A_{OL}(V^+ - V^-) \). With \( A_{OL} \to \infty \), even a microvolt difference drives the output to the supply rail β€” so op-amps are always used with negative feedback.

2. The Golden Rules of Op-Amp Analysis

When an op-amp is operating in its linear region with negative feedback, two rules simplify analysis:

Rule 1: Virtual Short

The differential input voltage is zero: \( V^+ = V^- \). Feedback forces the inverting input to track the non-inverting input.

Rule 2: No Input Current

Zero current flows into either input: \( I^+ = I^- = 0 \). Follows from infinite input impedance.

These two rules are sufficient to analyze virtually any linear op-amp circuit without knowing the internal architecture. They hold as long as the output is not saturated.

3. Inverting Amplifier

+βˆ’A_OLR_inV_inR_fV_outV_out = -(Rf/Rin) V_inVirtual ground at V⁻ | Input current = V_in / R_in
Inverting amplifier: feedback resistor R_f connects output back to inverting input

Applying the golden rules: \( V^- = V^+ = 0 \) (virtual ground), so\( I_{in} = V_{in}/R_{in} \). Since no current enters the op-amp input, this same current flows through \( R_f \):

\[ V_{out} = -\frac{R_f}{R_{in}} V_{in} \]

The gain magnitude is \( |A_v| = R_f/R_{in} \), set entirely by the ratio of two resistors β€” independent of the op-amp's open-loop gain (as long as it is large).

4. Standard Op-Amp Configurations

Non-Inverting Amplifier
\( V_{out} = \left(1 + \dfrac{R_f}{R_1}\right) V_{in} \)
No phase inversion; input impedance is ideally infinite
Voltage Follower (Buffer)
\( V_{out} = V_{in} \)
Non-inverting with R_f = 0, R_1 = ∞; unity gain, maximum bandwidth
Summing Amplifier
\( V_{out} = -R_f\!\left(\frac{V_1}{R_1}+\frac{V_2}{R_2}+\cdots\right) \)
Weighted sum of multiple inputs β€” basis of DAC circuits
Integrator
\( V_{out} = -\dfrac{1}{RC}\int V_{in}\,dt \)
Replace R_f with capacitor C; differentiator swaps R and C

5. Python: Op-Amp Circuit Simulations

Simulate: (1) non-inverting amplifier closed-loop gain vs frequency, (2) integrator step response with saturation, and (3) three-input summing amplifier combining 200 Hz, 800 Hz, and 1600 Hz signals.

Python
script.py102 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server