2. The only function of the second operational amplifier is probably shaping. Because the first-stage amplifier circuit has low-pass filtering, the original PWM rectangular wave is turned into an approximate sawtooth wave, so the open-loop amplifier circuit is used for once shaping and restoring the rectangular wave.
3. The triode at the back forms an emitter follower circuit to amplify the current.