Đặt \(\sqrt{x^2+4x+5}=t\Rightarrow t\in\left[\sqrt{5};\sqrt{17}\right]\)
\(\Rightarrow y=f\left(t\right)=t^2-2t+7\)
\(-\dfrac{b}{2a}=1\notin\left[\sqrt{5};\sqrt{17}\right]\)
\(f\left(\sqrt{5}\right)=10+4\sqrt{5}\) ; \(f\left(\sqrt{17}\right)=22+4\sqrt{17}\)
\(\Rightarrow y_{min}=10+4\sqrt{5}\) ; \(y_{max}=22+4\sqrt{17}\)