Câu 1:
Lấy logarit cơ số tự nhiên 2 vế:
\(x.lny+e^y.x\ge y.lnx+y.e^x\)
\(\Leftrightarrow\frac{lny+e^y}{y}\ge\frac{lnx+e^x}{x}\)
Xét hàm \(f\left(t\right)=\frac{lnt+e^t}{t}\) với \(t>1\)
\(f'\left(t\right)=\frac{\left(e^t+\frac{1}{t}\right).t-lnt-e^t}{t^2}=\frac{t.e^t+1-e^t-lnt}{t^2}\)
Xét \(g\left(t\right)=t.e^t+1-e^t-lnt\Rightarrow g'\left(t\right)=e^t+t.e^t-e^t-\frac{1}{t}\)
\(g'\left(t\right)=t.e^t-\frac{1}{t}=\frac{t^2.e^t-1}{t}>0\) \(\forall t>1\)
\(\Rightarrow g\left(t\right)\) đồng biến \(\Rightarrow g\left(t\right)>g\left(1\right)=1>0\) \(\forall t>1\)
\(\Rightarrow f'\left(t\right)=\frac{g\left(t\right)}{t^2}>0\Rightarrow f\left(t\right)\) đồng biến
\(\Rightarrow f\left(t_1\right)\ge f\left(t_2\right)\Leftrightarrow t_1\ge t_2\)
\(\Rightarrow f\left(y\right)\ge f\left(x\right)\Leftrightarrow y\ge x\) \(\Rightarrow log_xy\ge1>0\)
\(P=log_x\left(xy\right)^{\frac{1}{2}}+log_yx=\frac{1}{2}\left(1+log_xy\right)+\frac{1}{log_xy}\)
\(P=\frac{1}{2}+\frac{1}{2}log_xy+\frac{1}{log_xy}\ge\frac{1}{2}+2\sqrt{\frac{log_xy}{2log_xy}}=\frac{1}{2}+\sqrt{2}\)
\(f'\left(x\right)=\frac{1}{x-1}\Rightarrow\int f'\left(x\right)dx=\int\frac{1}{x-1}dx\)
\(\Rightarrow f\left(x\right)=ln\left|x-1\right|+C\)
\(\Rightarrow f\left(x\right)=\left\{{}\begin{matrix}ln\left|x-1\right|+C_1\left(x>1\right)\\ln\left|x-1\right|+C_2\left(x< 1\right)\end{matrix}\right.\)
\(f\left(0\right)=2018\Leftrightarrow2018=ln\left|0-1\right|+C_2\Rightarrow C_2=2018\)
\(f\left(2\right)=2019\Rightarrow2019=ln\left|2-1\right|+C_1\Rightarrow C_1=2019\)
\(\Rightarrow f\left(x\right)=\left\{{}\begin{matrix}ln\left|x-1\right|+2019\left(x>1\right)\\ln\left|x-1\right|+2018\left(x< 1\right)\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}f\left(3\right)=2019+ln2\\f\left(-1\right)=2018+ln2\end{matrix}\right.\) \(\Rightarrow S=1\)