So the problem at hand is:
Find the minimum value of the following function for $ x> 0 $: $$ \def\lc{\left\lceil} \def\rc{\right\rceil} \newcommand{\floor}[1]{\lfloor #1 \rfloor} x\lc x \rc + \lc \frac{1}{x} \rc + x + \floor{x}x + \floor{\frac{1}{x}} $$
My approach was to set $$ f(x) = \def\lc{\left\lceil} \def\rc{\right\rceil} \newcommand{\floor}[1]{\lfloor #1 \rfloor} x\lc x \rc + \lc \frac{1}{x} \rc + x + \floor{x}x + \floor{\frac{1}{x}} $$
and then find the minimum using the derivative. I was reading previous Maths SE posts on the derivative of the floor and ceiling functions:
2) Derivative of floor function
Using these, I was able to find out the derivative of nearly $50\%$ of $ f(x)$ but I am not able to proceed ahead and find the entire derivative. Could someone shed some light on how to approach this problem?
Any other methods would also be greatly appreciated!
Hint
$f(x)$ may look something like this where it does have a derivative: