<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-14-4225-2021</article-id><title-group><article-title>SolveSAPHE-r2 (v2.0.1): revisiting and extending the Solver Suite for Alkalinity-PH Equations for usage with CO<inline-formula><mml:math id="M1" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula>, HCO<inline-formula><mml:math id="M2" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> <?xmltex \hack{\break}?>or CO<inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> input data</article-title><alt-title>SolveSAPHE-r2</alt-title>
      </title-group><?xmltex \runningtitle{SolveSAPHE-r2}?><?xmltex \runningauthor{G. Munhoven}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <name><surname>Munhoven</surname><given-names>Guy</given-names></name>
          <email>guy.munhoven@uliege.be</email>
        </contrib>
        <aff id="aff1"><institution>Dépt. d'Astrophysique, Géophysique et Océanographie, Université de Liège, 4000 Liège, Belgium</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Guy Munhoven (guy.munhoven@uliege.be)</corresp></author-notes><pub-date><day>6</day><month>July</month><year>2021</year></pub-date>
      
      <volume>14</volume>
      <issue>7</issue>
      <fpage>4225</fpage><lpage>4240</lpage>
      <history>
        <date date-type="received"><day>31</day><month>December</month><year>2020</year></date>
           <date date-type="rev-request"><day>22</day><month>February</month><year>2021</year></date>
           <date date-type="rev-recd"><day>26</day><month>May</month><year>2021</year></date>
           <date date-type="accepted"><day>31</day><month>May</month><year>2021</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2021 </copyright-statement>
        <copyright-year>2021</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/.html">This article is available from https://gmd.copernicus.org/articles/.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/.pdf</self-uri>
      <abstract><title>Abstract</title>
    <p id="d1e116">The successful and efficient approach at the basis of the Solver Suite for Alkalinity-PH Equations (SolveSAPHE) <xref ref-type="bibr" rid="bib1.bibx7" id="paren.1"/>, which determines the carbonate system speciation by calculating pH from total alkalinity (Alk<inline-formula><mml:math id="M4" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>) and dissolved inorganic carbon (<inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>), and which converges for any physically sensible pair of such data, has been adapted and further developed to work with Alk<inline-formula><mml:math id="M6" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M7" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M8" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M9" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, and Alk<inline-formula><mml:math id="M10" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M11" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>.
The mathematical properties of the three modified alkalinity–pH equations are explored.
It is shown that the Alk<inline-formula><mml:math id="M12" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M13" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, and Alk<inline-formula><mml:math id="M14" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M15" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> problems have one and only one positive root for any physically sensible pair of data (i.e. such that <inline-formula><mml:math id="M16" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M17" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>).
The space of Alk<inline-formula><mml:math id="M18" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M19" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pairs is partitioned into regions where there is either no solution, one solution or where there are two.
The numerical solution of the modified alkalinity–pH equations is far more demanding than that for the original Alk<inline-formula><mml:math id="M20" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair as they exhibit strong gradients and are not always monotonous.
The two main algorithms used in SolveSAPHE v1 have been revised in depth to reliably process the three additional data input pairs.
The Alk<inline-formula><mml:math id="M22" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M23" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> pair is numerically the most challenging.
With the Newton–Raphson-based solver, it takes about 5 times as long to solve as the companion Alk<inline-formula><mml:math id="M24" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair;
the Alk<inline-formula><mml:math id="M26" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M27" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pair requires on average about 4 times as much time as the Alk<inline-formula><mml:math id="M28" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair.
All in all, the secant-based solver offers the best performance.
It outperforms the Newton–Raphson-based one by up to a factor of 4 in terms of average numbers of iterations and execution time and yet reaches equation residuals that are up to 7 orders of magnitude lower.
Just like the pH solvers from the v1 series, SolveSAPHE-r2 includes automatic root bracketing and efficient initialisation schemes for the iterative solvers. For Alk<inline-formula><mml:math id="M30" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M31" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> data pairs, it also determines the number of roots and calculates non-overlapping bracketing intervals.
An open-source reference implementation of the new algorithms in Fortran 90 is made publicly available for usage under the GNU Lesser General Public Licence version 3 (LGPLv3) or later.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e461">Among all the aspects of the ongoing global environmental changes (climate change, ocean acidification, etc.), the solution chemistry of carbon dioxide (<inline-formula><mml:math id="M32" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>) is one of the best known.
The related chemistry of the carbonate system in the oceans and other aqueous environments is well understood and routinely monitored and modelled.
The equilibria between the carbonate system species involves four variables: [<inline-formula><mml:math id="M33" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] (or equivalently the partial pressure of <inline-formula><mml:math id="M34" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M35" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M36" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, or its fugacity, <inline-formula><mml:math id="M37" display="inline"><mml:mi>f</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M38" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>), [<inline-formula><mml:math id="M39" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>], [<inline-formula><mml:math id="M40" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] and [<inline-formula><mml:math id="M41" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] (or equivalently pH).
The speciation, i.e. the determination of the concentrations of the individual species, therefore also requires four constraints.
Two of these are given by the equilibrium relationships that characterise the equilibria between dissolved <inline-formula><mml:math id="M42" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M43" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> on one hand, and between <inline-formula><mml:math id="M44" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M45" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> on the other hand, assuming that the respective equilibrium constants are known or can be calculated.
Two more independent constraints are thus required to completely characterise the system.
These two additional constraints are generally chosen among the four traditional measurables of the system <xref ref-type="bibr" rid="bib1.bibx4" id="paren.2"><named-content content-type="pre">see, e.g.</named-content></xref>: (1) the total concentration of dissolved inorganic carbon (DIC), <inline-formula><mml:math id="M46" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>; (2) total alkalinity, <inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>; (3) pH and (4) <inline-formula><mml:math id="M48" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M49" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> or <inline-formula><mml:math id="M50" display="inline"><mml:mi>f</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M51" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>.
Recently, a procedure to measure <inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> has been developed as well, thus increasing the number of measurables to five <xref ref-type="bibr" rid="bib1.bibx2 bib1.bibx12 bib1.bibx13" id="paren.3"/>.
This latter has, however, not yet been widely adopted.
With these two additional constraints, the concentrations of all the individual species as well as <inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M54" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can then be calculated.</p>
      <p id="d1e779">There are 10 different data pairs that can be composed from the set of five independent measurable variables of the carbonate system;
there are 15 if we further include <inline-formula><mml:math id="M55" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> as a sixth independent variable, although currently not (yet) measurable.
Most modellers will call upon <inline-formula><mml:math id="M56" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M57" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> which, besides being measurable, are also conservative and thus convenient for a budgeting approach.
Experimentalists will use the pair that best suits their analytical equipment and expertise.
Depending on the study requirements, not all pairs are equally attractive though.
The analysis of <xref ref-type="bibr" rid="bib1.bibx13" id="text.4"/> reveals that it is always advisable to measure <inline-formula><mml:math id="M58" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M59" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> directly if that variable is required: the uncertainty of calculated <inline-formula><mml:math id="M60" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M61" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is always 5 to 10 times as large as that of the directly measured one.
[<inline-formula><mml:math id="M62" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] can be calculated with lower uncertainty from Alk<inline-formula><mml:math id="M63" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M64" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> data than it can be directly measured; calculating it from other data pairs always bears greater uncertainty than directly measuring it.
The most peculiar combination of uncertainties affects the results derived from paired measurements of <inline-formula><mml:math id="M65" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M66" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M67" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>:
they allow to calculate pH with the same uncertainty as if directly measured, thus providing nearly optimal values for the three individually measurable species.
The uncertainties of the Alk<inline-formula><mml:math id="M68" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> calculated from it are, however, about 20 times as large as those directly measured.
The currently most attractive pairs are Alk<inline-formula><mml:math id="M70" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M71" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M72" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M74" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula><inline-formula><mml:math id="M75" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, both of which allow to calculate pH with better and [<inline-formula><mml:math id="M76" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] with only slightly larger but still acceptable uncertainty than the direct measurement would offer.
Direct [<inline-formula><mml:math id="M77" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] measurements, which might be most advisable for tracing carbonate mineral saturation states, are best paired with Alk<inline-formula><mml:math id="M78" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> or <inline-formula><mml:math id="M79" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx13" id="paren.5"/>.
It can nevertheless be expected that, once it becomes more widely used, the measurement uncertainty currently affecting that still young measurable can be reduced and eventually become better than that of [<inline-formula><mml:math id="M80" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] calculated from Alk<inline-formula><mml:math id="M81" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, which is currently the best option <xref ref-type="bibr" rid="bib1.bibx13" id="paren.6"/>.</p>
      <p id="d1e1095">Overall, 11 out of these 15 possible pairs of independent parameters of the carbonate system can be directly solved or require at most the resolution of a quadratic equation.
The remaining four pairs require iterative procedures.
Besides the Alk<inline-formula><mml:math id="M83" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–C<inline-formula><mml:math id="M84" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> pair which was addressed in full detail by <xref ref-type="bibr" rid="bib1.bibx7" id="text.7"/> these are
(1) Alk<inline-formula><mml:math id="M85" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M86" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>,
(2) Alk<inline-formula><mml:math id="M87" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M88" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and
(3) Alk<inline-formula><mml:math id="M89" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M90" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>.
Such calculations are performed to an advanced level of detail with dedicated and highly specialised packages.
The review of <xref ref-type="bibr" rid="bib1.bibx10" id="text.8"/> offers a systematic analysis of subsisting uncertainties and inconsistencies between 10 such packages, focusing on the sets of equilibrium constants adopted, pressure corrections applied, etc.
Here, we do not focus on these aspects but on the design of algorithms that can solve the underlying mathematical problem with as little user input as possible. The aim is to reduce user input to the bare essentials: besides the fundamental information about temperature, salinity, pressure and the thermodynamic data, this ideally had to be any physically meaningful data pair only;
the algorithm should be able to derive any other auxiliary information, such as root brackets or starting values for iterations, on its own.</p>
      <p id="d1e1190">In the companion paper <xref ref-type="bibr" rid="bib1.bibx7" id="paren.9"/>, such autonomous algorithms with robust convergence properties for a wide range of environmental conditions are presented for usage with the <inline-formula><mml:math id="M91" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M92" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair. Here, we are revisiting that approach, extending and adapting it so that the Alk<inline-formula><mml:math id="M93" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M94" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M95" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M96" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, and Alk<inline-formula><mml:math id="M97" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M98" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pairs can be processed with the same ease and reliability. For the sake of completeness – and with minimal details only – “recipes” for solving the other 11 explicit cases are provided in the Appendix.
Alternative approaches can be found in the literature, such as in <xref ref-type="bibr" rid="bib1.bibx15" id="text.10"/> or <xref ref-type="bibr" rid="bib1.bibx4" id="text.11"/>.
<xref ref-type="bibr" rid="bib1.bibx4" id="text.12"/> also provide pathways for using triplets or quartets of input data, which only require the knowledge of one of the two dissociation constants or of their ratio, or none of them.
That kind of approach is, however, not considered in this study.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Theoretical considerations</title>
      <p id="d1e1304">In the following, it is assumed that the temperature <inline-formula><mml:math id="M99" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula>, salinity <inline-formula><mml:math id="M100" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula> and applied pressure <inline-formula><mml:math id="M101" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula> are given and that adequate values for all the required stoichiometric equilibrium constants are available.
It is furthermore assumed that the total concentrations of all the other relevant acid systems (borate, hydrogen sulfate, phosphate, silicate, etc.) are known.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Revisiting the mathematics of the alkalinity–pH equation</title>
      <p id="d1e1335">Cornerstone to the speciation calculation is the resolution of the following equation, which I call the “alkalinity–pH equation”, as it derives from the definition of total alkalinity:
            <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M102" display="block"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>≡</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          i.e. Eq. (21) from <xref ref-type="bibr" rid="bib1.bibx7" id="text.13"/>.
In this equation, [<inline-formula><mml:math id="M103" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] is the proton concentration expressed on one of the commonly used pH scales (total, seawater) and <inline-formula><mml:math id="M104" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> is a factor to convert from that scale to the free scale.
<inline-formula><mml:math id="M105" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> depends on temperature, pressure and salinity of the sample and its value is close to 1 (typically between 1.0 and 1.3).
The first term on the right-hand side is that part of the total alkalinity that is not related to the water self-ionisation:
<inline-formula><mml:math id="M106" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mo>∑</mml:mo><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mtext>Alk</mml:mtext><mml:mrow><mml:msub><mml:mtext>A</mml:mtext><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>,
where <inline-formula><mml:math id="M107" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> denumbers the acid systems resulting from the dissolution of acids <inline-formula><mml:math id="M108" display="inline"><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> whose dissolution products contribute to total alkalinity.
For the purpose of this study, <inline-formula><mml:math id="M109" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is partitioned into carbonate alkalinity, <inline-formula><mml:math id="M110" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, and non-carbonate alkalinity, <inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>,
since the relevant carbonate system parameters (the concentrations of <inline-formula><mml:math id="M112" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M113" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M114" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> and their sum, <inline-formula><mml:math id="M115" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>) are all directly related to <inline-formula><mml:math id="M116" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>: <inline-formula><mml:math id="M117" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
Similarly to <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nW</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> admits an infimum and a supremum which can both be derived from the total concentrations of all the acid–base systems considered.
We denote these two by <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, respectively.
Equation (<xref ref-type="disp-formula" rid="Ch1.E1"/>) is thus formally rewritten as
            <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M122" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>≡</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          The carbonate alkalinity term writes, as a function of <inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>
            <disp-formula id="Ch1.E3" content-type="numbered"><label>3</label><mml:math id="M124" display="block"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></disp-formula>
          where <inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M126" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> are the first and second stoichiometric dissociation constants of carbonic acid.
The individual carbonate species fractions of <inline-formula><mml:math id="M127" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be expressed as a function of [<inline-formula><mml:math id="M128" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>]:

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M129" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E4"><mml:mtd><mml:mtext>4</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E5"><mml:mtd><mml:mtext>5</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E6"><mml:mtd><mml:mtext>6</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            Accordingly, <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> may be rewritten in one of the following forms:

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M131" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E7"><mml:mtd><mml:mtext>7</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E8"><mml:mtd><mml:mtext>8</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E9"><mml:mtd><mml:mtext>9</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula></p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><?xmltex \def\figurename{Figure}?><label>Figure 1</label><caption><p id="d1e2674"><bold>(a)</bold> pH; <bold>(b)</bold> <inline-formula><mml:math id="M132" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <bold>(c)</bold> <inline-formula><mml:math id="M133" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration isolines in <inline-formula><mml:math id="M134" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M135" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> space; <bold>(d)</bold> <inline-formula><mml:math id="M136" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <bold>(e)</bold> <inline-formula><mml:math id="M137" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <bold>(f)</bold> <inline-formula><mml:math id="M138" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration isolines in pH–<inline-formula><mml:math id="M139" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> space.
Blank areas in panels <bold>(d)</bold>, <bold>(e)</bold> and <bold>(f)</bold> represent the pH–<inline-formula><mml:math id="M140" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> combinations that lead to negative <inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
The blue and black stars in panels <bold>(c)</bold> and <bold>(f)</bold> locate the two possible <inline-formula><mml:math id="M142" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and pH roots for a sample with <inline-formula><mml:math id="M143" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.3</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/></mml:mrow></mml:math></inline-formula><inline-formula><mml:math id="M144" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M145" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/></mml:mrow></mml:math></inline-formula><inline-formula><mml:math id="M146" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> (one of the dashed isolines, as indicated by the open star symbol in the colour scale).
Figure 3 in <xref ref-type="bibr" rid="bib1.bibx3" id="text.14"/> is similar to panel <bold>(c)</bold>.</p></caption>
          <?xmltex \igopts{width=469.470472pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f01.png"/>

        </fig>

      <p id="d1e2934">In order to get a first idea about the complications that we might encounter for the solution of the three new data pairs, we start with an exploratory analysis using the Solver Suite for Alkalinity-PH Equations (SolveSAPHE) version 1.0.3 <xref ref-type="bibr" rid="bib1.bibx8" id="paren.15"/>.
The three panels in the upper row of Fig. <xref ref-type="fig" rid="Ch1.F1"/> show the pH and the <inline-formula><mml:math id="M147" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M148" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration distributions for a reduced SW3 test case from <xref ref-type="bibr" rid="bib1.bibx7" id="text.16"/>, with the <inline-formula><mml:math id="M149" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> range extending from 0 to 4 <inline-formula><mml:math id="M150" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and the Alk<inline-formula><mml:math id="M151" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> range from <inline-formula><mml:math id="M152" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>1 to 3 <inline-formula><mml:math id="M153" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> only.
The pH distribution from Fig. <xref ref-type="fig" rid="Ch1.F1"/>a is then used to derive the corresponding <inline-formula><mml:math id="M154" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> (not shown), <inline-formula><mml:math id="M155" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M156" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration distributions (Fig. <xref ref-type="fig" rid="Ch1.F1"/>b and c).
Since we intend to solve the alkalinity–pH equation for given Alk<inline-formula><mml:math id="M157" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>, and either of  <inline-formula><mml:math id="M158" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M159" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> or <inline-formula><mml:math id="M160" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, we furthermore produce the concentration isolines for the three species on a pH–Alk<inline-formula><mml:math id="M161" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> graph (Fig. <xref ref-type="fig" rid="Ch1.F1"/>d, e and f).
For the three latter, we first calculated <inline-formula><mml:math id="M162" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Alk<inline-formula><mml:math id="M163" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> by using Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>).
Positive <inline-formula><mml:math id="M164" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values were then used with Eqs. (<xref ref-type="disp-formula" rid="Ch1.E7"/>), (<xref ref-type="disp-formula" rid="Ch1.E8"/>) and (<xref ref-type="disp-formula" rid="Ch1.E9"/>) to derive the corresponding <inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M166" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M167" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, respectively. Blank areas represent the pH–<inline-formula><mml:math id="M168" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> combinations that lead to negative <inline-formula><mml:math id="M169" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e3276">The V- or U-shaped isolines for <inline-formula><mml:math id="M170" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> on the <inline-formula><mml:math id="M171" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–Alk<inline-formula><mml:math id="M172" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> graph and for <inline-formula><mml:math id="M173" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> on the <inline-formula><mml:math id="M174" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–Alk<inline-formula><mml:math id="M175" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and on the pH–Alk<inline-formula><mml:math id="M176" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> graphs show that the <inline-formula><mml:math id="M177" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M178" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and the Alk<inline-formula><mml:math id="M179" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M180" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pairs will not always provide unambiguous results.
This is illustrated by the blue and black stars in Fig. <xref ref-type="fig" rid="Ch1.F1"/>c and f:
they both lie on the 100 <inline-formula><mml:math id="M181" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M182" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> isoline and on the horizontal line drawn through <inline-formula><mml:math id="M183" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.3</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M184" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>.
For that pair of data values, there are thus two compatible <inline-formula><mml:math id="M185" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and correspondingly two possible pH values.
On the other hand, with the same Alk<inline-formula><mml:math id="M186" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>, a <inline-formula><mml:math id="M187" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> of 1 <inline-formula><mml:math id="M188" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> would not provide any solution as the 1 <inline-formula><mml:math id="M189" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> isoline has its minimum at <inline-formula><mml:math id="M190" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.63</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M191" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>.
Similarly, there are pairs of <inline-formula><mml:math id="M192" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M193" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> values that are compatible with two <inline-formula><mml:math id="M194" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values and thus two pH values, and others with none: a vertical line drawn through <inline-formula><mml:math id="M195" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.2</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M196" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> crosses the 2.0 <inline-formula><mml:math id="M197" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> isoline for <inline-formula><mml:math id="M198" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> twice and so that pair of data values leads to two pH solutions; a vertical line drawn through <inline-formula><mml:math id="M199" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.05</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M200" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> does not cross that 2.0 <inline-formula><mml:math id="M201" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> isoline for <inline-formula><mml:math id="M202" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> at all, and that pair of data values does not have any pH solution.</p>
      <p id="d1e3766">As will be shown below, the SolveSAPHE approach of <xref ref-type="bibr" rid="bib1.bibx7" id="text.17"/>, which is based upon the use of a hybrid iterative solver safeguarded by intrinsic brackets that can be calculated a priori, can be easily adapted for the Alk<inline-formula><mml:math id="M203" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M204" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>  and Alk<inline-formula><mml:math id="M205" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M206" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> pairs. According to the outcome of our preliminary analysis above, the Alk<inline-formula><mml:math id="M207" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M208" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pair requires a more in-depth analysis. We show that it is nevertheless possible to diagnose the different cases that can theoretically be encountered and, in case there are two solutions, to derive bracketing intervals for each of the two and to isolate them efficiently. For each pair, we (1) establish the analytical properties of the modified alkalinity–pH equation;
(2) derive brackets for the root(s);
(3) develop a reliable and safe algorithm to solve the problem;
(4) design an efficient initialisation scheme.
The <inline-formula><mml:math id="M209" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M210" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> pair, which requires only a quadratic equation to be solved, is straightforward to diagnose a priori (see the corresponding recipe in the Appendix).</p>
      <p id="d1e3864">We will now in turn analyse the mathematical properties of the alkalinity–pH equation that results from the substitution of <inline-formula><mml:math id="M211" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> by the concentration of one of its individual species.</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><?xmltex \opttitle{The Alk${}_{{\text{T}}}$--CO${}_{2}$ problem}?><title>The Alk<inline-formula><mml:math id="M212" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–CO<inline-formula><mml:math id="M213" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> problem</title>
<sec id="Ch1.S2.SS2.SSS1">
  <label>2.2.1</label><title>Mathematical analysis</title>
      <p id="d1e3912">The Alk<inline-formula><mml:math id="M214" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M215" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> pair can be dealt with in a similar way to the  Alk<inline-formula><mml:math id="M216" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–C<inline-formula><mml:math id="M217" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> pair in the original SolveSAPHE.
The <inline-formula><mml:math id="M218" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> term in Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) is written as in Eq. (<xref ref-type="disp-formula" rid="Ch1.E7"/>).
Equation (<xref ref-type="disp-formula" rid="Ch1.E2"/>) then becomes
              <disp-formula id="Ch1.E10" content-type="numbered"><label>10</label><mml:math id="M219" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced close=")" open="("><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Just like the <inline-formula><mml:math id="M220" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> expression from Eq. (<xref ref-type="disp-formula" rid="Ch1.E3"/>) is monotonously decreasing with <inline-formula><mml:math id="M221" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> for <inline-formula><mml:math id="M222" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> fixed, that from Eq. (<xref ref-type="disp-formula" rid="Ch1.E7"/>) is monotonously decreasing with [<inline-formula><mml:math id="M223" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] for [<inline-formula><mml:math id="M224" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] fixed.
The expression on the left-hand side of Eq. (<xref ref-type="disp-formula" rid="Ch1.E10"/>) decreases from <inline-formula><mml:math id="M225" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M226" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> for <inline-formula><mml:math id="M227" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> as [<inline-formula><mml:math id="M228" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] varies from <inline-formula><mml:math id="M229" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">0</mml:mn><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M230" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula>.
Equation (<xref ref-type="disp-formula" rid="Ch1.E10"/>) thus always has exactly one positive solution.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS2">
  <label>2.2.2</label><title>Root bracketing</title>
      <p id="d1e4298">Intrinsic brackets for the solution of Eq. (<xref ref-type="disp-formula" rid="Ch1.E10"/>) can be derived similarly to what is done in Sect. 5.1 in <xref ref-type="bibr" rid="bib1.bibx7" id="text.18"/>.
The lower bound <inline-formula><mml:math id="M231" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be chosen such that
              <disp-formula id="Ch1.Ex1"><mml:math id="M232" display="block"><mml:mrow><mml:mfenced close=")" open="("><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            i.e. as the positive root of the cubic equation:
              <disp-formula id="Ch1.Ex2"><mml:math id="M233" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Let us denote this cubic by <inline-formula><mml:math id="M234" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
It is important to notice that
<inline-formula><mml:math id="M235" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> and
<inline-formula><mml:math id="M236" display="inline"><mml:mrow><mml:msup><mml:mi>P</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>.
The equation <inline-formula><mml:math id="M237" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> has therefore one and only one positive root.</p>
      <p id="d1e4657">Similarly, the upper bound <inline-formula><mml:math id="M238" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be chosen such that
              <disp-formula id="Ch1.Ex3"><mml:math id="M239" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced close=")" open="("><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            i.e. as the positive root of the cubic equation
              <disp-formula id="Ch1.Ex4"><mml:math id="M240" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            which  also has one and only one positive root for the same reasons as above.</p>
      <p id="d1e4888">The positive roots of these cubic equations can be found by adopting a strategy similar to that used for the cubic initialisation of the iterative solution in SolveSAPHE <xref ref-type="bibr" rid="bib1.bibx7" id="paren.19"><named-content content-type="post">Sect. 3.2.2</named-content></xref>:
<list list-type="order"><list-item>
      <p id="d1e4898">locate the local minimum of the cubic, in <inline-formula><mml:math id="M241" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>;</p></list-item><list-item>
      <p id="d1e4917">develop the cubic as a quadratic Taylor expansion, <inline-formula><mml:math id="M242" display="inline"><mml:mrow><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, around that minimum;</p></list-item><list-item>
      <p id="d1e4935">solve <inline-formula><mml:math id="M243" display="inline"><mml:mrow><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> which has two roots and choose the one that is greater than <inline-formula><mml:math id="M244" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p></list-item></list>
In this particular case, it is, however, not necessary to solve these equations exactly as we only need approximate bounds of the root for safeguarding the iterations while solving Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>).
For <inline-formula><mml:math id="M245" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, we may actually choose the <inline-formula><mml:math id="M246" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> of the first cubic which is lower than the positive root and thus sufficient.
Regarding <inline-formula><mml:math id="M247" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, it should be noticed that
<inline-formula><mml:math id="M248" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:msup><mml:mo>)</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:msup><mml:mo>/</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:math></inline-formula>.
Accordingly, <inline-formula><mml:math id="M249" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo><mml:mo>&gt;</mml:mo><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> for <inline-formula><mml:math id="M250" display="inline"><mml:mrow><mml:mi>H</mml:mi><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and therefore the greater root of <inline-formula><mml:math id="M251" display="inline"><mml:mrow><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> for the second cubic is greater than the positive root of that cubic.
The greater of the two roots of <inline-formula><mml:math id="M252" display="inline"><mml:mrow><mml:mi>Q</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is therefore a sufficient upper bracket and may be used instead of the exact <inline-formula><mml:math id="M253" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e5130">Any bracketing root-finding algorithm can then be used to solve the modified alkalinity pH equation (Eq. <xref ref-type="disp-formula" rid="Ch1.E10"/>).</p>
</sec>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><?xmltex \opttitle{The Alk${}_{{\mathrm{T}}}$--HCO${}_{3}{}^{{-}}$ problem}?><title>The Alk<inline-formula><mml:math id="M254" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="normal">T</mml:mi></mml:msub></mml:math></inline-formula>–HCO<inline-formula><mml:math id="M255" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> problem</title>
<sec id="Ch1.S2.SS3.SSS1">
  <label>2.3.1</label><title>Mathematical analysis</title>
      <p id="d1e5173">For the Alk<inline-formula><mml:math id="M256" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M257" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> pair, the <inline-formula><mml:math id="M258" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> term in Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) is written as in Eq. (<xref ref-type="disp-formula" rid="Ch1.E8"/>):
              <disp-formula id="Ch1.E11" content-type="numbered"><label>11</label><mml:math id="M259" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            The expression on the left-hand side of Eq. (<xref ref-type="disp-formula" rid="Ch1.E11"/>) decreases monotonously from <inline-formula><mml:math id="M260" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M261" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> for <inline-formula><mml:math id="M262" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> fixed as [<inline-formula><mml:math id="M263" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] varies from <inline-formula><mml:math id="M264" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">0</mml:mn><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M265" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula>.
