Op-Amp Calculus Circuits: Voltage Area and Slope

Op-Amp Calculus Circuits use a resistor, a capacitor, and negative feedback to connect an output voltage to either the accumulated area or the instantaneous slope of an input voltage. These dynamic op-amp circuits appear in signal conditioning and waveform generation. To predict their outputs, track the capacitor current, the inversion of the circuit, and any initial stored charge.

Capacitor current sets the operation

For a capacitor, define its voltage from the terminal where current enters to the terminal where current leaves. With this passive sign convention,


iC=CdvCdt.i_C=C\frac{dv_C}{dt}.


Assume an ideal op amp operating with negative feedback, with its non-inverting input grounded. The inverting input is then at approximately zero volts, and neither input draws current. Consequently, the current arriving through the input component leaves through the feedback component.


Two ideal op amp circuits show a resistor input with capacitor feedback and a capacitor input with resistor feedback.


The placement of the capacitor determines which voltage is differentiated in the current equation. Use these relationships only while the output remains within the circuit's linear operating range.

Resistor input: integration

An integrator produces an output change proportional to the signed time integral of its input. Put the resistor at the input and the capacitor in feedback. Current conservation gives


vinR=Cd(0−vo)dt=−Cdvodt.\frac{v_{\text{in}}}{R} =C\frac{d(0-v_o)}{dt} =-C\frac{dv_o}{dt}.


Therefore,


dvodt=−vinRC,vo(t)=vo(t0)−1RC∫t0tvin(τ) dτ.\frac{dv_o}{dt}=-\frac{v_{\text{in}}}{RC}, \qquad v_o(t)=v_o(t_0)-\frac{1}{RC}\int_{t_0}^{t}v_{\text{in}}(\tau)\,d\tau.


A positive input makes the output fall; a negative input makes it rise. A constant input produces a straight output ramp because the output slope is constant. When the input changes between constant levels, calculate each ramp separately and carry the ending output into the next interval.


The product RCRC has units of seconds. Input area has units of volt-seconds, so dividing by RCRC gives an output change in volts. For a constant input lasting Δt\Delta t,


Δvo=−vinΔtRC.\Delta v_o=-\frac{v_{\text{in}}\Delta t}{RC}.




Capacitor input: differentiation

A differentiator produces an output proportional to the instantaneous rate of change of its input. Put the capacitor at the input and the resistor in feedback. The input current is now


iC=Cd(vin−0)dt.i_C=C\frac{d(v_{\text{in}}-0)}{dt}.


That current passes through the feedback resistor, giving


vo=−RiC=−RCdvindt.v_o=-Ri_C=-RC\frac{dv_{\text{in}}}{dt}.


A constant input produces zero output after any switching transient. A rising ramp produces a negative constant output; a falling ramp produces a positive constant output. The input slope has units of volts per second, so multiplication by RCRC again gives volts.


For the following comparison, take t0=0t_0=0 and define Δvo=vo(t)−vo(0)\Delta v_o=v_o(t)-v_o(0) for the integrator.


Input voltage

Integrator output change

Differentiator output

Constant kk

−kt/(RC)-kt/(RC)

00

Ramp atat

−at2/(2RC)-at^2/(2RC)

−RCa-RCa

Sine Asin⁡(ωt)A\sin(\omega t)

A[cos⁡(ωt)−1]/(ωRC)A[\cos(\omega t)-1]/(\omega RC)

−ωRCAcos⁡(ωt)-\omega RCA\cos(\omega t)


For sinusoidal signals, ω\omega is angular frequency in radians per second. If frequency is supplied in hertz, first use ω=2πf\omega=2\pi f. Differentiation changes both amplitude and waveform phase; keeping the original sine after differentiating loses that phase change.


An ideal differentiator assigns an unbounded response to an instantaneous input step. Apply its ordinary slope formula on smooth intervals rather than inventing a finite output at the discontinuity.

What to remember

  • Resistor input and capacitor feedback give dvo/dt=−vin/(RC)dv_o/dt=-v_{\text{in}}/(RC).
  • Capacitor input and resistor feedback give vo=−RC dvin/dtv_o=-RC\,dv_{\text{in}}/dt.
  • Integration requires an initial output and signed input area.
  • Convert all time quantities consistently before calculating.

Example: Tracking a Two-Stage Signal Conditioner

A signal-conditioning module uses an ideal inverting integrator followed by an ideal inverting differentiator. Both non-inverting inputs are grounded. The integrator has an input resistor of 20.0 kΩ20.0\ \text{k}\Omega and a feedback capacitor of 0.500 μF0.500\ \mu\text{F}. Its output is initially v1(0)=+0.400 Vv_1(0)=+0.400\ \text{V}. The differentiator has an input capacitor of 40.0 nF40.0\ \text{nF} and a feedback resistor of 50.0 kΩ50.0\ \text{k}\Omega. Assume both stages remain in their linear ranges.


The module input is +0.300 V+0.300\ \text{V} for the first 8.00 ms8.00\ \text{ms}, then −0.200 V-0.200\ \text{V} for the next 12.0 ms12.0\ \text{ms}.


