# Transformations in classical field theory and configuration space

When transforming a field in classical field theory the transformation of the four-gradient of this field follows automatically. At least this is what i have learned in my lectures.

This circumstance kind of contradicts my understanding of the Lagrange formalism in classical mechanics. In classical mechanics the generalized coordinates and their derivatives are understood as coordinates in configuration space. Therefore i can perform a transformation in configuration space only concerning the generalized coordinates and not their derivatives.

So there is probably a strong difference between the Lagrange formalism of fields and the Lagrange formalism of classical mechanics which I do not understand yet.

Question: Why is it possible to transform $$q(t)$$ in classical mechanics without transforming $$\dot{q}(t)$$, but it is not possible to transform $$\phi(x)$$ without transforming $$\partial_\mu \phi(x)$$?

1. On one hand, the arguments of the Lagrangian density $${\cal L}(\phi,\partial_t\phi,\partial_x\phi,\partial_y\phi,\partial_z\phi,t,x,y,z)$$ are independent variables in the same way as the arguments of the Lagrangian $$L(q,\dot{q},t)$$ are independent variables.
2. On the other hand, inside the actions $$S[\phi]$$ (and $$S[q]$$), the derivatives $$\partial_{\mu}\phi$$ (and $$\dot{q}$$) depend on $$\phi$$ (and $$q$$), respectively.