.
Imagine that the rectangle ABCD lies in the first quadrant;
that its vertex A is the origin of the coordinate system,
vertex B lies on x-axis and vertex D lies on y-axis.
Let x-dimension of the rectangle be "a", and
y-dimension of the rectangle be "b".
Let point M has coordinates M = (x,y).
Then (MA)^2 + (MC)^2 = (x^2 + y^2) + ((a-x)^2 + (b-y)^2). (1)
(MB)^2 + (MD)^2 = ((a-x)^2 + y^2) + (x^2 + (b-y)^2). (2)
You can see at a first glance that expressions (1) and (2) are equal, since they are identical
(the difference is only in the order of addends).
So, the problem is just solved and the required equality is proved.
Solved and completed.