%0 Journal Article %T The mathematics of the total alkalinity每pH equation: pathway to robust and universal solution algorithms %A G. Munhoven %J Geoscientific Model Development Discussions %D 2013 %I Copernicus Publications %R 10.5194/gmdd-6-2087-2013 %X The total alkalinity每pH equation, which relates total alkalinity and pH for a given set of total concentrations of the acid-base systems that contribute to total alkalinity in a given water sample, is reviewed and its mathematical properties established. We prove that the equation function is strictly monotone and always has exactly one positive root. Different commonly used approximations are discussed and compared. An original method to derive appropriate initial values for the iterative solution of the cubic polynomial equation based upon carbonate-borate-alkalinity is presented. We then review different methods that have been used to solve the total alkalinity每pH equation, with a main focus on biogeochemical models. The shortcomings and limitations of these methods are made out and discussed. We then present two variants of a new, robust and universally convergent algorithm to solve the total alkalinity每pH equation. This algorithm does not require any a priori knowledge of the solution. The iterative procedure is shown to converge from any starting value to the physical solution. The extra computational cost for the convergence security is only 10每15% compared to the fastest algorithm in our test series. %U http://www.geosci-model-dev-discuss.net/6/2087/2013/gmdd-6-2087-2013.pdf