Question: Definite integral cos(m*x) * sin(n*x)

Hi

Suppose I do the following definite integral:

Int(cos(m*x)*sin(n*x),x=0..Pi) assuming m::integer,n::integer

I recieve

-(2*m+2*(-1)^(1+m+n)*m)/(2*(-m^2+n^2))

Since I don't want to be mistaken wiht the first minus sign I do

collect(I1, m, normal)

Is there a way to tell Maple that m+n is odd or even since the answer depand on this information.  Of course, in this case, we can see immediatly but just for the peace of mind.

Mario

Please Wait...