problem with integrate

johappy
2013-09-29
2013-09-30
  •  johappy
    johappy
    2013-09-29

    integrate(sqrt(1+cos(x)),x,0,2*%pi);
    the result is 0
    this is not wrong, because 1+cos(x) >= 0

     
  • Try:

     integral:integrate(sqrt(1+cos(x)),x);
     h1:radcan(integral);
     h2:trigreduce(h1);
     h3:factor(h2);
     wxplot2d(h3, [x,0,2*%pi]);
    

    You will clearly see what the problem is: The symbolic solution of the integral contains a singularity at %pi.

    I think Maxima should issue a warning or - better - provide a solution that does not contain this singularity.

     
  •  johappy
    johappy
    2013-09-30

    Great!
    Thanks a lot!
    Jo