Repository navigation
Integrate a polynomial times an artanh and the logarithm of its quadratic in closed form - #1978
Merged
Rafael-SOWNet merged 1 commit intoOct 20, 2026
Conversation
…atic in closed form x^4 (a + b atanh(c x)) (d + e ln(1 - c^2 x^2)) and its kin up to x^5, with their arcoth twins, were declined. With y = c x, T the inverse function and B = ln(1 - y^2), the derivatives T' = 1/(1 - y^2) and B' = -2 y/(1 - y^2) are rational. The integral of y^j T B is p0 T B + p1 T + p2 B + q1 T^2 + q2 B^2 + r, for polynomials p0, p1, p2 and r and constants q1 and q2, chosen so that each division by 1 - y^2 is exact. Only the two derivatives are read, so the answer holds for the artanh and the arcoth alike, and for any constant factor inside the logarithm. The rule applies only where the product T B is in the integrand. Rubi pocket (352 rows of 7.3.4 and 7.4.1): 338 -> 347 solved. The moves re-run alone gain 10 rows (7.3.4:649-653, 7.4.1:361-363, 367, 368). Two rows master answers in 23-24 s timed out alone; at a 60 s budget both builds answer them with the same allocation to 0.01%. Part of #233. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
x^4 (a + b atanh(c x)) (d + e ln(1 - c^2 x^2)), the other powers of x up tox^5, and their arcoth twins were declined. Writey = c x,Tfor the inverse function andB = ln(1 - y^2). The derivativesT' = 1/(1 - y^2)andB' = -2 y/(1 - y^2)are rational. The integral ofy^j T Bisp0 T B + p1 T + p2 B + q1 T^2 + q2 B^2 + r, for polynomialsp0,p1,p2andrand constantsq1andq2. The constants are chosen so that each division by1 - y^2is exact.Only the two derivatives are read, so the answer holds for the artanh and the arcoth alike, and for any constant factor inside the logarithm. The rule applies only where the product
T Bis in the integrand. Wherecis a number, it leaves the integrand to the rules after it, which already answer the even powers of x, soatanh(2 x) ln(1 - 4 x^2)keeps its answer.Measured on
8a1ef454, branch against master:Re-run alone on both builds, 10 problems go from timed out to answered, in 29–274 ms: Rubi's 7.3.4:649–653 and 7.4.1:361–363, 367 and 368.
Two problems master answers in 23–24 s, 3.2.1:292 and 3.5:37, timed out on the branch when re-run alone. At a 60 s budget both builds answer them, and the allocations agree to within 0.01% (34.2 GB and 37.0 GB), so the branch does not reach them. 7.4.1:161 is answered on both in 21 s. None of the problems answered on both builds allocates more on the branch. No run had a wrong answer.
APolynomialTimesAnInverseHyperbolicTangentAndTheLogarithmOfItsQuadraticIntegralTestdifferentiates the answers back.BREAKING-CHANGES.mdhas the entry, with the 2.5.0 column measured on v2.5.0.Part of #233.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura