Systematic derivation of partial differential equations for second order boundary value problems. (27th November 2022)