(Note: the Left hand SIde of the Rules with the underscores don’t come out correctly for R_ and Teta_ because I don’t know the escape characters)
I define
CoefRay[Rr_, Teta_] := {Cos[Teta], -Sin[Teta]/Rr}
and compute
FrstOpX = CoefRay[rr, teta].OpX[You[rr, teta]].
Observe {D[FrstOpX, rr], D[FrstOpX, teta]} works a-okay. But not OpX[FrstOpX]; it goes ka-bluey when doing D[FrstOpX, teta] returning General::ivar: “-1 is not a valid variable.” Any ideas how to modify the rules to overcome da’issue? Using MatchQ tells me the rules parse correctly. (At least they I think they should.)
Anthony, it is a bit difficult to follow your posting. It might have been better if posted as code.
If you are interested in vectors as linear operators then there is an application that does that and much more. It is a Grassmann Calculus application described at my web site. It is based on Grassmann algebra with coordinates and calculus added. There is specifically a command that turns vectors into differential operators, as well as all the vector derivatives, exterior differential forms and form integrals.
It is available for free to people seriously interested in the subject.
I’m not as much interested in the application as learning the correct syntax here. Ignoring the note in parenthesis, it is posted as code. I see five input lines of code. Cutting and pasting into Mathematica notebook results in