Show that the function given by f(x)=log xx has maximum at x = e.
Let f(x)=log xx
On differentiating w.r.t.x, we get f′(x)=x(1x)−(log x).1x2=1−log xx2
Again differentiating, we get f"(x)=x2(−1x)−(1−log x)2x(x2)2
=−x−2x+2x log xx4=x(2 log x−3)x4=2 log x−3x3
For maximum put f′(x)=0⇒1−log xx2=0⇒log x=1⇒x=e
At x=e,f"(e)2 log e−3e3=2.1−3e3=−1e3<0
Therefore, by second derivative test, f is the maximum at x = e.