What you are exploring
Before equivalence, excess hydrogen ions determine pH. At equivalence, acid and base moles balance. After equivalence, excess hydroxide ions make the solution alkaline. The curve is calculated from mole balance and total volume.
pH = −log₁₀([H⁺]); n(excess) = |CₐVₐ − CᵦVᵦ|