This is the first part of a series of posts that show an analysis of practical circuits that use an operational amplifier (op-amp).
Post about the working principle of operational amplifier.Click here
In this post, op-amps will be considered as ideals.
Circuits with op-amp
Inverter amplifier
Considering the op-amp circuit below.

This is the equivalent circuit.

In an ideal op-amp, input impedance is infinite and output impedance is zero. Therefore, the equivalent circuit is,

Applying the superposition theorem to find v1 voltage. Considering AvVi as zero.
And Vi as zero.
Usually, is much higher than 1 and is much higher than , therefore the equation becomes,
The relation between output voltage and resistors.
This is the inverter amplifier output voltage equation.
Non-inverter amplifier

Using the voltage division equation, this result is reached.
Voltage buffer

On a voltage buffer or unity amplifier, voltage output is equal to voltage input.
Amplifier adder

The equation is the sum of many inverters amplifiers.
Consider the circuit example below, which is an adder amplifier with commercial resistors, let’s calculate output voltage Vo.

Applying the equation.
The result of circuit simulation.

Now, let’s make an adjustment on input voltages.

Applying again the same equation.
And making the simulation.

What this example shows is that the adder can be used as a digital-analog converter (DAC). Input with R3 resistor is the most significative bit (MSB) and input with R1 is the least significative bit (LSB). In the first simulation, inputs were ‘011’, which generated close to 3V, since ‘011’ is 3 in binary. While on the second simulation, inputs were ‘101’, which is 5 in binary, and output was close to five.
Integrator

On inverter, if the feedback resistor is replaced by a capacitor, the circuit becomes an integrator. Considering virtual ground.
is capacitive reactance.
On Laplace notation, .
Putting the equation on time domain.

In input is a sine wave, output will be a sinusoid delayed 90º in relation to input.
Differentiator

By switching positions of resistor and capacitor, we have the differentiator, which is the opposite of the integrator. Therefore, output signal is derivative of input signal. In this circuit, if the input is a sinusoid, the output will also be a sinusoid, but 90º early in relation to input. Below is the equation of output voltage on time domain.