\(y=ax^2+bx+c\left(d\right)\)
Do y có gtln là 5 khi x=-2
\(\Rightarrow\left\{{}\begin{matrix}5=a\left(-2\right)^2+b\left(-2\right)+c\\-\dfrac{b}{2a}=-2\\a< 0\end{matrix}\right.\)\(\Leftrightarrow\left\{{}\begin{matrix}4a-2b+c=5\\4a-b=0\end{matrix}\right.\)
Có \(M\in\left(d\right)\Rightarrow a+b+c=-1\)
Có hệ \(\left\{{}\begin{matrix}4a-2b+c=5\\4a+b=0\\a+b+c=-1\end{matrix}\right.\)\(\Leftrightarrow\left\{{}\begin{matrix}a=\dfrac{-2}{3}\\b=-\dfrac{8}{3}\\c=\dfrac{7}{3}\end{matrix}\right.\)(tm)
Vậy...