second derivative of cos(90-x-arcsin(B*cos(x)))