Determination of equilibrium constants
Equilibrium constants are determined in order to quantify chemical equilibria. When an equilibrium constant is expressed as a concentration quotient,
- <math>K=\frac{{[S]} ^\sigma {[T]}^\tau \cdots } {{[A]}^\alpha {[B]}^\beta \cdots }</math>
it is implied that the activity quotient is constant. In order for this assumption to be valid equilibrium constants should be determined in a medium of relatively high ionic strength. Where this is not possible, consideration should be given to possible activity variation.
The equilibrium expression above is a function of the concentrations [A], [B] etc. of the chemical species in equilibrium. The equilibrium constant value can be determined if any one of these concentrations can be measured. The general procedure is that the concentration in question is measured for a series of solutions with known analytical concentrations of the reactants. Typically, a titration is performed with one or more reactants in the titration vessel and one or more reactants in the burette. Knowing the analytical concentrations of reactants initially in the reaction vessel and in the burette, all analytical concentrations can be derived as a function of the volume (or mass) of titrant added.
The equilibrium constants may be derived by best-fitting of the experimental data with a chemical model of the equilibrium system.
Experimental methods
There are four main experimental methods. For less commonly used methods, see Rossotti and Rossotti[1].
Potentiometric measurements
A free concentration [A] or activity {A} is measured by means of an ion selective electrode such as the glass electrode. If the electrode is calibrated using activity standards it is assumed that the Nernst equation applies in the form
- E = E0 + RT/nF ln{A}
where E0 is the standard electrode potential. When buffer solutions of known pH are used for calibration the meter reading will be pH.
- pH = nF/RT (E0 − E)
At 298K, 1 pH unit is approximately equal to 59 mV.[2]
When the electrode is calibrated with solutions of known concentration, by means of a strong acid/strong base titration, for example, a modified Nernst equation is assumed.
- E = E0 + s log10[A]
s an empirical slope factor. A solution of known hydrogen ion concentration may be prepared by standardization of a strong acid against borax. Constant-boiling hydrochloric acid may also be used as a primary standard for hydrogen ion concentration.
Spectrophotometric measurements
Absorbance
It is assumed that the Beer–Lambert law applies.
- <math>A=\ell \sum {\epsilon c}</math>
where <math>\ell</math> is the optical path length, <math>\epsilon</math> is a molar absorbance at unit path length and c is a concentration. More than one of the species may contribute to the absorbance. In principle absorbance may be measured at one wavelength only, but in present-day practice it is common to record complete spectra.
Fluorescence (luminescence) intensity
It is assumed that the scattered light intensity is a linear function of species’ concentrations.
- <math>I=\sum \phi c </math>
where <math>\phi</math> is a proportionality constant.
NMR chemical shift measurements
Chemical exchange is assumed to be rapid on the NMR time-scale. An individual chemical shift <math>\bar {\delta}</math> is the mole-fraction-weighted average of the shifts <math>\delta</math> of nuclei in contributing species.
- <math>\bar {\delta} =\frac{\sum c_i \delta_i}{\sum c_i}</math>
Calorimetric measurements
Simultaneous measurement of K and <math>\Delta</math>H for 1:1 adducts is routinely carried out using Isothermal Titration Calorimetry. Extension to more complex systems is limited by the availability of suitable software.
Range and limitations
- Potentiometry. The most widely used electrode is the glass electrode which is selective for the hydrogen ion. This is suitable for all acid-base equilibria. Log10 <math>\beta</math> values between about 2 and 11 can be measured directly by potentiometric titration using a glass electrode. This enormous range is possible because of the logarithmic response of the electrode. The limitations arise because the Nernst equation breaks down at very low or very high pH. The range can be extended by using the competition method. An example of the application of this method can be found in Palladium(II) cyanide
- Absorbance and Luminescence. An upper limit on log10 <math>\beta</math> of 4 is usually quoted, corresponding to the precision of the measurements, but it also depends on how intense the effect is. Spectra of contributing species should be clearly distinct from each other
- NMR. Limited precision of chemical shift measurements also puts an upper limit of about 4 on log10 <math>\beta</math>. Limited to diamagnetic systems.
- Calorimetry. Insufficient evidence is currently available.
Computational methods
It is assumed that the experimental data which have been collected comprise a set of data points. At each i'th data point, the analytical concentrations of the reactants, <math>T_A(i)</math>, <math>T_B(i)</math> etc. are known along with a measured quantity, <math>y_i</math>, that depends on one or more of these analytical concentrations. A general computational procedure has three main components.
- Definion of a chemical model of the equilibria
- Calculation of the concentrations of all the chemical species in each solution
- Refinement of the equilibrium constants
- Model selection
The chemical model
The chemical model consists of a set of chemical species present in solution, both the reactants added to the reaction mixture and the complex species formed from them. Denoting the reactants by A, B ..., each complex species is specified by the stoichiometric coefficients that relate the particular combination of reactants forming them.
- <math>pA+qB...\rightleftharpoons A_pB_q \cdots: \beta_{pq\cdots}=\frac{[A_pB_q \cdots ]} {[A]^p[B]^q \cdots }</math>
When using general-purpose computer programs, it is usual to use cumulative, association constants, as shown above. When reactants and complexes are chemical species ionic charges should be shown explicitly. With aqueous solutions the concentrations of proton (hydronium ion) and hydroxide ion are constrained by the self-dissociation of water.
- <math>H_2O \rightleftharpoons H^+ + OH^-: K_W'=\frac{[H^+][OH^-]}{[H_2O]}</math>
With dilute solutions the concentration of water can be assumed to be constant so the equilibrium expression is written in the familiar form of the ionic product of water.
- <math>K_W=[H^+][OH^-]\,</math>
When both H+ and OH− must be considered as reactants, one of them is eliminated from the model by specifying that its concentration is to be derived from the concentration of the other. Usually the concentration of the hydroxide ion is given by
- <math>[OH^-]=K_W[H^+]^{-1}\,</math>
In this case the equilibrium constant for the formation of hydroxide has the stoichiometric coefficients −1 in regard to the proton and zero for the other reactants. This has important implications for all protonation equilibria in aqueous solution and for hydrolysis constants in particular.
It is quite usual to omit from the model those species whose concentrations are considered to be negligible. For example it is usually assumed then there is no interaction between the reactants and/or complexes and the electrolyte used to maintain constant ionic strength or the buffer used to maintain constant pH. These assumptions may or may not be justified. Also, it is implicitly assumed that there are no other complex species present. When complexes are wrongly ignored a systematic error is introduced into the calculations.
Equilibrium constant values are usually estimated initially by reference to data sources.
Speciation calculations
A speciation calculation is one in which the concentrations of all the species in an equilibrium system are calculated, knowing the analytical concentrations, TA, TB etc. of the reactants A, B etc. This means solving a set of non-linear equations of mass-balance
- <math>
\begin{align} T_A & = [A]+\sum p\beta_{pq \cdots }[A]^p[B]^q \cdots \\[8pt] T_B & = [B]+\sum q\beta_{pq \cdots}[A]^p[B]^q \cdots \\ & {}\ \ \vdots \end{align} </math>
for the free concentrations [A], [B] etc. The concentrations of the complexes are derived from the free concentrations via the chemical model. Some authors[3][4] include the free reactant terms in the sums by declaring identity (unit) <math>\beta</math> constants for which the stoichiometric coefficients are 1 for the reactant concerned and zero for all other reactants:
- <math>[A] = \beta_{10\ldots }[A],[B] = \beta_{01\ldots}[B] \ldots\,</math>
- <math>\beta_{10\ldots}= \beta_{01\ldots}\ldots = 1\,</math>
In this manner, all chemical species, including the free reactants, are treated in the same way, having been formed from the combination of reactants that is specified by the stoichiometric coefficients. The mass-balance equations assume the simpler form.
- <math>
\begin{align} T_A & = \sum p\beta_{pq\cdots}[A]^p[B]^q\cdots \\[8pt] T_B & = \sum q\beta_{pq\cdots}[A]^p[B]^q\cdots \\ & {}\ \ \vdots \end{align} </math>
In a titration system the analytical concentrations of the reactants at each titration point are obtained from the initial conditions, the burette concentrations and volumes. The analytical (total) concentration of a reactant R at the i'th titration point is given by
- <math>T_R=\frac{R_0+v_i[R]}{v_0+v_i}</math>
where <math>R_0</math> is the initial amount of R in the titration vessel, <math>v_0</math> is the initial volume, <math>[R]</math> is the concentration of R in the burette and <math>v_i</math> is the volume added. The burette concentration of a reactant not present in the burette is taken to be zero.
In general, solving these non-linear equations presents a formidable challenge because of the huge range over which the free concentrations may vary. At the beginning, values for the free concentrations must be estimated. Then, these values are refined, usually by means of Newton–Raphson iterations. The logarithms of the free concentrations may be refined rather than the free concentrations themselves. Refinement of the logarithms of the free concentrations has the added advantage of automatically imposing a non-negativity constraint on the free concentrations. Once the free reactant concentrations have been calculated, the concentrations of the complexes are derived from them and the equilibrium constants.
Note that the free reactant concentrations can be regarded as implicit parameters in the equilibrium constant refinement process. In that context the values of the free concentrations are constrained by forcing the conditions of mass-balance to apply at all stages of the process.
Equilibrium constant refinement
The objective of the refinement process it to find equilibrium constant values that give the best fit to the experimental data. This is usually achieved by minimising an objective function, U, by the method of non-linear least-squares. First the residuals are defined as
- <math>r_i=y_i^\text{obs}-y_i^\text{calc}</math>
Then the most general objective function is given by
- <math>U=\sum_i\sum_j r_i W_{ij} r_j\,</math>
The matrix of weights, W, should be, ideally, the inverse of the variance-covariance matrix of the observations. It is rare for this to be known. However, when it is, the expectation value of U is one, which means that the data are fitted within experimental error. Most often only the diagonal elements are known, in which case the objective function simplifies to
- <math>U=\sum_i W_{ii}r_i^2</math>
with <math>W_{ij}=0</math> when j≠ i. Unit weights, <math>W_{ii} = 1</math>, are often used but, in that case, the expectation value of U is the root mean square of the experimental errors.
The minimization may be performed using the Gauss–Newton method. Firstly the objective function is linearised by appoximating it as a first-order Taylor series expansion about an initial parameter set, p.
- <math>U=U^0+\sum_i \frac{\partial U}{\partial p_i}\delta p_i</math>
The increments <math>\delta p_i</math> are to be added to the corresponding initial parameters such that U is less than U0. At the minimum the derivatives <math>\frac{\partial U}{\partial p_i}</math>, which are simply related to the elements of the Jacobian matrix, J
- <math>J_{jk}=\frac{\partial y_j^{calc}}{\partial p_k}</math>
where pk is the kth parameter of the refinement, are equal to zero. One or more equilibrium constants may be parameters of the refinement. However, the measured quantities (see above) represented by y are not expressed in terms of the equilibrium constants, but in terms of the species concentrations, which are implicit functions of these parameters. Therefore the Jacobian elements must be obtained using implicit differentiation.
The parameter increments <math>\mathbf{\delta p}</math> are calculated by solving the normal equations, derived from the conditions that <math>\mathbf{\frac{\partial U}{\partial p}=0}</math> at the minimum.
- <math>\mathbf{ \left(J^T W J \right)\delta p=J^T W r }</math>
The increments <math>\delta p</math> are added iteratively to the parameters
- <math>\mathbf{p^{n+1}=p^n +\delta p}</math>
where n is an iteration number. The species concentrations and <math>y^{calc}</math> values are recalculated at every data point. The iterations are continued until no significant reduction in U is achieved, that is, until a convergence criterion is satisfied. If, however, the updated parameters do not result in a decrease of the objective function, that is, if divergence occurs, the increment calculation must be modified. The simplest modification is to use a fraction, f, of calculated increment, so-called shift-cutting.
- <math>\mathbf{p^{n+1}=p^n} +f \mathbf{\delta p}</math>
In this case, the direction of the shift vector,<math>\mathbf{\delta p}</math>, is unchanged. With the more powerful Levenberg–Marquardt algorithm, on the other hand, the shift vector is rotated towards the direction of steepest descent, by modifying the normal equations,
- <math>\mathbf{ \left(J^T W J +\lambda I\right)\delta p=J^T W r }</math>
where <math>\lambda</math> is the Marquardt parameter and I is an identity matrix. Other methods of handling divergence have been proposed.[4]
A particular issue arises with NMR and spectrophotometric data. For the latter, the observed quantity is absorbance, A, and the Beer–Lambert law can be written as
- <math>A_i=\sum\epsilon_{pq\cdots} c_{pq\cdots,i}</math>
It can be seen that absorbance, A, is a linear function of the molar absorbptivities, <math>\epsilon</math>, at the path length used. In matrix notation
- <math>\mathbf{A=\Epsilon C} \, </math>
There are two approaches to the calculation of the unknown molar absorptivities
- 1) The <math>\epsilon</math> values are considered to be parameters of the minimization and the Jacobian is constructed on that basis. However, the <math>\epsilon</math> values themselves are calculated at each step of the refinement by linear least-squares:
- <math>\mathbf{\Epsilon = \left(C^TC\right)^{-1}C^TA }</math>
- using the refined values of the equilibrium constants to obtain the speciation. The matrix <math>\mathbf{\left(C^TC\right)^{-1}C^T}</math> is an example of a pseudo-inverse.
- 2) The Beer–Lambert law is written as
- <math>\mathbf{A= \left( \left( C^TC \right)^{-1}C^TA \right) C}</math>
- Golub and Pereyra[5] showed how the pseudo-inverse can be differentiated so that parameter increments for both molar absorptivities and equilibrium constants can be calculated by solving the normal equations.
Parameter errors and correlation
In the region close to the minimum of the objective function, U, the system approximates to a linear least-squares system, for which
- <math>\mathbf{p=(J^TWJ)^{-1}J^TWy^{obs}}</math>
Therefore the parameter values are (approximately) linear combinations of the observed data values and the errors on the parameters, p, can be obtained by error propagation from the observations, yobs, using the linear formula. Let the variance-covariance matrix for the observations be denoted by <math>\Sigma^y</math> and that of the parameters by <math>\Sigma^p</math>. Then,
- <math>\mathbf{\Sigma^p=(J^TWJ)^{-1}J^TW \Sigma^y W^TJ(J^TWJ)^{-1}}</math>
When <math>\mathbf{W=(\Sigma^y)^{-1}}</math>, this simplifies to
- <math>\mathbf{\Sigma^p=(J^TWJ)^{-1}}</math>
In most cases the errors on the observations are un-correlated, so that <math>\Sigma^y</math> is diagonal. If so, each weight should be the reciprocal of the variance of the corresponding observation. For example, in a potentiometric titration, the weight at a titration point, k, can be given by
- <math>W_k= \frac{1}{\sigma^2_E+\left( \frac{\partial E}{\partial v} \right)^2_k\sigma^2_v} </math>
where <math>\sigma_E\,</math> is the error in electrode potential or pH, <math>\left( \frac{\partial E}{\partial v} \right)_k</math> is the slope of the titration curve and <math>\sigma_v\,</math> is the error on added volume.
When unit weights are used (<math>\mathbf{W=I, p=(J^TJ)^{-1}J^Ty}</math>) it is implied that the experimental errors are uncorrelated and all equal: <math>\Sigma^y=\sigma^2 \mathbf{I}</math>, where <math>\sigma^2\,</math> is known as the variance of an observation of unit weight, and <math>\mathbf{I}</math> is an identity matrix. In this case <math>\sigma^2\,</math> is approximated by <math>\frac{U}{n_d-n_p}</math>, where U is the minimum value of the objective function and nd and np are the number of data and parameters, respectively.
- <math>\mathbf{\Sigma^p=\frac{U}{n_d-n_p}(J^TJ)^{-1}}</math>
In all cases, the variance of the parameter pi is given by <math>\Sigma^p_{ii}</math> and the covariance between parameters pi and pj is given by <math>\Sigma^p_{ij}</math>. Standard deviation is the square root of variance. These error estimates reflect only random errors in the measurements. The true uncertainty in the parameters is larger due to the presence of systematic errors which, by definition, cannot be quantified.
Note that even though the observations may be un-correlated, the parameters are always correlated.
Derived constants
When cumulative constants have been refined it is often useful to derive stepwise constants from them. The general procedure is to write down the defining expressions for all the constants involved and then to equate concentrations. For example, suppose that one wishes to derive the pKa for removing one proton from a tribasic acid, LH3, such as citric acid.
- <math>L^{3-}+2H^+\leftrightharpoons LH_2^-:[LH_2^-]=\beta_{12}[L^{3-}][H^+]^2</math>
- <math>L^{3-}+3H^+\leftrightharpoons LH_3:[LH_3]=\beta_{13}[L^{3-}][H^+]^3</math>
The stepwise association constant for formation of LH3 is given by
- <math>LH_2^- +H^+\leftrightharpoons LH_3:[LH_3]=K[LH_2^-][H^+]</math>
Substitute the expressions for the concentrations of LH3 and LH2− into this equation
- <math>\beta_{13}[L^{3-}][H^+]^3=K\beta_{12}[L^{3-}][H^+]^2[H^+]\,</math>
whence
- <math>\beta_{13}=K\beta_{12}: K=\frac{\beta_{13}}{\beta_{12}} \,</math>
and since <math>pK_a=-\log(1/K)\,</math> its value is given by
- <math>pKa_1= \log \beta_{13}-\log \beta_{12}\, </math>
When calculating the error on the stepwise constant, the fact that the cumulative constants are correlated must be taken into account. By error propagation
- <math>\sigma^2_K=\sigma^2_{\beta_{12}}+\sigma^2_{\beta_{13}}-2 \sigma_{\beta_{12}} \sigma_{\beta_{13}}\rho_{12,13}\,</math>
and
- <math>\sigma_{\log K}=\frac{\sigma_K}{K}</math>
Model selection
Once a refinement has been completed the results should be checked to verify that the chosen model is acceptable. generally speaking, a model is acceptable when the data are fitted within experimental error, but there is no single criterion with which to make the judgement. The following should be taken into consideration.
The objective function
When the weights have been correctly derived from estimates of experimental error, the expectation value of <math>\frac{U}{n_d-n_p}</math> is 1.[6] It is therefore very useful to estimate experimental errors and derive some reasonable weights from them as this is an absolute indicator of the goodness of fit.
When unit weights are used, it is implied that all observations have the same variance. <math>\frac{U}{n_d-n_p}</math>, is expected to be equal to that variance.
Parameter errors
One would want the errors on the stability constants to be roughly commensurate with experimental error. For example, with pH titration data, if pH is measured to 2 decimal places, the errors of log <math>\beta</math> should not be much larger than 0.01. In exploratory work where the nature of the species present is not known in advance, several different chemical models may be tested and compared. There will be models where the uncertainties in the best estimate of an equilibrium constant may be somewhat or even significantly larger than <math>\sigma_{pH}</math>, especially with those constants governing the formation of comparatively minor species, but the decision as to how large is acceptable remains subjective. The decision process as to whether or not to include comparatively uncertain equilibria in a model, and for the comparison of competing models in general, can be made objective and has been outlined by Hamilton.[6]
Distribution of residuals
At the minimum in U the system can be approximated to a linear one, the residuals in the case of unit weights are related to the observations by
- <math>\mathbf{r=y^\text{obs}-J \left(J^TT \right)^{-1}J^T y^\text{obs}}</math>
The symmetric, idempotent matrix <math>\mathbf{J \left(J^TT \right)^{-1}J}</math> is known in the statistics literature as the hat matrix, :<math>\mathbf{H}</math>. Thus,
- <math>\mathbf{r=\left(I-H \right) y^\text{obs}}</math>
and
- <math>\mathbf{M^r=\left(I-H \right) M^y \left(I-H \right)}</math>
where I is an identity matrix and Mr and My are the variance-covariance matrices of the residuals and observations, respectively. This shows that even though the observations may be un-correlated, the residuals are always correlated.
The diagram at the right shows the result of a refinement of the stability constants of Ni Gly+, Ni(Gly)2 and Ni(Gly)3− (GlyH = glycine). The observed values are shown a blue diamonds and the species concentrations, as a percentage of the total nickel, are superimposed. The residuals are shown in the lower box. The presence of correlation is evident in the way sequences all have the same sign. Correlation notwithstanding, the magnitudes of the residuals show some randomness. Individual residuals are mostly commensurate with experimental error (about 0.002 in pH). This is about as good as it gets.
Physical constraints
Some physical constraints are usually incorporated in the calculations. For example, all the concentrations of free reactants and species must have positive values and association constants must have positive values.
With spectrophotometric data the molar absorptivity (or emissivity) values should all be positive. Most computer programs do not impose this constraint on the calculations.
Other models
If the model is not acceptable a variety of other models should be examined in order to find the model that best fits the experimental data, within experimental error. The main difficulty is with the so-called minor species. These are species whose concentration is so low that the effect on the measured quantity is at or below the level of error in the experimental measurement. The constant for a minor species may prove impossible to determine if there is no means to increase the concentration of the species. .
Implementations
Some simple systems are amenable to spreadsheet calculations.[7] These calculations do not follow the general procedures outlined here and use SOLVER to perform the least-squares minimization.
A large number of computer programs for equilibrium constant calculation have been published. See [8] for a bibliography. The most frequently used programs are:
- Potentiometric data: Hyperquad, BEST[9] PSEQUAD[10]
- Spectrophotometric data:HypSpec, SQUAD[10],Specfit,[11] Specfit/32 is now available commercially. ReactLab EQUILIBRIA is a new commercially available tool for the modeling and analysis of chemical equilibria.
- NMR data HypNMR, EQNMR
References
- ↑ F.J,C. Rossotti and H. Rossotti, The determination of stability constants, McGraw-Hill, 1961.
- ↑ Definitions of pH scales, standard reference values, measurement of pH, and related terminology. Pure Appl. Chem. 57, 531–542 (1985).
- ↑ R. J. Motekaitis and A. E. Martell, Can. J. Chem. 1982, 60, 2403–2409
- ↑ 4.0 4.1 P. G. Potvin, Can. J. Chem. 1990, 68, 2198–2207.
- ↑ G.H. Golub and V. Pereyra, SIAM J. Numer. Anal., 2, 413–432 (1973)
- ↑ 6.0 6.1 W. C. Hamilton, Statistics in Physical Science, The Ronald Press, New York, 1964
- ↑ E.J. Billo, EXCEL for Chemists, Wiley-VCH, 2nd. edition 2001
- ↑ P. Gans, A. Sabatini and A. Vacca, Talanta, 43,1739–1753 (1996)
- ↑ A.E. Martell and R.J. Motekaitis, The determination and use of stability constants, Wiley-VCH, 1992.
- ↑ 10.0 10.1 D. J. Leggett (editor), Computational methods for the determination of formation constants, Plenum Press, 1985.
- ↑ H. Gampp, M. Maeder, C.J.Mayer and a. Zuberbühler, Talanta, 32, 95, 257 (1985)