I have an expression of the form f = a*x +OverBar[x], where OverBar[x] is just a name, it has not much to do with the variable x. I want D[f,x] = a but Mathematica shows D[f,x] = a +OverBar'[x].
Is there a way to let Mathematica know that OverBar[x] is just a name and it's derivative wrt to x is zero? D[] doesn't take Assumptions as an option afaik.
Also it does not matter whether I take something else say OverHat or UnderBar the issues is still the same D[OverHat[x],x] = OverHat'[x] according to Mathematica.
If nothing helps, is there any notation resembling OverBar that does not become a function of its argument? i.e. that it is just a symbol/name.


OverBarinstead ofSubscript– swish Feb 17 '17 at 14:56Dt: `In[78]:= Dt[a*x + OverBar[x], x, Constants -> {a, OverBar}]Out[78]= a`
– Daniel Lichtblau Feb 17 '17 at 16:30