Repository navigation
The derivative of a power of x over a binomial is integrated as an arctangent over one plus a multiple of its square - #1785
Merged
Rafael-SOWNet merged 2 commits intoOct 5, 2026
Conversation
…ctangent over one plus a multiple of its square (k - 4 f x^3)/(k^2 + 4 d f x^2 + 4 k f x^3 + 4 f^2 x^6) is w'/(2 f (1 + (d/f) w^2)) for w = x/(x^3 + k/(2 f)), and was declined: the partial fractions over a sextic in x, or over a sum of symbolic powers of it, are out of reach, and nothing read the quotient. A denominator a + b x^p + c x^(2p) + d x^(2j) with b^2 = 4 a c is read as c L^2 + d x^(2j) for L = x^p + b/(2c), and a numerator that is a constant multiple of (x^j/L)' L^2 is integrated as an arctangent of x^j/L, or a logarithm, by the sign of d/c. The constants are put in lowest terms over the symbols, and the ratio is named while it is integrated, where as a quotient of symbols it was read as a general quadratic's coefficient. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-binomial-under-its-squares-sum-is-an-arctangent # Conflicts: # BREAKING-CHANGES.md
Rafael-SOWNet
deleted the
a-power-of-x-over-a-binomial-under-its-squares-sum-is-an-arctangent
branch
October 29, 2026 00:43
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.
(k - 4 f x^3)/(k^2 + 4 d f x^2 + 4 k f x^3 + 4 f^2 x^6)isw'/(2 f (1 + (d/f) w^2))forw = x/(x^3 + k/(2 f)), and was declined with the rest of Rubi's 1.3.2:723-742 past a quartic: the partial fractions over a sextic inx, or over a sum of symbolic powers of it, are out of reach, and nothing read the quotient. 2.5.0 declined them too:2b86349c(k - 4 f x^3)/(k^2 + 4 d f x^2 + 4 k f x^3 + 4 f^2 x^6)x^2 (3 k + 2 f x^2)/(k^2 + 4 k f x^2 + 4 f^2 x^4 + 4 d f x^6)(k - 2 f (n - 1) x^n)/(k^2 + 4 d f x^2 + 4 k f x^n + 4 f^2 x^(2n))x^2 (3 a + b x^2)/(a^2 + 2 a b x^2 + b^2 x^4 + c^2 x^6), 1.3.1Each answer is differentiated back and compared with the integrand at six points.
What changes.
SolveAsTheArctangentOfAPowerOfXOverABinomialreads a denominator of four terms, each a constant times a power ofx: one isd x^(2j), and the other three area + b x^p + c x^(2p)withb^2 = 4 a c, which isc L^2forL = x^p + b/(2c). Where the numerator is a constant multiplemof(x^j/L)' L^2 = j x^(j - 1) L - p x^(j + p - 1), the integrand is(m/c) w'/(1 + (d/c) w^2)withw = x^j/L, and the integral ism/ctimes that of1/(1 + q u^2)atu = w,q = d/c: an arctangent or a logarithm by the sign ofq. The constant is read atx = 1and put in lowest terms over the symbols, asd/cis;qis named while the integral inuis asked, since a quotient of symbols there is read as a general quadratic's coefficient, with an arm for a double root that1 + q u^2never has. The answer is differentiated back at sampled points before it is returned.Tests:
ArctangentOfAPowerOfXOverABinomialIntegralTest, seven rows differentiated back, on both sides of 0 where the powers ofxare whole.Measured first on all of Rubi's 1.3.2 and every problem with a group of four such terms, 1,237 problems, at the corpus's 5-second budget, against master
287c69a7, the branch's base:Measured then on the Rubi corpus against master
287c69a7:The harness counts no answer wrong in either. The 19 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers 15 that master does not, 1.3.2:723-726, 731-736 and 739-742 and 1.3.1's
x^2 (3 a + b x^2)/(a^2 + 2 a b x^2 + b^2 x^4 + c^2 x^6), and master none that this does not. The other four take over 19 seconds on either build, and the load decides whether they are answered: 1.1.2.4'sx^4/((a + b x^2)^2 (c + d x^2)^3)was past the budget on master here and answered in 22 seconds in another run.The suite on the commit measured,
7f146c2e, fails three tests that hold a wall clock, in a run that took 30 minutes with corpus runs and other suites on the machine:cos(x)^6/(a + b sin(x))^2and2 (1 - x^2)^5/((1 + x^2)^4 (a - a x^2 + 2 b x)^2)were not answered within a minute, andIntegralAnswerCacheTest.AnIntegralWithNoAnswerStillFinishesQuicklytook 88 s. Run alone, the two classes pass on it in what they take on master: 5 to 8 seconds against 5 to 7, 2 against 2, and 8 to 11 against 7 to 9. The allocation gate passed. The head here,7709df9f, merges master91149594; the calculus and corpus tests pass on it, 4,297 tests, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura