We use soap and detergents frequently in our daily life. We use them to wash our hands & body and to clean our clothes without knowing how this thing does really work...
Soaps and detergents are very similar in their chemical properties. However, there is a significant difference between them, which soaps are produced from natural products, and detergents are synthetic, or man-made.
Detergents and soaps are used for cleaning because pure water can't remove oily, organic soiling. Soap cleans by acting as an emulsifier. Basically, soap allows oil and water to mix so that oily grime can be removed during rinsing. Detergents were developed in response to the shortage of the animal and vegetable fats used to make soap during World War I and World War II. Detergents are primarily surfactants, which could be produced easily from petrochemicals. Surfactants lower the surface tension of water, essentially making it 'wetter' so that it is less likely to stick to itself and more likely to interact with oil and grease.
Modern detergents contain more than surfactants. Cleaning products may also contain enzymes to degrade protein-based stains, bleaches to de-colour stains and add power to cleaning agents, and blue dyes to counter yellowing. Like soaps, detergents have hydrophobic or water-hating molecular chains and hydrophilic or water-loving components. The hydrophobic hydrocarbons are repelled by water, but are attracted to oil and grease. The hydrophilic end of the same molecule means that one end of the molecule will be attracted to water, while the other side is binding to oil. Neither detergents nor soap accomplish anything except binding to the soil until some mechanical energy or agitation is added into the equation. Swishing the soapy water around allows the soap or detergent to pull the grime away from clothes or dishes and into the larger pool of rinse water. Rinsing washes the detergent and soil away. Warm or hot water melts fats and oils so that it is easier for the soap or detergent to dissolve the soil and pull it away into the rinse water. Detergents are similar to soap, but they are less likely to form films (soap scum) and are not as affected by the presence of minerals in water (hard water).
Modern detergents may be made from petrochemicals or from oleochemicals derived from plants and animals. Alkalis and oxidizing agents are also chemicals found in the detergents.
Petrochemicals/Oleochemicals
These fats and oils are hydrocarbon chains which are attracted to the oily and greasy grime.
Oxidizers
Sulfur trioxide, ethylene oxide, and sulfuric acid are among the molecules used to produce the hydrophilic component of surfactants. Oxidizers provide an energy source for chemical reactions. These highly reactive compounds also act as bleaches.
Alkalis
Sodium and potassium hydroxide are used in detergents even as they are used in soap making. They provide positively charged ions to promote chemical reactions.
Types of detergent
Synthetic detergents have similar molecular structures and properties as soap. Although the cleansing action is similar, the detergents do not react as readily with hard water ions of calcium and magnesium. Detergent molecular structures consist of a long hydrocarbon chain and a water soluble ionic group. Most detergents have a negative ionic group and are called anionic detergents. The majority are alky sulfates. Others are "surfactants" (from surface active agents) which are generally known as alkyl benzene sulfonates.
Anionic Detergents
Cationic Detergents
Another class of detergents have a positive ionic charge and are called "cationic" detergents. In addition to being good cleansing agents, they also possess germicidal properties which make them useful in hospitals. Most of these detergents are derivatives of ammonia.
A cationic detergent is most likely to be found in a shampoo or clothes "rinse". The purpose is to neutralize the static electrical charges from residual anionic (negative ions) detergent molecules. Since the negative charges repel each other, the positive cationic detergent neutralizes this charge.
It even works because the ammonium (+1) nitrogen is buried under the methyl groups as can be seen in the space filling model.
Neutral or non-ionic detergents
Nonionic detergents are used in dish washing liquids. Since the detergent does not have any ionic groups, it does not react with hard water ions. In addition, nonionic detergents foam less than ionic detergents. The detergent molecules must have some polar parts to provide the necessary water solubility.
On the above graphic, the polar part of the molecule consists of three alcohol groups and an ester group. The non-polar part is the usual long hydrocarbon chain.
Bile Salts - Intestinal Natural Detergents
Bile acids are produced in the liver and secreted in the intestine via the gall bladder. Bile acids are oxidation products of cholesterol. First the cholesterol is converted to the trihydroxy derivative containing three alcohol groups. The end of the alkane chain at C # 17 is converted into an acid, and finally the amino acid, glycine is bonded through an amide bond. The acid group on the glycine is converted to a salt. The bile salt is called sodiumglycoholate. Another salt can be made with a chemical called taurine.
The main function of bile salts is to act as a soap or detergent in the digestive processes. The major action of a bile salt is to emulsify fats and oils into smaller droplets. The various enzymes can then break down the fats and oils.
Soap
Soaps are sodium or potassium fatty acids salts, produced from the hydrolysis of fats in a chemical reaction called saponification. Each soap molecule has a long hydrocarbon chain, sometimes called its 'tail', with a carboxylate 'head'. In water, the sodium or potassium ions float free, leaving a negatively-charged head.
Soap is an excellent cleanser because of its ability to act as an emulsifying agent. An emulsifier is capable of dispersing one liquid into another immiscible liquid. This means that while oil (which attracts dirt) doesn't naturally mix with water, soap can suspend oil/dirt in such a way that it can be removed.
The organic part of a natural soap is a negatively-charged, polar molecule. Its hydrophilic (water-loving) carboxylate group (-CO2) interacts with water molecules via ion-dipole interactions and hydrogen bonding. The hydrophobic (water-fearing) part of a soap molecule, its long, nonpolar hydrocarbon chain, does not interact with water molecules. The hydrocarbon chains are attracted to each other by dispersion forces and cluster together, forming structures called micelles. In these micelles, the carboxylate groups form a negatively-charged spherical surface, with the hydrocarbon chains inside the sphere. Because they are negatively charged, soap micelles repel each other and remain dispersed in water.
Grease and oil are nonpolar and insoluble in water. When soap and soiling oils are mixed, the nonpolar hydrocarbon portion of the micelles break up the nonpolar oil molecules. A different type of micelle then forms, with nonpolar soiling molecules in the center. Thus, grease and oil and the 'dirt' attached to them are caught inside the micelle and can be rinsed away.
Although soaps are excellent cleansers, they do have disadvantages. As salts of weak acids, they are converted by mineral acids into free fatty acids:
CH3(CH2)16CO2-Na+ + HCl ----> CH3(CH2)16CO2H + Na+ + Cl-
These fatty acids are less soluble than the sodium or potassium salts and form a precipitate or soap scum. Because of this, soaps are ineffective in acidic water. Also, soaps form insoluble salts in hard water, such as water containing magnesium, calcium, or iron.
2 CH3(CH2)16CO2-Na+ + Mg2+ ----> [CH3(CH2)16CO2-]2Mg2+ + 2 Na+
The insoluble salts form bathtub rings, leave films that reduce hair luster, and gray/roughen textiles after repeated washings. Synthetic detergents, however, may be soluble in both acidic and alkaline solutions and don't form insoluble precipitate in hard water.