Do M thuộc \(d_1\) nên tọa độ M có dạng \(M\left(m;-m-5\right)\)
Áp dụng công thức khoảng cách:
\(\Rightarrow\frac{\left|m+2\left(-m-5\right)-1\right|}{\sqrt{1^2+\left(-2\right)^2}}=2\)
\(\Leftrightarrow\left|m+11\right|=2\sqrt{5}\Rightarrow\left[{}\begin{matrix}m=-11+2\sqrt{5}\\m=-11-2\sqrt{5}\end{matrix}\right.\)