Operational amplifiers (OPAMPs) are high performance differential amplifiers in integrated form that can be used in many different ways. A typical OPAMP has a non-inverting input, an inverting input, two dc power pins, one output pin and a few other fine-tuning pins. On the following image you can see a typical diagram of an operational amplifier.
The basic OPAMP operation is simple. If the voltage applied to the inverting input is greater than the voltage applied to the non-inverting input then the output saturates to the negative supply voltage. In addition, if the voltage applied to the non-inverting input is greater than the voltage applied to the inverting input, then the output saturates at positive supply voltage.
This operation mode is limited and doesn’t give us the full idea behind OPAMP operation. The trick to make an OPAMP more useful is to provide negative feedback from the output to the inverting input. In the image below we see an OPAMP with negative feedback working as an inverting amplifier.
In this configuration a part of the output voltage is fed back to the inverting input and thus the gain of the OPAMP can be controlled and output isn’t saturating. The gain of such an amplifier is controlled by the two resistors Rf and Rin. The minus means that the output is inverted relative to input.
By adding more components on the feedback loop, different OPAMP circuits can be made, such voltage regulator circuits, current to voltage converters, oscillators, filters etc.
For more detail:Introduction to OPAMPs and Applications