[Integration using python][1]
$\int_0^{\infinity}\frac{sin^{-1}\left(2x\right)}{1+x^2}dx$
integration of (arcsin(2x))/(1+x^2) dx [infinity, 0]
I can't seem to solve this problem using python. Can anyone help me with the solution?
[Integration using python][1]
$\int_0^{\infinity}\frac{sin^{-1}\left(2x\right)}{1+x^2}dx$
integration of (arcsin(2x))/(1+x^2) dx [infinity, 0]
I can't seem to solve this problem using python. Can anyone help me with the solution?
In a nutshell, SymPy does exactly what it is supposed to do: it reduces a given integral as far as possible which is a number when the integral is well-defined and analytic. However, the integral in question is not analytic. In turn, SymPy returns the symbolic representation of it as it cannot be further simplified.
from sympy import *
x = Symbol('x', positive=True)
f = asin(x)/(1 + x*x)
d = integrate(f, (x, 0, oo))
>d
Checking out WolframAlpha indicates how challenging this integral is; which is why only an approximation is provided.
In turn, a numerical integration scheme to approximate the value should be considered, e.g. methods from scipy.integrate
.