An OPAMP has two inputs and one output, and two power supply connectors. The component is designed to maintain the same voltage at its inputs because of which it can amplify the signal. It requires a bipolar power supply (dual rail PSU), for example with +15V and -15V rails. It is usually drawn without the power inputs.
It is important to note that the OPAMP cannot amplify to a voltage higher than the supply voltage used, which means the output voltage is limited in both directions. If the maximum is reached, the amplifier will distort.
One of the basic operational amplifier circuits is the inverting amplifier. Because the non-inverting leg is connected to ground (0V), the component is trying to establish 0V on the inverting leg, as well. There are two resistors in the circuit that form a voltage divider, and their ratio is the gain. The R2 resistor is the feedback.
Another basic circuit is the non-inverting amplifier, which is almost identical to the inverting. The amplified output voltage is not opposite to the input voltage anymore, and its formula is also slightly different.
The inverting circuit is the basis for the summing circuit. It is suitable for digital-to-analog conversion (DACs) using the outputs of a microcontroller with the right ratio of resistors, and many other applications, as well.
There is a basic circuit for the subtraction operation, too. The formula can be greatly simplified if the value of the R3 resistor is equal to the value of R1 and the value of the R4 is equal to the value of R2, the feedback.
The comparator circuit can compare two input signals, which is the basis for the operation of the class D amplifier and the SAR type ADC. Depending on the relation of the inputs, the output voltage will be one of the supply voltages. Its applications build on this idea of detecting if a threshold was crossed.
The circuit without a resistor on the feedback follows the input voltage at the output, so the input and output voltages are the same. This may not seem useful at first, but it is an essential element in circuits where a load has to connect to a voltage divider. Since the OPAMP inputs have huge resistance and so its inputs do not actually carry any current, they convey information rather than power. The load is able to have the same voltage as the input and the power is supplied through the OPAMP's power supply connections.