Powers of two linears whose exponents sum to a whole number below -2 are integrated - #1756
Merged
Rafael-SOWNet merged 5 commits intoOct 4, 2026
Conversation
…are integrated Under t = L1/L2 the product L1^A L2^B, with A + B = -k and k >= 2 whole, beside a polynomial of degree at most k - 2, is a power of t beside a polynomial in t. Since t^(A + i + 1) is t^A t^(i + 1) for a whole i + 1, the antiderivative is the two powers as written times a polynomial in x, exact wherever the integrand is defined. Only the sum -2 was answered. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…0 has Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
Part of #718.
(a + b x)^m (c + d x)^(-3 - m)was declined, while(a + b x)^m (c + d x)^(-2 - m)was answered: the sum-2makes the product the derivative of the two powers raised by one, which a rule reads, and nothing read a lower sum. 2.5.0 declined them too:a27661f3(a + b x)^m (c + d x)^(-3 - m)x^(n - 4)/(a + b x)^n(a + b x)^m (c + d x)^(-5 - m) (p + q x)^3(a + b x) (c + d x)^(n - 4)/(p + q x)^n(a + b x)^m (c + d x)^(-4 - m) (p + q x) (g + h x)(a + b x)^(5/2)/(c + d x)^(11/2)Each answer is differentiated back with the symbols pinned and compared as a complex number at
x = -2.3, -1.1, -0.4, 0.4, 1.1, 2.3; the times include that.What changes. Powers of two linears
L1 = a1 + b1 xandL2 = a2 + b2 xwhose exponentsAandBsum to a whole number-k,k >= 2, beside a polynomialPof degree at mostk - 2, are integrated undert = L1/L2. Therex = (a1 - a2 t)/(b2 t - b1),L2 = D/(b2 t - b1)anddx = -D dt/(b2 t - b1)^2forD = a1 b2 - a2 b1, so the integrand is, up to a factor constant on each interval,-D^(1 - k) t^A S(t)withSa polynomial, and the antiderivative issum_i s_i t^(A + i + 1)/(A + i + 1). Sincet^(A + i + 1)ist^A t^(i + 1)for a wholei + 1, the constant factor andt^Acome back as the two powers as written: the answer isL1^A L2^Btimes a polynomial inx, exact wherever the integrand is defined, and taking eachA + i + 1to be nonzero, as the integrator does everywhere. A closed rule, so it answers at any depth -- underu = sin(y), the powers of1 ± sin(y)beside one another ask exactly this. #1754, merged, asks that question for symbolic powers ofa ± a sin, and on the merge with it the thirteen of Rubi's family 4 it left,(a + a sin)^m (c - c sin)^(-3 - m)and its kin, are answered in 0.1 to 0.9 seconds, where either alone ran past eight.Tests:
TwoLinearPowersIntegralTest, six rows differentiated back with the symbols pinned, on both sides of zero; five are declined on master, and the sixth,(a + b x)^(5/2)/(c + d x)^(11/2), numeric, was answered and is answered here by this rule, the same function written as the two powers times a polynomial.Measured first on the 358 problems of Rubi's 1.1.1.2 to 1.1.1.4 with two powers of linears that are not whole and sum to a whole number below
-1, 339 run, at the corpus's 5-second budget, against master8f3757cd, the branch's base:The one past the budget here and not on master,
(2 + 3x)^5/((1 - 2x)^(5/2) (3 + 5x)^(3/2)), a polynomial of degree five beside a sum of-4that the rule leaves alone, takes 24 to 25 seconds on both builds run alone, at the edge of the harness's patience.Measured then on the Rubi corpus against master
8f3757cd:The harness counts no answer wrong in the pocket or the sample on either build. Of the 34 problems the two builds disagreed on, pocket and sample together, run again one build at a time, master answers 2 and this 24. The 22 more are Rubi's two linear powers summing to a whole number below
-2, alone or beside a polynomial, answered in a hundredth to four tenths of a second. The two both answer take twenty-one to twenty-three seconds, and the other ten run past the budget on both.The suite passes on the commit measured,
ce598c76, 14,597 tests with 13 skipped, and the allocation gate with it. On the merge with mastera27661f3,6f416e97, the 4,159 calculus and corpus tests that run pass, with 2 skipped. Every row of the first table is as it says on the merge. The head,9e002f3d, reads the polynomials' terms by key and value, which netstandard2.0 has, and carries master9848e467; CI is green on it.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura