It would be better to use \operatorname{d}\!x (e.g. ) instead of \,\mathrm{d} (e.g. ), because \operatorname already inserts a space before the "d", and originates from [1]