Sorry for the confusion - "we don't need to know anything about Ka or Kb" applies in the laboratory situation when we are dealing with real solutions and glassware. Again, we are only solving for Ca in the laboratory.
So to clarify (and this will make more sense when you look at my latest version of the notebook which I have attached and to which I have added a number of enhancements)
Kw is always a constant 1.0 E-14
Ka, Kb are dependent on the acid and base respectively and will always be known
Ca, Cb are the concentrations of the acid and base respectively - and in the case of our Mathematica approach will be determined by the user
Va is the volume of acid to which we are adding the base - the user sets this value, usually to 5, 10, 20 or 25
What we are trying to achieve is a plot of pH vs Vb. We can do this in one of two ways;
The first way (which we have been working on) is to calculate Vb from pH. The resulting graph has Vb on the y-axis and pH on the x-axis - I don't know if the axes can be transposed, but it would be nice if they could
The second way (which is what we want to do next) is to calculate pH from Vb and then plot pH (y-axis) against Vb (x-axis). You said that you might find a way " I think we might be able to coerce Mathematica into solving the big hairy formula for pH." It might be a good idea to do this in a separate notebook.
I hope all this now makes sense but, if not, please let me know.
Attachments: