Derivative of Augmented Lagrangian term

One would preferably need a minimal reproducible example.
See the guidelines: