Thermal degradation of polymethacrylic acid