\(d_1\) nhận \(\left(m;1\right)\) là 1 vtpt
\(d_2\) nhận \(\left(1;2\right)\) là 1 vtpt
Ta có: \(cos45^0=\dfrac{\left|m.1+1.2\right|}{\sqrt{m^2+1}.\sqrt{1+2^2}}=\dfrac{1}{\sqrt{2}}\)
\(\Leftrightarrow\sqrt{2}\left|m+2\right|=\sqrt{5\left(m^2+1\right)}\)
\(\Leftrightarrow2\left(m+2\right)^2=5\left(m^2+1\right)\)
\(\Leftrightarrow3m^2-8m-3=0\Rightarrow\left[{}\begin{matrix}m=3\\m=-\dfrac{1}{3}\end{matrix}\right.\)