Maleic acid is an organic compound that is a dicarboxylic acid, a molecule with two carboxyl groups. Its chemical formula is HO2CCHCHCO2H. Maleic acid is the cis-isomer of butenedioic acid, whereas fumaric acid is the trans-isomer. It is mainly used as a precursor to fumaric acid, and relative to its parent maleic anhydride, maleic acid has few applications. The major industrial use of maleic acid is its conversion to fumaric acid. This conversion, an isomerization, is catalysed by a variety of reagents, such as mineral acids and thiourea. Again, the large difference in water solubility makes fumaric acid purification easy. The isomerization is a popular topic in schools. Maleic acid and fumaric acid do not spontaneously interconvert because rotation around a carbon carbon double bond is not energetically favourable. However, conversion of the cis isomer into the trans isomer is possible by photolysis in the presence of a small amount of bromine.