maximum of 16cos^2(x)+6sin(x)