Equation (<xref ref-type="disp-formula" rid="Ch1.E11"/>) thus always has exactly one positive solution.</p>
</sec>
<sec id="Ch1.S2.SS3.SSS2">
  <label>2.3.2</label><title>Root bracketing</title>
      <p id="d1e5440">The lower bound <inline-formula><mml:math id="M266" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be chosen such that
              <disp-formula id="Ch1.Ex5"><mml:math id="M267" display="block"><mml:mrow><mml:mfenced open="(" close=")"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            i.e. as the positive root of the quadratic equation
              <disp-formula id="Ch1.Ex6"><mml:math id="M268" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Similarly, the upper bound <inline-formula><mml:math id="M269" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be chosen such that
              <disp-formula id="Ch1.Ex7"><mml:math id="M270" display="block"><mml:mrow><mml:mfenced open="(" close=")"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>+</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            i.e. as the positive root of the quadratic equation
              <disp-formula id="Ch1.Ex8"><mml:math id="M271" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Both equations always have two roots: one positive and one negative; their product is negative as indicated by the constant term.
With the respective positive roots, we have again bounds for the solution of the modified alkalinity–pH equation and any bracketing root-finding algorithm can be used to solve it.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><?xmltex \opttitle{The Alk${}_{{\mathrm{T}}}$--CO${}_{3}{}^{{2-}}$ problem}?><title>The Alk<inline-formula><mml:math id="M272" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="normal">T</mml:mi></mml:msub></mml:math></inline-formula>–CO<inline-formula><mml:math id="M273" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem</title>
      <p id="d1e5861">Whereas any physically meaningful <inline-formula><mml:math id="M274" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–[<inline-formula><mml:math id="M275" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] or Alk<inline-formula><mml:math id="M276" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–[<inline-formula><mml:math id="M277" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] concentration pairs will always provide one and only one [<inline-formula><mml:math id="M278" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] (or equivalently pH) value as demonstrated above, this cannot be the case for every <inline-formula><mml:math id="M279" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–[<inline-formula><mml:math id="M280" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] pair, as can be deduced from Fig. <xref ref-type="fig" rid="Ch1.F1"/>c and f.
On one hand, there are two compatible <inline-formula><mml:math id="M281" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values, and equivalently two pH values, for most Alk<inline-formula><mml:math id="M282" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–[<inline-formula><mml:math id="M283" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] pairs.
This little-known fact was already documented in the 1960s (see, e.g. <xref ref-type="bibr" rid="bib1.bibx3" id="altparen.20"/>)<fn id="Ch1.Footn1"><p id="d1e5986"><xref ref-type="bibr" rid="bib1.bibx15" id="text.21"/> appear to be aware of it.
In their recipe for given Alk<inline-formula><mml:math id="M284" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and [<inline-formula><mml:math id="M285" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] (on pp. 276–277), they indicate that the quintic equation to solve with their practical alkalinity approximation has two positive and three negative roots and that the larger positive one should be used (without any further justification, though).
As shown here, this statement is not universally true – there are instances where that equation has only one positive or no positive roots.
It is nevertheless true for typical seawater and the lower of the two positive roots actually implies unrealistically low, yet physically sensible, <inline-formula><mml:math id="M286" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> (see discussion in Sect. <xref ref-type="sec" rid="Ch1.S2.SS4.SSS2"/> below).</p></fn>.
On the other hand, there are also <inline-formula><mml:math id="M287" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–[<inline-formula><mml:math id="M288" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] pairs that do not allow for any solution, as they lead to negative carbonate alkalinity.
To our best knowledge, none of the currently available carbonate system speciation programmes take this possibility into account.</p>
<sec id="Ch1.S2.SS4.SSS1">
  <label>2.4.1</label><title>Mathematical analysis and root bracketing</title>
      <p id="d1e6064">The solution of the  <inline-formula><mml:math id="M289" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M290" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem thus requires a more in-depth mathematical analysis.
