J.R. S. answered 03/21/24
Ph.D. University Professor with 10+ years Tutoring Experience
Codeine is a base, and can be represented as B. In solution, we have the following equilbrium...
B + H2O <--> BH+ + OH-
From the pKa, we can find the Kb, which we will need since we are dealing with hydrolysis of a base:
pKa + pKb = 14
pKb = 14 - 8.21 = 5.79
Kb = 1x10-5.79 = 1.62x10-6
Kb = 1.62x10-6 = [BH+][OH-] / [B]
1.62x10-6 = (x)(x) / 3.40x10-4 - x
x2 = 5.51x10-10 - 1.62x10-6x
x2 + 1.62x10-6x - 5.51x10-10 = 0
Use the quadratic formula to solve for x....
x = 2.27x10-5 M = [OH-]
pOH = -log [OH-] = -log 2.27x10-5 = 4.64
pH = 14 - pOH
pH = 9.356