Evaluate
Recognise the shape of the integrand. The complete elliptic integral of the second kind is
Our integrand has a plus sign, so it matches the template with - a negative parameter, equivalently an imaginary modulus .
Compute the constant once, carefully. Everything downstream depends on this number:
(The angle is in radians. Using degrees here is the most common way to get a wrong answer.)
Restate the integral with the number in place.
where is written with the parameter convention.
Bracket the answer before computing it. Since , the integrand lies between and . Multiplying by the interval length gives
Any numerical result outside that window is a mistake.
Evaluate numerically. Composite Simpson's rule on with a fine mesh converges to
This sits comfortably inside the bracket and just above the midpoint, as expected because spends more of the interval near than a linear weighting would suggest.
Need to solve a different problem like this? Open the solver →