To start, we write out Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) with the <inline-formula><mml:math id="M291" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>C</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> expression for [<inline-formula><mml:math id="M292" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] (Eq. <xref ref-type="disp-formula" rid="Ch1.E9"/>):
              <disp-formula id="Ch1.Ex9"><mml:math id="M293" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Let us collect all the terms that are related to carbonate or water self-ionisation alkalinity on the left-hand side, introduce the shorthand
<inline-formula><mml:math id="M294" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>
and rewrite the equation as
              <disp-formula id="Ch1.E12" content-type="numbered"><label>12</label><mml:math id="M295" display="block"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            The value of <inline-formula><mml:math id="M296" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula> is one of the main controls on the number of roots that this equation has.
<list list-type="order"><list-item>
      <p id="d1e6410">If <inline-formula><mml:math id="M297" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, the equation has similar mathematical characteristics to the usual alkalinity–pH equation (Eq. <xref ref-type="disp-formula" rid="Ch1.E1"/>).
It has exactly one root which can be calculated using similar procedures as in the original SolveSAPHE.
Please note though that this means that <inline-formula><mml:math id="M298" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&lt;</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>.
Since <inline-formula><mml:math id="M299" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is of the order of <inline-formula><mml:math id="M300" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">9</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M301" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>(</mml:mo><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="normal">SW</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M302" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> is of the order of 1, this case is only relevant for <inline-formula><mml:math id="M303" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentrations of the order of 1 <inline-formula><mml:math id="M304" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">nmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>(</mml:mo><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="normal">SW</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and less.</p></list-item><list-item>
      <p id="d1e6558">If <inline-formula><mml:math id="M305" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> (i.e. if <inline-formula><mml:math id="M306" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>), the equation has exactly one root if <inline-formula><mml:math id="M307" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, and no root otherwise.</p></list-item><list-item>
      <p id="d1e6648">If <inline-formula><mml:math id="M308" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, the left-hand side is not monotonous:
it decreases from <inline-formula><mml:math id="M309" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> in <inline-formula><mml:math id="M310" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:msup><mml:mn mathvariant="normal">0</mml:mn><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> to a minimum (see below) and then increases back to  <inline-formula><mml:math id="M311" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> as <inline-formula><mml:math id="M312" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>→</mml:mo><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula>.
The right-hand side is bounded and strictly increasing over the same interval <xref ref-type="bibr" rid="bib1.bibx7" id="paren.22"/>.
As a result, the equation has no root if the right-hand side is too low, exactly one if the two curves become tangent and two roots if the right-hand side is great enough.</p></list-item></list></p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2"><?xmltex \currentcnt{2}?><?xmltex \def\figurename{Figure}?><label>Figure 2</label><caption><p id="d1e6734">Schematic representation of the general characteristics of the <inline-formula><mml:math id="M313" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M314" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> components of the alkalinity–pH equation for the <inline-formula><mml:math id="M315" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:mrow></mml:math></inline-formula> pair.
The grey band delimits the (monotonous) variations of <inline-formula><mml:math id="M316" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> for a given alkalinity <inline-formula><mml:math id="M317" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula>.
The band moves up and down without being distorted as <inline-formula><mml:math id="M318" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> is increased, respectively, decreased.
For a given pair of Alk<inline-formula><mml:math id="M319" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M320" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentrations, the actual equation to solve is <inline-formula><mml:math id="M321" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M322" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>.
<inline-formula><mml:math id="M323" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> thus corresponds to <inline-formula><mml:math id="M324" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>.</p></caption>
            <?xmltex \igopts{width=199.169291pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f02.png"/>

          </fig>

      <p id="d1e7025">To alleviate notation let us define the two parametric functions:

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M325" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E13"><mml:mtd><mml:mtext>13</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E14"><mml:mtd><mml:mtext>14</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              where <inline-formula><mml:math id="M326" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> is the independent variable and <inline-formula><mml:math id="M327" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M328" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> (alkalinity) are parameters.
With these two function definitions, Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) is then rewritten as <inline-formula><mml:math id="M329" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
Schematic representations of the three <inline-formula><mml:math id="M330" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula> cases and of the <inline-formula><mml:math id="M331" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M332" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> functions are shown in Fig. <xref ref-type="fig" rid="Ch1.F2"/>.</p>
</sec>
<sec id="Ch1.S2.SS4.SSSx1" specific-use="unnumbered">
  <?xmltex \opttitle{Case $\gamma<0$}?><title>Case <inline-formula><mml:math id="M333" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula></title>
      <p id="d1e7302">The first case can be handled similarly to the Alk<inline-formula><mml:math id="M334" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M335" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>  and Alk<inline-formula><mml:math id="M336" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M337" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> pairs.
Equation (<xref ref-type="disp-formula" rid="Ch1.E12"/>) always has exactly one root with <inline-formula><mml:math id="M338" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> as the equation function is monotonous and strictly decreasing with [<inline-formula><mml:math id="M339" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>].
Upper and lower bounds for that root can be derived by solving the (quadratic) equations:
              <disp-formula id="Ch1.E15" content-type="numbered"><label>15</label><mml:math id="M340" display="block"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></disp-formula>
            for <inline-formula><mml:math id="M341" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and
              <disp-formula id="Ch1.E16" content-type="numbered"><label>16</label><mml:math id="M342" display="block"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub></mml:mrow></mml:math></disp-formula>
            for <inline-formula><mml:math id="M343" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and retaining the respective positive roots of each.</p>
</sec>
<sec id="Ch1.S2.SS4.SSSx2" specific-use="unnumbered">
  <?xmltex \opttitle{Case $\gamma=0$}?><title>Case <inline-formula><mml:math id="M344" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula></title>
      <p id="d1e7540">The second case might be considered to be only mathematically of importance as it only applies for one exact (and thus improbable) <inline-formula><mml:math id="M345" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration value. For the sake of completeness, I nevertheless solve it.</p>
      <p id="d1e7559">As mentioned above, if <inline-formula><mml:math id="M346" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) has one solution if and only if <inline-formula><mml:math id="M347" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, and no solution otherwise.
The root can be easily bracketed from below.
It is sufficient to choose <inline-formula><mml:math id="M348" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> such that
              <disp-formula id="Ch1.Ex10"><mml:math id="M349" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></disp-formula>
            leading to
<inline-formula><mml:math id="M350" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>.
The analogue equation for <inline-formula><mml:math id="M351" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, with <inline-formula><mml:math id="M352" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> replaced by <inline-formula><mml:math id="M353" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> (cf. Eqs. <xref ref-type="disp-formula" rid="Ch1.E15"/> and <xref ref-type="disp-formula" rid="Ch1.E16"/>) does not work if <inline-formula><mml:math id="M354" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>≤</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.
The newly derived asymptotic approximation for <inline-formula><mml:math id="M355" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> as <inline-formula><mml:math id="M356" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>→</mml:mo><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∞</mml:mi></mml:mrow></mml:math></inline-formula> (see the “Mathematical and Technical Details” report in the Supplement) nevertheless provides a means to derive an upper bound.
It is sufficient to choose <inline-formula><mml:math id="M357" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> such that
              <disp-formula id="Ch1.Ex11"><mml:math id="M358" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mo>∑</mml:mo><mml:mi>i</mml:mi></mml:msub><mml:mo>[</mml:mo><mml:mi mathvariant="normal">Σ</mml:mi><mml:msub><mml:mrow class="chem"><mml:mi mathvariant="normal">A</mml:mi></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>]</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M359" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> denumbers the acid systems considered, except for the carbonate system, <inline-formula><mml:math id="M360" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mi mathvariant="normal">Σ</mml:mi><mml:msub><mml:mrow class="chem"><mml:mi mathvariant="normal">A</mml:mi></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> is the total amount of the acid <inline-formula><mml:math id="M361" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> dissolved and <inline-formula><mml:math id="M362" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the first dissociation constant of the acid system <inline-formula><mml:math id="M363" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>.
This equation always has a solution and, taking into account that
              <disp-formula id="Ch1.Ex12"><mml:math id="M364" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Alk</mml:mi><mml:mi mathvariant="normal">nWC</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>&lt;</mml:mo><mml:msub><mml:mi mathvariant="normal">Alk</mml:mi><mml:mi mathvariant="normal">nWCinf</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mo>∑</mml:mo><mml:mi>i</mml:mi></mml:msub><mml:mo>[</mml:mo><mml:mi mathvariant="normal">Σ</mml:mi><mml:msub><mml:mi mathvariant="normal">A</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>]</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            which is valid for <inline-formula><mml:math id="M365" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, it is straightforward to show that
<inline-formula><mml:math id="M366" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>  with this choice. Equation (<xref ref-type="disp-formula" rid="Ch1.E12"/>), which is equivalent to <inline-formula><mml:math id="M367" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> thus has a single root between <inline-formula><mml:math id="M368" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M369" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec id="Ch1.S2.SS4.SSSx3" specific-use="unnumbered">
  <?xmltex \opttitle{Case $\gamma>0$}?><title>Case <inline-formula><mml:math id="M370" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula></title>
      <p id="d1e8257">The third case is the most commonly encountered and the most challenging.
With <inline-formula><mml:math id="M371" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M372" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> has a minimum and the location of that minimum is a critical parameter in the analysis of this case.
Let us denote the location of that minimum by <inline-formula><mml:math id="M373" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and the value that <inline-formula><mml:math id="M374" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> takes there by <inline-formula><mml:math id="M375" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>:
              <disp-formula id="Ch1.Ex13"><mml:math id="M376" display="block"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mi mathvariant="italic">γ</mml:mi></mml:mfrac></mml:mstyle></mml:msqrt><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow></mml:msqrt><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            There are two ranges of <inline-formula><mml:math id="M377" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values where firm conclusions can be drawn right away.
<list list-type="order"><list-item>
      <p id="d1e8409">If <inline-formula><mml:math id="M378" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>,
i.e. if <inline-formula><mml:math id="M379" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>,
Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) has two distinct roots, since <inline-formula><mml:math id="M380" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is bounded.
Furthermore, the roots – let us provisionally denote the lower one <inline-formula><mml:math id="M381" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and the greater one <inline-formula><mml:math id="M382" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> – are such that <inline-formula><mml:math id="M383" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>&lt;</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and  <inline-formula><mml:math id="M384" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
<inline-formula><mml:math id="M385" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can thus be used as an upper bracket for <inline-formula><mml:math id="M386" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and as a lower bracket for <inline-formula><mml:math id="M387" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>.
However, if <inline-formula><mml:math id="M388" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, the abscissae of the intersection points <inline-formula><mml:math id="M389" display="inline"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mtext>LL</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M390" display="inline"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mtext>LR</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> (see Fig. <xref ref-type="fig" rid="Ch1.F2"/>), which are solutions of<disp-formula id="Ch1.Ex14"><mml:math id="M391" display="block"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mi>H</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mi>H</mml:mi></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCsup</mml:mtext></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>provide tighter brackets than <inline-formula><mml:math id="M392" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p></list-item><list-item>
      <p id="d1e8712">If <inline-formula><mml:math id="M393" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>≤</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, i.e. if <inline-formula><mml:math id="M394" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>≤</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) does not have any roots.</p></list-item></list>
For intermediate values of <inline-formula><mml:math id="M395" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, no firm quantitative statement regarding the root(s) of Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) can be made a priori.
As <inline-formula><mml:math id="M396" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> decreases from
<inline-formula><mml:math id="M397" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> to
<inline-formula><mml:math id="M398" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) will at first still have two roots, but both are greater than or equal to <inline-formula><mml:math id="M399" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
At some intermediate value, <inline-formula><mml:math id="M400" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M401" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> become tangent.
At this point, Eq. (<xref ref-type="disp-formula" rid="Ch1.E12"/>) has one double root, which is the abscissa of that tangent point, <inline-formula><mml:math id="M402" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
<inline-formula><mml:math id="M403" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is actually a universally valid separation limit between two roots, if there are any. For lower values of <inline-formula><mml:math id="M404" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, the problem does not have any solutions.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3"><?xmltex \currentcnt{3}?><?xmltex \def\figurename{Figure}?><label>Figure 3</label><caption><p id="d1e8944">Determination of the <inline-formula><mml:math id="M405" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> value for which the <inline-formula><mml:math id="M406" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M407" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> curves become tangent, or, equivalently, the lowest <inline-formula><mml:math id="M408" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> value for which the equation <inline-formula><mml:math id="M409" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> has a solution.
Panel <bold>(a)</bold> shows how relevant characteristic points can be derived by considering the particular <inline-formula><mml:math id="M410" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> curve that intersects <inline-formula><mml:math id="M411" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> at its minimum.
Panel <bold>(b)</bold> shows the locus of the solutions of <inline-formula><mml:math id="M412" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> in an <inline-formula><mml:math id="M413" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> graph, i.e. the curve <inline-formula><mml:math id="M414" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>ncW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
Please notice that <inline-formula><mml:math id="M415" display="inline"><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>ncW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> denotes the alkalinity value obtained for <inline-formula><mml:math id="M416" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and not the minimum value of the curve shown in panel <bold>(b)</bold>.
See text for details.</p></caption>
            <?xmltex \igopts{width=199.169291pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f03.png"/>

          </fig>

      <p id="d1e9337">The limiting <inline-formula><mml:math id="M417" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> value for which the two curves are tangential and the corresponding <inline-formula><mml:math id="M418" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> value can be calculated with a common algorithm to characterise a bracketed local minimum, such as Brent's algorithm <xref ref-type="bibr" rid="bib1.bibx1" id="paren.23"/>.
To start, we reconsider <inline-formula><mml:math id="M419" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> not as an equation in <inline-formula><mml:math id="M420" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> for given parameter values <inline-formula><mml:math id="M421" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula> (or, equivalently, [<inline-formula><mml:math id="M422" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>]) and <inline-formula><mml:math id="M423" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula>, but rather as an implicit definition for <inline-formula><mml:math id="M424" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> as a function of [<inline-formula><mml:math id="M425" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>], for a given <inline-formula><mml:math id="M426" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula> (here <inline-formula><mml:math id="M427" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>).
This implicit function definition can actually be solved explicitly here:
              <disp-formula id="Ch1.Ex15"><mml:math id="M428" display="block"><mml:mrow><mml:mi>A</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>ncW</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            Figure <xref ref-type="fig" rid="Ch1.F3"/> shows how the two problems are related and which information can be derived from the analysis of <inline-formula><mml:math id="M429" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M430" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> to contribute to the solution of the minimisation of <inline-formula><mml:math id="M431" display="inline"><mml:mrow><mml:mi>A</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
The determination of <inline-formula><mml:math id="M432" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is costly, generally more costly than the subsequent resolution of the pH equation itself.
As mentioned right at the beginning of this section, there are extended ranges of <inline-formula><mml:math id="M433" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values for which the exact knowledge of <inline-formula><mml:math id="M434" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is not indispensable.
In these situations <inline-formula><mml:math id="M435" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> may be a sub-optimal but nevertheless sufficient separation limit for the roots (or equal to the double root itself) and cheap to calculate.
If available, <inline-formula><mml:math id="M436" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be used as an upper bound for the lower and as a lower bound for the greater of the two roots.
To start the minimisation algorithm to derive <inline-formula><mml:math id="M437" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, we can use the three characteristic <inline-formula><mml:math id="M438" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> values from Fig. <xref ref-type="fig" rid="Ch1.F3"/> as initial conditions.
These are <inline-formula><mml:math id="M439" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> together with the abscissae <inline-formula><mml:math id="M440" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>L</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M441" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>R</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> of the intersection points between <inline-formula><mml:math id="M442" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and the horizontal line at <inline-formula><mml:math id="M443" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>min</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, which are the roots of
              <disp-formula id="Ch1.Ex16"><mml:math id="M444" display="block"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:msup><mml:mi>H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>min</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mi>H</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            By construction, <inline-formula><mml:math id="M445" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>min</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow></mml:msqrt><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.
The discriminant of this quadratic equation is therefore strictly positive and the equation has two positive roots (their sum and their product are positive) as required.
It is possible to show that the second derivative of <inline-formula><mml:math id="M446" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> with respect to [<inline-formula><mml:math id="M447" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] is positive provided that the successive dissociation constants <inline-formula><mml:math id="M448" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of the different acid systems (denumbered by <inline-formula><mml:math id="M449" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>) resulting from the dissociation of an acid <inline-formula><mml:math id="M450" display="inline"><mml:mrow><mml:msub><mml:mtext>H</mml:mtext><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are such that <inline-formula><mml:math id="M451" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> – a very weak constraint as these constants generally differ by a few orders of magnitude.
This has been verified to be the case for acid systems with <inline-formula><mml:math id="M452" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mi>i</mml:mi><mml:mo>]</mml:mo></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">12</mml:mn></mml:mrow></mml:math></inline-formula>.
The underlying technical developments can be found in the “Mathematical and Technical Details” report in the Supplement.
<inline-formula><mml:math id="M453" display="inline"><mml:mrow><mml:mi>R</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is thus concave, while <inline-formula><mml:math id="M454" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is convex for <inline-formula><mml:math id="M455" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M456" display="inline"><mml:mrow><mml:mi>A</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> thus has only a single local minimum comprised between <inline-formula><mml:math id="M457" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>L</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M458" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>R</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e10240">Once <inline-formula><mml:math id="M459" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is known, the root brackets can be completed by the intersection points between <inline-formula><mml:math id="M460" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and the horizontal line at <inline-formula><mml:math id="M461" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> – corresponding to the <inline-formula><mml:math id="M462" display="inline"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mtext>UL</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M463" display="inline"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mtext>UR</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> points in Fig. <xref ref-type="fig" rid="Ch1.F2"/> with the grey band shifted down to include the minimum – i.e. by solving the same quadratic equation than for <inline-formula><mml:math id="M464" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>L</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M465" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>R</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, with <inline-formula><mml:math id="M466" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> replaced by <inline-formula><mml:math id="M467" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
We have again <inline-formula><mml:math id="M468" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and the equation has two positive roots.
With these brackets on the two roots, any safeguarded iterative procedure, such as those implemented in SolveSAPHE, can be used to find the two roots in a controlled way.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4" specific-use="star"><?xmltex \currentcnt{4}?><?xmltex \def\figurename{Figure}?><label>Figure 4</label><caption><p id="d1e10394"><bold>(a)</bold> Evolution of the concentrations of the different species composing Alk<inline-formula><mml:math id="M469" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M470" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, as a function of pH,
for <inline-formula><mml:math id="M471" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.3</mml:mn></mml:mrow></mml:math></inline-formula> mmol kg<inline-formula><mml:math id="M472" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>.
<inline-formula><mml:math id="M473" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and the concentrations all of its components reduce to 0
at  pH <inline-formula><mml:math id="M474" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 11.48 (marked by the long-dashed vertical black line)
in this example. The dashed orange line represents the joint contribution of
B(OH)<inline-formula><mml:math id="M475" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="normal">4</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and OH<inline-formula><mml:math id="M476" display="inline"><mml:msup><mml:mi/><mml:mo>-</mml:mo></mml:msup></mml:math></inline-formula> which are the dominant
Alk<inline-formula><mml:math id="M477" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> contributors at high pH.
<bold>(b)</bold> <inline-formula><mml:math id="M478" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> as a function of pH
for different Alk<inline-formula><mml:math id="M479" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> values
(indicated in mmol kg<inline-formula><mml:math id="M480" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> for each curve).
Each curve represents a horizontal cross-section at the corresponding
Alk<inline-formula><mml:math id="M481" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> level through the <inline-formula><mml:math id="M482" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>
distribution depicted in Fig. <xref ref-type="fig" rid="Ch1.F1"/>e.
</p></caption>
            <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f04.png"/>

          </fig>

