Difficult integration problem

(From Maple's help pages, example by Mark van Hoeij.)

Integrating algebraic functions.

Consider the algebraic function

[Maple Math]

Integrating this function is difficult because of the roots appearing in the defining expression.

Here is the function:

> f:=(x^2-1+3*(1+x^2)^(1/3))/(1+x^2)^(2/3)*x/(x^2+2)^2;

[Maple Math]

Let us try to integrate it:

> int(f,x);

[Maple Math]

Looks like Maple could not do it.

There is, however, a method to deal with non--trivial algebraic functions like the one above. That is to convert the explicit roots into RootOf constructions.

> f:=convert(f,RootOf);

[Maple Math]

Now this function can be integrated:

> Int(f,x) = int(f,x);

[Maple Math]
[Maple Math]
[Maple Math]

>

The answer produced by Maple is an elementary function.

Compare this result to the integration performed by the server

www.integrals.com.