How does the LM386 work?
The LM386 is an IC.  The triangle is just a symbol use on a schematic diagram to represent the IC.
If you consult the manufacturer's datasheet for the LM386, you should find a full description and schematic of the internal circuit, and also a description of the physical package of the part, with the dimensions and pin locations.