\(y\left(x+1\right)\ge7-x\Rightarrow y\ge\frac{7-x}{x+1}\)
\(\Rightarrow S\ge x+\frac{2\left(7-x\right)}{x+1}=x+1+\frac{16}{x+1}-3\ge2\sqrt{\frac{16\left(x+1\right)}{x+1}}-3=5\)
Dấu "=" xảy ra khi \(\left\{{}\begin{matrix}x=3\\x=1\end{matrix}\right.\)