You know what, it’s one of my dream to write the easiest book for computers, which everyone can read in a teatime or in bed before sleep, with as few technical terms as possible. It might not be somewhat inaccurate, but might encourage the reader to seek for an accurate answer by himself.
So is this today’s story. It will be easy to imagine a circuit, in which the current will flow when you turn on the switch and it will stop when you turn off the switch.
But how about one which behave reversely – on turning on the switch the current will top and turning off the switch will let it flow?
This kind of circuit, called inverter, is much important to build a processor.
How can you make such a circuit?
Before the age of semiconductors, engineers had much difficulty to build up ones.
Now various semiconductors can be chemically created. It is classified roughly into two types.
One is to let current flow when there is an input. There is no current, when there is no input. Quite natural.

The other is to store the charge when the current flow into it, which hinders the current to flow.
If the switch is turned of, this “stone” release the charge, which make the current flow from it.

The latter type is the basic concept of an inverter. But the problem is, when the “stone” let all its stored charge out, the circuit will stop again, despite that the switch is still off.
Hence, two more device is added to the circuit.
One is a constant power source to keep putting the charge into the “stones.”
The other is an everlasting “drain” of the input current. It’s the ground.
If the conductive material is bounded to ground, all input current escape to the ground and there is no output to any other direction.

So let’s think about a circuit like below. a conductive material and capacious material are bound with the wire, from which the output is taken.
Input is set into the conductive one, which is on the other hand bound to the ground. And the constant power source gives charge to the capacious one.

As illustrated above, when there is a current input, it escapes to the ground, while the current from the source is intercepted by the capacious stone.

If the input stops, the is a discharge from the capacious stone. Won’t the current escape to the ground through the conductive stone? Oh, I’m sorry, I couldn’t yet fully and simply explain about it. I’m not yet a good author in this field. Please take is for granted now that “there is a certain technique to prevent it.” The precise schematic illustration is shown in a couple of my other posts, Simple explanation of nMOS and CMOS and Inverter. I will try to give a better explanation again some day.
Anyway now we have such device to give an inverted output from its input.
