Spectrophotometric titration of polymethacrylic acid