integrate d/dx(sqrtd)cos^2(x)