Formally speaking, the right way to doing it would be to write something like $$\int 2x\, \mathrm{d}x = x^2 + k, \ \text{where } k \text{ is constant}$$ If you did insist on doing it that way, to me it would look weird if it was italicised: italicised letters inside equations or formulae are usually interpreted as variables, so you _technically_ end up with some ambiguity if any of the letters $c,o,n,s,t$ are used as variables. So I'd certainly prefer $$\int 2x\, \mathrm{d}x = x^2 + \text{const.}$$ ...but, of course, there is no Mathematical Institute of the Universe to govern this kind of thing, so as they say on Jersey Shore, you do you.