Vì \(3< x< 5\)
\(\Rightarrow x=4\)
Ta có : \(C=x^2-2x-5\)
\(=x^2-2x.1+1^2-1^2-5\)
\(=x^2-2x.1+1-1-5\)
\(=\left(x^2-2x.1+1\right)-1-5\)
\(=\left(x-1\right)^2-6\)
\(\Leftrightarrow\left(x-1\right)^2\ge0\)
\(\Rightarrow\left(x-1\right)^2-6\ge6\)
Vậy C đạt GTNN <=> x=1