A transistor is a semiconductor device commonly used as an electronic switch or amplifier. When used as an amplifier, it takes a small input signal and produces a larger output signal, effectively increasing the power (voltage, current, or both) while aiming to preserve the original signal shape.