\(A=\dfrac{1}{x^2+3x+7}=\dfrac{1}{\left(x^2+3x+\dfrac{9}{4}\right)+\dfrac{19}{4}}=\dfrac{1}{\left(x+\dfrac{3}{2}\right)^2+\dfrac{19}{4}}\le\dfrac{1}{\dfrac{19}{4}}=\dfrac{4}{19}\)\(\Rightarrow Max_A=\dfrac{4}{19}\Leftrightarrow x=-\dfrac{3}{2}\)
\(B=\sqrt{4-x^2}\le\sqrt{4-0^2}=\sqrt{4}=2\)
\(\Rightarrow Max_B=2\Leftrightarrow x=0\)