Repository navigation
x over a cubic binomial beside the root of another is integrated where that is elementary - #1790
Merged
Rafael-SOWNet merged 2 commits intoOct 5, 2026
Conversation
…e that is elementary x/((a + b x^3) sqrt(c + d x^3)) is elementary at 4 b c = a d and at 8 b c + a d = 0, Rubi's 1.1.3.4, and Welz's x/((4 - x^3) sqrt(1 - x^3)) and the rest at those ratios were declined. Both are written in closed form, by the sign of c, each condition decided as a value and the answer differentiated back. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…mial-beside-the-root-of-another
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.
Part of #718.
x/((a + b x^3) sqrt(c + d x^3))is an elliptic integral except at two ratios of its coefficients,4 b c = a dand8 b c + a d = 0, where it is arctangents and inverse hyperbolic tangents ofsqrt(c + d x^3)and of(1 + q x)/sqrt(c + d x^3)forq = (d/c)^(1/3). Welz'sx/((4 - x^3) sqrt(1 - x^3))and the rest of Rubi's 1.1.3.4 at those ratios were declined:221d3c5fx/((4 - x^3) sqrt(1 - x^3))x/((4 - d x^3) sqrt(-1 + d x^3))x/((4 c + d x^3) sqrt(c + d x^3))x/((8 + x^3) sqrt(-1 + x^3))x/((8 - d x^3) sqrt(1 + d x^3))x/((8 c - d x^3) sqrt(c + d x^3))Each is differentiated back at six points with the symbols pinned.
What changes.
SolveXOverACubicBinomialBesideTheRootOfAnother, asked afterSolveAPseudoEllipticQuotientOverTheRootOfACubicBinomial, readsx/((a + b x^3) sqrt(c + d x^3))and a constant multiple of it, and writes Rubi's closed forms withy = sqrt(c + d x^3)andqthe real cube root:4 b c = a d, four terms,q/(3 2^(2/3) b r)timesartanh(y/r)/3 + atan(y/(sqrt(3) r))/sqrt(3) - atan(sqrt(3) r (1 + 2^(1/3) q x)/y)/sqrt(3) - artanh(r (1 - 2^(1/3) q x)/y)forr = sqrt(c)and a positivec, and for a negative one, withr = sqrt(-c), the same with each arctangent and inverse hyperbolic tangent exchanged and the first two signs turned;8 b c + a d = 0, where the integrand is-(d/b) x/((8 c - d x^3) y), three,(artanh(r (1 + q x)^2/(3 y))/18 - artanh(y/(3 r))/18 - atan(sqrt(3) r (1 + q x)/y)/(6 sqrt(3)))/(r^3 q^2), and for a negativecthe same exchanged with the first and last signs turned.Rubi reaches the second by splitting the integrand into three integrals, one a substitution's and two of the kind #1781 answers. Asked as three, two come back piecewise in the symbols and their sum holds every combination of the arms: 5,607 characters for
x/((8 - d x^3) sqrt(1 + d x^3)), where the closed form is 349. Every condition is decided as a value, the form is chosen by the sign ofc-- both, each where it holds, for a symbol -- and the answer is differentiated back at sampled points before it is returned.Tests:
XOverACubicBinomialBesideTheRootOfAnotherIntegralTest, eight rows at the two ratios, withcof either sign, differentiated back on both sides of 0 wherever the integrand is real.Measured first on all of Rubi's 1.1.3.4 and Welz's problems, at the corpus's 5-second budget, against master
b1af529d, the branch's base:Measured then on the Rubi corpus against master
b1af529d:The harness counts no answer wrong in either.
The 16 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers six that master does not -- Welz's 150, 151 and 153, and 1.1.3.4:319, 324 and 364 -- the ratios above. Four that master answered alone ran past the budget here, 1.1.2.4:343 and 548, 3.2.1:152 and 4.1.2.3:76; run once more with a minute each, they take 20 to 26 seconds on either build, and the load decides them. The other six are answered by both, declined by both or past the budget on both.
The suite on the commit measured,
df3fc1d3, passes but forAnIntegralWithNoAnswerStillFinishesQuickly, whose 30-second bound took 33 seconds on a machine running two corpus chains; alone it takes two to three seconds, with this rule or without it. The allocation gate passed: every gated benchmark allocates what the baseline says. The head here,cc7d132d, merges master221d3c5f; the calculus and corpus tests pass on it, 4,334 tests, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura