To learn about operational amplifier or op amp , that is designed with certain characteristics (high input resistance, low output resistance, and a large differential gain) that make it a nearly ideal amplifier and useful building-block in many circuit applications. OP AMP is almost like an ideal amplifier.
Falstad Links for the Voltage-comparator-Using-op-Amp
Inverting sin wave :
NON- Inverting sin wave :
https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAXKQUgoFMBaMMAKADcRjCQUFuvwYFFHCdaSWpOgIWAc07de-brgAsIyCwDu4YsLR5d+vlBYBDI5ezZuYPZ3BImSMPHghV0PIUKQSqyDA8a0hVYU9vQhQwBGxg4hjIMmQ3bRBrW3sMnhNNACdLJXSbHO5aNDgWAoEiu2MylM0dAWZhOsFhJstW7owylgB5YszwuG7TAHsRQnVaAOJDNChYeDJCPl4RYWJTIA
Inverting triangular wave :
NON - Inverting triangular wave :