I'm trying to workout a long expression with derivations, the thing is I can't seem to transfer this problem to code.
What I need is a operator $D = l^\mu \frac{\partial}{\partial x^\mu} $ where $l^\mu$ is a vector. Problem is I have long expression, for expample I need to write a equation $$(D + \epsilon + \kappa + \gamma )(D -\omega + \kappa)\phi == 0, $$ where all functions $(\epsilon, \gamma, \kappa, \phi) = (\epsilon(x^i), \gamma(x^i), \kappa(x^i), \phi(x^i)) $.
For this reasons defining $D$ as
DD = Sum[l[[i]] D[#,x[[i]]],{i,1,4}]&
Is not usefull because I would have to expand eqaution for $\phi$ and then rewrite is in terms $D[\epsilon,\kappa,\gamma,\phi]...$. Note that I choose to wtite $D$ as $DD$ in code so it isn't confused with Mathematicas derivative funciton.
There are other expressions which I need to write out and other derivatives. Is there any way to define $D$ so that I can just write the equation and get the result?