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.