Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I understand the result of symbolic integrals

So now I know how to integrate, but when I type in

sage: deriv=diff((exp(x)-1)/x,x); deriv e^x/x - (e^x - 1)/x^2 sage: deriv.integrate(x) -1/x + Ei(x) - gamma(-1, -x)

why don't I get back (exp(x)-1)/x +C ?

click to hide/show revision 2
No.2 Revision

How do I understand the result of symbolic integrals

So now I know how to integrate, but when I type in

sage: deriv=diff((exp(x)-1)/x,x); deriv
e^x/x - (e^x - 1)/x^2
sage: deriv.integrate(x)
-1/x + Ei(x) - gamma(-1, -x)

-x)

why don't I get back (exp(x)-1)/x +C +C?

How do I understand the result of symbolic integrals

So now I know how to integrate, but when I type in

sage: deriv=diff((exp(x)-1)/x,x); deriv
e^x/x - (e^x - 1)/x^2
sage: deriv.integrate(x)
-1/x + Ei(x) - gamma(-1, -x)

why don't I get back (exp(x)-1)/x +C?

How do I understand the result of symbolic integrals

So now I know how to integrate, but when I type in

sage: deriv=diff((exp(x)-1)/x,x); deriv
e^x/x - (e^x - 1)/x^2
sage: deriv.integrate(x)
-1/x + Ei(x) - gamma(-1, -x)

why don't I get back (exp(x)-1)/x +C?

How do I understand the result of symbolic integrals

So now I know how to integrate, but when I type in

sage: deriv=diff((exp(x)-1)/x,x); deriv
e^x/x - (e^x - 1)/x^2
sage: deriv.integrate(x)
-1/x + Ei(x) - gamma(-1, -x)

why don't I get back (exp(x)-1)/x +C?