![]() | 1 | initial version |
I assume this is still not what you want, as it doesn't use any substitution as you suggest, but it does seem to work:
sage: integrate(x*exp(-(x-y)*(x-y)*2.1),x)
-1/882*I*(21*I*(erf(sqrt(21/10)*sqrt((x - y)^2)) - 1)*(x - y)*sqrt(pi)*y/sqrt((x - y)^2) - I*sqrt(10)*sqrt(21)*e^(-21/10*(x - y)^2))*sqrt(10)*sqrt(21)
This is coming from Maxima, of course.
![]() | 2 | No.2 Revision |
I assume this is still not what you want, as it doesn't use any substitution as you suggest, but it does seem to work:
sage: integrate(x*exp(-(x-y)*(x-y)*2.1),x)
-1/882*I*(21*I*(erf(sqrt(21/10)*sqrt((x - y)^2)) - 1)*(x - y)*sqrt(pi)*y/sqrt((x - y)^2) - I*sqrt(10)*sqrt(21)*e^(-21/10*(x - y)^2))*sqrt(10)*sqrt(21)
This is coming from Maxima, of course.
−1882i(21i(erf(√2110√(x−y)2)−1)(x−y)√πy√(x−y)2−i√10√21e(−2110(x−y)2))√10√21
If I do simplify_full()
to the answer, I get something that looks like
−1882(10√3√7e(215xy)+21(√2√5ye(2110x2+2110y2)erf(−110(√3√7x−√3√7y)√2√5)−√2√5ye(2110x2+2110y2))√π)√3√7e(−2110x2−2110y2)
which is still messy but at least doesn't have any imaginary components. Is this not sufficient?