Repository navigation
A function of x^n for a symbolic n beside a power of x is integrated in a power of x - #1784
Merged
Rafael-SOWNet merged 4 commits intoOct 5, 2026
Conversation
…in a power of x x^(-1 + 4n)/(a + b x^n + c x^(2n)) and the rest of Rubi's 1.2.3.2 functions of x^n beside a power x^m with (m + 1)/n rational were declined: the substitution search reads x^(2n) as a power of x^n only for a number n, and offered nothing for x^(n/2), which is not written. Under u = x^(n/d) every such power is a whole power of u, and dx/x is (d/n) du/u. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
… constants named coth(a + b ln(c x^n))^3/x was answered in a second and timed out: the exponential form of coth makes it a rational function of x^(2 n b) with (e^a)^2 (c^b)^2 in it, and the integral in u carried that constant through the partial fractions for over half a minute. Each constant atom with a symbol in it, e^a and c^b, is named for the integral in u and written back, which keeps what relates the coefficients: a^2 + 2 a b u + b^2 u^2 stays a perfect square. And a power of x under a function is the function's, which the search reads. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…a-symbolic-power-is-integrated-in-that-power
…a-symbolic-power-is-integrated-in-that-power
Rafael-SOWNet
deleted the
a-function-of-x-to-a-symbolic-power-is-integrated-in-that-power
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.
x^(-1 + 4n)/(a + b x^n + c x^(2n))and the rest of Rubi's 1.2.3.2 functions ofx^nbeside a powerx^mwith(m + 1)/nrational were declined. The substitution search readsx^(2n)as a power ofx^nonly for a numbern, and offers nothing forx^(n/2), which is not written:2b86349cx^(-1 + 4n)/(a + b x^n + c x^(2n))1/(x (a + b x^n + c x^(2n)))x^(-1 + n/2)/(a + b x^n + c x^(2n))sqrt(a + b x^n + c x^(2n))/x1/(x (a^2 + 2 a b x^n + b^2 x^(2n))^(3/2))Each answer is differentiated back and compared with the integrand at six points.
What changes.
SolveByAPowerOfXWithASymbolicExponent, asked before the substitution search, writesx f(x)over one bar with its powers ofxgathered,x x^(-1 + 4n)asx^(4n). It takesu = x^(n/d),nthe simplest symbolic exponent left anddthe first of 1, 2, 3, 4 and 6 at which every power ofxis a whole power ofu. A whole power ofuis the same function ofxon either side of 0, anddx/x = (d/n) du/u, so the integral isd/ntimes that ofg/uinu, written back.xis the function's, and the search finds the substitution for it:coth(a + b ln(c x^n))^3/xist = ln(c x^n).e^aandc^b, while the integral inuis asked, and written back into it.coth(a + b ln(c x^n))^3/xreaches the rule all the same, through the exponential form ofcoth, as a rational function ofx^(2 n b)with(e^a)^2 (c^b)^2in it; carried through the partial fractions as written that constant took over half a minute, and ask^2 m^2it takes under one. Atoms and not whole coefficients, which would hide what relates them:a^2 + 2 a b u + b^2 u^2stays a perfect square.Tests:
PowerOfXWithASymbolicExponentIntegralTest, six rows of 1.2.3.2 differentiated back, one of them the perfect square; andcoth(a + b ln(c x^n))^3/xand the hyperbolic tangent's, which take over half a minute with the constant carried as written: a time cannot be held in a test, and a regression shows as one that crawls.Measured first on 935 problems, 549 of them Rubi's 1.2.3.2 and most of the rest from its 1.1.3 and 1.2.3, about half with a symbolic exponent, 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 50 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers 45 that master does not, all of 1.1.3.2 and 1.2.3.2, and three more are past 20 seconds on both builds. Master answered one this did not: 6.4.2's
coth(a + b ln(c x^n))^3/x, in 0.1 s, where this went past the budget. With the constants named and the rule kept to algebraic integrands,db4510ca, it is answered in 0.9 s, and the pocket run again gives each of its 935 problems the verdict it had.The suite passes on the commit measured,
7d336105, 14,805 tests. The allocation gate failed on it atSolveEasyMedium: 27 times the baseline's time and 2.3% more allocation, where every other branch measured that day allocated what the baseline says. On8c35d4c2, which names the constants and merges masterf6e1e308, the gate passes,SolveEasyMediumat the baseline's allocation exactly and 1.27 times its time with corpus runs on the machine, and the suite passes, 14,987 tests; the library builds fornetstandard2.0. The head here,01d78201, merges master91149594; the calculus and corpus tests pass on it but for two that hold a wall clock,IntegralAnswerCacheTest.AnIntegralWithNoAnswerStillFinishesQuicklyandInverseTangentPowerByPartsTest.ANonElementaryRemainderIsDeclinedQuickly, past their bounds with other test runs and corpus runs on the machine; run alone they take what they take on master, 7 to 13 seconds against 9 to 13.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura