\(P=-\dfrac{2019}{x^2}+\dfrac{m}{x}=-2019\left(\dfrac{1}{x^2}-2.\dfrac{m}{2.2019}.\dfrac{1}{x}\right)\)
\(=-2019\left(\dfrac{1}{x^2}-2.\dfrac{m}{4038}.\dfrac{1}{x}+\dfrac{m^2}{4038^2}-\dfrac{m^2}{4038^2}\right)=-2019\left(\dfrac{1}{x}-\dfrac{m}{4038}\right)^2+\dfrac{2019m^2}{4038^2}\le\dfrac{2019m^2}{4038^2}\)
\(\Rightarrow\dfrac{2019m^2}{4038^2}=2019\Rightarrow m=\pm4038\)
\(P=\dfrac{mx-2019}{x^2}\Rightarrow px^2-mx+2019=0\)
\(\Delta=m^2-4.2019P\ge0\)
\(\Leftrightarrow P\le\dfrac{m^x}{8076}\)
để \(\max\limits_P=2019\) thì \(\dfrac{m^2}{8076}=2019\)
\(\Leftrightarrow m^2=8076.2019\)
\(=2.2.2019.2019\)
\(\Leftrightarrow m=4038\)(vì m>0)
vậy m=4038