A binomial differential with symbols in it, or a power of x that is not whole, is integrated - #1721
Merged
Rafael-SOWNet merged 3 commits intoOct 3, 2026
Conversation
…ive x too Chebyshev's third case is integrated under x = 1/y, and its root, whose q-th power is b + a/x^n, was written back as (b + a/x^n)^(1/q): that root for a positive x, and for a negative one only under an odd root. 1/(1 + x^4)^(5/4) came out as 1/(1 + 1/x^4)^(1/4), an even function whose derivative is the integrand's negative for every negative x. It is written back as (a + b x^n)^(1/q)/x^(n/q) now, which has the same q-th power everywhere. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…ot whole, is integrated Chebyshev's theorem is about the exponents only, and the rule for x^m (a + b x^n)^(p/q) read whole m and n and rational numbers for a and b. It reads rational m and n and anything free of x for a and b now, and a power of a multiple of x, (c x)^(5/2), as x^(5/2) times (c x)^(5/2)/x^(5/2), which is constant on either side of zero. Where m + 1 + n (p/q + 1) is zero the answer is the one product of powers it is. With a symbol in the coefficients the rule is asked after the rules for a root of a quadratic and for a rational function of x^n beside the root of its binomial, which answer what they share with it more shortly. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…tial-with-symbols-or-a-fractional-power # Conflicts: # Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs
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.
Chebyshev's theorem says when
x^m (a + b x^n)^(p/q)has an elementary antiderivative, and it is about the exponents only. The rule for it read wholemandnand rational numbers foraandb, and declined everything else, which is most of Rubi's 1.1.2.2 and 1.1.3.2,(c x)^m (a + b x^n)^p:9f271330x^2/(a + b x^4)^(3/4)x^6 (a + b x^4)^(1/4)x^(7/3) (a + b x^2)^(1/3)(c x)^(5/2)/(a - b x^2)^(3/4)(a - b x^2)^(1/4)/(c x)^(15/2)What changes. The rule reads rational
mandn, and anything free ofxforaandb. A power of a multiple ofx,(c x)^(5/2), is read asx^(5/2)times(c x)^(5/2)/x^(5/2), whose derivative is zero: it isc^(5/2)for a positivec xand constant on either side of zero whatever the signs, so it stands outside as written. Wherem + 1 + n (p/q + 1)is zero, a case of the third, the answer is the one product of powers it is; the rule for a derivative of a product of powers finds that too, but only at the top and one level below.Where it is asked. With numbers it is asked where it was. With a symbol in
a,bor the multiple it is asked again later, after the rules for a root of a quadratic and for a rational function ofx^nbeside the root of its binomial, which answer what they share with it more shortly. Asked in the first place with symbols too, it changed 112 answers of those two files that a later rule had given, 43 of them longer:1/(a - b x^4)^(1/4)came out as two logarithms and two arctangents whereSolveByDividingByTheRootgives two arctangents. Asked later, 15 change: six are the third case's own (#1720), shorter, and nine are a rule ahead of this one finishing where it used to decline, because a sub-integral it asks is answered now. Four of the nine come out shorter and five longer.Tests:
SymbolicBinomialDifferentialTest, eleven rows, each differentiated back on both sides of zero wherever the integrand is real there, a negativecwith a negativexamong them.Traced on all 3,163 problems of 1.1.2.2 and 1.1.3.2 with an answer in functions the library has, one probe process a build at a 10-second budget: 2,964 answered on master, 3,060 here, none lost and none wrong.
Measured first on the same 3,163 problems at the corpus's 5-second budget, against master
dbe5b382, the branch then carrying the third case's fix that #1720 has merged since:The fifteen wrong on both are powers of
xwhose exponent is-1as a value and not as written, such asx^(-1 - 3n) (a + b x^n)^3, which this does not touch.Measured then on the Rubi corpus against master
dbe5b382:No answer is wrong in the sample on either build. The 98 problems the two builds disagreed on, run again one build at a time, are 96 that master declines and this answers, one master answered without its check settling it that checks out here -- family 0's, Timofeev's
cos(x) (-cos(x)^2 - 5 sin(x)^2)^(3/2), #1720's -- and one answered on both; none is lost.With the corpus's check of the negative side switched on (
IB_BOTHSIDES=1), on the same 3,163 problems against master9f271330and the merge below: 2,964 and 3,060 answered, and the same sixteen wrong on both -- the fifteen above and1/(1 + (x^2)^(3/2)), which is right for a positivexonly and which this does not touch.The suite passes on the commit measured,
022652ef, 14,605 tests, and so does the allocation gate. Master9f271330is merged in since, the conflicts being the lines #1720 and this both rewrote, taken from this; the calculus tests pass on the merge, 3,983 of 3,985, the other two wall clocks that failed under the machine's load and pass on their own in 6 s and 8 s.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura