Repository navigation
A power of the quadratic below the bar beside its root is integrated - #1704
Merged
Merged
Conversation
… too P(x)/((g + h x)^k Q^(n + 1/2)) was declined: Rubi's 1.2.1.9 with (a + b x + c x^2)^(3/2) or (5/2) below the bar, and the like in 1.2.1.2 to 1.2.1.4. The terms over powers of g + h x are those of the series of P/Q^n at the linear's root, alpha^(n + k - 1) times over so that they are polynomials in it, and they go down to int 1/((g + h x) sqrt(Q)) as before. What is left is V/Q^n with V a polynomial: divided by Q n times, the quotient is the polynomial part, and each remainder is a linear r0 + r1 x over a power of Q. int (r0 + r1 x)/Q^(p + 1/2) is (A + B x)/Q^(p - 1/2) and (2p - 2) B int 1/Q^(p - 1/2), A and B from two equations whose determinant is q1^2 - 4 q0 q2, so that part is algebraic all the way down. Part of #718. 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
…ratic-below-the-bar
…ratic-below-the-bar
This was referenced Oct 3, 2026
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.
#1701 integrated
P(x) Q^(m/2)/(g + h x)^k, a polynomial over a power of a linear beside a half-odd power of a quadraticQ, by undetermined coefficients. With a power ofQbelow the bar as well as the linear,P(x)/((g + h x)^k Q^(n + 1/2))forn >= 1, it was still declined:1/((x + 2)^2 (x^2 + 1)^(3/2))((4 + 3 x)/(25 (x^2 + 1)) - 1/(25 (x + 2))) sqrt(x^2 + 1)and a logarithm(1 + 3 x + 4 x^2)/((1 + 2 x)^3 (2 + 3 x^2)^(5/2))2 + 3 x^2and powers of1/(1 + 2 x), times the root, and a logarithm(d + k x + f x^2)/((g + h x)^2 (a + c x^2)^(3/2))a h^2 + c g^2These are Rubi's 1.2.1.9 with
(a + b x + c x^2)^(3/2)or(5/2)below the bar, and the like in 1.2.1.2 to 1.2.1.4.What changes. The terms over powers of
g + h xare those of the series ofP/Q^nat the linear's root, multiplied by a power ofQthere so that they are polynomials in it, and they go down to the integral of1/((g + h x) sqrt(Q))as before. What is left isV/Q^nwithVa polynomial: divided byQntimes, the quotient is the polynomial part, and each remainder is a linearr0 + r1 xover a power ofQ. The integral of(r0 + r1 x)/Q^(p + 1/2)is(A + B x)/Q^(p - 1/2)and(2p - 2) Btimes the integral of1/Q^(p - 1/2), withAandBfrom two equations whose determinant isq1^2 - 4 q0 q2, so that part is algebraic all the way down.Tests:
PowerOfALinearBesideTheRootOfAQuadraticTest, two rows with symbols, pinned on every side of the signs the answer is written by, and two with numbers, each differentiated back.Measured first on the 216 problems of 1.2.1.2 to 1.2.1.4 and 1.2.1.9 with a power of the quadratic below the bar beside its root and a linear below, at the corpus's 5-second budget, against master
148f3007, the branch's base:40 more are answered, and none that master answers is lost.
Measured then on the Rubi corpus against master
148f3007:No answer is wrong on either build. The 48 problems the two builds disagreed on, run again one build at a time, are 45 answered here and 4 on master: 40 are the problems measured first; one is
1/(x^(3/2) (a x + b x^3 + c x^5)^(3/2))in 1.2.4.2, whose answer on master checks out only once it is simplified, after 12 s, and here as it is, in 0.1 s; four are answered on both, and three on neither.The suite passes on the commit measured,
383695d7, 14,500 tests, and so does the allocation gate. Master879fb2db, with #1703, is merged in since, without conflicts, and the calculus tests pass on the merge, 3,806 of them; and then4009f74c, with #1702.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura