polymers of maleic acid may be prepared by thermally polymerizing malic acid , maleic acid or fumaric acid with less than one equivalent of ammonia . the polymers are modified by the incorporation of amines , carboxylic acids or combinations thereof . the polymers formed are excellent inhibitors of alkaline earth salt deposition , dispersants , tartar control additives , detergent additives , and water treatment agents .