derivate(integrate(f(x))) <> f(x)!



On Mon, Jul 09, 2007 at 02:08:26PM +0200, Patrick Gelin wrote:
> Stavros Macrakis wrote:
> 
> > On 7/9/07, Patrick Gelin <patrick.gelin at free.fr> wrote:

> Yes, you are right, Sorry! I've made a mistake about f. This is the maxima
> session:
> (%i59) f:sin(x)^5*cos(x)^2;
> (%o59) cos(x)^2*sin(x)^5(%i60) trigrat(f);
> (%o60) (sin(7*x)-3*sin(5*x)+sin(3*x)+5*sin(x))/64
> (%i61) integrate(%, x);
> (%o61) (-cos(7*x)/7+(3*cos(5*x))/5-cos(3*x)/3-5*cos(x))/64
> (%i62) ratsimp(%)
> (%o62) -(15*cos(7*x)-63*cos(5*x)+35*cos(3*x)+525*cos(x))/6720
> 
> The problem is that the book give:
> F(x)=-1/3*cos(x)^3 + 2/5*cos(x)^5 - 1/7*cos(x)^7 + C
> 
> which is very different from Maxima result (%o61)

trigrat of the book result will show that it is the same as the
trigrat of the maxima result.

-- 
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan