\(x^2-\left(m+3\right)x-m+5=0\)
Theo Vi-ét, ta có :
\(\left\{{}\begin{matrix}x_1+x_2=-\dfrac{b}{a}=m+3\\x_1x_2=\dfrac{c}{a}=-m+5\end{matrix}\right.\)
Ta có :
\(x_1^2x_2+x_1x_2^2=7\)
\(\Leftrightarrow x_1x_2\left(x_1+x_2\right)-7=0\)
\(\Leftrightarrow\left(-m+5\right)\left(m+3\right)-7=0\)
\(\Leftrightarrow-m^2-3m+5m+15-7=0\)
\(\Leftrightarrow-m^2+2m+8=0\)
\(\Leftrightarrow\left[{}\begin{matrix}m=4\\m=-2\end{matrix}\right.\)