A rational function of x^n beside a power of x and the root of a binomial is integrated - #1727
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Merged
Conversation
…mial is integrated Under u = x/(a + b x^n)^(1/n), x^j (a + b x^n)^(k - (j + 1)/n) beside a rational function of x^n is u^j times a rational function of u, for any j below n, since x^j (a + b x^n)^(-j/n) is u^j. The rule took j = 0 only, so x/((a + b x^3)^(2/3) (c + d x^3)) and x^4 (a + b x^3)^(1/3)/(c + d x^3), Rubi's 1.1.3.4, were declined. It takes any j now. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-out-beside-a-power-of-x
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)^(2/3) (c + d x^3))andx^4 (a + b x^3)^(1/3)/(c + d x^3), Rubi's 1.1.3.4, were declined, while the same without the power ofxin front is answered by dividing by the root, underu = x/(a + b x^n)^(1/n). 2.5.0 declined them too:959c2d2ex/((a + b x^3)^(2/3) (c + d x^3))x^4 (a + b x^3)^(1/3)/(c + d x^3)x/((1 + x^3)^(2/3) (2 + x^3))x^7 (a + b x^3)^(1/3)/(a d - b d x^3)What changes.
x^jtimes a rational function ofx^ntimes(a + b x^n)^(k - (j + 1)/n)isu^jtimes the same inu, sincex^j (a + b x^n)^(-j/n)isu^j;SolveByDividingByTheRootreadj = 0only, and reads anyjbelownnow, withx^jtaken out of the polynomial above the bar first. Each answer holds on both sides of zero, an odd root of a negative being real here.Tests:
DividedByTheRootIntegralTest.BesideAPowerOfX, five rows, each differentiated back with the symbols pinned on both sides of zero; all five fail on master.Measured first on all of Rubi's 1.1.3.3 and 1.1.3.4, 941 run, at the corpus's 5-second budget, against master
8f3757cd, the branch's base:Measured then on the Rubi corpus against master
8f3757cd:No answer is wrong in the sample on either build. Of the 21 problems the two builds disagreed on, run again one build at a time, 15 are answered here and not on master: 11 of 1.1.3.4's of this shape, three of 1.1.2.2's --
(c x)^(5/2)/(a - b x^2)^(3/4)and two powers of(c x)^(7/3)beside a cube root ofa + b x^2-- and one of 6.6.1's that ran out of time on master. Two went the other way in that run,x^4/((a + b x^2)^2 (c + d x^2)^3)and(a + b x^3)^(2/3)/(x^12 (a d - b d x^3)); both take 26 to 34 s on either build without a budget, measured alternately, at the edge of the corpus's. The other four are answered on both.The suite passes on the commit measured,
d4165a5d, 14,596 tests, and so does the allocation gate. Master959c2d2eis merged in since, without conflicts; the calculus tests pass on the merge, 4,009 of them.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura