I am reading Jakob Schwichtenberg Physics from Symmetry where in 5.2 conjugate momentum density $\pi(x)$ is defined as generator of displacement of the field itself (1): $$ \pi(x) = −i\hbar\frac{\partial}{\partial Φ(x)}\tag{1} $$
From that definition it follows that $[Φ(x), π(y)] = i\hbar δ(x − y).$
So far so good, but in 9.1 we define (2) $$ \begin{equation} \pi(x) = \frac{\partial {\cal L}}{\partial (\partial_0 Φ(x))}\tag{2} \end{equation} $$ and still use $[Φ(x), π(y)] = i\hbar δ(x − y)$ that was derived from definition (1)
So my two questions
What is the connection between two distinct definitions of $\pi(x)$?
Why we can still use $[Φ(x), π(y)] = i\hbar δ(x − y)$ for the definition (2)?
I also found this question from which it follows that conserved charge Q is indeed a generator of displacement. Which confuse me even more because Q != () in (2).
– Igor Batov Feb 24 '23 at 14:21