Titanium dioxide (TiO2) is prepared by heating rutile or ilmenite with carbon in chlorine. It is an amphoteric oxide that dissolves in acids and alkalies. TiO2 is used as a white pigment in paints and cosmetics, as well as in manufacturing fiberglass, porcelain goods, gas mantles, and non-greaseable paper. Thorium oxide (thoria) exists in amorphous and crystalline forms and is used in gas mantles, as a refractory material, catalyst, and in medical and ceramic applications. Ammonium molybdate is prepared by dissolving molybdenum trioxide in ammonia and is used as an