A power of an exponential over a polynomial is integrated to the exponential integral - #1733
Merged
Merged
Conversation
…nential integral (F^(g (e + f x)))^n has the constant logarithmic derivative n g f ln F, so it is a constant times e^(n g f ln(F) x) wherever it is differentiable; with a symbol for the constant, over a polynomial the integrand is the exponential integral's, and the constant is written back as the power times e^(-n g f ln(F) x). That holds for every F, where F^(n u) holds only for a positive one. Rubi's 2.2. Part of #718. 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
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.
(F^(g (e + f x)))^nwith a symbol forFornwas read by no rule below a polynomial:(F^x)^n/x, and Rubi's 2.2,(a + b (F^(g (e + f x)))^n)^p/(c + d x)^m, were declined, whileF^(g (e + f x))/(c + d x)is answered withEi. 2.5.0 declined them too:ac6e33fa(F^x)^2/xEi(2 ln(F) x), in 0.3 s(F^x)^n/x(F^x)^n e^(-n ln(F) x) Ei(n ln(F) x), in 0.1 s(a + b (F^(g (e + f x)))^n)/(c + d x)(a + b (F^(g (e + f x)))^n)^3/(c + d x)^3c + d xand exponential integrals, in 0.3 sWhat changes. The power has the constant logarithmic derivative
n g f ln F, so it is a constant timese^(n g f ln(F) x)wherever it is differentiable. With a symbol for that constant, beside a polynomial below the bar, the integrand is one the exponential integral's rules read, and the answer is written back with the constant as(F^(g (e + f x)))^n e^(-n g f ln(F) x), whose derivative is zero. That holds for everyF: for a negative one,(F^x)^ndiffers fromF^(n x)by a factor that changes whereverF^xcrosses the negative axis, and the constant carries it, where writing the power asF^(n g (e + f x))would be right only for a positiveF. A whole power is that exactly, whatever the base, and is written so.Tests:
PowerOfAnExponentialIntegralTest, six rows over a linear differentiated back with the symbols pinned andF = 3, and two withF = -3compared as complex numbers on both sides of the axis crossings; all eight fail on master.Measured first on the 999 problems of family 2 and the others with a power of an exponential in them, 675 run, at the corpus's 5-second budget, against master
8f3757cd, the branch's base:Measured then on the Rubi corpus against master
8f3757cd:No answer is wrong in the sample on either build. Of the 15 problems the two builds disagreed on, run again one build at a time, 10 are declined on master and answered here: the nine of 2.2's
(a + b (F^(g (e + f x)))^n)^p/(c + d x)^min the sample, and 2.3's(F^(sqrt(1 - a x)/sqrt(1 + a x)))^n/(1 - a^2 x^2), which master declined after 7 s and is answered in a tenth of one. The other five are answered on both, after about twenty seconds on either build, past the corpus's budget.The suite passes on the commit measured,
6cb29bb6, 14,599 tests with 13 skipped, and the allocation gate with it. On the merge with masterac6e33fa,3e3e9567, the 4,060 calculus and corpus tests pass, and every row of the first table is as it says.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura