The Henderson-Hasselbalch equation for a weak acid is \( pH = pK_a + \log \left( \frac{[A^-]}{[HA]} \right) \). Given the dissociation degree x, the expression becomes \( pH = pK_a + \log(1 + 2x) \), assuming the weak acid dissociates into \(x\) molar concentration of H$^+$ and A$^-$ while undissociated HA remains \(1 - x\).