Skip to content

A linear below the bar that divides the radicand is written over it - #1492

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
linear-divides-radicand
Sep 25, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
linear-divides-radicand

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

x^2/((d + e x) sqrt(d^2 - e^2 x^2)) was left unevaluated. The linear divides the radicand, d^2 - e^2 x^2 = (d + e x)(d - e x), so 1/(d + e x) is (d - e x)/(d^2 - e^2 x^2). The integrand is then the polynomial x^2 (d - e x) over (d^2 - e^2 x^2)^(3/2), which the rules for a polynomial beside a half-odd power of a quadratic answer. The rules that read a linear beside a root take it as a pole to split off, and this one leaves nothing to split: its residue is the radicand at its root, which is zero.

A whole power L^(-n) below the bar, where P = L M, is now written as M^n P^(-n). The rewrite is exact, so it needs no condition. The rule runs after the two rules that read a linear beside a root, and before Euler's substitution.

It is fenced three ways, each from a measurement:

  • At the question asked only. At every depth it rewrote the substitution search's sub-questions: a four-symbol 1/(x^2 (d + e x) sqrt(P)) went from an 80 ms decline to over 90 s, and is answered in half a second now.
  • The other factor's coefficients simplified. ((c d^2 + a e^2) e - c d e d)/e^2 is a e. The rules below searched for 40 s on the first spelling and answer the second at once.
  • Nothing else in the integrand a root of x. Other rules' same-question rewrites still reach a rule scoped to the question asked. On Timofeev's 314, (1 - x^2)^(1/4) beside sqrt(1 - x) and sqrt(1 + x), it answered first with a worse route whose answer held sgn(sqrt(1 - x)). That made the suite fail and a corpus row unverifiable. None of the rows it wins has a second radical.

Measured

before after
Rubi 1.2.1.4, all 632 problems that count 250 409, no row lost, 61 timeouts → 67
Rubi family 1 166/228 170/228: 1.2.1.3:2477 and three 1.2.1.4 rows
Rubi family 5 227/257 228/257: 5.3.6:69, 1/(e^(3 i atan(a x)) x^3)
Rubi family 7 237/270 240/270: 7.3.6:1516 and two 7.4.2 rows, e^(2 acoth(a x)) (c - a^2 c x^2)^(9/2) among them
Rubi families 4 and 6, the 7.1 files and the 1774-problem suite — unchanged, row for row
unit suite 12,712 12,718 (six cases added), 0 failed, run to completion
allocation gate — PASSED on all 19 gated benchmarks

The six new timeouts have a radicand in four symbols beside a power of x, such as (a d e + (c d^2 + a e^2) x + c d e x^2)^(5/2)/(x^2 (d + e x)). They go from a quick decline to one past the 5 s budget.

Part of #718.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

x^2/((d + e x) sqrt(d^2 - e^2 x^2)) was left unevaluated: the linear
divides the radicand, so 1/(d + e x) is (d - e x)/(d^2 - e^2 x^2), and the
integrand is a polynomial over (d^2 - e^2 x^2)^(3/2). The rules that read
a linear beside a root take it as a pole to split off, and this one has
nothing to split off. A whole power L^(-n) below the bar, where P = L M,
is now M^n P^(-n), exactly: at the question asked only, with M's
coefficients simplified, and where nothing else in the integrand is a
root of x.

Rubi's 1.2.1.4, all 632 problems that count: 250 to 409, no row lost,
61 timeouts to 67.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet
Rafael-SOWNet merged commit f3a2056 into master Sep 25, 2026
31 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the linear-divides-radicand 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