max 36*sin(a)+288-144√2 *sin(a)*cos(3Pi/4-a) from 0 to pi/2