Skip to content

A cube or fourth root of a quadratic binomial beside another is integrated at the ratios where it is elementary - #1707

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
an-elliptic-looking-quotient-of-binomials
Oct 3, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
an-elliptic-looking-quotient-of-binomials

Conversation

@Rafael-SOWNet

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

Copy link
Copy Markdown
Member

Part of #718.

1/((A + B x^2)^(1/3) (C + D x^2)) and 1/((A + B x^2)^(1/4) (C + D x^2)) are elliptic integrals, except at three ratios of the constants where they are elementary. Those are Rubi's 1.1.2.3, and they were declined:

integrand master e73a940a this
1/((1 + x^2)^(1/3) (9 + x^2)) declined arctangents and logarithms in (1 + x^2)^(1/3)
1/((a + b x^2)^(1/3) (3 a - b x^2)) declined the same, by the sign of b/a
1/((a + b x^2)^(1/4) (2 a + b x^2)) declined the same in (a + b x^2)^(1/4), by the signs of a and b
1/((-2 + 3 x^2) (-1 + 3 x^2)^(1/4)) declined -(arctan(u) + artanh(u))/(2 sqrt(6)), u = sqrt(3) x/(sqrt(2) (-1 + 3 x^2)^(1/4))

What changes. A new rule, after the binomial differential's, reads a constant over a cube or fourth root of A + B x^2 times C + D x^2, and answers it where

  • B C + 3 A D = 0 or B C - 9 A D = 0, under a cube root, or
  • B C - 2 A D = 0, under a fourth root,

in Rubi's closed forms, written for any constants with the ratio. For the cube root there are two forms, one for each sign of B/A; for the fourth root, three: A and B positive, A positive and B negative, and A negative. With symbols the answer is a piecewise over those signs, and with numbers it is the one form that holds. The derivative of each form uses only that the roots are roots, so each was checked by differentiating it back at points in every sign case.

Where A and B are both positive, the fourth root's answer jumps at x = 0 and is an antiderivative on each side of it, as Rubi's is. A definite integral across 0 takes the limit from each side: integral(1/((2 + 3 x^2)^(1/4) (4 + 3 x^2)), x, -1, 1) is 0.3209540335651…, which quadrature gives. It takes 27 s, so that row is not in the tests.

1/((3 - x^2)(1 + x^2)^(1/3)) is at the first ratio. CubeRootLogarithmAnsatzTest had it as a row the ansatz declines; it is answered here now, so that row is 1/((3 - x^2)(2 + x^2)^(1/3)), the same pole pair at a ratio that is not elementary, which is still declined.

Tests: EllipticLookingQuotientOfBinomialsTest, each differentiated back: seven rows with a and b pinned in every sign case of the three ratios, five with numbers, and two definite integrals across 0 against quadrature. On master e73a940a each indefinite row is declined but 1/((1 - x^2)^(1/3) (3 + x^2)), which the cube-root ansatz now answers, in a longer form.

Measured first on all 349 problems of Rubi's 1.1.2.3, 158 of them with answers in functions the library has, at the corpus's 5-second budget, against master 148f3007, the branch's base:

master this
solved 117 154
wrong 0 0

37 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 1765
family 1, 40 a file (1381) 1255 1264
families 2 to 8, sampled (2410) 2173 2173

No answer is wrong on either build. The 47 problems the two builds disagreed on, run again one build at a time, are 46 answered here and 3 on master: 36 in 1.1.2.3, and seven of Welz's in family 0, (a + b x)/((3 - x^2)(1 + x^2)^(1/3)), 1/((1 - 3 x^2)^(1/3)(3 - x^2)) and fourth roots beside 2 +/- x^2; three are answered on both, and one on neither.

The suite passes on the commit measured, c52ade44, 14,508 tests, and so does the allocation gate. Master e73a940a, with #1701 to #1705, is merged in since, without conflicts, and the calculus tests pass on the merge, 3,831 of them; and then 0585dbb6, with #1706.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 2 commits October 3, 2026 02:26
…rated at the ratios where it is elementary

1/((A + B x^2)^(1/3) (C + D x^2)) with B C + 3 A D = 0 or B C - 9 A D = 0,
and 1/((A + B x^2)^(1/4) (C + D x^2)) with B C - 2 A D = 0, are answered
in Rubi's closed forms from its 1.1.2.3, by the sign of B/A for the cube
root and by the signs of A and B for the fourth.

1/((3 - x^2)(1 + x^2)^(1/3)) is at the first ratio, so the cube-root
ansatz's declined row moves to 1/((3 - x^2)(2 + x^2)^(1/3)), the same
pole pair off it.

Part of #718

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 84c99a3 into master Oct 3, 2026
34 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the an-elliptic-looking-quotient-of-binomials 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