# [Maxima] Problem with integral

Doug Stewart dastew at sympatico.ca
Sun Oct 28 14:37:48 CDT 2007

```It works in 5.11.0
3
cos (x)
(%i1)               integrate(-------, x, 1, 2)
4
sin (x)

1             1             1           1
(%o1)             ------ - --------- - ------ + ---------
sin(2)           3         sin(1)           3
3 sin (2)                   3 sin (1)

Doug

Mario Rodriguez wrote:
> This is what I get with current cvs maxima:
>
>
>
> (%i12) integrate(cos(x)^3/sin(x)^4,x);
> (%o12) (3*sin(x)^2-1)/(3*sin(x)^3)           ====> ok
> (%i13) integrate(cos(x)^3/sin(x)^4,x,1,2);
> Integral is divergent
>  -- an error.  To debug this try debugmode(true);
>
>
> I'm sure maxima could calculate the definite integral above in the past.
> This output is from a document I wrote about one year ago:
>
> (%i28) integrate(cos(x)^3/sin(x)^4,x,1,2);
>                 1          1         1          1
> (%o28)        ------ - --------- - ------ + ---------
>               sin(2)        3      sin(1)        3
>                        3 sin (2)            3 sin (1)
>
>
>
>
```