Skip to content

A polynomial over a power of a binomial past the cube is taken down a power at a time - #1699

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-polynomial-over-a-power-of-a-binomial
Oct 2, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-polynomial-over-a-power-of-a-binomial

Conversation

@Rafael-SOWNet

@Rafael-SOWNet Rafael-SOWNet commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Part of #718.

P(x)/(a + b x^n)^k, a polynomial over a power of a binomial with symbols in it, n >= 3, is answered by the Hermite reduction for the square and the cube. From the fourth power on, its linear system grows past what it takes, and the integral was declined:

integrand master this
1/(a + b x^4)^3 answered the same answer
1/(a + b x^4)^4 declined 0.8 s
(c + d x)/(a + b x^4)^4 declined 0.6 s
(c + d x)/(a + b x^3)^4 declined 1.0 s
(c + d x + ... + k x^6)/(a + b x^4)^4 declined 0.9 s
x^2/(a + b x^5)^5 declined 0.9 s

What changes. After the Hermite reduction, each monomial of P is taken down the powers by the classical recurrence. With B = a + b x^n:

int x^m/B^j = x^(m+1)/(a n (j - 1) B^(j-1)) - (m + 1 - n (j - 1))/(a n (j - 1)) int x^m/B^(j-1)

The derivative of x^(m+1)/B^(j-1) is (m + 1) x^m/B^(j-1) - (j - 1) n b x^(m+n)/B^j, and b x^(m+n) = x^m B - a x^m. What reaches the first power is gathered into one polynomial over B and integrated once, at the binomial's roots of unity. The constant term is divided by, which is the generic case.

The square and the cube keep the Hermite reduction's answers, since this runs after it.

On the 33 problems of Rubi's 1.1.3.8 with a fourth power of the binomial or more below the bar, this answers 29 where master answers 17. It loses none, and answers none wrongly. The four left have a power of x beside the binomial, (c + d x + e x^2)/(x^k (a + b x^3)^4), and are declined as on master.

Tests: PowerOfABinomialIntegralTest.PastTheCube, seven rows, each differentiated back with a of either sign.

Measured on the Rubi corpus against master c3f52691, the branch's base, with both builds side by side:

master this
family 0, independent suites (1814) 1758 1758
family 1, 40 a file (1381) 1120 1127
families 2 to 8, sampled (2410) 2146 2146

No answer is wrong on either build.

Nine problems moved between the two runs, so I re-ran each alone on both builds. This branch answers seven of them and master one, which this branch answers too, in 0.5 s where master takes 18 s. Neither answers any wrongly.

The suite passes, 14,385 tests on a fresh build, and so does the allocation gate. Master 0dd86927 is merged in since, without conflicts, and the calculus tests pass on the merge, 3,737 of them.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 2 commits October 2, 2026 14:21
… power at a time

P(x)/(a + b x^n)^k with symbols in the binomial, n >= 3, was answered by
the Hermite reduction for the square and the cube only: from the fourth
power its linear system grew past what it takes, and 1/(a + b x^4)^4 was
declined. After it, each monomial of P now goes down the powers by the
classical recurrence, int x^m/B^j = x^(m+1)/(a n (j-1) B^(j-1)) -
(m + 1 - n (j-1))/(a n (j-1)) int x^m/B^(j-1), and what reaches the
first power is integrated once over the binomial. Rubi's 1.1.3.8.

Part of #718.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 2, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 504a557 into master Oct 2, 2026
34 checks passed
Rafael-SOWNet added a commit that referenced this pull request Oct 3, 2026
…n a power at a time (#1703)

x^4/(a + b x^2 + c x^4)^3 was declined: the Hermite reduction answers
the square of a trinomial with symbols in it in one linear solve, and
its system grows past what it takes at the cube. With w = x^n,
T = a + b w + c w^2 and D = 4 a c - b^2, the derivative of
x^(m+1) (beta0 + beta1 w) T^(p+1) is x^m T^p plus multiples of x^m and
x^(m+n) over T^-(p+1), with
beta0 = (b^2 - 2 a c)/(a n (p + 1) D), beta1 = b c/(a n (p + 1) D),
delta0 = -((2 a c - b^2)(m + 1) + n (p + 1) D)/(a n (p + 1) D) and
delta1 = b c (m + 2 n p + 3 n + 1)/(a n (p + 1) D). So each monomial goes
down a power at a time as two monomials a power up, and what reaches the
first power is gathered into one polynomial over T and integrated once.
After the binomial's recurrence (#1699), for n >= 2.

Part of #718.


Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Rafael-SOWNet
Rafael-SOWNet deleted the a-polynomial-over-a-power-of-a-binomial branch October 29, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant