ta có:
\(P=\dfrac{\sqrt{\left(x-2016\right).2017}}{\sqrt{2017}\left(x+1\right)}+\dfrac{\sqrt{\left(x-2017\right)2016}}{\sqrt{2016}\left(x-1\right)}\)
Áp dụng BĐT cauchy:\(\sqrt{\left(x-2016\right)2017}\le\dfrac{1}{2}\left(x-2016+2017\right)=\dfrac{1}{2}\left(x+1\right)\)
\(\sqrt{\left(x-2017\right)2016}\le\dfrac{1}{2}\left(x-2017+2016\right)=\dfrac{1}{2}\left(x-1\right)\)
do đó \(P\le\dfrac{x+1}{2\sqrt{2017}\left(x+1\right)}+\dfrac{x-1}{2\sqrt{2016}\left(x-1\right)}=\dfrac{1}{2\sqrt{2017}}+\dfrac{1}{2\sqrt{2016}}\)
đẳng thức xảy ra khi \(\left\{{}\begin{matrix}x-2016=2017\\x-2017=2016\end{matrix}\right.\)\(\Rightarrow x=4033\)