• Become a member
  • Log In
The Institution of Electronics
  • Home
  • About us
    • Our Objectives
    • Our History
    • Governance of the Institution
  • The Electron Magazine
    • 2024
      • 2024 – Winter
      • 2024 – Spring
      • 2024 – Summer
      • 2024 – Autumn
    • 2025
      • 2025 – Winter
      • 2025 – Spring
      • 2025 – Summer
      • 2025 – Autumn
    • 2026
      • 2026 – Winter
      • 2026 – Spring
  • Members
    • Membership Grades and Fees
    • Members’ Resources
      • The Electron Newsletter
      • The Archives
  • Education and Projects
    • National Electronics Competition
    • Student Members’ Projects
    • Arkwright Engineering Scholarships
  • News
  • Contact Us
  • Menu Menu
Uncategorised

Circuit makes square deal

A classic nonlinear analog function is the squaring circuit. It’s useful in power sensing, frequency multiplication, RMS computation, and many other odd jobs around the lab bench.

The version in Figure 1 is straightforward, fast, temperature-compensated, calibration-free, and if the transistors are well matched, accurate. The final output is as follows:

 Vout = R3 antilog(2log(Vin/R1) – log(Vgain/R2)) = R3 antilog(log((Vin/R1)2 /(Vgain/R2))
Vout = (R1-2 R2 R3)Vin2 /Vgain

Figure 1 The squaring amplifier that is fast, temperature-compensated, calibration-free, and accurate (if the transistors are well matched).

Wow the engineering world with your unique design: Design Ideas Submission Guide

Its input can accept either voltage or current. It gains a bit of extra versatility from a separate gain factor control input, which can also accept voltage or current. Another boost in versatility comes from a similarly flexible output with both voltage and (inverted) current output mode. If the current mode is chosen, A3 and R3 can be omitted and a dual op-amp (OPA2228) used instead of the quad (OPA4228) illustrated.

 The series connection of Q1 and Q2 generates a signal proportional to 2log(Vin/R1) = (log(Vin/R1)2). This is applied to antilogger Q3 ,which subtracts log(Vgain/R2) from it to generate a current of:

-(antilog(log((Vin/R1)2 /(Vgain/R2))

This is inverted and scaled by R3 and A3 to yield the final:

Vout = (R1-2 R2 R3)Vin2 / Vgain

 Note that if the three resistors are equal and Vin = Vgain, then:

Vout = (R-2 R R)Vin2 / Vin = Vin

And, the squarer circuit will have unity gain.

Which is kind of a “square deal,” although I doubt it’s what Teddy Roosevelt had in mind when he made that phrase his 1904 campaign slogan.

An interesting application happens when the squarer is combined with a full-wave precision rectifier (like the one in “New full-wave precision rectifier has versatile current mode output”). See Figure 2.

Figure 2 The cascading full-wave rectifier (black) with squarer makes low distortion frequency doubler (red).

 Stephen Woodward’s relationship with EDN’s DI column goes back quite a long way. Over 100 submissions have been accepted since his first contribution back in 1974.

Related Content

  • New full-wave precision rectifier has versatile current mode output
  • Simple diff-amp extension creates a square-law characteristic
  • Boost and modify square waves: More circuits
  • Precision Full Wave Rectifier Circuit

The post Circuit makes square deal appeared first on EDN.

30 October 2025
http://institutionofelectronics.ac.uk/wp-content/uploads/2022/12/IOE_LOGO.png 0 0 whdsolutions http://institutionofelectronics.ac.uk/wp-content/uploads/2022/12/IOE_LOGO.png whdsolutions2025-10-30 14:50:002025-10-30 14:50:00Circuit makes square deal

Latest news

  • Secrets of Oscilloscope Time Measurements14 August 2026 - 13:44
  • Radon: Level detection, risk determination, and as-needed mitigation13 August 2026 - 13:16
  • TI a first mover in CAN XL transceivers13 August 2026 - 10:13
  • Four-channel USB-UART IC boosts server management13 August 2026 - 05:08
  • eFuse speeds overcurrent detection13 August 2026 - 05:08
  • Memory platform tackles AI bottlenecks13 August 2026 - 05:08
  • 6.5-kV SiC MOSFET reaches 8-kV blocking13 August 2026 - 05:08
  • Made by Google 2026: This limited silicon-supply situation really sucks13 August 2026 - 05:08
  • Cheap and cheerful LMC555 RC PWM pulse generator12 August 2026 - 13:56
  • Record high wafer shipments. Can fabs keep pace?12 August 2026 - 07:51
IOE LOGO 2

Become a member

click here

Become a member

click here

Become a subscriber

click here

Become a sponsor

click here

© Copyright - The Institution of Electronics | Website by WHD Solutions
  • Link to LinkedIn
  • Link to Facebook
  • Link to X
Link to: How help are free AI tools for electronic design? Link to: How help are free AI tools for electronic design? How help are free AI tools for electronic design? Link to: RISC-V Summit spurs new round of automotive support Link to: RISC-V Summit spurs new round of automotive support RISC-V Summit spurs new round of automotive support
Scroll to top Scroll to top Scroll to top