max f(x) = sin(x)*x*log(x)*min(x, log(x))*max(x, cos(x))