</sec>
<sec id="Ch1.S2.SS4.SSS2">
  <label>2.4.2</label><title>Two roots: which one to choose?</title>
      <p id="d1e10586">Since every physical aqueous sample has a pH, the case without roots is essentially a theoretical one:
it can actually arise only if the adopted alkalinity composition is not appropriate or if measurement errors are large.
The case where an Alk<inline-formula><mml:math id="M483" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M484" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> data pair is compatible with two different pH values is, on the contrary, the most common one.
SolveSAPHE-r2 has been designed as a universal pH solver and as such returns all the roots that a data pair may offer, since there is no universal criterion to decide which one of the two roots is preferable over the other.</p>
      <p id="d1e10614">However, at the end of the calculations, one of the two has to be chosen.
Additional information, qualitative or quantitative, is required to make that decision.
This could be a third measurable, but often even qualitative information about, say, the expected pH or the <inline-formula><mml:math id="M485" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="normal">T</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> range might be sufficient.
For typical seawater samples, the greater of the two <inline-formula><mml:math id="M486" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> solutions will typically be the adequate one, following the “use the larger one” advice of <xref ref-type="bibr" rid="bib1.bibx15" id="text.24"/>.</p>
      <p id="d1e10647">In the analysis of the Alk<inline-formula><mml:math id="M487" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M488" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem above, we determined the Alk<inline-formula><mml:math id="M489" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> ranges that would, respectively, lead to two, one or no roots, for a given <inline-formula><mml:math id="M490" display="inline"><mml:mi mathvariant="italic">γ</mml:mi></mml:math></inline-formula>, i.e. <inline-formula><mml:math id="M491" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.
To better understand the reasons why and when there are two, one or no roots and what other implications the individual roots have, it is instructive to perform the analysis the other way around:
figure out how <inline-formula><mml:math id="M492" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> evolves as a function of pH for a given value of Alk<inline-formula><mml:math id="M493" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>, and determine the <inline-formula><mml:math id="M494" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> ranges that would, respectively, lead to two, one or no roots.
Such an analysis is presented in Fig. <xref ref-type="fig" rid="Ch1.F4"/>.
For that figure, we have reconsidered the sample composition previously used in Fig. <xref ref-type="fig" rid="Ch1.F1"/>c and f.
We thus start with Alk<inline-formula><mml:math id="M495" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> fixed at 2.3 <inline-formula><mml:math id="M496" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and draw the evolution of <inline-formula><mml:math id="M497" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> as a function of pH following
              <disp-formula id="Ch1.E17" content-type="numbered"><label>17</label><mml:math id="M498" display="block"><mml:mrow><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo><mml:mo>)</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mtext>W</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow><mml:mrow><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            obtained by first using Eq. (<xref ref-type="disp-formula" rid="Ch1.E9"/>) to express <inline-formula><mml:math id="M499" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> as a function of Alk<inline-formula><mml:math id="M500" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M501" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, and then Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) to calculate Alk<inline-formula><mml:math id="M502" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula> as a function of Alk<inline-formula><mml:math id="M503" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M504" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> (and the total concentrations of all the other contributing acid–base systems, which we assume to be known, as stated initially).
<inline-formula><mml:math id="M505" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M506" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> evolution curves can be derived similarly, by using Eqs. (<xref ref-type="disp-formula" rid="Ch1.E7"/>) and (<xref ref-type="disp-formula" rid="Ch1.E8"/>), respectively, instead of Eq. (<xref ref-type="disp-formula" rid="Ch1.E9"/>).
The concentration evolution for the other Alk<inline-formula><mml:math id="M507" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> contributors can be calculated from their species fraction equations <xref ref-type="bibr" rid="bib1.bibx7" id="paren.25"><named-content content-type="pre">see, e.g.</named-content></xref>.
Figure <xref ref-type="fig" rid="Ch1.F4"/>a shows the concentration curves for all the species contributing to total alkalinity and dissolved inorganic carbon, for pH values ranging from 3 to 12, and for  <inline-formula><mml:math id="M508" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.3</mml:mn></mml:mrow></mml:math></inline-formula> mmol kg<inline-formula><mml:math id="M509" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>;
Fig. <xref ref-type="fig" rid="Ch1.F4"/>b shows the <inline-formula><mml:math id="M510" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> evolution curves for different Alk<inline-formula><mml:math id="M511" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> values, ranging from 0.5 to 2.5 <inline-formula><mml:math id="M512" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>.
Solving the Alk<inline-formula><mml:math id="M513" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M514" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem for our showcase sample where <inline-formula><mml:math id="M515" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M516" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> thus means drawing a horizontal line through the 0.1 <inline-formula><mml:math id="M517" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> concentration level and locating the intersection points with the <inline-formula><mml:math id="M518" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> curve, if any.
There are actually two of them, located at pH <inline-formula><mml:math id="M519" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 8.03 and  pH <inline-formula><mml:math id="M520" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 11.43.
With increasing target values for <inline-formula><mml:math id="M521" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, i.e. moving the horizontal line upward, the two pH roots will move closer and closer together, until the maximum of the <inline-formula><mml:math id="M522" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> curve is touched, at <inline-formula><mml:math id="M523" display="inline"><mml:mrow><mml:msub><mml:mtext>CO</mml:mtext><mml:mtext>3 max</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">841.7</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M524" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>.
At this exact value, there will only be one root:  pH <inline-formula><mml:math id="M525" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 10.1943.
Positioning the line higher up does not allow any intersection with the <inline-formula><mml:math id="M526" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> curve any more: there are no roots for <inline-formula><mml:math id="M527" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&gt;</mml:mo><mml:msub><mml:mtext>CO</mml:mtext><mml:mtext>3 max</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
As illustrated in Fig. <xref ref-type="fig" rid="Ch1.F4"/>b, the value of CO<inline-formula><mml:math id="M528" display="inline"><mml:msub><mml:mi/><mml:mtext>3 max</mml:mtext></mml:msub></mml:math></inline-formula> grows as Alk<inline-formula><mml:math id="M529" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> increases, thus extending the range of [<inline-formula><mml:math id="M530" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] that allows for roots.
Another noteworthy fact in Fig. <xref ref-type="fig" rid="Ch1.F4"/>b is that all the displayed <inline-formula><mml:math id="M531" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> curves increase to a maximum before declining and reducing to zero at some finite pH.
While not all possible curves have that shape (it is possible to show that curves for <inline-formula><mml:math id="M532" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>&lt;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mi>s</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula> are monotonously decreasing), all of them nevertheless go to zero.
The equation <inline-formula><mml:math id="M533" display="inline"><mml:mrow><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow><mml:mo>(</mml:mo><mml:mo>[</mml:mo><mml:msup><mml:mtext>H</mml:mtext><mml:mo>+</mml:mo></mml:msup><mml:mo>]</mml:mo><mml:mo>;</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> actually always has exactly one root, for any given <inline-formula><mml:math id="M534" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, since this simply requires that the numerator on the right-hand side of Eq. <xref ref-type="disp-formula" rid="Ch1.E17"/>) is 0, i.e. that <inline-formula><mml:math id="M535" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> is the solution of a standard alkalinity–pH equation where <inline-formula><mml:math id="M536" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>.
Such an equation always has exactly one positive solution, for any physically meaningful set of total concentrations of the different acid–base systems at play and any Alk<inline-formula><mml:math id="M537" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> value <xref ref-type="bibr" rid="bib1.bibx7" id="paren.26"/>.
The pH value at that zero-crossing point is furthermore the maximum possible pH for the given Alk<inline-formula><mml:math id="M538" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>: beyond that value, the ever-growing <inline-formula><mml:math id="M539" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">OH</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> would inevitably make Alk<inline-formula><mml:math id="M540" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> increase above the fixed  value, thus requiring Alk<inline-formula><mml:math id="M541" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula> to become negative, which is not possible.</p>
      <p id="d1e11602">As can be seen in Fig. <xref ref-type="fig" rid="Ch1.F4"/>a, the high-pH solution goes together with <inline-formula><mml:math id="M542" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="normal">T</mml:mi></mml:msub><mml:mo>≃</mml:mo><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>: <inline-formula><mml:math id="M543" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> represents only 4.6 % of the <inline-formula><mml:math id="M544" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> at  pH <inline-formula><mml:math id="M545" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 8.03, typical for seawater, but 99.2 % at pH <inline-formula><mml:math id="M546" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 11.43.
Accordingly <inline-formula><mml:math id="M547" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi mathvariant="normal">T</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.1008</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M548" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> at the high-pH root, which is unrealistically low for many natural samples.
In the marine realm, this observation regarding the high-pH root is actually correct in general.
<inline-formula><mml:math id="M549" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> represents more than 80 % of DIC for pH <inline-formula><mml:math id="M550" display="inline"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:math></inline-formula>, and more than 90 % for pH <inline-formula><mml:math id="M551" display="inline"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">10.3</mml:mn></mml:mrow></mml:math></inline-formula>, as can be calculated from Eq. (<xref ref-type="disp-formula" rid="Ch1.E6"/>).
In Fig. <xref ref-type="fig" rid="Ch1.F4"/>b, one can see that the maxima of the <inline-formula><mml:math id="M552" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> curves are greater than 0.47 <inline-formula><mml:math id="M553" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> for <inline-formula><mml:math id="M554" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">1.5</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M555" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and that they are located at pH <inline-formula><mml:math id="M556" display="inline"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:math></inline-formula>.
Since the larger of the two solutions is always at a pH greater than or equal to the maximum of the curve that it must intersect, we may conclude that for <inline-formula><mml:math id="M557" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0.47</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M558" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M559" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">1.5</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M560" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>, the greater of the two pH roots always implies that <inline-formula><mml:math id="M561" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> represents more than 80% of <inline-formula><mml:math id="M562" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
Accordingly, even a rough estimate of one of the other relevant parameters of the carbonate system might be sufficient to reject one of the two roots.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS5">
  <label>2.5</label><title>Initialisation: rationale</title>
      <p id="d1e11932">Since we have bracketing intervals for each diagnosed root, we may always use the fall-back initial value <inline-formula><mml:math id="M563" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:msqrt></mml:mrow></mml:math></inline-formula>.
