Sensitivity analysis with boundary conditions as parameters

As stated in

you should check out chapter 4.4 of

as it goes through what equations is required for strong enforcement of Dirichlet conditions.