Repository navigation
A power of x with a symbol in its exponent comes out of a sum, and an odd one out of a root past a quadratic - #1782
Merged
Rafael-SOWNet merged 6 commits intoOct 5, 2026
Conversation
… odd one out of a root past a quadratic The power of x common to the terms of a sum came out only where every exponent was a rational number and the sum's power was not whole, and an odd one not at all from a sum of whole powers. Now an exponent may be a symbol or an irrational number, with the sum to any power: 1/(a x + b x^n) is 1/(x (a + b x^(n - 1))), and the integrand is then real for a positive x only, where the factor in front is 1. An odd power comes out of a root of a sum of whole powers past x times a linear, which no rule reads as written, and the factor in front answers the negative side as well. A power of c x beside the sum is a power of x times c^q (c x)^r/x^r, constant on either side of 0, and so is a power of a monomial past the first degree alone, (d x^3)^n; the power comes out of a sum inside a product too. Every power of x is gathered into one: a negative whole one below the bar, any other number above it, and a symbol above it unsimplified, which is where the rules for x^m (a + b x^n)^p read each. Exponents are simplified, so that 1 + n - 1 is written n. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
The power of x comes out of a root of a sum of whole powers past x times a linear, where nothing reads the sum as written. Out of x times more than one factor, or a power of one, it made the question no easier and the answer no truer: sqrt(x/(1 + x)^3) was answered for a positive x only, and ((1 - x) x (1 - k x))^(1/3) was a minute of search to be declined, where as written it is five seconds. #1705's exclusion holds there again: what is left with the odd power out must be one sum past a linear. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-symbol-in-its-exponent-comes-out-of-a-sum # Conflicts: # BREAKING-CHANGES.md
x^(3/2 (n - 1))/(a x^(n - 1) + b x^n + c x^(n + 1))^(3/2) is real for a negative x and any n: the phases of the two principal powers cancel to a sign, -1 for n = 2.3, and an answer with 1 in front of the integral was the integrand's negative there. The factor is constant on each interval whatever the exponent, so it is written wherever the power is not whole. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-symbol-in-its-exponent-comes-out-of-a-sum
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.
The power of
xcommon to the terms of a sum came out, since #1705, only where every exponent was a rational number and the sum's power was not whole, and an odd one not at all from a sum of whole powers.1/(a x + b x^n),sqrt(c x)/(a x + b x^n)^(3/2)andx/sqrt(a x + b x^4)were declined, with 58 of the 59 problems of Rubi's 1.1.4.2 that master did not answer:f6e1e3081/(a x + b x^n)sqrt(c x)/(a x + b x^n)^(3/2)1/sqrt(x^(2 - n) (a + b x^n))x/sqrt(a x + b x^4)1/sqrt((a + b x^3)/x)(d x^3)^nx^(3/2 (n - 1))/(a x^(n - 1) + b x^n + c x^(n + 1))^(3/2)Each answer is differentiated back and compared with the integrand at six positive points, and the last at three negative ones as well, at
n = 2.3.What changes.
SolveByTakingAPowerOfXOutOfAFractionalPowerreads more:1/(a x + b x^n)is1/(x (a + b x^(n - 1))). The factor in front is written as for a number. A symbol in an exponent does not confine the integrand to a positivex:x^(3 (n - 1)/2)/(a x^(n - 1) + b x^n + c x^(n + 1))^(3/2)is real for a negativexand anyn, the phases of the two principal powers cancelling to a sign, and the factor is that sign.xtimes a linear. A power of x comes out of a fractional power of a sum whose every term has it #1705 left every odd one as it was, so thatx/sqrt(x^2 - 2x)stays the secant substitution's, real forx < 0as well. That holds forxtimes a linear and a linear overx, and is kept for them, and forxtimes anything but one sum, where taking it out made the question no easier; past those nothing reads the sum as written, and the factor in front answers the negative side:x/sqrt(a x + b x^4)is real wherex < -(a/b)^(1/3)too.(c x^e)^mfor a wholee, asx^(e m)timesc^q (c x^e)^r/x^(e r)for the whole partqand the restrofm, a constant on either side of 0, andc^mfor a positivex. And alone, past the first degree:(d x^3)^n.(c x)^malone is a power of a linear, a substitution's, and a monomial in a power ofxthat is not whole isSolveByDistributingAPowerOfAMonomial's.x (b x + a x^n)isx^2 (b + a x^(n - 2)).The factor in front takes only the fractional part of the power, and over the integral for a factor below the bar. Every power of
xis gathered into one exponent, and where the question is written matters: a negative whole power ofxgoes below the bar and the question is simplified, sincex^(-1) sqrt(a + b x^m)was answered with1/(1/x)in it wheresqrt(a + b x^m)/xis not; any other number stays above and is simplified, since1/(x^(11/2) sqrt(a + b x^3))was answered for a positivexonly wherex^(-11/2)/sqrt(a + b x^3)is answered on both sides; and a symbol stays above unsimplified, where the rules forx^m (a + b x^n)^pread it. Exponents are simplified, so that1 + n - 1isn. Still at the top only: below it, integration by parts integrates the answer again, andx^2 sqrt(a x + b x^4), whose integral is not elementary, took half a minute to be declined through an unguarded copy of the rule, where it takes 0.4 s now as on master.Tests:
CombinedRadicalsTest.APowerOfXComesOutWhereAnExponentIsASymbol, seven rows differentiated back on both sides of 0 atn = 1.7;ASymbolInAnExponentLeavesTheNegativeSideReal, the two rows of 1.2.4.2 atn = 2.3, where the factor is -1 for a negativex; andAnOddPowerOfXComesOutOfARootPastAQuadratic, five on both sides of 0 -- one with a negativec, real for a negativexonly. With 1 in front for a symbolic exponent, four of these fail.Measured first on 1,830 problems with a power of a sum or product of powers of
x, and all of 1.1.4, at the corpus's 5-second budget, against master287c69a7, the branch's base:Measured then on the Rubi corpus against master
287c69a7:The harness counts no answer wrong in either. The 94 problems the two builds disagreed on, pocket and sample together, run again one build at a time: master answers 4 and this 88 -- 85 that master does not -- and master answers one this does not, 7.1.5:207,
(c e + d e x)(a + b asinh(c + d x))^3, at 19 seconds, which nothing here reaches. One more went from a decline in 4.7 s to past the budget: Welz's(2 - (1 + k) x)/(((1 - x) x (1 - k x))^(1/3) (1 - (1 + k) x)), the odd power taken out ofxtimes two sums. The suite named two more of that kind,sqrt(x/(1 + x)^3)andx^2 sqrt(x/(1 + x)^3), answered for a positivexonly. After the chain, #1705's exclusion holds again where what is left with the odd power out is not one sum past a linear: the three are as master has them, the Welz row declined in 6.8 s, and the 58 of 1.1.4.2 and the negative-side checks are unchanged. The figures above were measured with three other corpus runs on the machine.Run on both sides of 0 before that, the pocket counted two answers wrong for a negative
x:sqrt(x/(1 + x))/x, which the exclusion returns to master's answer, and 1.2.4.2'sx^(3/2 (n - 1))/(a x^(n - 1) + b x^n + c x^(n + 1))^(3/2), which had 1 in front for its symbolic exponent and has the factor now. The pocket on both sides of 0 on the head, against master092b2815, which it merges:092b28158b021ed8This answers 85 of them that master does not, and master none that this does not.
The suite on the commit measured,
db485dc4, failed onsqrt(x/(1 + x)^3)andx^2 sqrt(x/(1 + x)^3), fixed by42c99c75, and onInverseTangentPowerByPartsTest.ANonElementaryRemainderIsDeclinedQuickly, which took 64 s with four corpus runs on the machine; run alone, it andIntegralAnswerCacheTest.AnIntegralWithNoAnswerStillFinishesQuicklytake what they take on master, 11 and 10 s. The allocation gate passed. On8b021ed8the suite passes, 14,982 tests, and the library builds fornetstandard2.0. The head here,ece7fba1, merges masterf6e1e308after correcting the breaking entry; the calculus and corpus tests pass on it, 4,284 tests.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura