Op-amp inverter followed by buffer. Why?
You are right. In most cases this is silly, adds offset voltage, and uses another part. Most likely this is just someone's knee jerk reaction, or blindly following a rule of "always buffer the signal" without thinking about it too hard. Not all schematics out there are the result of good design.
There are some subtle advantages to the second buffer-only opamp:
- The feedback current thru R2 eats into the total output current capability of OA1. OA2 has all of its current capability available to drive the output.
In this case with R2 being 10 kΩ, this is a weak argument since the feedback current is so small relative to the capability of most opamps. Sometimes a circuit like this happens because R2 was much lower before, and the second opamp wasn't removed after a design change that raised R2.
- OA2 protects the input signal from abuse of the output signal. Vin sees the fixed impedance of R1 only as long as OA1 is acting in closed loop operation. If something loads Vout so that OA1 can't drive it to the desired voltage, then the negative input of OA1 is no longer at 0 V, and the Thevenin equivalent that Vin is driving changes.
In this circuit, the output of OA2 can be abused without affecting the output of OA1, which in turn won't affect Vin, maybe. The reason I say "maybe" is that some opamps have back to back diodes between their inputs. I didn't look up your opamp, so I don't know whether that is the case here. If so, then abuse of Vout will get back to the positive input of OA2, which will get back to Vin.
This is again a weak argument since loading a opamp output to the point where it can't drive to the desired voltage is generally running the opamp out of spec.
It doesn't have much effect on the performance, except to make it somewhat slower because there are two poles in the transfer function.
Chances are the designer only needed the one op-amp in the dual and chose to do something benign with the remaining amplifier to keep it out of trouble. This is a common situation with LM324 quad and LM358 dual amplifiers.
There is no common inexpensive equivalent of the LM358 that has a single amplifier- any other parts tend to be more expensive and/or may be limited in some way (such as having lower maximum supply voltage) so if an LM358 is good enough then you may as well use it and waste the 2nd amplifier.
The "buffer" is just there to, as the name implies, "buffer" the output.
Since OA1 is part of a feedback network, some of it's output is used already (lost through R2 and R1.) Which means OA1 has less drive capability. So if you were to connect OA1 to some other part of a circuit, unintended things could happen. OA2 simply "follows" or "buffers" the output of OA1, and it has zero output loading, so has full drive capability. This "buffering" is commonly seen and used, and makes the operation of the circuit more robust and reliable.
Also, buffers matter in terms of delay. In both digital and analog circuit design, high-speed signals can be significantly delayed by circuit elements. Sometimes, multiple buffers are used - seemingly with no purpose - except to introduce a delay. This is usually done so that two signals "meet up again" in the time domain.