An op amp integrator is an analog circuit that produces an output voltage proportional to the time-integral of the input voltage. In practical terms, if you feed it a constant DC voltage, the output ramps linearly up or down; if you feed it a square wave, the output is a triangle wave. The governing transfer function for the ideal inverting integrator is V_out = -(1/RC) ∫ V_in dt. While the math is elegant, the physical reality on the bench involves managing input bias currents, capacitor dielectric absorption, and DC drift. This guide covers how to select the right silicon, bias it correctly, and troubleshoot it when the output inevitably rails out.
Core Symbol, Pinout, and Operating Regions
The standard integrator uses the inverting configuration. The input signal passes through a resistor (R_in) into the inverting input, while a capacitor (C_f) bridges the inverting input and the output pin, forming the feedback loop.
Pin 1: Offset Null (usually NC)
Pin 2: Inverting Input (V- / Node A)
Pin 3: Non-Inverting Input (V+ / Node B)
Pin 4: Negative Supply (Vee)
Pin 5: Offset Null (usually NC)
Pin 6: Output (V_out)
Pin 7: Positive Supply (Vcc)
Pin 8: NC or Compensation
To keep the circuit stable, the non-inverting input (Pin 3) must have a DC path to ground, usually through a bias compensation resistor. Below is a breakdown of the three distinct operating regions you will observe on an oscilloscope when probing Pin 6.
| Region | Condition | Typical Voltages / Currents | Physical Behavior |
|---|---|---|---|
| Linear Integration | V_out within supply rails | V_out: -13V to +13V (on ±15V rails) I_in: µA to mA range | Capacitor charges/discharges linearly. Virtual ground at Pin 2 holds near 0V. |
| Saturation (Railed) | Integral exceeds supply limits | V_out: ~±13.5V (clipped) I_in: Drops to near zero | Output hits the internal transistor saturation limits. Integration stops; circuit acts as a comparator. |
| Reset / Discharge | Switch closed across C_f | V_out: 0V I_discharge: Spikes briefly | Feedback capacitor is shorted, dumping stored charge. Virtual ground is maintained. |
Selecting and Biasing the Right Op Amp
The single biggest enemy of an integrator is Input Bias Current (I_B). Even with the input grounded, a tiny DC current flows into or out of the op amp's input pins. In a standard amplifier, this causes a minor offset. In an integrator, this current continuously charges the feedback capacitor, causing the output to drift until it slams into the positive or negative supply rail.
Safe Default Part Numbers
Never use standard BJT-input op amps (like the LM741 or LM358) for precision integration unless you are actively resetting the capacitor. Choose JFET or CMOS input stages for ultra-low bias currents.
- TL072 (JFET Input): The workhorse for audio and general-purpose analog synths. Ratings: ±18V max supply, 3MHz GBP, I_B ≈ 5pA. Cost: ~$0.50.
- OPA140 (JFET Precision): Excellent for test equipment and low-distortion audio. Ratings: ±18V max supply, 11MHz GBP, I_B ≈ 1pA. Cost: ~$2.50.
- LMC6482 (CMOS Rail-to-Rail): Ideal for single-supply, low-voltage embedded systems (e.g., 5V ADC conditioning). Ratings: 15V max supply, 1.3MHz GBP, I_B ≈ 20fA. Cost: ~$1.80.
Biasing the Non-Inverting Pin
Pin 3 must never be left floating. To minimize DC offset errors caused by input bias current, place a compensation resistor (R_comp) between Pin 3 and ground. The ideal value for R_comp is the parallel equivalent of the resistances connected to Pin 2. For a basic integrator with a 10k R_in and a 1M DC feedback resistor, R_comp should be roughly 9.9kΩ (a standard 10kΩ is perfectly acceptable in 95% of hobbyist and pro-audio applications).
Practical Application: 1kHz Square-to-Triangle Converter
This circuit converts a 1kHz, ±5V square wave into a ±2.5V triangle wave. We assume a dual ±15V power supply for the op amp to provide adequate headroom.
C_f. These dielectrics exhibit severe voltage coefficient and dielectric absorption, which will warp your triangle waves into S-curves. Always use C0G/NP0 ceramic, polypropylene film, or polystyrene capacitors for the feedback loop.
Component Values
- U1: TL072 (or OPA140)
- R_in: 10 kΩ (1% metal film)
- C_f: 100 nF (C0G/NP0 or Polypropylene)
- R_f: 1 MΩ (Prevents DC drift; limits low-frequency gain to 100)
- R_comp: 10 kΩ
Build and Verify Steps
- Power Rails: Connect Pin 7 to +15V and Pin 4 to -15V. Place 100nF bypass capacitors from each power pin directly to the ground plane.
- Input Network: Connect your square wave signal generator output through the 10kΩ
R_into Pin 2. - Feedback Loop: Solder the 100nF
C_fand the 1MΩR_fin parallel between Pin 2 and Pin 6. Keep the physical lead length as short as possible to minimize stray capacitance. - Biasing: Connect the 10kΩ
R_compfrom Pin 3 to ground. - Verify: Apply a 1kHz, 0V-offset square wave (±5V peak). Probe Pin 6 with an oscilloscope. You should see a clean, linear triangle wave oscillating between +2.5V and -2.5V. If the waveform looks rounded at the peaks, your op amp's slew rate is bottlenecking (upgrade to an OPA140) or your capacitor has high ESR.
For deeper mathematical modeling of integrator phase margins and stability compensation, refer to the Texas Instruments Precision Op Amp Learning Hub or the classic integration tutorials on Electronics Tutorials.
Failure Modes and Bench Testing with a Multimeter
When an integrator fails, it almost always manifests as a "railed" output—the DC voltage at Pin 6 is stuck near +Vcc or -Vee. Here is how to isolate the fault using a standard digital multimeter (DMM).
Step 1: The Virtual Ground Test (Power On)
Set your DMM to DC millivolts. Connect the black probe to circuit ground and the red probe to Pin 2 (Inverting Input). In a functioning linear integrator, the op amp's negative feedback forces Pin 2 to act as a "virtual ground."
Pass: Reading is between -2mV and +2mV.
Fail: Reading is >10mV or matches the voltage at Pin 6. This means the feedback loop is broken, the op amp is saturated, or the IC is dead.
Step 2: The Feedback Capacitor Leakage Test (Power Off)
Turn off the power supply and wait 10 seconds for the capacitor to discharge through R_f. Set the DMM to resistance (Ω) mode. Place probes across C_f.
Pass: The meter will show a momentary low resistance as it charges the cap, then quickly climb to >10MΩ or "OL".
Fail: The meter reads a steady low resistance (e.g., <10kΩ). The capacitor is internally shorted or severely leaky. Desolder one leg and test again to rule out parallel circuit paths.
Step 3: Input Bias / Offset Check
If the output slowly drifts to a rail over 5–10 seconds with the input grounded, your input bias current is too high for the chosen RC time constant, or the op amp has suffered thermal damage altering its internal offset voltage. Swap the IC for a CMOS variant (like the LMC6482) or increase the value of R_f to provide a stronger DC restoring force.
Op Amp Integrator FAQ
Why does my op amp integrator output drift to the supply rail?
This is caused by the integration of DC errors. Every real op amp has an Input Offset Voltage (V_os) and Input Bias Current (I_b). The integrator mathematically integrates these tiny DC errors over time, continuously charging the feedback capacitor until the output hits the supply rail. To fix this, you must add a large resistor (R_f) in parallel with the capacitor. This turns the circuit into a "lossy integrator" (a low-pass filter) at very low frequencies, providing a DC feedback path that stabilizes the output operating point.
How do I calculate the feedback capacitor value for a specific time constant?
The time constant (τ) of an integrator is calculated as τ = R_in × C_f. If you need a specific integration slope, determine your desired τ. For example, if you want a time constant of 5 milliseconds (0.005s) and you have chosen a 50kΩ input resistor, the math is: C_f = τ / R_in = 0.005 / 50,000 = 0.0000001 Farads, which equals 100nF. Always calculate the nearest standard capacitor value and adjust R_in slightly if precision is required.
Can I use an LM358 for a precision audio integrator circuit?
No. The LM358 is a bipolar (BJT) input op amp with a relatively high input bias current (typically 20nA to 45nA). In an audio integrator, this high bias current will rapidly charge the feedback capacitor, causing severe DC drift and audible "thumps" when the circuit settles. Furthermore, the LM358 suffers from crossover distortion near 0V, which will introduce harsh harmonics into audio signals. Always use JFET (TL072) or CMOS op amps for audio integration.
What is the purpose of the large feedback resistor in parallel with the capacitor?
The parallel resistor (R_f) acts as a DC stabilization mechanism. An ideal capacitor has infinite impedance at 0Hz (DC). Without R_f, the op amp has infinite open-loop gain at DC, meaning any microscopic input offset voltage is amplified to infinity, instantly railing the output. R_f limits the maximum DC gain to -R_f / R_in, effectively turning the circuit into an inverting amplifier for DC signals while maintaining integrator behavior for AC signals above the cutoff frequency (f_c = 1 / (2π × R_f × C_f)).






