Not able to integrate \sqrt{\frac{t^7}{(1-5t^2)}}

71 views
Skip to first unread message

Raghuram Devarakonda

unread,
Sep 25, 2026, 1:58:52 PMSep 25
to sympy

Hi,

I started using sympy only recently and it is working pretty well, not to speak of the excellent documentation. Thanks to all the developers. 

But I am running into an issue when I try to integrate this particular function as can be seen here:

>>> import sympy as sp
>>> t = sp.symbols('t')
>>> sym_f = sp.sqrt(t**7/(1-5*t**2))
>>> sp.integrate(sym_f, t)
Integral(sqrt(t**7/(1 - 5*t**2)), t)

It basically returns unevaluated integral which seems to suggest that it cannot be integrated by sympy? I tried "manualintegrate()" as well but with the same result.

Any help is greatly appreciated.

Thanks,
Raghu

Oldřich Klimánek

unread,
Sep 25, 2026, 7:09:11 PMSep 25
to sy...@googlegroups.com
Hi Raghu,
what is this integral? Any physical meaning? It is obviously not very easy to solve. For example, Mathematica returns this form:

(2 Sqrt[t^7/(
 1 - 5 t^2)] (-1 + 2 t^2 + 15 t^4 + 
   Sqrt[1 - 5 t^2] Hypergeometric2F1[1/4, 1/2, 5/4, 5 t^2]))/(105 t^3)

Sympy returns something only if we define „t“ as Real:

>> fun = sp.sqrt(t**
7
/(
1
-
5
*t**
2
))
>> t = Symbol(
't'
, real=
True
)
>> integrate(fun, t)

t*sqrt(t**7/(1 - 5*t**2))

which is wrong. 

Cheers,
O.K.

24. 9. 2026 v 20:50, Raghuram Devarakonda <drag...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sympy/1944c9c3-e20c-409f-9068-701477669b50n%40googlegroups.com.

Francesco Bonazzi

unread,
Sep 26, 2026, 1:07:03 AMSep 26
to sympy
rubi-integrate is able to solve it:

In [7]: from rubi_integrate import rubi_integrate

In [8]: rubi_integrate(sym_f, t)
Out[8]:
      __________               ⎛            __________           __________                              ⎞
     ╱     7        __________ ⎜     5/2   ╱        2           ╱        2       3/4  ⎛    ⎛4 ___   ⎞│  ⎞⎟
    ╱     t        ╱        2  ⎜  2⋅t   ⋅╲╱  1 - 5⋅t     2⋅√t⋅╲╱  1 - 5⋅t     2⋅5   ⋅F⎝asin⎝╲╱ 5 ⋅√t⎠│-1⎠⎟
   ╱   ──────── ⋅╲╱  1 - 5⋅t  ⋅⎜- ──────────────────── - ────────────────── + ───────────────────────────⎟
  ╱           2                ⎝           35                   105                       525            ⎠
╲╱     1 - 5⋅t                                                                                            
──────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                    7/2                                                  
                                                   t                                                      

or

sqrt(t**7/(1 - 5*t**2))*sqrt(1 - 5*t**2)*(-2*t**(5/2)*sqrt(1 - 5*t**2)/35 - 2*sqrt(t)*sqrt(1 - 5*t**2)/105 + 2*5**(3/4)*elliptic_f(asin(5**(1/4)*sqrt(t)), -1)/525)/t**(7/2)

Raghuram Devarakonda

unread,
Sep 26, 2026, 8:09:13 AMSep 26
to sympy
I was actually trying to solve a homework problem (which was expected to be solved using software) but it turns out that I made a mistake in copying the problem to the code. The original integral was \frac{t^7}{\sqrt{(1-5t^2)}} which works. I mistakenly copied it as \sqrt{\frac{t^7}{(1-5t^2)}} which didn't work. But at that point, i was curious and tried it in Wolfram Alpha which did give an integral. So I wanted to know why sympy didn't work and decided to post here. 

Thanks for the pointer about "Real" parameters. It is good to know.

Thanks,
Raghu

Reply all
Reply to author
Forward
0 new messages