Actually not a bad place to start ...
"Dishwasher tablets and powders contain a surprising mix of chemicals, far more than just the detergent you might expect.
These are as follows:
Surfactants (detergents) - these promote mixing between oil- and fat-based soil and water.
Alkalis - these emulsify grease and adjust the pH of the water to the optimum for the other components to work
Bleaches - these oxidise coloured substances to colourless ones
Biosubstances - these are enzymes that break down starch- and protein-based soils
Builders - these help to soften water and trap metal ions that would interfere with the cleaning process and hold dirt in solution
Auxiliaries - these include substances used to make and disintegrate the tablet as well as colours and perfumes
One problem that may be encountered is getting all these different ingredients to work together when they have different optimum conditions. Enzymes, for example, work best at moderate temperatures around 50 °C . They are denatured and will no longer work if they have been exposed to temperatures much above this for any length of time.
On the other hand, grease removal will work best at high temperatures when fats melt to oils making them easier to remove. And, of course, all chemical reactions go faster at higher temperatures - twice as fast for every 10 °C rise is a useful rule of thumb.
There is a similar issue with pH. Cleaning takes place best at alkaline pHs but the optimum pH for most enzymes is neutral to mildly alkaline - they are denatured in strongly acidic or alkaline environments. The optimum pH for the bleach, however, is around 10."
Get your head around that - there's loads of chemistry involved.