Cellulose derivatives containing carboxylic acid groups