Final answer:
Hair serves a variety of functions, such as protection, sensory input, and thermoregulation. It helps protect the skull from the sun, defends the body by trapping dust particles, and provides sensory input. Each hair root is connected to a muscle called the arrector pili that contracts in response to nerve signals, making the hair shaft 'stand up' and trap a layer of air for insulation.
Step-by-step explanation:
Hair serves a variety of functions, including protection, sensory input, thermoregulation, and communication. For example, hair on the head protects the skull from the sun. The hair in the nose and ears, and around the eyes (eyelashes) defends the body by trapping and excluding dust particles that may contain allergens and microbes. Hair of the eyebrows prevents sweat and other particles from dripping into and bothering the eyes. Hair also has a sensory function due to sensory innervation by a hair root plexus surrounding the base of each hair follicle. Hair is extremely sensitive to air movement or other disturbances in the environment, much more so than the skin surface.
This feature is also useful for the detection of the presence insects or other potentially damaging substances on the skin surface. Each hair root is connected to a smooth muscle called the arrector pili that contracts in response to nerve signals from the sympathetic nervous system, making the external hair shaft "stand up." The primary purpose for this is to trap a layer of air to add insulation. This is visible in humans as goose bumps and even more obvious in animals, such as when a frightened cat raises its fur. Of course, this is much more obvious in organisms with a heavier coat than most humans, such as dogs and cats.