integrate sqrt(a^2 cos^2 theta+b^2 sin^2 theta)