Skip to content

A polynomial over a power of a trinomial past the square is integrated - #1703

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

Rafael-SOWNet merged 2 commits into
masterfrom
a-polynomial-over-a-power-of-a-trinomial

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

P(x)/(a + b x^n + c x^(2n))^k, a polynomial over a power of a trinomial in x^n with symbols in it, was declined past the square, which the Hermite reduction answers in one linear solve:

integrand master this
x^4/(a + b x^2 + c x^4)^3 declined answered
1/(a + b x^2 + c x^4)^3 declined answered
x/(a + b x^3 + c x^6)^2 declined answered

What changes. With w = x^n, T = a + b w + c w^2 and D = 4 a c - b^2, the derivative of x^(m+1) (β0 + β1 w) T^(p+1) is x^m T^p plus multiples of x^m and x^(m+n) over T^-(p+1):

β0 = (b^2 - 2 a c)/(a n (p + 1) D)           β1 = b c/(a n (p + 1) D)
δ0 = -((2 a c - b^2)(m + 1) + n (p + 1) D)/(a n (p + 1) D)
δ1 = 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. It comes after the binomial's recurrence (#1699), for n >= 2; the square keeps the Hermite reduction's answers.

Tests: PowerOfATrinomialIntegralTest, each differentiated back with the symbols pinned, each declined on master.

Measured on the Rubi corpus against master 3fba4e5d, the branch's base:

master this
family 0, independent suites (1814) 1758 1758
family 1, 40 a file (1381) 1241 1245
families 2 to 8, sampled (2410) 2172 2174

No answer is wrong on either build. The 12 problems the two builds disagreed on, run again one build at a time, are 8 answered here and 2 on master:

  • x^4/(a + b x^2 + c x^4)^3 in 1.2.2.2, x^2 (A + B x^2)/(a + b x^2 + c x^4)^3 in 1.2.2.4 and (d + e x + f x^2 + g x^3)/(a + b x^2 + c x^4)^3 in 1.2.2.5 are this shape, declined on master;
  • (A + B x)(d + e x)^(3/2)/(a - c x^2)^3 in 1.2.1.3, sqrt(a + b sqrt(c + d x))/x^2 in 1.3.2 and sin(c + d x)^3/(a - b sin(c + d x)^4)^2 in 4.1.7 are answered here, declined or past the budget on master;
  • two, in 1.1.2.4 and 4.4.10, are answered on both;
  • two are answered on neither, one of them, in 4.2.3.1, past the budget on master and declined here;
  • and two more in 1.2.2.5, polynomials of degree 5 and 11 over the cube of a + b x^2 + c x^4, were declined on master after 29 s and 42 s: the first is answered here in 45 s, and the second runs past 60 s.

The suite passes on the commit measured, e53afc72, 14,473 tests, and so does the allocation gate. Master 148f3007 is merged in since, without conflicts, and the calculus tests pass on the merge, 3,800 of them.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 2 commits October 3, 2026 00:23
…n a power at a time

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.

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 3, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 879fb2d into master Oct 3, 2026
34 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the a-polynomial-over-a-power-of-a-trinomial 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