The integral cannot be expressed in terms of elementary functions. When you 
take 'complexIntegrate' it should work, although Google KI says that it 
requires the Hypergeometric function [2]F[1] to evaluate the second 
integral "integrate(x^2/sqrt(1-x^4),x)" which is left after partial 
integration, so *no* guarantees if (1) below is correct 😉 However, I think 
it is ... 

To verify the result below, one has also to use the 
fact that 

acos(x) = -%i * log(x+sqrt(x^2-1)) holds. 


(1) -> complexIntegrate(acos(x^2),x) 

   (1) 
                      +------+ 
                      | 4         2             +------+ 
        2 +---+    - \|x  - 1  - x        +---+ | 4 
       x \|- 1 log(----------------) - 4 \|- 1 \|x  - 1 
                     +------+ 
                     | 4         2 
                    \|x  - 1  - x 
     + 
           +---+          1            +---+          1 
       4 x\|- 1 ellipticF(-,- 1) - 4 x\|- 1 ellipticE(-,- 1) 
                          x                           x 
  / 
     2 x 
                                                    Type: 
Expression(Integer) 

On Tuesday, 27 January 2026 at 18:42:53 UTC+1 Fabian wrote:

> Hello FriCAS group,
>
> It looks like I found a bug in FriCAS:
> F:=integrate(acos(x^2),x)
> gives:
>       +--------+
>      |   4         2      2
> - 2 \|- x  + 1  + x acos(x )
> ----------------------------
>               x
>
> D(F,x)-acos(x^2)
> gives the following instead of 0:
>        2
> -------------
>    +--------+
>  2 |   4
> x \|- x  + 1
>
> I use FriCAS via https://sagecell.sagemath.org/ . Here is some Sage-code 
> that produces the above output:
>
> from sage.interfaces.fricas import fricas
> fricas.eval(
>     "F:=integrate(acos(x^2),x)"
> )
> print("F=\n",fricas("F"))
> fricas.eval("f:=D(F,x)-acos(x^2)")
> print("F'-acos(x^2)=\n",fricas("f"))
>
> The FriCAS version is 1.3.12. (print(fricas.eval(")lisp |$build_version|") 
> tells me this.)
>
> The SageMath version is 10.8, Release Date: 2025-12-18. (version() tells 
> me this.)
>
> Fabian

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/c3d4ff08-380d-43b0-bce4-c42ff037fd0fn%40googlegroups.com.

Reply via email to