Skip to content

A power of a constant times a whole power of a polynomial is integrated as that power - #1786

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-power-of-a-constant-times-a-whole-power-of-a-sum-is-that-power
Oct 5, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-power-of-a-constant-times-a-whole-power-of-a-sum-is-that-power

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

x^2 (c (a + b x^2)^2)^(3/2) is a polynomial times a factor that is constant wherever a + b x^2 is not zero, and was declined, with the rest of Rubi's 1.3.2:338-352 that put a constant times a whole power of a polynomial under a power that is not whole:

integrand 2.5.0 master 2b86349c this
x^2 (c (a + b x^2)^2)^(3/2) declined declined 157 characters
(c (a + b x^2)^2)^(3/2) declined declined 184 characters
(c (a + b x^2)^3)^(3/2)/x^2 declined declined 658 characters
x^m (c (a + b x^2)^2)^(3/2) declined declined 229 characters

Each answer is differentiated back and compared with the integrand at six points.

What changes. SolveByTakingAWholePowerOutOfAPowerOfAProduct, asked after the substitution search, writes a factor (c S^k)^p -- c free of x, k whole and past 1, p not whole -- as S^(k p), and the integral as K times the integral with that in its place, K = c^q (c S^k)^r/S^(k r) for the whole part q of p and the rest r. K is constant on every interval where S is not zero, its logarithmic derivative being r (k S'/S - k S'/S); a whole power of c S^k distributes exactly, which is why only the rest of p is in it. Over the integral for a factor below the bar. Only factors of the integrand, where K is a factor of the whole; only S of x by arithmetic, since a power of a function of x is the rules' for that function, which write its sign; and at the top only, where the answer is the caller's. After the substitution search, which answers a power of a function of a linear, and an odd power of x beside a function of x^2, more shortly: 1/(c (a + b x)^2)^(5/2) in 64 characters, where the factor in front makes it 98.

Tests: WholePowerOutOfAPowerOfAProductIntegralTest, six rows of 1.3.2's shapes, differentiated back on both sides of 0 and of the roots of a + b x^2, where K changes sign.

Measured first on every problem with a whole power of a group of x directly under another power, 141 problems, at the corpus's 5-second budget, against master 287c69a7, the branch's base:

master this
solved 131 139
wrong 0 0
past the budget 2 2

The eight are 1.3.2:338-352, x^m (c (a + b x^2)^2)^(3/2) to (c (a + b x^2)^3)^(3/2)/x^2.

Measured then on the Rubi corpus against master 287c69a7:

master this
family 0, independent suites (1814) 1772 1772
family 1, 40 a file (1381) 1308 1307
families 2 to 8, sampled (2410) 2301 2296

The harness counts no answer wrong in either. The 16 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers the eight of 1.3.2 above that master does not, and master none that this does not. The other eight take 17 seconds or more on either build, or past the budget on both, and the load decides whether they are answered: two were answered here by this and not by master: 1/sqrt(b coth(c + d x)^3), which takes past 30 seconds on both builds in a probe, and 6.6.1's x/csch(x)^(5/2) + 3 x/(5 sqrt(csch(x))), which master answered in 21 seconds in another run.

The suite passes on the commit measured, 2cd0cb53, 14,828 tests, and the allocation gate passed. The head here, ba6ccad0, merges master 91149594 and asks the rule after the substitution search; on it the pocket gives each of its 141 problems the verdict it had, the calculus and corpus tests pass, 4,296 tests, and the library builds for netstandard2.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 3 commits October 5, 2026 04:49
…ed as that power

(c S^k)^p, a constant times a whole power past the first of something of x by
arithmetic, under a power that is not whole, was declined where it was not a
function of a linear: x^2 (c (a + b x^2)^2)^(3/2) is a polynomial times a
factor that is constant wherever a + b x^2 is not zero. It is integrated as
K S^(k p) now, K = c^q (c S^k)^r/S^(k r) for the whole part q and the rest r
of p, in front of the integral, or over it for a factor below the bar. Only
factors of the integrand, only S of x by arithmetic, since a power of a
function of x is the rules' for that function, which write its sign, and at
the top only.

Part of #718.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…nt-times-a-whole-power-of-a-sum-is-that-power

# Conflicts:
#	BREAKING-CHANGES.md
…tion search

The substitution search answers a power of a function of a linear, and an
odd power of x beside a function of x^2, more shortly than the factor in
front does: 1/(c (a + b x)^2)^(5/2) in 64 characters, where taken out it was
98. Asked after it, the rule answers what the search declines, Rubi's
1.3.2:338-352, and the test checks those on both sides of the roots of
a + b x^2, where the factor changes sign.

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 5, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 7269344 into master Oct 5, 2026
34 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the a-power-of-a-constant-times-a-whole-power-of-a-sum-is-that-power 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