Skip to content

What is left of a substitution in x as a power of its candidate is written in the candidate - #1657

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
what-is-left-in-x-is-written-in-the-candidate
Oct 1, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
what-is-left-in-x-is-written-in-the-candidate

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

A substitution u = g(x) can leave some x in the integrand, so the candidate was refused even when what is left is a power of u. Take u = sqrt(1 - a x)/sqrt(1 + a x). Dividing F^(k u)/(1 - a^2 x^2) by du/dx gives F^(k u) times -sqrt(1 + a x)/(a sqrt(1 - a x)). That is -1/(a u), but it holds no u as written. The integral is -Ei(k ln(F) u)/a, which is Rubi's 2.3.

What is left in x is now tried as c u^k, for k from −2 to 2:

  • each power is first screened by the ratio at three points, with every other symbol pinned;
  • a power that passes has its constant worked out symbolically;
  • a constant that keeps an x refuses the candidate.

A linear candidate is skipped. What is left beside it is always a power of u, and changing the scale there would ask the same question again before the rules that answer it.

e^(1/x) is now answered this way, as x e^(1/x) - Ei(1/x) under u = 1/x. The test that pinned it as declined predates Ei being a node. It now checks that the answer differentiates back.

Measured on the Rubi corpus against master cd3b27b9, with both arms side by side:

family master this
2, exponentials (650) 544 557
3, logarithms (180, 20 a file) 174 175
0, independent suites (1814) 1756 1758
8, special functions (420) 411 411

There are 0 wrong answers in any family. The 16 problems whose verdict moved, re-run alone, are 16 of 16 on this branch and 0 of 16 on master (11 unevaluated and 5 timeouts). Thirteen of them are 2.3, one is 3.2.3, and two are Apostol 260 and Hebisch 11. The suite passes, 14,303 tests, and so does the allocation gate.

The same run found a wrong answer that master already gives: #1655, which this branch leaves as it is.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

…itten in the candidate

A substitution u = g(x) can leave some x in the integrand. Under u = sqrt(1 - a x)/sqrt(1 + a x),
F^(k u)/(1 - a^2 x^2) divided by du/dx is F^(k u) times -sqrt(1 + a x)/(a sqrt(1 - a x)). That is
-1/(a u), but it holds no u as written, so the candidate was refused. The integral is
-Ei(k ln(F) u)/a, Rubi's 2.3.

What is left in x is now tried as c u^k, for k from -2 to 2. Each power is first screened by the
ratio at three points, with every other symbol pinned. A power that passes has its constant
worked out symbolically, and a constant that keeps an x refuses the candidate. A linear candidate
is skipped: what is left beside it is always a power of u, and the change of scale there would
ask the same question again ahead of the rules that answer it.

e^(1/x) is answered this way, as x e^(1/x) - Ei(1/x) under u = 1/x. The test that pinned it as
declined predates Ei being a node, and now checks that the answer differentiates back.

Measured on the Rubi corpus against master cd3b27b, both arms side by side: family 2 544 -> 557
of 650, family 3 175 of 180 against 174, family 0 1756 -> 1758 of 1814, and family 8 411 of 420 on
both. There are 0 wrong anywhere. The 16 problems whose verdict moved, re-run alone, are 16 of 16
on the branch and 0 of 16 on master. The suite passes, 14,303 tests, and so does the allocation
gate.

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 1, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 3897435 into master Oct 1, 2026
33 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the what-is-left-in-x-is-written-in-the-candidate branch October 29, 2026 00:44
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