Gọi N là trung điểm BC
\(\left|\overrightarrow{MA}+\overrightarrow{MC}+2\overrightarrow{MB}+2\overrightarrow{OC}\right|=\left|\overrightarrow{AB}-\overrightarrow{AD}\right|\)
\(\Leftrightarrow\left|2\overrightarrow{MO}+2\overrightarrow{MB}+2\overrightarrow{OC}\right|=\left|\overrightarrow{AB}-\overrightarrow{AD}\right|\)
\(\Leftrightarrow\left|2\overrightarrow{MC}+2\overrightarrow{MB}\right|=\left|\overrightarrow{AB}-\overrightarrow{AD}\right|\)
\(\Leftrightarrow4\left|\overrightarrow{MN}\right|=\left|\overrightarrow{BD}\right|\)
\(\Rightarrow\left|\overrightarrow{BD}\right|=4\left|\overrightarrow{MN}\right|=4\left|\overrightarrow{DN}+\overrightarrow{MD}\right|\ge4MD-4DN\)
\(\Rightarrow4MD\le BD+4DN\)
\(\Leftrightarrow MD\le\dfrac{BD+4DN}{4}=\dfrac{a\sqrt{2}+2a\sqrt{5}}{4}=\dfrac{2\sqrt{5}+\sqrt{2}}{4}a\)