ARTICLE (original article): Approximate mathematical treatments are commonly taught in undergraduate chemistry, but the validity ranges of these approximations have rarely been properly defined. We present error contour plots of commonly used quadratic approximations for calculating equilibrium proton concentrations of monoprotic acids. Students and instructors can easily read these plots to estimate the error in their approximation of proton concentration (1%, 5%, 10%, and 25%) at a given initial acid concentration
[HA]
0
and dissociation constant
K
a
value. In addition, we introduce a new quadratic expression which will always deliver an error no larger than 25% (or 0.1 pH unit) in ideal solution irrespective of the acid strength and concentration. These results extend readily to their analogue of pOH,
K
b
, and
[
-
A
]
for bases. Our novel approach here could significantly reduce many different situations students must master into one that can be computed straightforwardly without caveats or conditions. CITATION (original article): Limpanuparb, T.; Ho J. (2023), Visualization of Validity Ranges for Acid Approximations: Error Contour Plots as a Function of Concentration and
To obtain the exact solution for the pH of a monoprotic acid solution, the following cubic equation is to be solved.
3
[
+
H
]
+
2
K
a
[
+
H
]
-(
K
a
[HA]
0
+
K
w
)[
+
H
]-
K
a
K
w
=0
(
1
)
[HA]
0
is the intital concentration of acid.
K
a
and
K
w
are ionization constants of acid and water, respectively. As solving this cubic equation can be quite complex, different approximation methods are presented in textbooks and articles to reduce this equation into simpler quadratic forms. The following are three common methods .
1
.
Direct substitution: quadratic equation derived from the “Reaction Initial Change Equilibrium” table, neglecting effects of self-ionization of water
2
.
Simple square root: square root equation simplified from the quadratic equation in method 1, neglecting effects of self-ionization of water and change in acid concentration
3
.
Handerson-Hasselbalch equation (HH-like): equation for buffer solutions, assuming the concentration of acid and its salt are constant at equilibrium and neglecting effects of self-ionization of water
This program calculates the concentration of hydronium and hydroxide ions, pH and pOH from input values of
K
a
,
K
w
,
[HA]
0
, and
[
-
A
]
0
.
K
a
and
K
w
are real numbers greater than 0, while
[HA]
0
, and
[
-
A
]
0
are real numbers greater than or equal to 0. If a value outside of this range is entered, the program will automatically revert it back to the corresponding default value. The acid + salt mode uses approximation equations explained in the introduction, while the base + salt mode uses the same equations, but replacing
K
a
with
K
b
,
[
+
H
]
with [
-
OH
]
and switching [HA] and
[
-
A
]. If the calculated value for
[
+
H
]
in acid + salt mode or [
-
OH
]in
base + salt mode is greater than 0, then the output box will display the calculated values for
[
+
H
]
, [
-
OH
]
, pH, pOH and ionic strength (I). Otherwise, the message “This formula is not applicable to the input.” will be shown.
In[]:=
Contour plot of error in calculation of
[
+
H
]
This program illustrates the percent error of the calculated solution for
[
+
H
] using each approximation equation. The contour plot of two selected variables shows regions of error ranges from no error (white) to highly positive (red) and highly negative (blue).
To generate the plot, the approximation equation (approximation method, numerator, denominator) is selected. Two out of three variables (
[HA]
0
,
[
-
A
]
0
,
K
a
) are selected as the x and y values for the plot. The third variable z = ax + b can be set to vary with x or as a constant.
K
w
values for the approximation and the exact calculation can be input separately. In addition, the two axes can be set to be in linear (none) or log scale and the minimum and maximum values of the axes can be adjusted. The number of plot points (initial sample points) can be adjusted to obtain smoother or rougher plots. Increasing the number of plot points increases the smoothness of the plot along with the evaluation time.
In[]:=
Contour plot of error in calculation of
[
-
OH
]
This program illustrates the percent error of the calculated solution for
[
-
OH
] using each approximation equation. The contour plot of two selected variables shows regions of error ranges from no error (white) to highly positive (red) and highly negative (blue).
To generate the plot, the approximation equation (approximation method, numerator, denominator) is selected. Two out of three variables (
[
-
A
]
0
,
[HA]
0
,
K
b
) are selected as the x and y values for the plot. The third variable z = ax + b can be set to vary with x or as a constant.
K
w
values for the approximation and the exact calculation can be input separately. In addition, the two axes can be set to be in linear (none) or log scale and the minimum and maximum values of the axes can be adjusted. The number of plot points (initial sample points) can be adjusted to obtain smoother or rougher plots. Increasing the number of plot points increases the smoothness of the plot along with the evaluation time.