If I try to define boxes for
Power[x,-1] like this,
MakeBoxes[Power[x, -1], TraditionalForm] := "matched";
it works as long as the coefficient is 1:
1/x // TraditionalForm
But, for other coefficients it doesn't work, for example:
2/x // TraditionalForm
But why? After all,
Times[2,Power[x,-1]], which does contain
Power[x,-1] for which the
MakeBoxes definition was given. But why doesn't it work?
What is the proper way to define boxes for such expressions?