Áp dụng định lí viet ta có:
\(\hept{\begin{cases}x_1+x_2+x_3=5\\x_1x_2+x_2x_3+x_3x_1=2m+2\end{cases}}\)
Ta có: \(x_1^2+x_2^2+x_3^2=41\)
<=> \(\left(x_1+x_2+x_3\right)^2-2\left(x_1x_2+x_2x_3+x_3x_1\right)=41\)
<=> \(25-2\left(2m+2\right)=41\)
<=> \(m=-5.\)