Skip to content

A linear over a linear beside the root of a cubic binomial is integrated where that is elementary - #1781

Merged
Rafael-SOWNet merged 4 commits into
masterfrom
a-pseudo-elliptic-integral-over-a-cubic-binomial-is-integrated
Oct 5, 2026
Merged

Rafael-SOWNet merged 4 commits into
masterfrom
a-pseudo-elliptic-integral-over-a-cubic-binomial-is-integrated

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

(1 + x + sqrt(3))/((1 + x - sqrt(3)) sqrt(1 + x^3)) and the rest of Rubi's 1.3.2 quotients of linears, and of quadratics, beside the reciprocal of the root of a + b x^3 were declined. The curve y^2 = a + b x^3 is elliptic, and such an integral is elementary only at the coefficients where it is a constant times an arctangent or an inverse hyperbolic tangent of (1 + p x)/y, or of its square over y:

integrand 2.5.0 master f6e1e308 this
(1 + x + sqrt(3))/((1 + x - sqrt(3)) sqrt(1 + x^3)) declined declined 376 characters
(c - 2 d x)/((c + d x) sqrt(c^3 + 4 d^3 x^3)) declined declined 412 characters
(2 - 2 x - x^2)/((2 + k + k x + x^2) sqrt(1 + x^3)) declined declined 329 characters
(1 + x)/((x - 2) sqrt(1 + x^3)), Welz's declined three logarithms, 95 characters one, 122 characters

Each answer is differentiated back and compared with the integrand at six points.

What changes. SolveAPseudoEllipticQuotientOverTheRootOfACubicBinomial takes Rubi's 1.3.3 rules for those coefficients: (e + f x)/((c + d x) y) where b c^3 = 4 a d^3 or b c^3 = -8 a d^3 with 2 d e + c f = 0, or where b^2 c^6 - 20 a b c^3 d^3 - 8 a^2 d^6 = 0 with its second condition; and (f + g x + h x^2)/((c + d x + e x^2) y) where b g^3 = 8 a h^3, g^2 + 2 f h = 0 and b d f + b c g = 4 a e h. At each the integral is a constant times that of 1/(1 + K u^2) at u = (1 + p x)/y or (1 + p x)^2/y, an arctangent or an inverse hyperbolic tangent by the sign of K. Each condition is decided as a value, and the answer is differentiated back at sampled points before it is returned. It is asked before SolveByReducingThePolynomialOverALinearFactor, which writes (1 + x + sqrt(3))/(1 + x - sqrt(3)) as 1 + 2 sqrt(3)/(1 + x - sqrt(3)): two integrals, neither elementary.

Welz's (1 + x)/((x - 2) sqrt(1 + x^3)) is one of them, and is one inverse hyperbolic tangent now, -(2/3) artanh((1 + x)^2/(3 sqrt(1 + x^3))), written as a logarithm, where the logarithm ansatz wrote three logarithms.

Tests: PseudoEllipticQuotientIntegralTest, six rows over the three conditions and the quadratic, differentiated back on both sides of 0. SquareRootLogarithmAnsatzTest keeps the ansatz's row with a cubic numerator, and holds Welz's and its sum with x^2/sqrt(1 + x^3) in a theory of their own, answered with one logarithm.

Measured first on 1,060 problems, the 714 of Rubi's 1.3.2 that the harness counts and 346 of its 1.1.3, 1.1.4, 1.2.3 and 1.2.4 and Welz's, nearly all with a root of a binomial or a trinomial in them, at the corpus's 5-second budget, against master 287c69a7, the branch's base:

master this
solved 853 896
wrong 0 0
past the budget 10 10

Measured then on the Rubi corpus against master 287c69a7:

master this
family 0, independent suites (1814) 1772 1773
family 1, 40 a file (1381) 1308 1309
families 2 to 8, sampled (2410) 2301 2301

The harness counts no answer wrong in either. The 46 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers 43 that master does not, 42 of 1.3.2 and Welz's, and master none that this does not. The other three are past 20 seconds on both builds, two answered and one declined by each.

The suite passes on the commit measured, fbabb621, 14,828 tests, and the allocation gate passed. The head here, 4428111f, merges master f6e1e308 and corrects a comment; the calculus and corpus tests pass on the merge, 63770bb0, 4,276 tests, and the library builds for netstandard2.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 4 commits October 5, 2026 02:11
…ted where that is elementary

(1 + x + sqrt(3))/((1 + x - sqrt(3)) sqrt(1 + x^3)) and the rest of Rubi's 1.3.2
quotients of linears, and of quadratics, beside the reciprocal of the root of
a + b x^3 were declined. The curve is elliptic, and the integral elementary only
at coefficients where it is a constant times an arctangent or an inverse
hyperbolic tangent of (1 + p x)/sqrt(a + b x^3), or of its square over the root.
Rubi's 1.3.3 names those coefficients, and its rules are taken, each condition
decided as a value and the answer differentiated back. Welz's
(1 + x)/((x - 2) sqrt(1 + x^3)) is one of them, and is one logarithm now where the
ansatz wrote three.

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 5, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit b1af529 into master Oct 5, 2026
34 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the a-pseudo-elliptic-integral-over-a-cubic-binomial-is-integrated 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