This value is, however, often far from optimal.
The efficient initialisation strategy of <xref ref-type="bibr" rid="bib1.bibx7" id="text.27"/> can be generalised and adapted to each of the three pairs.
For each case, we choose the most complex <inline-formula><mml:math id="M564" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> approximation that leads to a cubic equation.
If the cubic polynomial behind that equation does not have a local minimum and a local maximum, we use the fall-back value.
If such a local minimum and maximum exist, we use the quadratic Taylor expansion around the relevant extremum – this will normally be the maximum if the coefficient of the cubic term is negative, and the minimum if that coefficient is positive.
If that quadratic does not have any positive roots, the fall-back initial value is used.
The roots for that quadratic are then determined.
For problems that have only one positive <inline-formula><mml:math id="M565" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> solution (Alk<inline-formula><mml:math id="M566" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M567" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M568" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M569" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and Alk<inline-formula><mml:math id="M570" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M571" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> with <inline-formula><mml:math id="M572" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>), we consider that root of the quadratic expansion that is greater than the greatest location of the two extrema: if that root is lower than <inline-formula><mml:math id="M573" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, we use <inline-formula><mml:math id="M574" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>; if it is greater than <inline-formula><mml:math id="M575" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>sup</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, we set <inline-formula><mml:math id="M576" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>inf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
For problems that have two positive <inline-formula><mml:math id="M577" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> solutions (Alk<inline-formula><mml:math id="M578" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M579" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> with <inline-formula><mml:math id="M580" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> and sufficiently great <inline-formula><mml:math id="M581" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>), the initial value for determining the greater of the two <inline-formula><mml:math id="M582" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> solutions can be chosen exactly the same way;
the initial value required to calculate the lower of the two <inline-formula><mml:math id="M583" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> solutions may be more tricky.
If the location of the right-hand side extremum is too close to 0, the estimated root of the cubic may be negative.
In this case, the quadratic fitted to left-hand extremum should be considered as well and the greater of its roots tested.
Because of the symmetries of a cubic, that root can be calculated with a few extra additions only.</p>
      <p id="d1e12227">The developments for each of the three input pairs are presented in full detail in the “Mathematical and Technical Details” report in the Supplement.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Numerical experiments</title>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Reference Fortran 90 implementation</title>
      <p id="d1e12246">The SolveSAPHE Fortran 90 library from <xref ref-type="bibr" rid="bib1.bibx7" id="text.28"/> – hereafter SolveSAPHE v1 – has been revised, cleaned up and upgraded to allow the processing of the additional three pairs.
For the purpose of this paper, only the two main solvers have been kept:
these are <preformat preformat-type="code"><![CDATA[solve_at_general]]></preformat>, which uses a Newton–Raphson method, and <preformat preformat-type="code"><![CDATA[solve_at_general_sec]]></preformat>, which uses the secant method.
Both can be still be used with the same application programming interface (API) as in v1.
The instances in SolveSAPHE-r2 are, however, only wrappers to the newly added Newton–Raphson-based <preformat preformat-type="code"><![CDATA[solve_at_general2]]></preformat> and secant (or more precisely regula falsi) based <preformat preformat-type="code"><![CDATA[solve_at_general2_sec]]></preformat> both of which are able to process problems that have two roots.
They return the number of roots of the problem, as well as their actual values, if any.</p>
      <p id="d1e12264">In the course of the developments related to the Alk<inline-formula><mml:math id="M584" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M585" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> pair, the Newton–Raphson-based algorithm showed a few weaknesses.
With the Alk<inline-formula><mml:math id="M586" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M587" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>  pair that SolveSAPHE v1 had been designed for, each non-water alkalinity term was bounded, just like its derivative.
Once <inline-formula><mml:math id="M588" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> takes the role of <inline-formula><mml:math id="M589" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> these favourable properties are lost:
with [<inline-formula><mml:math id="M590" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] fixed, the carbonate alkalinity term and its derivative with respect to [<inline-formula><mml:math id="M591" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] become unbounded.
Newton iterates can then change by large amounts and floating point over- and underflow errors on the exponential correction became common.
The rate of change for Newton–Raphson iterates during each step was therefore limited to a factor of 100.
With high <inline-formula><mml:math id="M592" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> concentration values prescribed, there was another loss of control on the iteration sequence that had not been encountered before.
At some iterations, most often at the first one, it happened that one of the two root brackets, say the upper one, was reduced to the iteration value.
In the next iteration, that same bound was exceeded by the trial Newton–Raphson iterate, which was then rejected and replaced by a bisection iterate on the interval delimited by the previous iterate and the upper bracket.
Since both were identical, the bisection actually produced no variation and falsely led to convergence diagnosis.
This has been fixed by changing the interval whereon the bisection step is performed to that delimited by the lower and the upper brackets of the root, which are always different.<fn id="Ch1.Footn2"><p id="d1e12363">Both corrections have been backported to the version 1 branch of SolveSAPHE and are included in v1.1 in the SolveSAPHE archive on Zenodo <xref ref-type="bibr" rid="bib1.bibx8" id="paren.29"/>.</p></fn>
The unbounded variations of the carbonate alkalinity term when one of the individual species was used instead of <inline-formula><mml:math id="M593" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> furthermore required to modify the stopping criterion for the iterations: in SolveSAPHE v1, iterations are stopped as soon as the relative difference between successive iterates falls below a set tolerance <inline-formula><mml:math id="M594" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> (<inline-formula><mml:math id="M595" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">8</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> by default).
However, iterations for Alk<inline-formula><mml:math id="M596" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M597" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and for the greater root of Alk<inline-formula><mml:math id="M598" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M599" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> were prone to early termination with that stopping criterion, as iterates only slowly changed due to the extreme gradients in the Alk<inline-formula><mml:math id="M600" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula> term of the equation.
The stopping criterion is therefore now based upon the width of the bracketing interval, and iterations are stopped as soon as
<inline-formula><mml:math id="M601" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>max</mml:mtext></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>&lt;</mml:mo><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>max</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>,
where <inline-formula><mml:math id="M602" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>max</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M603" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> are, respectively, the upper and lower brackets of the root, which are continuously updated as iterations progress.
As a consequence of this change, the number of bisection steps considerably increased.
In order to speed up convergence, most bisection steps were replaced by regula falsi steps on <inline-formula><mml:math id="M604" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>max</mml:mtext></mml:msub><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.
Bisection steps are only used occasionally when either the minimum or maximum root bracket gets updated too often in a row (three times by default) which indicates that the equation values at <inline-formula><mml:math id="M605" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>max</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M606" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> have strongly different magnitudes.
Unfortunately, the number of iterations required for the original SolveSAPHE pair Alk<inline-formula><mml:math id="M607" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M608" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> increases with this stopping criterion, without any appreciable gain in precision (compare, e.g. the number of iterations from Fig. 3b and the residuals from Fig. 1d in <xref ref-type="bibr" rid="bib1.bibx7" id="text.30"/>, with the number of iterations required here as reported in Fig. <xref ref-type="fig" rid="Ch1.F6"/> for SW3 and the synthetic overview of the equation residuals reported in Tables S4 and S5 in the “Additional Results” section in the Supplement).
For modelling purposes, where Alk<inline-formula><mml:math id="M609" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M610" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is generally the relevant pair of data, SolveSAPHE v1 remains the most efficient choice.
Tests have shown that the two safeguarded algorithms from SolveSAPHE v1 typically require 40 %–45 % less computing time than their SolveSAPHE-r2 counterparts.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e12627">Ranges of variation for the input variables for the five test cases.
Experiments always considered Alk<inline-formula><mml:math id="M611" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and either one of <inline-formula><mml:math id="M612" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, [<inline-formula><mml:math id="M613" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>], [<inline-formula><mml:math id="M614" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] or [<inline-formula><mml:math id="M615" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>].</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="12">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right" colsep="1"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="right" colsep="1"/>
     <oasis:colspec colnum="7" colname="col7" align="right"/>
     <oasis:colspec colnum="8" colname="col8" align="right" colsep="1"/>
     <oasis:colspec colnum="9" colname="col9" align="right"/>
     <oasis:colspec colnum="10" colname="col10" align="right" colsep="1"/>
     <oasis:colspec colnum="11" colname="col11" align="right"/>
     <oasis:colspec colnum="12" colname="col12" align="right"/>
     <oasis:thead>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry rowsep="1" namest="col3" nameend="col4" align="center" colsep="1">SW1 </oasis:entry>
         <oasis:entry rowsep="1" namest="col5" nameend="col6" align="center" colsep="1">SW2 </oasis:entry>
         <oasis:entry rowsep="1" namest="col7" nameend="col8" align="center" colsep="1">SW3 </oasis:entry>
         <oasis:entry rowsep="1" namest="col9" nameend="col10" align="center" colsep="1">BW4 </oasis:entry>
         <oasis:entry rowsep="1" namest="col11" nameend="col12" align="center">ABW5 </oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">scale</oasis:entry>
         <oasis:entry colname="col3">min</oasis:entry>
         <oasis:entry colname="col4">max</oasis:entry>
         <oasis:entry colname="col5">min</oasis:entry>
         <oasis:entry colname="col6">max</oasis:entry>
         <oasis:entry colname="col7">min</oasis:entry>
         <oasis:entry colname="col8">max</oasis:entry>
         <oasis:entry colname="col9">min</oasis:entry>
         <oasis:entry colname="col10">max</oasis:entry>
         <oasis:entry colname="col11">min</oasis:entry>
         <oasis:entry colname="col12">max</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Alk<inline-formula><mml:math id="M616" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>/[<inline-formula><mml:math id="M617" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>]</oasis:entry>
         <oasis:entry colname="col2">linear</oasis:entry>
         <oasis:entry colname="col3">2.20</oasis:entry>
         <oasis:entry colname="col4">2.50</oasis:entry>
         <oasis:entry colname="col5">2.20</oasis:entry>
         <oasis:entry colname="col6">3.50</oasis:entry>
         <oasis:entry colname="col7"><inline-formula><mml:math id="M618" display="inline"><mml:mo>-</mml:mo></mml:math></inline-formula>1.0</oasis:entry>
         <oasis:entry colname="col8">5.0</oasis:entry>
         <oasis:entry colname="col9">0.0</oasis:entry>
         <oasis:entry colname="col10">1.5</oasis:entry>
         <oasis:entry colname="col11">17.0</oasis:entry>
         <oasis:entry colname="col12">20.0</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M619" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>/[<inline-formula><mml:math id="M620" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>]</oasis:entry>
         <oasis:entry colname="col2">linear</oasis:entry>
         <oasis:entry colname="col3">1.85</oasis:entry>
         <oasis:entry colname="col4">2.45</oasis:entry>
         <oasis:entry colname="col5">1.85</oasis:entry>
         <oasis:entry colname="col6">3.35</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">6.0</oasis:entry>
         <oasis:entry colname="col9">0.0</oasis:entry>
         <oasis:entry colname="col10">1.2</oasis:entry>
         <oasis:entry colname="col11">15.0</oasis:entry>
         <oasis:entry colname="col12">17.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">[<inline-formula><mml:math id="M621" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>]/[<inline-formula><mml:math id="M622" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>]</oasis:entry>
         <oasis:entry colname="col2">log.</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M623" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">6</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M624" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M625" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">7</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M626" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7"><inline-formula><mml:math id="M627" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">14</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col8"><inline-formula><mml:math id="M628" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col9"><inline-formula><mml:math id="M629" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">12</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col10"><inline-formula><mml:math id="M630" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col11"><inline-formula><mml:math id="M631" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col12"><inline-formula><mml:math id="M632" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">[<inline-formula><mml:math id="M633" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>]/[<inline-formula><mml:math id="M634" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>]</oasis:entry>
         <oasis:entry colname="col2">linear</oasis:entry>
         <oasis:entry colname="col3">1.20</oasis:entry>
         <oasis:entry colname="col4">2.40</oasis:entry>
         <oasis:entry colname="col5">0.60</oasis:entry>
         <oasis:entry colname="col6">3.20</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">5.0</oasis:entry>
         <oasis:entry colname="col9">0.0</oasis:entry>
         <oasis:entry colname="col10">1.0</oasis:entry>
         <oasis:entry colname="col11">13.0</oasis:entry>
         <oasis:entry colname="col12">17.0</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">[<inline-formula><mml:math id="M635" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>]/[<inline-formula><mml:math id="M636" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>]</oasis:entry>
         <oasis:entry colname="col2">log.</oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M637" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M638" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M639" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">6</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6"><inline-formula><mml:math id="M640" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col7"><inline-formula><mml:math id="M641" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">14</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col8"><inline-formula><mml:math id="M642" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col9"><inline-formula><mml:math id="M643" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">9</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col10"><inline-formula><mml:math id="M644" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col11"><inline-formula><mml:math id="M645" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col12"><inline-formula><mml:math id="M646" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e13386">Finally, as explained above, some Alk<inline-formula><mml:math id="M647" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M648" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> combinations require the solution of an auxiliary minimisation problem.
For this purpose, Brent's algorithm was implemented into SolveSAPHE (translated to Fortran 90 from the Algol 60 version in <xref ref-type="bibr" rid="bib1.bibx1" id="text.31"><named-content content-type="post">Sect. 5.8</named-content></xref>, taking into account the author's errata reported on <uri>https://maths-people.anu.edu.au/~brent/pub/pub011.html</uri> (last access: 24 June 2021) and his modifications to the original algorithm as implemented in <uri>https://www.netlib.org/go/fmin.f</uri> (last access: 24 June 2021).</p>
</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Results and discussion</title>
<sec id="Ch1.S3.SS2.SSS1">
  <label>3.2.1</label><title>Test case definitions</title>
      <p id="d1e13440">Results from the three test cases (SW1, SW2 and SW3) from <xref ref-type="bibr" rid="bib1.bibx7" id="text.32"/> were used as starting points to define sets of Alk<inline-formula><mml:math id="M649" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M650" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M651" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M652" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and Alk<inline-formula><mml:math id="M653" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M654" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> concentration pairs to drive the test case experiments.
Two supplementary cases were added here: BW4 for surface brackish water with <inline-formula><mml:math id="M655" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">3.5</mml:mn></mml:mrow></mml:math></inline-formula> and ABW5 (based upon the data of <xref ref-type="bibr" rid="bib1.bibx14" id="text.33"/> for the Framvaren Fjord, Norway) for anoxic brackish water with Alk<inline-formula><mml:math id="M656" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M657" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> values 7 to 9 times higher than in the open ocean, as well as comparatively high alkalinity contributions from phosphates, silicates, sulfides, phosphates and ammonium.
For <inline-formula><mml:math id="M658" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M659" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>, which are most conveniently handled on a logarithmic concentration scale, the representative ranges were adapted so that the range endpoints are integer powers of 10.
The adopted ranges and scales are reported in Table <xref ref-type="table" rid="Ch1.T1"/>.
Each of the SW1, SW2 and SW3 test cases is complemented with three sets of temperature, salinity and pressure conditions for typical environments (surface cold, surface warm and deep cold seawater);
for BW4, only one such set for cold surface dilute or brackish water is used (<inline-formula><mml:math id="M660" display="inline"><mml:mrow><mml:mi>T</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">275.15</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M661" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M662" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">3.5</mml:mn></mml:mrow></mml:math></inline-formula>) and for ABW5 one set for subsurface brackish water (<inline-formula><mml:math id="M663" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">13.5</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M664" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">bar</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M665" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">22.82</mml:mn></mml:mrow></mml:math></inline-formula>).</p>
      <p id="d1e13644">For the comparison of the computational requirements for the processing of each set of samples, the adopted [<inline-formula><mml:math id="M666" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>], [<inline-formula><mml:math id="M667" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] or [<inline-formula><mml:math id="M668" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] distributions are adapted.
Although the <inline-formula><mml:math id="M669" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M670" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M671" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> ranges for each test case reported on Table <xref ref-type="table" rid="Ch1.T1"/> have been defined on the basis of their respective distributions calculated from the Alk<inline-formula><mml:math id="M672" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M673" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> results and although the adopted grids have the same dimensions, they do not cover exactly the same “samples” in any given test case.
To overcome that inconsistency, each test experiment for the intercomparison is first carried out with the Alk<inline-formula><mml:math id="M674" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M675" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair and the results stored.
For the other three pairs, the pH distribution obtained with the Alk<inline-formula><mml:math id="M676" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M677" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> pair for the corresponding set of temperature, salinity and pressure is first read in and the corresponding <inline-formula><mml:math id="M678" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M679" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> or <inline-formula><mml:math id="M680" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> distribution calculated on the underlying <inline-formula><mml:math id="M681" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–Alk<inline-formula><mml:math id="M682" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> grid.
The so-obtained arrays of species concentrations are then used to define the set of Alk<inline-formula><mml:math id="M683" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M684" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M685" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M686" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and Alk<inline-formula><mml:math id="M687" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M688" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> data pairs for the benchmark calculations.
This way, the test case experiments for the four different characteristic carbonate system concentrations cover exactly the same set of samples in each test case.
These sample sets cannot be represented on rectangular [<inline-formula><mml:math id="M689" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>]–Alk<inline-formula><mml:math id="M690" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>, [<inline-formula><mml:math id="M691" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>]–Alk<inline-formula><mml:math id="M692" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> or [<inline-formula><mml:math id="M693" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>]–Alk<inline-formula><mml:math id="M694" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> grids, respectively, which is nevertheless irrelevant for the histogram syntheses presented in Figs. <xref ref-type="fig" rid="Ch1.F6"/> and <xref ref-type="fig" rid="Ch1.F7"/>.
These variants of the test cases are denoted SW1<inline-formula><mml:math id="M695" display="inline"><mml:msub><mml:mi/><mml:mtext>CT</mml:mtext></mml:msub></mml:math></inline-formula>, SW2<inline-formula><mml:math id="M696" display="inline"><mml:msub><mml:mi/><mml:mtext>CT</mml:mtext></mml:msub></mml:math></inline-formula>, SW3<inline-formula><mml:math id="M697" display="inline"><mml:msub><mml:mi/><mml:mtext>CT</mml:mtext></mml:msub></mml:math></inline-formula>, BW4<inline-formula><mml:math id="M698" display="inline"><mml:msub><mml:mi/><mml:mtext>CT</mml:mtext></mml:msub></mml:math></inline-formula> and ABW5<inline-formula><mml:math id="M699" display="inline"><mml:msub><mml:mi/><mml:mtext>CT</mml:mtext></mml:msub></mml:math></inline-formula>.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5" specific-use="star"><?xmltex \currentcnt{5}?><?xmltex \def\figurename{Figure}?><label>Figure 5</label><caption><p id="d1e14067">pH distributions for the SW2-sc test case (SW2 under cold surface conditions, where <inline-formula><mml:math id="M700" display="inline"><mml:mrow><mml:mi>T</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">273.15</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M701" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M702" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">35</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M703" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M704" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">bar</mml:mi></mml:mrow></mml:math></inline-formula>), obtained with <monospace>solve_at_general2_sec</monospace>:
<bold>(a)</bold> Alk<inline-formula><mml:math id="M705" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M706" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
<bold>(b)</bold> Alk<inline-formula><mml:math id="M707" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M708" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>;
<bold>(c)</bold> the lower [<inline-formula><mml:math id="M709" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] root (higher pH root) of Alk<inline-formula><mml:math id="M710" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M711" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>;
<bold>(d)</bold> the greater [<inline-formula><mml:math id="M712" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] root (lower pH root) of Alk<inline-formula><mml:math id="M713" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M714" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>.
The thick dashed grey line in panels <bold>(c)</bold> and <bold>(d)</bold> shows the critical limit above which the Alk<inline-formula><mml:math id="M715" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M716" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> always has two roots.
Below this limit, further calculations are required to determine the number of solutions.
More details are given in the text and in the Supplement.
Please notice the different scales on the horizontal axes and for the pH colour coding in the four panels.</p></caption>
            <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f05.png"/>

          </fig>

</sec>
<sec id="Ch1.S3.SS2.SSS2">
  <label>3.2.2</label><title>Results</title>
      <p id="d1e14300">While all the test cases have their specific relevance, we are going to focus on SW2 for most of our discussion here.
SW2 covers currently observed seawater samples, thus encompassing SW1, and conditions expected to occur over the next 50 000 years as derived from simulation experiments carried out with MBM-MEDUSA <xref ref-type="bibr" rid="bib1.bibx6" id="paren.34"/>.
A wider selection of results also for the other cases is presented in the “Additional Results” in the Supplement.
pH distributions for the SW2 test case are shown in Fig. <xref ref-type="fig" rid="Ch1.F5"/>.</p>
      <p id="d1e14308">The difficulties posed by Alk<inline-formula><mml:math id="M717" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M718" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> that were at the origin of most of the amendments to the solver algorithms show up in the histograms for the number of iterations required to reach convergence shown in Fig. <xref ref-type="fig" rid="Ch1.F6"/> for <monospace>solve_at_general</monospace> which uses the hybrid Newton–Raphson–regula falsi–bisection scheme and in Fig. <xref ref-type="fig" rid="Ch1.F7"/> for <monospace>solve_at_general_sec</monospace> which uses the hybrid secant–regula falsi–bisection scheme.
With each one of the two solvers, Alk<inline-formula><mml:math id="M719" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M720" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> problems require in general more iterations to conclude than the other three pairs.
This is especially pronounced with <monospace>solve_at_general</monospace> (Fig. <xref ref-type="fig" rid="Ch1.F6"/>), where a considerable fraction of the Alk<inline-formula><mml:math id="M721" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M722" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> samples requires 45 to 55 and more iterations.
In comparison, Alk<inline-formula><mml:math id="M723" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M724" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> samples typically require about four to eight iterations for naturally occurring compositions, and only in some rare instances more than 20 for the extreme SW3.
The other pairs range between these two, Alk<inline-formula><mml:math id="M725" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M726" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> coming closest to Alk<inline-formula><mml:math id="M727" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M728" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
ABW5 shows a few deviations from the other tests cases.
Here, solving the Alk<inline-formula><mml:math id="M729" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M730" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> problem with <monospace>solve_at_general</monospace> nearly always takes more than 50 iterations, with <monospace>solve_at_general</monospace> almost always nine.
The solution of Alk<inline-formula><mml:math id="M731" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M732" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> for ABW5 with <monospace>solve_at_general_sec</monospace> takes considerably more iterations than  Alk<inline-formula><mml:math id="M733" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M734" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> (the fastest), and Alk<inline-formula><mml:math id="M735" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M736" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> (the second fastest).</p>
      <p id="d1e14546">Finally, Figs. <xref ref-type="fig" rid="Ch1.F6"/> and <xref ref-type="fig" rid="Ch1.F7"/> demonstrate the superiority of <monospace>solve_at_general_sec</monospace> over <monospace>solve_at_general</monospace>.
All in all, the former requires only one-fourth to one-half of the number of iterations than the latter, and it produces root approximations characterised by equation residuals that are up to 7 orders of magnitude lower than those obtained with the former (see Tables S4 and S5 in the “Additional Results” section in the Supplement).
ABW5 again presents an exception to this general pattern:
<monospace>solve_at_general_sec</monospace> requires typically about twice as many iterations to solve the  Alk<inline-formula><mml:math id="M737" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M738" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> problem than <monospace>solve_at_general</monospace>.</p>

      <?xmltex \floatpos{p}?><fig id="Ch1.F6" specific-use="star"><?xmltex \currentcnt{6}?><?xmltex \def\figurename{Figure}?><label>Figure 6</label><caption><p id="d1e14589">Number of iterations to convergence required by the various data pairs (separately for the lower and the greater [<inline-formula><mml:math id="M739" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] roots of the Alk<inline-formula><mml:math id="M740" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M741" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem), for each of the four test cases, carried out with <monospace>solve_at_general</monospace> (using a hybrid Newton–Raphson–regula falsi–bisection method).
The absolute maximum numbers of iterations were 58, 67, 64 and 56, for SW2, SW3, BW4 and ABW5, respectively, and 58 for SW1 (not shown).</p></caption>
            <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f06.png"/>

          </fig>

      <?xmltex \floatpos{p}?><fig id="Ch1.F7" specific-use="star"><?xmltex \currentcnt{7}?><?xmltex \def\figurename{Figure}?><label>Figure 7</label><caption><p id="d1e14639">Number of iterations to convergence required by the various data pairs (separately for the lower and the greater [<inline-formula><mml:math id="M742" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] roots of the Alk<inline-formula><mml:math id="M743" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M744" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem), for each of the four test cases, carried out with <monospace>solve_at_general_sec</monospace> (using a hybrid secant–regula falsi–bisection method).
The absolute maximum numbers of iterations were respectively 20, 21, 29 and 27, for SW2, SW3, BW4 and ABW5, respectively, and 20 for SW1 (not shown).</p></caption>
            <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f07.png"/>

          </fig>

      <p id="d1e14687">All these observations are also reflected in the execution times of the two solvers.
The Newton–Raphson-based solver takes more than 5 times as much time for the SW2 test case with Alk<inline-formula><mml:math id="M745" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M746" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> than with Alk<inline-formula><mml:math id="M747" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M748" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>; for Alk<inline-formula><mml:math id="M749" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M750" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>, it takes 4 times as much (for both roots though, including the solution of the minimisation problem for part of the domain).
For Alk<inline-formula><mml:math id="M751" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M752" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, the difference is only 20 %.
With the secant-based method, the picture is completely different: Alk<inline-formula><mml:math id="M753" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M754" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> takes only about 30 % more time than Alk<inline-formula><mml:math id="M755" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M756" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M757" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M758" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> twice as much, whereas Alk<inline-formula><mml:math id="M759" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M760" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> executes even about 5 % faster.
For the Alk<inline-formula><mml:math id="M761" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M762" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> pair of input data, the difference between the two solvers is greatest: the secant-based one takes less than one-fourth of the time taken by the Newton–Raphson-based one.</p>
      <p id="d1e14887">Another key factor that influences the execution times is the initialisation scheme, although the comparisons are not as clear cut as in <xref ref-type="bibr" rid="bib1.bibx7" id="text.35"/>.
Safe initialisation with the geometric mean of the root brackets (the fall-back initialisation value mentioned in Sect. <xref ref-type="sec" rid="Ch1.S2.SS5"/>) results in 40 %–60 % increases of the execution times for the Alk<inline-formula><mml:math id="M763" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M764" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and the Alk<inline-formula><mml:math id="M765" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M766" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> input pairs, compared to the standard cubic polynomial one.
Similar increases are obtained with a constant uniform  pH <inline-formula><mml:math id="M767" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula> 8 initialisation.
For Alk<inline-formula><mml:math id="M768" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M769" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, and Alk<inline-formula><mml:math id="M770" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M771" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>, the differences are much smaller and range between a decrease or an increase of up to 5 %.
With these two, the quality of the root brackets seems to be more critical than the initial value.</p>
      <p id="d1e14990">In the analysis in Sect. <xref ref-type="sec" rid="Ch1.S2.SS4.SSS1"/>, two characteristic thresholds for Alk<inline-formula><mml:math id="M772" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> have been made out for <inline-formula><mml:math id="M773" display="inline"><mml:mrow><mml:mi mathvariant="italic">γ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>:
an upper one at <inline-formula><mml:math id="M774" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWC</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, above which the problem always has two [<inline-formula><mml:math id="M775" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] solutions, and a lower one at <inline-formula><mml:math id="M776" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mtext>min</mml:mtext></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>nWCinf</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, below which the problem does not have any solution at all.
For intermediate values of Alk<inline-formula><mml:math id="M777" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>, it is necessary to determine <inline-formula><mml:math id="M778" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and Alk<inline-formula><mml:math id="M779" display="inline"><mml:msub><mml:mi/><mml:mtext>tan</mml:mtext></mml:msub></mml:math></inline-formula> to find out how many roots the problem has, and, in case there are two, where the separation between them lies.
The minimisation procedure required to determine <inline-formula><mml:math id="M780" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is computationally expensive as can be seen in Fig. <xref ref-type="fig" rid="Ch1.F8"/> (for SW2-sc).
The most probable number of iterations is in all experiments between 21 and 25; the median number is each time <inline-formula><mml:math id="M781" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.9</mml:mn><mml:mo>±</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula> higher than the most probable number, due to the skew-symmetric nature of the distribution of the number of iterates, as illustrated in the insert in Fig. <xref ref-type="fig" rid="Ch1.F8"/> (see also Fig. S23 in the “Additional Results” section in the Supplement).
The subsequent computation of the roots is much cheaper: for the lower root, the secant-based algorithm most probably takes five iterations, and only occasionally 15–16, and for the greater root, most probably four and only rarely more than nine.
The total number of samples in the SW2 test case is 1.95 million.
Overall, 10 500 (0.54 %) of these do not have any root for the Alk<inline-formula><mml:math id="M782" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M783" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pair and the solution of the minimisation problem is required for 173 445 samples (8.89 %), because <inline-formula><mml:math id="M784" display="inline"><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mtext>tan</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is required to separate the two roots.
The lower threshold essentially turns out as useless: it ranges at about <inline-formula><mml:math id="M785" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">28</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M786" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>.
This is due to the hydrogen sulfate acid system which strongly dominates the Alk<inline-formula><mml:math id="M787" display="inline"><mml:msub><mml:mi/><mml:mtext>nWC</mml:mtext></mml:msub></mml:math></inline-formula> minimum in seawater, because of the high total sulfate concentration in seawater (<inline-formula><mml:math id="M788" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mtext>T</mml:mtext></mml:msub><mml:mo>≃</mml:mo><mml:mn mathvariant="normal">28</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">mmol</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula>).
For carbonate ion concentrations below 400 <inline-formula><mml:math id="M789" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">µ</mml:mi><mml:mi mathvariant="normal">mol</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>, i.e. for most of the naturally occurring waters, the Alk<inline-formula><mml:math id="M790" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M791" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem will always have two roots and the solution of the auxiliary minimisation problem is not required to characterise them.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F8"><?xmltex \currentcnt{8}?><?xmltex \def\figurename{Figure}?><label>Figure 8</label><caption><p id="d1e15278">Number of iterations required by Brent's algorithm in the SW2 test case to solve the auxiliary minimisation problem whose solution determines the number of roots of the Alk<inline-formula><mml:math id="M792" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M793" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> pair and also provides the separation between the two roots.
The white area covers the region where the solution of the minimisation problems is not required as <inline-formula><mml:math id="M794" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is sufficiently high so that there were two roots.
The insert shows the frequency distribution of the number of iterations required.
The black line in the lower right corner traces the limit between regions with two roots and without roots (compare with Fig. <xref ref-type="fig" rid="Ch1.F5"/>c and d).</p></caption>
            <?xmltex \igopts{width=213.395669pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/4225/2021/gmd-14-4225-2021-f08.png"/>

          </fig>

</sec>
</sec>
</sec>
<sec id="Ch1.S4" sec-type="conclusions">
  <label>4</label><title>Conclusions</title>
      <p id="d1e15335">The approach adopted in SolveSAPHE <xref ref-type="bibr" rid="bib1.bibx7" id="paren.36"/> to safely determine carbonate speciation in particular, and speciation calculations of mixtures of acids in aqueous solution in general, knowing only the total concentrations of the different acid systems and the total alkalinity of the system was adapted and extended here to use [<inline-formula><mml:math id="M795" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>], [<inline-formula><mml:math id="M796" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] and [<inline-formula><mml:math id="M797" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] instead of the total inorganic carbon concentration, <inline-formula><mml:math id="M798" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
The rationale can be entirely transposed to these three pairs:
(1) the amended alkalinity–pH equations for Alk<inline-formula><mml:math id="M799" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M800" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and for Alk<inline-formula><mml:math id="M801" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M802" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> still have one and only one positive solution, while Alk<inline-formula><mml:math id="M803" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M804" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> may have no solution, or one or two;
(2) intrinsic brackets that only depend on a priori available information can be derived for the root of the Alk<inline-formula><mml:math id="M805" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M806" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and Alk<inline-formula><mml:math id="M807" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M808" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> problems, as well as for the two roots of Alk<inline-formula><mml:math id="M809" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M810" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problems that may have to be solved for naturally occurring sample compositions. More uncommon but physically realistic Alk<inline-formula><mml:math id="M811" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M812" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problems may additionally require the solution of an auxiliary minimisation problem to determine the threshold Alk<inline-formula><mml:math id="M813" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> value below which the problem does not have any roots and above which it has two of them. The solution of this problem also provides a separation value of the two roots.
To our best knowledge, SolveSAPHE is the first package to offer a complete solution of the Alk<inline-formula><mml:math id="M814" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M815" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem, autonomous above all.</p>
      <p id="d1e15588">The two safeguarded numerical solvers from SolveSAPHE v1 have been adapted to allow for the solution of problems that may have up to two roots.
The Newton–Raphson–bisection-based solver required extensive modifications for the reliable solution of the numerically far more challenging Alk<inline-formula><mml:math id="M816" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M817" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, Alk<inline-formula><mml:math id="M818" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M819" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>, and Alk<inline-formula><mml:math id="M820" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M821" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problems.
Most bisection steps have been replaced by regula falsi steps for increased convergence speed.
The secant–bisection solver only required minimal adaptations.
A Fortran 90 reference implementation, SolveSAPHE-r2, was prepared and used to evaluate the performance of the different methods for solving four benchmark problems.
While the secant–bisection method was already slightly superior to the Newton–Raphson–bisection method in SolveSAPHE v1, that advantage has now become overwhelming: in SolveSAPHE-r2, it typically requires 2 to 4 times fewer iterations, and for the newly handled pairs, the equation residuals are orders of magnitude lower than the Newton–Raphson–regula  falsi–bisection-based solver (typically of the order of <inline-formula><mml:math id="M822" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">19</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M823" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">18</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> compared to <inline-formula><mml:math id="M824" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">13</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M825" display="inline"><mml:mrow><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">12</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e15717">For carbonate speciation problems posed by Alk<inline-formula><mml:math id="M826" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> and either one of [<inline-formula><mml:math id="M827" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>],  [<inline-formula><mml:math id="M828" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] or [<inline-formula><mml:math id="M829" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>], the secant-based routine from SolveSAPHE-r2, <monospace>solve_at_general2_sec</monospace>, is thus clearly the method of choice; for calculations on the basis of Alk<inline-formula><mml:math id="M830" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M831" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, both <monospace>solve_at_general</monospace> and <monospace>solve_at_general_sec</monospace> from SolveSAPHE v1 will perform better, although the secant-based solver is marginally faster once again.</p><?xmltex \hack{\clearpage}?>
</sec>

      
      </body>
    <back><app-group>

<app id="App1.Ch1.S1">
  <?xmltex \currentcnt{A}?><label>Appendix A</label><title>The direct cases</title>
      <p id="d1e15812">For the sake of completeness, I provide here succinct “recipes” to calculate all the different carbonate system related variables, knowing two of them.
Many of these were already known in the 1960s (see, e.g. <xref ref-type="bibr" rid="bib1.bibx11" id="altparen.37"/>).
The <italic>Guide to Best Practices for Ocean CO</italic><inline-formula><mml:math id="M832" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="italic">2</mml:mn></mml:msub></mml:math></inline-formula> <italic>Measurements</italic> <xref ref-type="bibr" rid="bib1.bibx4" id="paren.38"/> lists the most commonly used pairs and furthermore includes procedures for selected triplets and quartets, for which not all of the equilibrium constants are required.
In the following, we assume that there are direct and invertible relationships between [<inline-formula><mml:math id="M833" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] and the fugacity (<inline-formula><mml:math id="M834" display="inline"><mml:mrow><mml:mi>f</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula>) or the partial pressure (<inline-formula><mml:math id="M835" display="inline"><mml:mrow><mml:mi>p</mml:mi><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula>) of <inline-formula><mml:math id="M836" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and between pH and [<inline-formula><mml:math id="M837" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] on any chosen pH scale.
We therefore restrict ourselves to [<inline-formula><mml:math id="M838" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] and [<inline-formula><mml:math id="M839" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>].</p>
      <p id="d1e15919">The conditions for the existence of a solution are generally that the concentrations of <inline-formula><mml:math id="M840" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> and of the DIC species are strictly positive.
In some instances, the input data must fulfil additional constraints that are, however, not always straightforward to quantitatively state a priori.<def-list>
          <def-item><term>C<inline-formula><mml:math id="M841" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="bold">T</mml:mi></mml:msub></mml:math></inline-formula> and CO<inline-formula><mml:math id="M842" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="bold">2</mml:mn></mml:msub></mml:math></inline-formula>,
C<inline-formula><mml:math id="M843" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="bold">T</mml:mi></mml:msub></mml:math></inline-formula> and CO<inline-formula><mml:math id="M844" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mrow><mml:mn mathvariant="bold">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula></term><def>

      <p id="d1e15980">:
(1) With these two pairs, the <inline-formula><mml:math id="M845" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> fraction (the <inline-formula><mml:math id="M846" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> fraction) is fixed and Eq. (<xref ref-type="disp-formula" rid="Ch1.E4"/>) (Eq. <xref ref-type="disp-formula" rid="Ch1.E6"/>) defines a quadratic equation in <inline-formula><mml:math id="M847" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> that always allows for exactly one positive solution;
(2) calculate the remaining two species concentrations from their respective species fraction;
(3) <inline-formula><mml:math id="M848" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).
In addition to the positivity of the species concentrations, the following constraints must be met:
<inline-formula><mml:math id="M849" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mo>&lt;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and
<inline-formula><mml:math id="M850" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>&lt;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
          </def></def-item>
          <def-item><term>C<inline-formula><mml:math id="M851" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="bold">T</mml:mi></mml:msub></mml:math></inline-formula> and HCO<inline-formula><mml:math id="M852" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula></term><def>

      <p id="d1e16145">:
With this pair, the <inline-formula><mml:math id="M853" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> fraction, denoted by <inline-formula><mml:math id="M854" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula> hereafter, is fixed, and Eq. (<xref ref-type="disp-formula" rid="Ch1.E5"/>) becomes a quadratic equation in <inline-formula><mml:math id="M855" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>.
That equation has two positive solutions if <inline-formula><mml:math id="M856" display="inline"><mml:mrow><mml:mi>b</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:msqrt><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, one double root if <inline-formula><mml:math id="M857" display="inline"><mml:mrow><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:msqrt><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and no real solutions if <inline-formula><mml:math id="M858" display="inline"><mml:mrow><mml:mi>b</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:msqrt><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.
This is well illustrated in Fig. <xref ref-type="fig" rid="Ch1.F1"/>b above: there are <inline-formula><mml:math id="M859" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>–<inline-formula><mml:math id="M860" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> combinations that allow for two different Alk<inline-formula><mml:math id="M861" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> values and, equivalently, two pH values, and there are others that do not allow for any.
Please notice that the threshold fraction <inline-formula><mml:math id="M862" display="inline"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msqrt><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:msqrt><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is always lower than 1 and
the natural a priori constraint requiring that <inline-formula><mml:math id="M863" display="inline"><mml:mrow><mml:mi>b</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> is thus insufficient to guarantee a solution:
for <inline-formula><mml:math id="M864" display="inline"><mml:mrow><mml:mi>T</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">275.15</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M865" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M866" display="inline"><mml:mrow><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">35</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M867" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M868" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">bar</mml:mi></mml:mrow></mml:math></inline-formula>, the threshold ratio is 94.48 %.
<?xmltex \hack{\newline}?>
When there are two roots, one faces a similar dilemma as with the Alk<inline-formula><mml:math id="M869" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M870" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> problem: which one to choose?
Most often, the lower of the two will again be the appropriate one, as that one typically leads to <inline-formula><mml:math id="M871" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>&gt;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, whereas the greater one leads to <inline-formula><mml:math id="M872" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub><mml:mo>&lt;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.
This criterion might be sufficient to discriminate between the two – in seawater it generally is – but in some instances additional information, quantitative or qualitative, might be in order.
<?xmltex \hack{\newline}?>
In general, (1) solve the quadratic equation and choose the appropriate of the two roots;
(2) calculate <inline-formula><mml:math id="M873" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M874" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> from their respective species fractions;
(3) <inline-formula><mml:math id="M875" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>CO<inline-formula><mml:math id="M876" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="bold">2</mml:mn></mml:msub></mml:math></inline-formula> and HCO<inline-formula><mml:math id="M877" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula></term><def>

      <p id="d1e16595">:
(1) [<inline-formula><mml:math id="M878" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M879" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(2) [<inline-formula><mml:math id="M880" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M881" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(3) <inline-formula><mml:math id="M882" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be calculated from the three carbonate species concentrations;
(4) <inline-formula><mml:math id="M883" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>CO<inline-formula><mml:math id="M884" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="bold">2</mml:mn></mml:msub></mml:math></inline-formula> and CO<inline-formula><mml:math id="M885" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mrow><mml:mn mathvariant="bold">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula></term><def>

      <p id="d1e16701">:
(1) [<inline-formula><mml:math id="M886" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M887" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow><mml:mo>]</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>;
(2) <inline-formula><mml:math id="M888" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from the three carbonate species concentrations;
(3) [<inline-formula><mml:math id="M889" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M890" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> or <inline-formula><mml:math id="M891" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(4) <inline-formula><mml:math id="M892" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>HCO<inline-formula><mml:math id="M893" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and CO<inline-formula><mml:math id="M894" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mrow><mml:mn mathvariant="bold">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula></term><def>

      <p id="d1e16869">:
(1) calculate [<inline-formula><mml:math id="M895" display="inline"><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M896" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(2) [<inline-formula><mml:math id="M897" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M898" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(3) <inline-formula><mml:math id="M899" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from the three carbonate species concentrations;
(4) <inline-formula><mml:math id="M900" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>CO<inline-formula><mml:math id="M901" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="bold">2</mml:mn></mml:msub></mml:math></inline-formula> and H<inline-formula><mml:math id="M902" display="inline"><mml:msup><mml:mi/><mml:mo>+</mml:mo></mml:msup></mml:math></inline-formula></term><def>

      <p id="d1e16965">:
(1) calculate [<inline-formula><mml:math id="M903" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M904" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(2) calculate [<inline-formula><mml:math id="M905" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M906" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(3) <inline-formula><mml:math id="M907" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from the three carbonate species concentrations;
(4) <inline-formula><mml:math id="M908" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>HCO<inline-formula><mml:math id="M909" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula> and H<inline-formula><mml:math id="M910" display="inline"><mml:msup><mml:mi/><mml:mo>+</mml:mo></mml:msup></mml:math></inline-formula></term><def>

      <p id="d1e17070">:
(1) calculate [<inline-formula><mml:math id="M911" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M912" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(2) calculate [<inline-formula><mml:math id="M913" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M914" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(3) <inline-formula><mml:math id="M915" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from the three carbonate species concentrations;
(4) <inline-formula><mml:math id="M916" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>CO<inline-formula><mml:math id="M917" display="inline"><mml:mrow><mml:msubsup><mml:mi/><mml:mn mathvariant="bold">3</mml:mn><mml:mrow><mml:mn mathvariant="bold">2</mml:mn><mml:mo>-</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> and H<inline-formula><mml:math id="M918" display="inline"><mml:msup><mml:mi/><mml:mo>+</mml:mo></mml:msup></mml:math></inline-formula></term><def>

      <p id="d1e17176">:
(1) calculate [<inline-formula><mml:math id="M919" display="inline"><mml:mrow class="chem"><mml:msubsup><mml:mi mathvariant="normal">HCO</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mo>-</mml:mo></mml:msubsup></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M920" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(2) calculate [<inline-formula><mml:math id="M921" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">CO</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>] from <inline-formula><mml:math id="M922" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>;
(3) <inline-formula><mml:math id="M923" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from the three carbonate species concentrations;
(4) <inline-formula><mml:math id="M924" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
          <def-item><term>Alk<inline-formula><mml:math id="M925" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="bold">T</mml:mi></mml:msub></mml:math></inline-formula> and H<inline-formula><mml:math id="M926" display="inline"><mml:msup><mml:mi/><mml:mo>+</mml:mo></mml:msup></mml:math></inline-formula></term><def>

      <p id="d1e17273">:
(1) <inline-formula><mml:math id="M927" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>);
(2) individual species concentrations from the species fractions.
<?xmltex \hack{\newline}?>
As illustrated in Fig. <xref ref-type="fig" rid="Ch1.F1"/>d–f above, there are Alk<inline-formula><mml:math id="M928" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula>–<inline-formula><mml:math id="M929" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mrow class="chem"><mml:msup><mml:mi mathvariant="normal">H</mml:mi><mml:mo>+</mml:mo></mml:msup></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> combinations that lead to physically unrealistic negative Alk<inline-formula><mml:math id="M930" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula>.
Following Eq. (<xref ref-type="disp-formula" rid="Ch1.E3"/>), negative Alk<inline-formula><mml:math id="M931" display="inline"><mml:msub><mml:mi/><mml:mtext>C</mml:mtext></mml:msub></mml:math></inline-formula> requires negative <inline-formula><mml:math id="M932" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, and vice versa.
<?xmltex \hack{\newline}?>
The shape of the blank area depends on the non-carbonate contributors to the total alkalinity.
In practice, such incompatible combinations are unlikely to arise from measurements, except if the adopted set of Alk<inline-formula><mml:math id="M933" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> contributors is inappropriate.</p>
          </def></def-item>
          <def-item><term>C<inline-formula><mml:math id="M934" display="inline"><mml:msub><mml:mi/><mml:mi mathvariant="bold">T</mml:mi></mml:msub></mml:math></inline-formula> and H<inline-formula><mml:math id="M935" display="inline"><mml:msup><mml:mi/><mml:mo>+</mml:mo></mml:msup></mml:math></inline-formula></term><def>

      <p id="d1e17385">:
individual species concentrations from the species fractions;
<inline-formula><mml:math id="M936" display="inline"><mml:mrow><mml:msub><mml:mtext>Alk</mml:mtext><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> from Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>).</p>
          </def></def-item>
        </def-list></p><?xmltex \hack{\clearpage}?>
</app>
  </app-group><notes notes-type="codeavailability"><title>Code availability</title>

      <p id="d1e17408">All the Fortran 90 codes of SolveSAPHE version 1 series (of which v1.0.3 was used to derive the results presented in Fig. <xref ref-type="fig" rid="Ch1.F1"/>) are available on Zenodo from <xref ref-type="bibr" rid="bib1.bibx8" id="text.39"/> for use under the GNU Lesser General Public Licence version 3 (LGPLv3) or later.
The codes for SolveSAPHE-r2 (v2.0.1) that are described in this paper are included in the Supplement and made available for use under the same licence.
They are also archived on Zenodo <xref ref-type="bibr" rid="bib1.bibx9" id="paren.40"/>.
Future bug-fix releases and updates will also be archived there.</p>

      <p id="d1e17419"><xref ref-type="bibr" rid="bib1.bibx5" id="text.41"/> have ported SolveSAPHE-r2 to R (not used here) for usage under the GNU General Public License version 2 (GPL-2) or 3 (GPL-3).</p>
  </notes><app-group>
        <supplementary-material position="anchor"><p id="d1e17424">The supplement related to this article is available online at: <inline-supplementary-material xlink:href="https://doi.org/10.5194/gmd-14-4225-2021-supplement" xlink:title="zip">https://doi.org/10.5194/gmd-14-4225-2021-supplement</inline-supplementary-material>.</p></supplementary-material>
        </app-group><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e17433">The author declares that there is no conflict of interest.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d1e17439">Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e17445">James Orr provided the kick-off momentum for me to reconsider SolveSAPHE and to complete it in order to combine Alk<inline-formula><mml:math id="M937" display="inline"><mml:msub><mml:mi/><mml:mtext>T</mml:mtext></mml:msub></mml:math></inline-formula> with the individual carbonate system species instead of <inline-formula><mml:math id="M938" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mtext>T</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> – thank you.
Thanks are also due to Jean-Pierre Gattuso for pointing out issues with the colour schemes adopted in the originally submitted version of the manuscript and for guidance about how to address them.
The comments and recommendations by the two anonymous referees were most helpful to improve the framing of the paper and the scope of the results.
The analysis based upon Fig. <xref ref-type="fig" rid="Ch1.F4"/> was suggested by Anonymous Referee #1 and recommended for inclusion in the manuscript by Anonymous Referee #2.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e17472">Financial support for this work was provided by the Belgian Fund for Scientific Research – F.R.S.-FNRS (project SERENATA, grant CDR J.0123.19).
Guy Munhoven is a research associate with the Belgian Fund for Scientific Research – F.R.S.-FNRS.</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e17478">This paper was edited by Sandra Arndt and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><?xmltex \def\ref@label{{Brent(1973)}}?><label>Brent(1973)</label><?label brent:73?><mixed-citation>
Brent, R. P.: Algorithms for minimization without derivatives, Prentice-Hall,
Englewood Cliffs, NJ, 1973.</mixed-citation></ref>
      <ref id="bib1.bibx2"><?xmltex \def\ref@label{{Byrne and Yao(2008)}}?><label>Byrne and Yao(2008)</label><?label byrne-y:08?><mixed-citation>Byrne, R. H. and Yao, W.: Procedures for measurement of carbonate ion
concentrations in seawater by direct spectrophotometric observations of
Pb(II) complexation, Mar. Chem., 112, 128–135,
<ext-link xlink:href="https://doi.org/10.1016/j.marchem.2008.07.009" ext-link-type="DOI">10.1016/j.marchem.2008.07.009</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx3"><?xmltex \def\ref@label{{Deffeyes(1965)}}?><label>Deffeyes(1965)</label><?label deffeyes:65?><mixed-citation>Deffeyes, K. S.: Carbonate Equilibria : A Graphic and Algebraic Approach,
Limnol. Oceanogr., 10, 412–426, <ext-link xlink:href="https://doi.org/10.4319/lo.1965.10.3.0412" ext-link-type="DOI">10.4319/lo.1965.10.3.0412</ext-link>, 1965.</mixed-citation></ref>
      <ref id="bib1.bibx4"><?xmltex \def\ref@label{{Dickson et~al.(2007)}}?><label>Dickson et al.(2007)</label><?label dickson-etal:07?><mixed-citation>Dickson, A. G., Sabine, C. L., and Christian, J. R. (Eds.): Guide to Best
Practices for Ocean CO<inline-formula><mml:math id="M939" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> Measurements, vol. 3, in: PICES Special
Publication, Carbon Dioxide Information and Analysis Center, Oak Ridge
(TN), available at: <uri>https://cdiac.ess-dive.lbl.gov/ftp/oceans/Handbook_2007/Guide_all_in_one.pdf</uri> (last access: 24 June 2021), 2007.</mixed-citation></ref>
      <ref id="bib1.bibx5"><?xmltex \def\ref@label{{Epitalon et~al.(2021)}}?><label>Epitalon et al.(2021)</label><?label epitalon-etal-solvesaphe-2.1.0:21?><mixed-citation>Epitalon, J.-M., Gattuso, J.-P., and Munhoven, G.: SolveSAPHE: Solver
Suite for Alkalinity-PH Equations, available at:
<uri>https://CRAN.R-project.org/package=SolveSAPHE</uri>, last access: 24 June 2021.</mixed-citation></ref>
      <ref id="bib1.bibx6"><?xmltex \def\ref@label{{Munhoven(2009)}}?><label>Munhoven(2009)</label><?label munhoven:09?><mixed-citation>
Munhoven, G.: Future CCD and CSH variations: Deep-sea impact of ocean
acidification, Geochim. Cosmochim. Ac., 73, A917, 2009.</mixed-citation></ref>
      <ref id="bib1.bibx7"><?xmltex \def\ref@label{{Munhoven(2013)}}?><label>Munhoven(2013)</label><?label munhoven:13?><mixed-citation>Munhoven, G.: Mathematics of the total alkalinity–pH equation – pathway to robust and universal solution algorithms: the SolveSAPHE package v1.0.1, Geosci. Model Dev., 6, 1367–1388, <ext-link xlink:href="https://doi.org/10.5194/gmd-6-1367-2013" ext-link-type="DOI">10.5194/gmd-6-1367-2013</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx8"><?xmltex \def\ref@label{{Munhoven(2013--2021)}}?><label>Munhoven(2013–2021)</label><?label munhoven-solvesaphe-v1:all?><mixed-citation>Munhoven, G.: SolveSAPHE (Solver Suite for Alkalinity-PH
Equations) [software], Zenodo, <ext-link xlink:href="https://doi.org/10.5281/zenodo.3752250" ext-link-type="DOI">10.5281/zenodo.3752250</ext-link>, 2013–2021.</mixed-citation></ref>
      <ref id="bib1.bibx9"><?xmltex \def\ref@label{{Munhoven(2021)}}?><label>Munhoven(2021)</label><?label munhoven-solvesaphe-r2:all?><mixed-citation>Munhoven, G.: SolveSAPHE-r2 (Solver Suite for Alkalinity-PH
Equations–Release 2) [software], Zenodo, <ext-link xlink:href="https://doi.org/10.5281/zenodo.4771132" ext-link-type="DOI">10.5281/zenodo.4771132</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bibx10"><?xmltex \def\ref@label{{Orr et~al.(2015)}}?><label>Orr et al.(2015)</label><?label orr-etal:15?><mixed-citation>Orr, J. C., Epitalon, J.-M., and Gattuso, J.-P.: Comparison of ten packages that compute ocean carbonate chemistry, Biogeosciences, 12, 1483–1510, <ext-link xlink:href="https://doi.org/10.5194/bg-12-1483-2015" ext-link-type="DOI">10.5194/bg-12-1483-2015</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx11"><?xmltex \def\ref@label{{Park(1969)}}?><label>Park(1969)</label><?label park:69?><mixed-citation>Park, P. K.: Oceanic CO<inline-formula><mml:math id="M940" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> System: An Evaluation of ten Methods of
Investigation, Limnol. Oceanogr., 14, 179–186,
<ext-link xlink:href="https://doi.org/10.4319/lo.1969.14.2.0179" ext-link-type="DOI">10.4319/lo.1969.14.2.0179</ext-link>, 1969.</mixed-citation></ref>
      <ref id="bib1.bibx12"><?xmltex \def\ref@label{{Patsavas et~al.(2015)}}?><label>Patsavas et al.(2015)</label><?label patsavas-etal1:15?><mixed-citation>Patsavas, M. C., Byrne, R. H., Yang, B., Easley, R. A., Wanninkhof, R., and
Liu, X.: Procedures for direct spectrophotometric determination of carbonate
ion concentrations : Measurements in US Gulf of Mexico and East
Coast waters, Mar. Chem., 168, 80–85, <ext-link xlink:href="https://doi.org/10.1016/j.marchem.2014.10.015" ext-link-type="DOI">10.1016/j.marchem.2014.10.015</ext-link>,
2015.</mixed-citation></ref>
      <ref id="bib1.bibx13"><?xmltex \def\ref@label{{Sharp and Byrne(2019)}}?><label>Sharp and Byrne(2019)</label><?label sharp-b:19?><mixed-citation>Sharp, J. D. and Byrne, R. H.: Carbonate ion concentrations in seawater:
Spectrophotometric determination at ambient temperatures and evaluation of
propagated calculation uncertainties, Mar. Chem., 209, 70–80,
<ext-link xlink:href="https://doi.org/10.1016/j.marchem.2018.12.001" ext-link-type="DOI">10.1016/j.marchem.2018.12.001</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx14"><?xmltex \def\ref@label{{Yao and Millero(1995)}}?><label>Yao and Millero(1995)</label><?label yao-m:95?><mixed-citation>Yao, W. and Millero, F. J.: The Chemistry Of the Anoxic Waters in the
Framvaren Fjord, Norway, Aquat. Geochem., 1, 53–88,
<ext-link xlink:href="https://doi.org/10.1007/BF01025231" ext-link-type="DOI">10.1007/BF01025231</ext-link>, 1995.</mixed-citation></ref>
      <ref id="bib1.bibx15"><?xmltex \def\ref@label{{Zeebe and Wolf-Gladrow(2001)}}?><label>Zeebe and Wolf-Gladrow(2001)</label><?label zeebe-w:01?><mixed-citation>Zeebe, R. E. and Wolf-Gladrow, D.: CO<inline-formula><mml:math id="M941" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:math></inline-formula> in seawater : Equilibrium,
kinetics, isotopes, vol. 65, in: Elsevier Oceanography Series,
Elsevier, Amsterdam (NL), ISBN 978-0-444-50579-8,
2001.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>SolveSAPHE-r2 (v2.0.1): revisiting and extending the Solver Suite for Alkalinity-PH Equations for usage with CO<sub>2</sub>, HCO<sub>3</sub><sup>−</sup> or CO<sub>3</sub><sup>2−</sup> input data</article-title-html>
<abstract-html><p>The successful and efficient approach at the basis of the Solver Suite for Alkalinity-PH Equations (SolveSAPHE) (Munhoven, 2013), which determines the carbonate system speciation by calculating pH from total alkalinity (Alk<sub>T</sub>) and dissolved inorganic carbon (<i>C</i><sub>T</sub>), and which converges for any physically sensible pair of such data, has been adapted and further developed to work with Alk<sub>T</sub>–CO<sub>2</sub>, Alk<sub>T</sub>–HCO<sub>3</sub><sup>−</sup>, and Alk<sub>T</sub>–CO<sub>3</sub><sup>2−</sup>.
The mathematical properties of the three modified alkalinity–pH equations are explored.
It is shown that the Alk<sub>T</sub>–CO<sub>2</sub>, and Alk<sub>T</sub>–HCO<sub>3</sub><sup>−</sup> problems have one and only one positive root for any physically sensible pair of data (i.e. such that [CO<sub>2</sub>] &gt; 0 and [HCO<sub>3</sub><sup>−</sup>] &gt; 0).
The space of Alk<sub>T</sub>–CO<sub>3</sub><sup>2−</sup> pairs is partitioned into regions where there is either no solution, one solution or where there are two.
The numerical solution of the modified alkalinity–pH equations is far more demanding than that for the original Alk<sub>T</sub>–<i>C</i><sub>T</sub> pair as they exhibit strong gradients and are not always monotonous.
The two main algorithms used in SolveSAPHE v1 have been revised in depth to reliably process the three additional data input pairs.
The Alk<sub>T</sub>–CO<sub>2</sub> pair is numerically the most challenging.
With the Newton–Raphson-based solver, it takes about 5 times as long to solve as the companion Alk<sub>T</sub>–<i>C</i><sub>T</sub> pair;
the Alk<sub>T</sub>–CO<sub>3</sub><sup>2−</sup> pair requires on average about 4 times as much time as the Alk<sub>T</sub>–<i>C</i><sub>T</sub> pair.
All in all, the secant-based solver offers the best performance.
It outperforms the Newton–Raphson-based one by up to a factor of 4 in terms of average numbers of iterations and execution time and yet reaches equation residuals that are up to 7 orders of magnitude lower.
Just like the pH solvers from the v1 series, SolveSAPHE-r2 includes automatic root bracketing and efficient initialisation schemes for the iterative solvers. For Alk<sub>T</sub>–CO<sub>3</sub><sup>2−</sup> data pairs, it also determines the number of roots and calculates non-overlapping bracketing intervals.
An open-source reference implementation of the new algorithms in Fortran 90 is made publicly available for usage under the GNU Lesser General Public Licence version 3 (LGPLv3) or later.</p></abstract-html>
<ref-html id="bib1.bib1"><label>Brent(1973)</label><mixed-citation>
Brent, R. P.: Algorithms for minimization without derivatives, Prentice-Hall,
Englewood Cliffs, NJ, 1973.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Byrne and Yao(2008)</label><mixed-citation>
Byrne, R. H. and Yao, W.: Procedures for measurement of carbonate ion
concentrations in seawater by direct spectrophotometric observations of
Pb(II) complexation, Mar. Chem., 112, 128–135,
<a href="https://doi.org/10.1016/j.marchem.2008.07.009" target="_blank">https://doi.org/10.1016/j.marchem.2008.07.009</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Deffeyes(1965)</label><mixed-citation>
Deffeyes, K. S.: Carbonate Equilibria : A Graphic and Algebraic Approach,
Limnol. Oceanogr., 10, 412–426, <a href="https://doi.org/10.4319/lo.1965.10.3.0412" target="_blank">https://doi.org/10.4319/lo.1965.10.3.0412</a>, 1965.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Dickson et al.(2007)</label><mixed-citation>
Dickson, A. G., Sabine, C. L., and Christian, J. R. (Eds.): Guide to Best
Practices for Ocean CO<sub>2</sub> Measurements, vol. 3, in: PICES Special
Publication, Carbon Dioxide Information and Analysis Center, Oak Ridge
(TN), available at: <a href="https://cdiac.ess-dive.lbl.gov/ftp/oceans/Handbook_2007/Guide_all_in_one.pdf" target="_blank"/> (last access: 24 June 2021), 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Epitalon et al.(2021)</label><mixed-citation>
Epitalon, J.-M., Gattuso, J.-P., and Munhoven, G.: SolveSAPHE: Solver
Suite for Alkalinity-PH Equations, available at:
<a href="https://CRAN.R-project.org/package=SolveSAPHE" target="_blank"/>, last access: 24 June 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Munhoven(2009)</label><mixed-citation>
Munhoven, G.: Future CCD and CSH variations: Deep-sea impact of ocean
acidification, Geochim. Cosmochim. Ac., 73, A917, 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Munhoven(2013)</label><mixed-citation>
Munhoven, G.: Mathematics of the total alkalinity–pH equation – pathway to robust and universal solution algorithms: the SolveSAPHE package v1.0.1, Geosci. Model Dev., 6, 1367–1388, <a href="https://doi.org/10.5194/gmd-6-1367-2013" target="_blank">https://doi.org/10.5194/gmd-6-1367-2013</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Munhoven(2013–2021)</label><mixed-citation>
Munhoven, G.: SolveSAPHE (Solver Suite for Alkalinity-PH
Equations) [software], Zenodo, <a href="https://doi.org/10.5281/zenodo.3752250" target="_blank">https://doi.org/10.5281/zenodo.3752250</a>, 2013–2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Munhoven(2021)</label><mixed-citation>
Munhoven, G.: SolveSAPHE-r2 (Solver Suite for Alkalinity-PH
Equations–Release 2) [software], Zenodo, <a href="https://doi.org/10.5281/zenodo.4771132" target="_blank">https://doi.org/10.5281/zenodo.4771132</a>, 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Orr et al.(2015)</label><mixed-citation>
Orr, J. C., Epitalon, J.-M., and Gattuso, J.-P.: Comparison of ten packages that compute ocean carbonate chemistry, Biogeosciences, 12, 1483–1510, <a href="https://doi.org/10.5194/bg-12-1483-2015" target="_blank">https://doi.org/10.5194/bg-12-1483-2015</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Park(1969)</label><mixed-citation>
Park, P. K.: Oceanic CO<sub>2</sub> System: An Evaluation of ten Methods of
Investigation, Limnol. Oceanogr., 14, 179–186,
<a href="https://doi.org/10.4319/lo.1969.14.2.0179" target="_blank">https://doi.org/10.4319/lo.1969.14.2.0179</a>, 1969.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Patsavas et al.(2015)</label><mixed-citation>
Patsavas, M. C., Byrne, R. H., Yang, B., Easley, R. A., Wanninkhof, R., and
Liu, X.: Procedures for direct spectrophotometric determination of carbonate
ion concentrations : Measurements in US Gulf of Mexico and East
Coast waters, Mar. Chem., 168, 80–85, <a href="https://doi.org/10.1016/j.marchem.2014.10.015" target="_blank">https://doi.org/10.1016/j.marchem.2014.10.015</a>,
2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Sharp and Byrne(2019)</label><mixed-citation>
Sharp, J. D. and Byrne, R. H.: Carbonate ion concentrations in seawater:
Spectrophotometric determination at ambient temperatures and evaluation of
propagated calculation uncertainties, Mar. Chem., 209, 70–80,
<a href="https://doi.org/10.1016/j.marchem.2018.12.001" target="_blank">https://doi.org/10.1016/j.marchem.2018.12.001</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>Yao and Millero(1995)</label><mixed-citation>
Yao, W. and Millero, F. J.: The Chemistry Of the Anoxic Waters in the
Framvaren Fjord, Norway, Aquat. Geochem., 1, 53–88,
<a href="https://doi.org/10.1007/BF01025231" target="_blank">https://doi.org/10.1007/BF01025231</a>, 1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Zeebe and Wolf-Gladrow(2001)</label><mixed-citation>
Zeebe, R. E. and Wolf-Gladrow, D.: CO<sub>2</sub> in seawater : Equilibrium,
kinetics, isotopes, vol. 65, in: Elsevier Oceanography Series,
Elsevier, Amsterdam (NL), ISBN 978-0-444-50579-8,
2001.
</mixed-citation></ref-html>--></article>
