A whole power of a quotient with a symbol in it is integrated as the quotient of the powers - #1736
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Conversation
…quotient of the powers (c/(a + c x^2))^2 was declined after twenty-six seconds while c^2/(a + c x^2)^2 was answered at once: the table reads the quotient of the powers. It is written so wherever the quotient is of two polynomials with a symbol in them and leaves a monomial above the bar, the table's x^m/(a + b x^n)^p, which is exact for a whole power. The substitution u = x^2 writes x/(a + c x^4)^2 that way, and it took twenty seconds where it takes a twentieth of one now. Part of #718. 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.
(c/(a + c x^2))^2was declined after a search of half a minute, whilec^2/(a + c x^2)^2, the same function, is answered at once: the table reads the quotient of the powers, and nothing read the power of the quotient. And the substitutionu = x^2writesx/(a + c x^4)^2in that spelling, so an integrand 2.5.0 answered in a twentieth of a second takes twenty-one on master:ac6e33fa(c/(a + c x^2))^2(1/(a + c x^2))^2x/(a + c x^4)^2x^2/(a + b x^6)^2What changes. A whole power of a quotient with a symbol in it, where what is left above the bar is a monomial, is written as the quotient of the powers, a negative one with the quotient turned over, and asked as the same question. That is exact for a whole power. Only a monomial above, the table's
x^m/(a + b x^n)^p: written for every quotient, the square oftanh(a + 2 ln x), a quotient of binomials once it is folded, went from five seconds to forty-five.Tests:
WholePowerOfAQuotientIntegralTest.IsTheQuotientOfThePowers, seven rows differentiated back with the symbols pinned, on both sides of zero. Four are declined on master, and two more take over twenty seconds there.Measured first on 205 problems, at the corpus's 5-second budget, against master
8f3757cd, the branch's base: the 184 of 1.1.2.2 and 1.1.3.2 that a master build declined, ran past its budget on or took more than five seconds over, and those that two earlier, wider builds of this branch disagreed with master on.Each of the three problems the two builds differ on takes over twenty seconds on either build, measured alone, and comes out on either side of the corpus's patience.
x/(a + c x^4)^2andx^2/(a + b x^6)^2are counted solved on both, in 23 s on master and in 41 and 13 ms here.Measured then on the Rubi corpus against master
8f3757cd:No answer is wrong in the sample on either build. Of the seven problems the two builds disagreed on, run again one build at a time, four agree, and three come out on one side of the patience on one build and on the other side on the other; all seven take over nineteen seconds on either build.
The suite passes on the commit measured,
fa61df92, 14,598 tests with 13 skipped, and the allocation gate with it. On the merge with masterac6e33fa,ce5547cb, the 4,059 calculus and corpus tests pass, and every row of the first table is as it says.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura