Source TeX:
a.MA^2+b.MB^2=k