A sum that is the derivative of a product of powers is read as one - #1803
Merged
Rafael-SOWNet merged 2 commits intoOct 6, 2026
Merged
Rafael-SOWNet merged 2 commits into
Rafael-SOWNet merged 2 commits into
Conversation
m x^(m - 1) (a + b x^n)^p + b n p x^(m + n - 1) (a + b x^n)^(p - 1) is the derivative of x^m (a + b x^n)^p written out as a sum, and was declined: the rule that reads the derivative of a product of powers reads the product beside one bracket, and split into its terms neither term is elementary. A sum of products of powers of the same bases is written as their common product, each base to the least of its exponents, times the bracket of what is left, and asked so; the differences of the exponents are simplified, since -1 + m + n - (-1 + m) is left as written by the inner simplification. Rubi's 1.1.3.2. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…erivative-of-a-product-of-powers-is-read-as-one
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.
m x^(m - 1) (a + b x^n)^p + b n p x^(m + n - 1) (a + b x^n)^(p - 1)is the derivative ofx^m (a + b x^n)^p, written out as a sum, and was declined:15aae3d3m x^(m - 1) (a + b x^n)^p + b n p x^(m + n - 1) (a + b x^n)^(p - 1)m x^(m - 1)/sqrt(a + b x^n) - b n x^(m + n - 1)/(2 (a + b x^n)^(3/2))What changes.
SolveAsTheDerivativeOfAProductOfPowersreads a product of powers beside one bracket and tries every subset of the powers raised by one; a sum of such products never matched it, and split into its terms by linearity neither term is elementary. A sum whose terms are each a constant times powers of the same bases is written now as their common product, each base to the least of its exponents -- the one every other exceeds by a whole number or by a sum of symbols with no sign in front,x^(m - 1)besidex^(m + n - 1)-- times the bracket of what is left, and asked so. The exponents' differences are simplified: the inner simplification leaves-1 + m + n - (-1 + m)as written.Tests:
ProductOfPowersDerivativeTest.ASumWithTheCommonPowersInEachTerm, the two rows above, differentiated back with the symbols pinned.Measured first on all of Rubi's 1.1.3, 3,846 problems, at the corpus's 5-second budget, against master
b1af529d(the cache's base; the change is cherry-picked there as5ba12687):The harness counts no answer wrong in either.
Measured then on the Rubi corpus against master
b1af529d:The harness counts no answer wrong in either.
The 12 problems the two builds disagreed on, pocket and sample together, run again one build at a time: master answers 7, declines 4 and runs past the budget on 1; this answers 10, declines 1 and runs past the budget on 1.
The suite on the commit measured,
5ba12687(the change cherry-picked ontob1af529d), passes, 14,987 tests, and so does the allocation gate: every gated benchmark allocates what the baseline says. The head here,7ccac06a, merges master15aae3d3; the calculus and corpus tests pass on it, 4,360 tests, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura