0

If we have an expression with terms of some variable and terms of the same variable with some overscript, the differentiation of this expression does not entirely function.



The problem is that Mathematica does not recognize $\stackrel{\text{batman}}{x}$ and $x$ as two intrinsically different variables. Anyone know of some fix to this?

user23366
  • 11
  • 2

1 Answers1

2

A simple approach is to have a separate variable format as Overscript[x, batman]

Format[xbat] := Overscript[x, batman];

expr = xbat^2 + x^2

enter image description here

D[expr, xbat]

enter image description here

D[expr, x]

2 x

Bob Hanlon
  • 157,611
  • 7
  • 77
  • 198