Skip to content

The integral of e^atanh(x) times a half-integer power of 1 - x has the wrong sign past x = 1 #1664

Closed

Description

@Rafael-SOWNet

What you ran (Rubi 7.3.6, #432–#447):

"e^atanh(x)*(1-x)^(1/2)".Integrate("x");

What it did: it answers (1 + x) ^ (3/2) / (3/2). That holds for x < 1. Past x = 1 the integrand is still real, since e^atanh(x) and sqrt(1 - x) are both imaginary there, and the answer has the wrong sign. Measured on master 38974356:

Simpson's rule on the integrand F(b) − F(a)
[0.1, 0.9] 0.97685 0.97685
[1.5, 2.4] −1.54430 +1.54430

It is the same defect as #1655, through another route. The answer is the integrand's antiderivative continued from x < 1, as if e^atanh(x) sqrt(1 - x) were sqrt(1 + x) everywhere. Simplify does not make that rewrite. It gives sqrt(1 - x) * sqrt(2 / (1 - x) - 1), which keeps the value. The eight rows that fail are the same integrand times x^m and other half-integer powers of 1 - x:

e^atanh(x)*(1-x)^(3/2)*x, e^atanh(x)*(1-x)^(3/2), e^atanh(x)*(1-x)^(1/2)*x, e^atanh(x)*(1-x)^(1/2), e^atanh(x)*x/(1-x)^(1/2), e^atanh(x)/(1-x)^(1/2), e^atanh(x)*x/(1-x)^(3/2), e^atanh(x)/(1-x)^(3/2)

What it should have done: return an answer that holds wherever the integrand is real, or one that states where it holds, as #1663 does for the symbolic e^atanh(a x) (c - a c x)^p.

Activity

  1. added this to the 2.6.0 milestone on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions