Repository navigation
A cube or fourth root of a quadratic binomial beside another is integrated at the ratios where it is elementary - #1707
Merged
Conversation
…rated at the ratios where it is elementary 1/((A + B x^2)^(1/3) (C + D x^2)) with B C + 3 A D = 0 or B C - 9 A D = 0, and 1/((A + B x^2)^(1/4) (C + D x^2)) with B C - 2 A D = 0, are answered in Rubi's closed forms from its 1.1.2.3, by the sign of B/A for the cube root and by the signs of A and B for the fourth. 1/((3 - x^2)(1 + x^2)^(1/3)) is at the first ratio, so the cube-root ansatz's declined row moves to 1/((3 - x^2)(2 + x^2)^(1/3)), the same pole pair off it. Part of #718 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-quotient-of-binomials
…-quotient-of-binomials
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.
1/((A + B x^2)^(1/3) (C + D x^2))and1/((A + B x^2)^(1/4) (C + D x^2))are elliptic integrals, except at three ratios of the constants where they are elementary. Those are Rubi's 1.1.2.3, and they were declined:e73a940a1/((1 + x^2)^(1/3) (9 + x^2))(1 + x^2)^(1/3)1/((a + b x^2)^(1/3) (3 a - b x^2))b/a1/((a + b x^2)^(1/4) (2 a + b x^2))(a + b x^2)^(1/4), by the signs ofaandb1/((-2 + 3 x^2) (-1 + 3 x^2)^(1/4))-(arctan(u) + artanh(u))/(2 sqrt(6)),u = sqrt(3) x/(sqrt(2) (-1 + 3 x^2)^(1/4))What changes. A new rule, after the binomial differential's, reads a constant over a cube or fourth root of
A + B x^2timesC + D x^2, and answers it whereB C + 3 A D = 0orB C - 9 A D = 0, under a cube root, orB C - 2 A D = 0, under a fourth root,in Rubi's closed forms, written for any constants with the ratio. For the cube root there are two forms, one for each sign of
B/A; for the fourth root, three:AandBpositive,Apositive andBnegative, andAnegative. With symbols the answer is a piecewise over those signs, and with numbers it is the one form that holds. The derivative of each form uses only that the roots are roots, so each was checked by differentiating it back at points in every sign case.Where
AandBare both positive, the fourth root's answer jumps atx = 0and is an antiderivative on each side of it, as Rubi's is. A definite integral across 0 takes the limit from each side:integral(1/((2 + 3 x^2)^(1/4) (4 + 3 x^2)), x, -1, 1)is0.3209540335651…, which quadrature gives. It takes 27 s, so that row is not in the tests.1/((3 - x^2)(1 + x^2)^(1/3))is at the first ratio.CubeRootLogarithmAnsatzTesthad it as a row the ansatz declines; it is answered here now, so that row is1/((3 - x^2)(2 + x^2)^(1/3)), the same pole pair at a ratio that is not elementary, which is still declined.Tests:
EllipticLookingQuotientOfBinomialsTest, each differentiated back: seven rows withaandbpinned in every sign case of the three ratios, five with numbers, and two definite integrals across 0 against quadrature. On mastere73a940aeach indefinite row is declined but1/((1 - x^2)^(1/3) (3 + x^2)), which the cube-root ansatz now answers, in a longer form.Measured first on all 349 problems of Rubi's 1.1.2.3, 158 of them with answers in functions the library has, at the corpus's 5-second budget, against master
148f3007, the branch's base:37 more are answered, and none that master answers is lost.
Measured then on the Rubi corpus against master
148f3007:No answer is wrong on either build. The 47 problems the two builds disagreed on, run again one build at a time, are 46 answered here and 3 on master: 36 in 1.1.2.3, and seven of Welz's in family 0,
(a + b x)/((3 - x^2)(1 + x^2)^(1/3)),1/((1 - 3 x^2)^(1/3)(3 - x^2))and fourth roots beside2 +/- x^2; three are answered on both, and one on neither.The suite passes on the commit measured,
c52ade44, 14,508 tests, and so does the allocation gate. Mastere73a940a, with #1701 to #1705, is merged in since, without conflicts, and the calculus tests pass on the merge, 3,831 of them; and then0585dbb6, with #1706.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura