Skip to content

A power of x beside a function of a symbolic power of x is integrated by substituting the power, and a square root of a perfect square is the modulus at every depth - #1462

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
power-substitution-and-perfect-squares
Sep 22, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
power-substitution-and-perfect-squares

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

x^(n - 1) e^(x^n) with a symbolic n was declined: the general substitution takes a concrete power, and nothing took a symbolic one. It is e^(x^n)/n under u = x^n, and x^(k n - 1) g(x^n) for a whole k is u^(k - 1) g(u)/n — Rubi's 6.5.2 and 6.6.2, (e x)^(n - 1) (a + b sech(c + d x^n))^p, where the power in front is e^(n - 1) x^(n - 1) for a positive e, and the answer says so (provided pe > 0).

1/sqrt(1 + csch(x)^2) was answered wrongly on master (unevaluated in 2.5.0): under u = tanh(x) it is sqrt(u^2)/(u^2 - 1), and six levels down the rule for a root of a quadratic beside a linear read the perfect square as a root and answered with a logarithm of zero — a derivative that is nowhere a number. A square root of a perfect square is now written as sgn(x + h) (x + h) at every depth, before anything reads it, and Euler's substitution declines a perfect square rather than substituting t = sqrt(u^2) - u.

The square root only, not (P)^(5/2): SolveByTakingASquareFactorOutOfARoot's remark says why that stays at the top — below a substitution the variable is one whose sign the substitution knows, and a sign written for it is a factor the rest of the search carries. Measured: with the rewrite at every half-odd power, tanh(x)/(a + b tanh(x)^2)^(5/2) (6.3.7:308) went from 20 s to past the budget, because under u = e^(2x) it holds (1 + 2u + u^2)^(5/2); restricted to the square root it is back to master's 20 s.

Measured (all on this branch's final build):

  • Family 6 (familycap.sh 6 20): 315 → 335/417, 0 wrong (master has 1 wrong, the row above), 32 unevaluated, 8 unverifiable on the reals, 42 timeout. Eight rows moved Unsolved → Timeout on the 5 s cap; each times identically on master solo (20 s+), so that is memo warmth in the family run, not the branch.
  • Family 7: 215/270, 0 wrong, unchanged.
  • 1774-problem suite: 1707/1774, 0 wrong, 0 timeout, wall 85 s (unchanged).
  • Unit suite: 12,596 tests, 0 failed (one new assertion was tightened to a value check after the run; the two new classes re-run, 15 passed).
  • bench.sh: PASSED, allocation matches the baseline on all 19 gated benchmarks.

BREAKING-CHANGES.md carries the entry with the 2.5.0 column measured on a 2.5.0 build.

Part of #718.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

… by substituting the power, and a square root of a perfect square is the modulus at every depth

`x^(n - 1) e^(x^n)` with a symbolic n was declined: the general substitution
takes a concrete power, and nothing took a symbolic one. It is `e^(x^n)/n`
under u = x^n, and `x^(k n - 1) g(x^n)` for a whole k is `u^(k - 1) g(u)/n`,
which is Rubi's 6.5.2 and 6.6.2 -- `(e x)^(n - 1) (a + b sech(c + d x^n))^p`,
where the power in front is `e^(n - 1) x^(n - 1)` for a positive e, and the
answer says so.

`1/sqrt(1 + csch(x)^2)` was answered wrongly: under u = tanh(x) it is
`sqrt(u^2)/(u^2 - 1)`, and six levels down the rule for a root of a
quadratic beside a linear read a perfect square as a root and answered
with a logarithm of zero. A square root of a perfect square is now written
as `sgn(x + h) (x + h)` at every depth, before anything reads it, and
Euler's substitution declines a perfect square rather than substituting
`t = sqrt(u^2) - u`. The square root only: `(1 + 2u + u^2)^(5/2)` under the
exponential substitution is a sign written for a variable whose sign the
substitution knows, and rewriting it sent `tanh(x)/(a + b tanh(x)^2)^(5/2)`
from twenty seconds to past the budget.

Family 6 of the Rubi suite: 315 -> 335 of 417, 0 wrong (one wrong before);
family 7 215/270 unchanged; the 1774-problem suite 1707, 0 wrong, 0 timeout.
Allocation gate passed on all 19 gated benchmarks.

Part of #718.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet
Rafael-SOWNet merged commit 0d81cfe into master Sep 22, 2026
31 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the power-substitution-and-perfect-squares 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