Skip to content

Integrate a polynomial over a symbolic quartic that splits into two quadratics - #1915

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-symbolic-quartic-that-splits-into-two-quadratics
Oct 17, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-symbolic-quartic-that-splits-into-two-quadratics

Conversation

@Rafael-SOWNet

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

Copy link
Copy Markdown
Member

Part of #718.

A quartic with a symbol in its coefficients that nothing factors over the rationals can still be two quadratics in a hidden variable:

  • palindromic, c x^4 + b x^3 + e x^2 + b x + c: it is x^2 times a quadratic in w = x + 1/x, so it is c (x^2 - p x + 1)(x^2 - q x + 1) with p, q the roots of c w^2 + b w + e - 2c;
  • even after a shift, where y = x + c3/(4 c4) takes the odd terms away: c4 (y^2 - p)(y^2 - q).

SolveAPolynomialOverASymbolicQuarticThatSplitsIntoTwoQuadratics asks the integral over the factored quartic with p and q named, and writes them back. The shifted coefficients come from the binomial theorem in lowest terms. Only a quartic written as one sum is read. The factored one is palindromic again, and when it was read again the answer ran to 803,488 characters.

Checks

  • ASymbolicQuarticThatSplitsIntoTwoQuadraticsIntegralTest: 4 cases, differentiated back at four points under two pin sets.

Corpus, measured against master 87be872 (this branch then merged 67d8e8d):

master this branch
pocket: every row of 1.1.1.2, 1.1.1.3, 1.2.1.2, 1.2.2.2, 1.2.2.3 and 1.3.1 (7,779 statable) 7,752 7,754
families 0–8 samples no change no change
rows moved +2: 1.3.1:60, 316

Both solve on this branch re-run alone, and neither on master. 3.2.3:49 read as Unsolved → Timeout, and 3.2.3:51 as slow. Re-timed alone twice per arm, 3.2.3:49 declines in 26.8–27.3 s on master and 27.5–27.9 s here, and 51 solves in 1,375–1,376 vs 1,335–1,463 ms. No losses. Gate passed; suite 15,481 passed, 0 failed.

Sizes against 2.5.0 are in the BREAKING-CHANGES entry: every case was integral(...) there, and is 1,620–3,920 characters here.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 3 commits October 16, 2026 18:28
…uadratics in a hidden variable

A palindromic quartic c x^4 + b x^3 + e x^2 + b x + c is c (x^2 - p x + 1)(x^2 - q x + 1), p and q
the roots of c w^2 + b w + e - 2 c, being x^2 times a quadratic in w = x + 1/x; one whose odd terms
vanish under y = x + c3/(4 c4) is c4 (y^2 - p)(y^2 - q). The integral over the factored quartic is
asked with p and q named and they are written back. Only a quartic written as one sum is read:
the factored one is palindromic again, and read again the answer ran to 803,488 characters. Rubi's
1.3.1 (A + B x + C x^2 + D x^3)/(a + b x + c x^2 + b x^3 + a x^4) and
1/(4 a c + 4 c^2 x^2 + 4 c d x^3 + d^2 x^4) were declined.

Part of #718

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…that-splits-into-two-quadratics

# Conflicts:
#	Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs
#	Sources/AngouriMath/Functions/Continuous/Integration/Integration.Definition.cs
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 17, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit f9c0ac1 into master Oct 17, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant