How transistor works as an amplifier?
I don't understand what's written in the book. Please explain. I'm a noob in this.
Difficult to explain in one paragraph.
For an NPN bipolar transistor (there is also PNP as well as FET types). In the common emitter connection.
The transistor base acts as a gate and any current into the base gets multiplied by about 100 in the collector. That is, the base acts as a valve, controlling much larger currents in the collector.
In more detail (wikipedia)
Bipolar transistors are so named because they conduct by using both majority and minority carriers. The bipolar junction transistor (BJT), the first type of transistor to be mass-produced, is a combination of two junction diodes, and is formed of either a thin layer of p-type semiconductor sandwiched between two n-type semiconductors (an n-p-n transistor), or a thin layer of n-type semiconductor sandwiched between two p-type semiconductors (a p-n-p transistor). This construction produces two p-n junctions: a base–emitter junction and a base–collector junction, separated by a thin region of semiconductor known as the base region (two junction diodes wired together without sharing an intervening semiconducting region will not make a transistor).
The BJT has three terminals, corresponding to the three layers of semiconductor – an emitter, a base, and a collector. It is useful in amplifiers because the currents at the emitter and collector are controllable by a relatively small base current. In an NPN transistor operating in the active region, the emitter-base junction is forward biased (electrons and holes recombine at the junction), and electrons are injected into the base region. Because the base is narrow, most of these electrons will diffuse into the reverse-biased (electrons and holes are formed at, and move away from the junction) base-collector junction and be swept into the collector; perhaps one-hundredth of the electrons will recombine in the base, which is the dominant mechanism in the base current. By controlling the number of electrons that can leave the base, the number of electrons entering the collector can be controlled. Collector current is approximately β (common-emitter current gain) times the base current. It is typically greater than 100 for small-signal transistors but can be smaller in transistors designed for high-power applications.