y=x+m-1
=>x-y+m-1=0
Khoảng cách từ O(0;0) đến (d) là:
\(d\left(O;\left(d\right)\right)=\dfrac{\left|0\cdot1+0\cdot\left(-1\right)+m-1\right|}{\sqrt{1^2+\left(-1\right)^2}}=\dfrac{\left|m-1\right|}{\sqrt{2}}\)
Để \(d\left(O;\left(d\right)\right)=3\sqrt{2}\) thì \(\dfrac{\left|m-1\right|}{\sqrt{2}}=3\sqrt{2}\)
=>|m-1|=6
=>\(\left[{}\begin{matrix}m-1=6\\m-1=-6\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}m=7\\m=-5\end{matrix}\right.\)