$$E(m, b) = {\cal C} + m^2{\cal A} +
b^2N - 2m{\cal B} - 2b{\cal Y} + 2bm{\cal X}$$