Logo
Contact Us
Cookies Policy
Terms of Use
Privacy Policy
phone
Vivi (Sales)
phone
Lucy (Sales)
phone
Ban (Sales)
phone
+86 755-2845-3125
RFQ List
  • open navigation menu
    • Logo
    • RFQ List
      • Manufacturers
      • Hot Products
      • RFQ
      • Blog
      • Tools
      • Sourcing Solutions
      • PCB/SMT
      • About Us
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    Certification badge
    CONTACT US
    +86 755-2845-3125
    [email protected][email protected][email protected]
    Room 2709B, 5A Office Building, Longguang Jiuzuan, Hongshan, Longhua District, Shenzhen, China
    Company
    • Blog
    • About Us
    • Contact Us
    Resources
    • Categories
    • Manufacturers
    • Tools
    • RFQ
    Quick link
    • Privacy Policy
    • Terms of Use
    • Cookies Policy
    • Refund & Return Policy
    • Shipping & Delivery Policy
    Payment
    • Payment method
    • Payment method
    • Payment method
    • Payment method
    Logistics
    • Logistics partner
    • Logistics partner
    • Logistics partner
    • Logistics partner

    © 2026 Copyright. All Rights Reserved. Made by ICAllIn

    Part number
    Part number
    1. Home/
    2. Blog Home/
    3. PCB Solution/
    4. Op-Amp Math Circuits: Four Topologies and Their Limits
    PCB Solution2026-10-27

    Op-Amp Math Circuits: Four Topologies and Their Limits

    Op-Amp Math Circuits: Sum, Difference, Integration and Differentiation

    Author: Vivi Peng | Published for icallin.com | Updated: October 27, 2026

    Op-amp math circuits use resistors and capacitors around an operational amplifier to combine voltages, extract a difference, accumulate a signal over time or respond to its rate of change. The external feedback network determines the mathematical operation. The usable result also depends on the amplifier remaining linear and stable within the intended signal range.

    These four configurations are useful in mixers, measurement interfaces, waveform circuits and control loops. Understanding their equations is the starting point; understanding where those equations stop applying is what makes them useful on a PCB.

    Begin with the feedback assumptions

    For the following equations, assume an ideal amplifier under negative feedback, negligible input current and sufficient loop gain for the two input voltages to be nearly equal. Ground is the signal reference unless otherwise stated. These assumptions fail when an input exceeds the permitted common-mode range, the output clips, or the loop becomes unstable.

    An inverting input held close to ground by feedback is a virtual ground. It is not a physical ground connection and cannot be treated as a general-purpose return node. The resistor currents meet there, while the amplifier output moves to satisfy the feedback relationship.

    Add signals with an inverting summer

    For a summing amplifier, connect each input voltage through its own resistor to the inverting node, place Rf between output and that node, and connect the non-inverting input to the reference. With ground as the reference:

    Vout = -Rf × (V1/R1 + V2/R2 + ... + Vn/Rn)

    Each input has an independently selected weight of -Rf/Rn. Equal input resistors produce equally weighted contributions, but a unity-weight negative sum requires the feedback resistor to equal those resistors as well. Equal input resistors alone do not establish unity weighting.

    TI's inverting summer design also identifies source impedance as a design condition. Resistance in a signal source adds to its input path and changes the intended weight. Allocate output range for the largest combined signal, including simultaneous peaks; testing each channel separately can miss clipping when channels are combined.

    Measure a difference with matched ratios

    A four-resistor difference amplifier uses both inputs while retaining negative feedback. Define R1 from V1 to the inverting input, R2 as feedback, R3 from V2 to the non-inverting input, and R4 from that input to ground. If:

    R2/R1 = R4/R3 = k

    then the ideal result is:

    Vout = k × (V2 - V1)

    The output here is a single voltage representing the difference. A conventional op-amp does not need open-loop operation to perform subtraction. TI's difference amplifier design demonstrates the closed-loop circuit and its resistor-network constraints.

    Ratio mismatch allows a voltage shared by both inputs to appear at the output. Resistor ratio matching requires checking tolerance and temperature tracking rather than selecting resistors only by nominal resistance. Source impedance contributes to the effective ratios too. Analog Devices' difference amplifier analysis further shows why unequal filtering and PCB parasitics can degrade rejection as frequency increases. Adding a capacitor on one side alone can change the subtraction accuracy.

    Integrate within a defined frequency band

    Replace the summer's feedback resistor with a capacitor C and use one input resistor R. The ideal inverting op-amp integrator, including its starting output as explained in Microchip's integrator tutorial, follows:

    Vout(t) = Vout(t0) - (1/RC) × integral[Vin(t) dt, from t0 to t]

    A positive constant input creates a falling output ramp. Alternating positive and negative input levels produce opposite slopes, which explains the familiar square-to-triangle conversion. The initial capacitor voltage establishes the starting output.

    Small DC errors accumulate as well. Offset voltage, bias current and any DC component in the signal can eventually drive the output into saturation. A resistor Rf in parallel with C supplies a DC feedback path. For this practical circuit:

    H(s) = -(Rf/R) / (1 + sRfC)

    Integration is approached when the signal frequency is well above 1/(2πRfC), while remaining within the amplifier's useful loop bandwidth. Below that corner, the circuit approaches a finite-gain inverting amplifier. TI's integrator design guidance explains this lower-frequency limit and the alternative of providing DC feedback through a larger servo loop.

    illustration

    Figure 1. Four mathematical operations produced by feedback networks. Integration and differentiation apply over designed frequency bands; their polarity follows the inverting implementations described here.

    Differentiate without extending gain indefinitely

    An ideal op-amp differentiator places capacitor C in the input path and resistor Rf in feedback:

    Vout(t) = -RfC × dVin(t)/dt

    Output depends on slope. A rising ramp creates a negative output level; a falling ramp produces a positive one. Rapid changes produce larger responses, which can make differentiation useful for detecting transitions or measuring a rate of change.

    That rising response also emphasizes high-frequency noise. A practical implementation adds an input series resistor, a feedback capacitor, or both to limit the response and obtain stability. TI's differentiator circuit makes clear that the ideal network needs modification and that the added components restrict its differentiation band. Choose that band from the signal you want to measure, then verify loop behavior with the selected amplifier and load.

    Preserve the operation in the PCB layout

    OperationMain accuracy conditionUseful validation
    SumCorrect input-to-feedback ratiosApply inputs separately, then together
    DifferenceMatched ratios and valid input rangeApply equal inputs and inspect residual output
    IntegrateDefined DC behavior and integration bandCheck drift and ramp slope
    DifferentiateLimited bandwidth and stable feedbackCheck response to ramps and added noise

    Table 1. Accuracy and validation priorities for the four feedback operations described above.

    For op-amp math circuits, keep feedback components close to the amplifier and keep fast digital activity away from sensitive input nodes. Check bypassing and return paths against the device's layout guidance. Capacitor leakage and dielectric behavior matter when charge storage determines the operation, while resistor and capacitor tolerances set gain or time-constant error.

    Dual supplies are convenient for signals centered on ground, but they are not mandatory. A single-supply implementation can use a suitable reference with input and output ranges translated around it. Analog Devices' single-supply and rail-to-rail tutorial explains why actual input range and output headroom still need checking. Include worst-case amplitude, frequency, slew rate and load in the validation. The circuit-model sanity checks help review a simulated response before comparing it with hardware.

    Frequently Asked Questions

    Why does an integrator output drift with no intended input?

    DC errors still charge the feedback capacitor. Provide a DC feedback or reset mechanism appropriate to the application, and check amplifier offset, input bias current and capacitor leakage.

    Is a difference amplifier automatically an instrumentation amplifier?

    No. A four-resistor subtractor has input loading set by its resistor network. Instrumentation amplifier architectures provide additional input and gain behavior that must be assessed separately.

    Conclusion

    Useful op-amp math circuits combine the intended equation with a defined operating range. Choose the resistor ratios and frequency band, preserve a stable feedback path, and check output headroom and loading before accepting the result.

    Written by Vivi Peng for icallin.com.

    Need help with PCB manufacturing or PCBA assembly?

    Submit the PCB manufacturing or PCBA assembly requirements for your analog circuit through icallin's quotation page.

    Submit Your PCB/SMT Requirements

    Vivi Peng
    Vivi Peng
    Facebook
    LinkedIn
    Reddit

    Related Blogs

    View All Blogs
    Daughter Board Design: Interfaces, Power and Mechanics
    PCB Solution
    2026-10-27

    Daughter Board Design: Interfaces, Power and Mechanics

    Plan daughter board design for reuse and repair. Check connector pinouts, power budgets, return paths, stack height, and assembly and service documentation.

    Read More
    Popular Blogs
    PCB Solution
    PCB Solution2026-06-24

    PCB Market Outlook 2026-2027

    PCB Solution
    PCB Solution2026-06-24

    PCB Price Shock

    PCB Solution
    1
    Flux PCB Workflow: From Brief to Manufacturing Files
    PCB Solution
    2026-10-27

    Flux PCB Workflow: From Brief to Manufacturing Files

    Build a Flux PCB workflow around clear requirements, component and schematic checks, controlled routing, and reviewed Gerber, BOM, and placement exports.

    Read More
    2
    PCB Design Verification: Checks and Release Evidence
    PCB Solution
    2026-10-27

    PCB Design Verification: Checks and Release Evidence

    Build PCB design verification around ERC, footprint checks, DRC and DFM. Inspect exported fabrication files and record the evidence needed for release.

    Read More
    1
    PCB Power Net Routing: Copper, Vias and IR Drop Checks
    PCB Solution
    2026-10-27

    PCB Power Net Routing: Copper, Vias and IR Drop Checks

    Improve PCB power net routing by checking copper neck-downs, via transitions and IR drop. Connect current paths, decoupling layout and fabrication notes.

    Read More
    1
    Breakout Boards: Pin Access, Wiring and Prototype Checks
    PCB Solution
    2026-10-27

    Breakout Boards: Pin Access, Wiring and Prototype Checks

    Learn how breakout boards expose component pins, what regulators and level shifters change, and how to verify wiring before connecting a microcontroller.

    Read More
    2
    PCB Schematic Documentation: Clarity and Review Steps
    PCB Solution
    2026-10-27

    PCB Schematic Documentation: Clarity and Review Steps

    Improve PCB schematic documentation with functional blocks, clear labels and component data. Build a readable review copy and preserve design intent.

    Read More
    4
    PCB Solution2026-06-24

    PCB Capacity Expansion

    PCB Solution
    PCB Solution2026-06-24

    PCB Allocation Market

    PCB Solution
    PCB Solution2026-08-31

    Finished PCB Thickness

    PCB Solution
    PCB Solution2026-08-24

    Common PCB Thicknesses

    Hot Products
    TMS320F28334ZJZS

    TMS320F28334ZJZS

    Texas Instruments

    MT48LC4M32B2P-6A IT:L

    MT48LC4M32B2P-6A IT:L

    Micron

    PCI1003

    PCI1003

    Microchip

    SBAV99LT1G

    SBAV99LT1G

    Onsemi

    MTFC8GAKAJCN-4M IT

    MTFC8GAKAJCN-4M IT

    Micron

    GD32F407ZGT6

    GD32F407ZGT6

    GD

    Need Reliable IC Sourcing?

    We help buyers reduce risk, save time, and secure available stock.

    1. We inspect parts before shipment to help reduce quality risk.
    2. We verify supplier sources to support safer component purchasing.
    3. We provide traceability support when available, including labels, date codes, and origin information.
    4. We check packaging condition to help avoid handling, storage, or delivery issues.
    5. We support global shipping to help buyers receive parts across regions.
    6. We respond quickly to BOMs, part numbers, stock checks, and urgent RFQs.
    7. We provide clear quotations with price, stock, lead time, and key purchase details.
    8. We help you source available stock and select discounted parts to reduce procurement costs.
    Submit RFQ or BOM List

    Fast quote for global buyers