An input signal passes through an inverting integrator followed by an inverting differentiator.


a) Find the integrator's output slope during the first interval and its output at 8.00 ms8.00\ \text{ms}.


First calculate the integrator's resistor–capacitor product. A constant positive input gives a constant ________ output slope:


τi=RiCi=(20.0×103)(0.500×10−6)=0.0100 s,\tau_i=R_iC_i=(20.0\times10^3)(0.500\times10^{-6})=0.0100\ \text{s},


dv1dt=−0.3000.0100=−30.0 V/s.\frac{dv_1}{dt}=-\frac{0.300}{0.0100}=-30.0\ \text{V/s}.


Convert the interval to seconds and multiply the slope by its duration:


Δv1=(−30.0)(0.00800)=−0.240 V.\Delta v_1=(-30.0)(0.00800)=-0.240\ \text{V}.


Include the initial output:


v1(8.00 ms)=0.400−0.240=+0.160 V.v_1(8.00\ \text{ms})=0.400-0.240=+0.160\ \text{V}.


The output falls at 30.0 V/s30.0\ \text{V/s} and reaches +0.160 V+0.160\ \text{V}.


b) Find the integrator output at 20.0 ms20.0\ \text{ms} and explain its relationship to the initial output.


The second interval lasts 12.0 ms12.0\ \text{ms}, rather than 20.0 ms20.0\ \text{ms}. Its negative input makes the output ________. Begin from the voltage found at the end of the first interval:


dv1dt=−−0.2000.0100=+20.0 V/s,\frac{dv_1}{dt}=-\frac{-0.200}{0.0100}=+20.0\ \text{V/s},


Δv1=(20.0)(0.0120)=+0.240 V,\Delta v_1=(20.0)(0.0120)=+0.240\ \text{V},


v1(20.0 ms)=0.160+0.240=+0.400 V.v_1(20.0\ \text{ms})=0.160+0.240=+0.400\ \text{V}.


The signed input areas ________:


(0.300)(0.00800)+(−0.200)(0.0120)=0.00240−0.00240=0 V⋅s.(0.300)(0.00800)+(-0.200)(0.0120) =0.00240-0.00240=0\ \text{V}\cdot\text{s}.


Consequently, the total output change is zero and the integrator returns to its initial +0.400 V+0.400\ \text{V}, not necessarily to zero volts.


c) Find the differentiator output v2v_2 during each interval, excluding the switching instants.


The differentiator receives v1v_1, so use the slopes of the integrator output. Do not differentiate the original piecewise constant input instead.


τd=RdCd=(50.0×103)(40.0×10−9)=0.00200 s.\tau_d=R_dC_d=(50.0\times10^3)(40.0\times10^{-9})=0.00200\ \text{s}.


During the first interval, v1v_1 ________ at 30.0 V/s30.0\ \text{V/s}:


v2=−τddv1dt=−(0.00200)(−30.0)=+0.0600 V.v_2=-\tau_d\frac{dv_1}{dt}=-(0.00200)(-30.0)=+0.0600\ \text{V}.


During the second interval, v1v_1 ________ at 20.0 V/s20.0\ \text{V/s}:


v2=−(0.00200)(20.0)=−0.0400 V.v_2=-(0.00200)(20.0)=-0.0400\ \text{V}.


As a check, the two inversions give an overall ________ factor τd/τi=0.200\tau_d/\tau_i=0.200. Multiplying the original input levels by this factor gives the same results: +0.0600 V+0.0600\ \text{V} and −0.0400 V-0.0400\ \text{V}.

An ideal op amp has the circuit shown, with R=40.0 kΩR=40.0\ \text{k}\Omega and C=100 nFC=100\ \text{nF}. Its output initially equals 0 V0\ \text{V}. A constant input of −0.200 V-0.200\ \text{V} is then applied. While the op amp remains in its linear range, how does the output behave?


An ideal op amp has an input resistor R, a feedback capacitor C, and a grounded non-inverting input.


Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

In an ideal inverting integrator, the sits in the op-amp's feedback path, so even a small constant input offset makes the output ramp until the op-amp saturates. A practical integrator therefore places a large resistor RFR_F in with that feedback component, which limits the gain at zero frequency to −RF/R-R_F/R.


In an ideal differentiator, the gain magnitude ωRC\omega RC keeps growing as frequency rises, so high-frequency is strongly amplified. A practical differentiator adds a small resistor in with the input capacitor to cap that gain.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An ideal inverting integrator has an input resistor of 25.0 kΩ25.0\ \text{k}\Omega, a feedback capacitor of 0.800 μF0.800\ \mu\text{F}, and a grounded non-inverting input. At t=0t=0, its output is +1.10 V+1.10\ \text{V}. A constant input of +0.600 V+0.600\ \text{V} is applied for 12.0 ms12.0\ \text{ms}. Assume linear operation throughout. Find the output at the end of this interval, in volts to two decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice