Skip to content

A power of the quadratic below the bar beside its root is integrated - #1704

Merged
Rafael-SOWNet merged 4 commits into
masterfrom
a-power-of-the-quadratic-below-the-bar
Oct 3, 2026
Merged

Rafael-SOWNet merged 4 commits into
masterfrom
a-power-of-the-quadratic-below-the-bar

Conversation

@Rafael-SOWNet

@Rafael-SOWNet Rafael-SOWNet commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

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 quadratic Q, by undetermined coefficients. With a power of Q below the bar as well as the linear, P(x)/((g + h x)^k Q^(n + 1/2)) for n >= 1, it was still declined:

integrand master this
1/((x + 2)^2 (x^2 + 1)^(3/2)) declined ((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)) declined linears over powers of 2 + 3 x^2 and powers of 1/(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)) declined the same in the symbols, and a logarithm or an arctangent by the sign of a h^2 + c g^2

These 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 x are those of the series of P/Q^n at the linear's root, multiplied by a power of Q there so that they are polynomials in it, and they go down to the integral of 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. The integral of (r0 + r1 x)/Q^(p + 1/2) is (A + B x)/Q^(p - 1/2) and (2p - 2) B times the integral of 1/Q^(p - 1/2), with A and B from two equations whose determinant is q1^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:

master this
solved 171 211
wrong 0 0

40 more are answered, and none that master answers is lost.

Measured then on the Rubi corpus against master 148f3007:

master this
family 0, independent suites (1814) 1758 1758
family 1, 40 a file (1381) 1257 1260
families 2 to 8, sampled (2410) 2171 2172

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. Master 879fb2db, with #1703, is merged in since, without conflicts, and the calculus tests pass on the merge, 3,806 of them; and then 4009f74c, with #1702.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 2 commits October 3, 2026 02:07
… 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
@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 3, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit f21e065 into master Oct 3, 2026
34 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the a-power-of-the-quadratic-below-the-bar 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