Menu

#4201 integrate fails in a sign when working with trigonometric functions under the root

None
open
nobody
5
2023-10-30
2023-10-26
No
 integrate(sqrt(1-sin(t)^2)*cos(t), t, %pi, %pi/2);

should give %pi/4, but gives -%pi/4. I think the problem is, then in the integration domain sqrt(1-sin²t) = |cos t| = -cos t.

But maxima for some reason works with |cos t| = cos t

Discussion

  • Ilya Dikarev

    Ilya Dikarev - 2023-10-26

    The same problem appears if we change it to:

    integrate(sqrt(1-sin(t)^2)*cos(t), t, %pi/2, %pi);
    

    is should give -%pi/4, but returns %pi/4

    Maxima 5.43.2

     

    Last edit: Ilya Dikarev 2023-10-26
  • Robert Dodier

    Robert Dodier - 2023-10-30
    • labels: --> integrate, defint, sqrt, trigonometry
     

Log in to post a comment.