Evaluate
Find the antiderivative by parts, twice. Taking , gives ; a second pass with , gives . Together:
The antiderivative does not depend on the limits, so it is worth deriving once and reusing.
Note what changes with the limits and . Here is a plain number of radians, not a multiple of , so and do not reduce to or . The exact answer will therefore contain both of them, and rounding them too early is the main hazard.
Evaluate at the upper limit .
The two cosine terms partially cancel: .
Evaluate at the lower limit .
Subtract to get the exact value.
Convert to a decimal and sanity-check the sign. With and :
Simpson rule gives ✓. The result is positive because on all of (since ).
Need to solve a different problem like this? Open the solver →