Temporary hardness is caused by dissolved calcium bicarbonate and magnesium bicarbonate, while permanent hardness is caused by dissolved sulfate and chloride compounds. Boiling water reduces temporary water hardness, but has no difference on permanent hardness.