Titration curve equation/function How can I create a graph of a titration curve (acid-base, strong or weak, not something specific), with an equation or a function. In other words, what is the equation that describes such a curve that could be used in graphing software to recreate the curve without actually needing any experimental values? Also, if they exist, what are the parameters of the function (Molarity? Volume? Etc.)
If $1$ liter $\ce{HCl} \pu{1 M}$ is gradually neutralized by adding $\pu{x mol }  \ce{NaOH}$, without change of volume, the pH of the obtained solution is given by : $$\mathrm{pH} = - \log(\frac{1-x}{2} + \frac{1}{2} \sqrt{(1-x)^2 + 4·10^{-14}})$$