When should I plug in value, when I want to differentiate a function? It seems to me that this route is harmless: First compute 'derivative function' and then plug in value at which i want derivative (e.g., derivative of $x^2$ at $x=1$ is $2x|_{x=1}=2$, but if i had plugged $1$ in $x^2$, i would get 'derivative' $0$), but
here things work, even if I plug in value first, and then differentiate.