op amp compensation with C or RC
A single capacitor is often used to provide dominant pole compensation. This pole ensures that the open loop gain falls away with a phase shift of less than 180 degrees at the point where the loop gain is unity. The resistor results in a zero in the open loop response, which can still ensure stability while offering a wider bandwidth. The zero can effectively cancel a pole.