Repository navigation
A term with a power of x is integrated by parts with the rest of the sum in its remainder - #1860
Merged
Rafael-SOWNet merged 3 commits intoOct 12, 2026
Conversation
A sum whose terms are not elementary apart is integrated by parts against the power of x in each term that has one, and what parts leaves is asked together with the other terms, read as powers of the sine and the cosine with the least powers taken out, or closed as the derivative of one such product. Rubi's 4.7.7 sqrt(csc(x)) (x cos(x) - 4 sec(x) tan(x)). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…ofactors Asked again inside its own questions, the rule hung (c + d x) erfc(a + b x)^2; beside an algebraic or rational cofactor it turned half-second declines into minutes. Only cofactors with x inside transcendental functions alone, and only where the antiderivative leaves no polynomial in x beside it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…rs of x Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Rafael-SOWNet
deleted the
a-term-integrated-by-parts-takes-the-rest-of-the-sum
branch
October 12, 2026 17:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #718.
sqrt(csc(x)) (x cos(x) - 4 sec(x) tan(x)), Rubi's 4.7.7 #1129, is(2 x sqrt(sin(x)) - 4 sin(x)^(3/2)/cos(x))', and neither of its terms is elementary alone. Where a sum's terms are not integrated one by one, at the question asked, a termx^k fis integrated by parts againstx^k. The leftover,-k x^(k-1) F, is then asked together with the other terms. If that leftover is zero, the parts are the answer, as for(x^2 e^sin(x))'. When the leftover is a sum ofc sin^a cos^bover one argument, the least powers are taken out. It closes asK sin^(a+1) cos^(b+1)when it is one.Each limit comes from a measurement. On the first corpus run, the suite hung on
(c + d x) erfc(a + b x)^2.(x^2 + 3)^2/(x + sqrt(x^2 + 3))went from a 0.5 s decline to past two minutes, and(a + b atanh(c x^2))^2/x^5doubled to 37 s:fmust havexonly inside transcendental functions;Fkeeps a polynomial inxgoes into the remainder untouched, since asking that remainder again would not get any simpler.Measured on a4993e6 (master) and on 2.5.0:
sqrt(csc(x))*(x*cos(x) - 4*sec(x)*tan(x))x*cos(x)/sqrt(sin(x)) - 4*sqrt(sin(x))/cos(x)^2x*sin(x)/sqrt(cos(x)) + 4*sqrt(cos(x))/sin(x)^2sqrt(csc(2*x + 1))*(x*cos(2*x + 1) - 2*sec(2*x + 1)*tan(2*x + 1))x*cos(x)*e^sin(x) + e^sin(x)x * e ^ sin(x)x^2*cos(x)*e^sin(x) + 2*x*e^sin(x)x ^ 2 * e ^ sin(x)(c + d*x)*erfc(a + b*x)^2erfcread as a symbolSpecialFunctionsByPartsTestCorpus chain against master a4993e6:
The every-target build succeeds with 0 warnings.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura