We often have molecules like Methotrexate which has two carboxylic groups. These two similar substitution have different pKa. So, the ionization pH of each one is different. Also, they are weak acids and act like a buffering agent and make pH resistance during formulation preparation.
How can we calculate the amount of strong base like NaOH to adjust the pH?
How does each carboxyl acid substitution act during pH change?