Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 14 years ago

kcrisman gravatar image

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.

click to hide/show revision 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(xy)2)1)(xy)πy(xy)2i1021e(2110(xy)2))1021

If I do simplify_full() to the answer, I get something that looks like

1882(1037e(215xy)+21(25ye(2110x2+2110y2)erf(110(37x37y)25)25ye(2110x2+2110y2))π)37e(2110x22110y2)

which is still messy but at least doesn't have any imaginary components. Is this not sufficient?