A radical function of whole powers of x written through its logarithm says where its answer holds - #1729
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Conversation
… says where its answer holds Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
1/csch(2 ln(c x))^(1/2)issqrt(sinh(2 ln(c x))), which issqrt(((c x)^2 - (c x)^(-2))/2)and real on both sides of zero. Master integrates it undert = ln(c x), and the answer is right for a positivec xand wrong for every negative one; 2.5.0 declined it. Checked on both sides of zero atc = 1.3,x = ±1.3, ±1.9, ±2.7:b2157e081/csch(2 ln(c x))^(1/2)provided c x > 0, right at the three positive pointscsch(2 ln(x))^(-3/2)provided x > 01/sech(2 ln(x))^(1/2)provided x > 0sqrt(sinh(2 ln(c x)))Why. For a negative
c x,t = ln(c x)isln(-c x) + i pi. The integral intis found by rules that taketto be real: the exponential substitutionu = e^ttakesuout from under a root as positive. A function of whole powers ofe^tis real att + i pias well, so for those integrands it shows: the answer is the integrand's antiderivative for a positivec xand not for a negative one.What changes. Where the integrand in
tholdstonly in exponentialse^(k t + a)with a wholek, some of them under a power that is not whole, the logarithm's two substitution rules give their answerprovided c x^n > 0-- orx > 0-- and nothing is said for a negativec x^n. For an evennand a positive numericcthe condition always holds and is left off. A rational function ofe^tuses no positivity and keeps its answer as it was. The same integrand written in powers ofx,sqrt(sinh(2 ln(c x)))above, is answered on both sides by the fold of an exponential of a logarithm before either rule, as before.Tests:
LogarithmSubstitutionTest.ARadicalFunctionOfAWholePowerOfX, six rows compared at three negative and three positive points: four answeredprovidedthe logarithm's argument is positive, and holding at every positive point, which fail on master at the negative ones; and two written in powers ofx, which hold at all six.Measured first with the corpus's check of the negative side switched on (
IB_BOTHSIDES=1) on the 177 problems with an exponential or a hyperbolic function and a logarithm in them, at the corpus's 5-second budget, against master8f3757cd, the branch's base:The six wrong on master are 6.5.3's
1/sech(2 ln(c x))^(1/2)and^(3/2), and 6.6.3's1/csch(2 ln(c x))^(1/2),^(3/2),csch(2 ln(c x))^(1/2)/x^4andcsch(2 ln(c x))^(3/2)/x^2, each right for a positivexonly; here all six are answeredprovided c x > 0. Two of them are checked only afterSimplify()on both builds, since the derivative of the raw answer holds asgnthe harness does not evaluate.Measured then on the Rubi corpus against master
8f3757cd:No answer is wrong in the sample on either build. The difference is five problems far past the corpus's five seconds on both builds, whose verdict there is decided by when the budget is noticed: run again one build at a time, three of them went the other way. Measured alternately with no budget, four are answered on both builds in the same time, 16 to 35 s --
log(e (f (a + b x)^p (c + d x)^q)^r)/(a + b x)^4,sqrt(g sin(e + f x))/((c + d sin(e + f x)) sqrt(a + a sin(e + f x))),x/csch(x)^(5/2) + 3/5 x/sqrt(csch(x))and1/(x (a x + b x^3 + c x^5)^2)-- and1/((a g + b g x)^3 (A + B ln(e (a + b x)/(c + d x))))runs past 150 s on both.The suite passes on the commit measured,
537ca738, 14,597 tests with 13 skipped, run under a 4 GB heap limit, and so does the allocation gate. Masterb2157e08is merged in since, without conflicts; the calculus tests pass on the merge, 4,017 of them, and every row above is as the table says on it.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura