a, \(M=\frac{3\left(x^2+1\right)}{\left(x^4+x^2\right)+\left(2x^3+2x\right)+\left(6x^2+6x\right)}=\frac{3\left(x^2+1\right)}{x^2\left(x^2+1\right)+2x\left(x^2+1\right)+6\left(x^2+1\right)}=\frac{3\left(x^2+1\right)}{\left(x^2+2x+6\right)\left(x^2+1\right)}=\frac{3}{x^2+2x+6}\)
b, ta có: \(M=\frac{3}{x^2+2x+6}=\frac{3}{\left(x^2+2x+1\right)+5}=\frac{3}{\left(x+1\right)^2+5}\)
Vì \(\left(x+1\right)^2\ge0\Rightarrow\left(x+1\right)^2+5\ge5\Rightarrow\frac{1}{\left(x+1\right)^2+5}\le\frac{1}{5}\Rightarrow M=\frac{3}{\left(x+1\right)^2+5}\le\frac{3}{5}\)
Dấu "=" xảy ra <=>x+1=0 <=> x=-1