The second circuit is actually really boring once you recognize the parts. From left-to-right, it's:
1. A voltage to current converter
2. An optocoupler
3. A buffer
4. An amplifier
Stage #1 drives the optocoupler, since current is what gets turned into light inside the optocoupler.
The output is high-impedance, so you add a buffer, which is #3.
The output has a low-level, so you amplify it, which is #4.
If you work through a chapter of an EE book that explains op amps, and you're not afraid of algebra, you'll find this stuff becomes approachable very quickly. Designing circuits like this is a bit more challenging, but reading them is very approachable.
The concept of an optocoupler is just beautiful - isolate the circuits from each other by transferring your signal using light!
Looking at the diagrams here of how to increase the bandwidth through the device, electronics is all still total voodoo to me.