Lecture 44: Nonlinear Op Amp Circuits, Op Amp Nonidealities I

Electronics I · · op amps, precision rectifier, logarithmic amplifier, offset

Contents

This typeset version was assembled by AI from my handwritten notes. The handwritten PDF is the original source. Video: Razavi Electronics 1, Lec 44.

Today’s lecture

  • Non-linear functions
  • Op amp nonidealities
Op amp with gain A_0: V_in1 at the + input, V_in2 at the - input, V_out = (A_0)(V_in1 - V_in2)

Source: opamp.tex

Review of lecture 43

  • Unity-gain buffer:
Unity-gain buffer: V_in at the + input, output tied to the - input, A_v = +1

Source: rugb.tex

  • Integrator
Integrator: V_in through R_1 into the - input, C_1 from the - input to V_out, + input grounded

Source: rinteg.tex

VoutVin≈−1R1C1s\frac{V_\mathrm{out}}{V_\mathrm{in}} \approx -\frac{1}{R_1C_1s}
  • Differentiator
Differentiator: V_in through C_1 into the - input, R_1 from the - input to V_out, + input grounded

Source: rdiff.tex

VoutVin≈−R1C1s\frac{V_\mathrm{out}}{V_\mathrm{in}} \approx -R_1C_1s

Linear functions

Precision rectifier

Simple rectifier:

Simple rectifier: V_in through diode D_1 to V_out, R_1 from V_out to ground

Source: simple.tex

V_out versus V_in of the simple rectifier: zero up to V_D,on (the blind zone), then slope 1; a small sine input inside the blind zone gives output = 0

Source: blind.tex

Precision rectifier: V_in at the + input of an op amp with A_0 high, the op amp output drives a diode (+V_D,on- from anode to cathode) to V_out, V_out is fed back to the - input and has a resistor to ground; both inputs differ by about 0.1 mV

Source: prec.tex

V_out versus V_in of the precision rectifier: zero for negative V_in (D_1 is off, V_out = 0), then a line through the origin; marks at +5 mV and 0.1 mV

Source: precplot.tex

Precision rectifier with the diode replaced by a battery V_D,on, + at the op amp output

Source: precon.tex

A sine wave in time becomes a half-wave rectified signal with only the positive humps

Source: halfwave.tex

We can find amplitude of a signal this way.

Logarithmic amplifier

V_out versus V_in: a logarithmic curve rising steeply and then flattening, compared with a dashed linear line

Source: logplot.tex

Amplifies small signals by large amount and does not amplify large signals as much.

Log amplifier: V_in through R_1 into the - input (virtual ground), npn Q_1 with collector at the - input, base grounded and emitter at V_out; collector current I_C1; A_0 high

Source: logamp.tex

Current thru R1≈VinR1=IC1=ISexp⁡(VBEVT)\text{Current thru } R_1 \approx \frac{V_\mathrm{in}}{R_1} = I_\mathrm{C1} = I_\mathrm{S}\exp\left(\frac{V_\mathrm{BE}}{V_\mathrm{T}}\right)VBE=−VoutV_\mathrm{BE} = -V_\mathrm{out}VinR1=ISexp⁡(−VoutVT)\frac{V_\mathrm{in}}{R_1} = I_\mathrm{S}\exp\left(\frac{-V_\mathrm{out}}{V_\mathrm{T}}\right)Vout=−VTln⁡(VinR1IS)\boxed{V_\mathrm{out} = -V_\mathrm{T}\ln\left(\frac{V_\mathrm{in}}{R_1I_\mathrm{S}}\right)}

If Vin<0V_\mathrm{in} < 0, output of op amp is not defined (meaning saturated).

Quiz

Log amplifier with a pnp Q_1: collector at the - input (virtual ground), base grounded, emitter at V_out; current +V_in/R_1 flows through R_1 into the node; I_C = I_S exp(V_EB/V_T) flows out of the collector; A_0 approximately infinite

Source: quiz.tex

VEB=VoutV_\mathrm{EB} = V_\mathrm{out}−VinR1=ISexp⁡(VoutVT)-\frac{V_\mathrm{in}}{R_1} = I_\mathrm{S}\exp\left(\frac{V_\mathrm{out}}{V_\mathrm{T}}\right)ln⁡(−VinR1)=ln⁡(IS)+VoutVT\ln\left(-\frac{V_\mathrm{in}}{R_1}\right) = \ln(I_\mathrm{S}) + \frac{V_\mathrm{out}}{V_\mathrm{T}}VTln⁡(−VinISR1)=Vout\boxed{V_\mathrm{T}\ln\left(\frac{-V_\mathrm{in}}{I_\mathrm{S}R_1}\right) = V_\mathrm{out}}

Vin<0\boxed{V_\mathrm{in} < 0} ⇒\Rightarrow otherwise, not defined.

Frontiers of electronics

Filters with op amps (741).

Op amp imperfections (nonidealities)

  • Finite gain
  • DC offsets
  • Input bias currents
  • Finite speed

DC offsets

An op amp and its input stage: two npn transistors feeding two pnp transistors with tied bases, drawn symmetric about a dashed line; mismatches between the two halves

Source: mismatch.tex

V_out versus V_in1 - V_in2: the ideal line passes through the origin with slope A_0; the real line is shifted right and crosses zero at V_OS, the offset voltage

Source: offplot.tex

Model an op amp with DC offsets.

Op amp with a voltage source V_OS in series with the + input, + side toward the op amp

Source: vosmodel.tex

Gaussian distribution of V_OS centred at zero, with marks at about plus and minus 2 mV

Source: gauss.tex

Observations:

  1. VOSV_\mathrm{OS} is random (Gaussian).
  2. VOSV_\mathrm{OS} can be placed in series with either input with either polarity.

Effect of offset on amplifiers

1. Noninverting amplifier

Noninverting amplifier with V_OS in series with V_in at the + input, R_2 from V_out to the - input, R_1 from the - input to ground

Source: offnoninv.tex

Vout=(Vin+VOS)⏟offset is also amplified!(1+R2R1)V_\mathrm{out} = \underbrace{(V_\mathrm{in} + V_\mathrm{OS})}_{\text{offset is also amplified!}}\left(1 + \frac{R_2}{R_1}\right)

2. Inverting amplifier

Inverting amplifier: V_in through R_1 into the - input, R_2 in feedback, V_OS from the + input to ground

Source: offinv.tex

(Analysis using superposition)

Vout=−R2R1Vin+VOS(1+R2R1)V_\mathrm{out} = -\frac{R_2}{R_1}V_\mathrm{in} + V_\mathrm{OS}\left(1 + \frac{R_2}{R_1}\right)

⇑\Uparrow offset is amplified by slightly greater factor.

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/razavi-electronics-1/lec44-nonlinear-op-amp-circuits-op-amp-nonidealities-i/