\(P=\dfrac{3\left(x^2+2x+3\right)+1}{x^2+2x+3}=3+\dfrac{1}{x^2+2x+3}=3+\dfrac{1}{\left(x+1\right)^2+2}\le3+\dfrac{1}{2}=\dfrac{7}{2}\)
\(P_{max}=\dfrac{7}{2}\) khi \(x=-1\)
\(M=\dfrac{2\left(x^2+3x+3\right)+1}{x^2+3x+3}=2+\dfrac{1}{x^2+3x+3}=2+\dfrac{1}{\left(x+\dfrac{3}{2}\right)^2+\dfrac{3}{4}}\le2+\dfrac{1}{\dfrac{3}{4}}=\dfrac{10}{3}\)
\(M_{max}=\dfrac{10}{3}\) khi \(x=-\dfrac{3}{2}\)