Repository navigation
Integrate ln(x) over a rational function symmetric under x -> a^2/x on [0, +oo) (#2638) - #2642
Merged
Merged
Conversation
…n [0, +oo) (#2638) ln(x)/(1 + x^2) has no elementary antiderivative, and its integral over [0, +oo) was left unevaluated. The substitution x -> 1/x maps it onto its own negative, so it is 0. More generally, for rational R with R(a^2/x) a^2/x^2 = R(x), x = a t turns the integral of ln(x) R(x) into ln(a) times the integral of R. The scale a^2 is read off the denominator as |D(0) / lead(D)|^(2 / deg D) and then checked exactly. The symmetry says nothing about an integral that diverges, and ln(x)/x has the symmetry and diverges. So the rule is used only where the integral converges: R finite at 0, no zero of the denominator on the half-line, and the denominator of degree at least two above the numerator. It is tried only after the antiderivative and the split at abs have both failed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2642 +/- ##
=======================================
Coverage 86.70% 86.71%
=======================================
Files 345 346 +1
Lines 75541 75620 +79
Branches 22075 22103 +28
=======================================
+ Hits 65501 65576 +75
+ Misses 5416 5414 -2
- Partials 4624 4630 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Closes #2638
ln(x)/(1 + x^2)has no elementary antiderivative, and its integral over[0, +oo)was left unevaluated. The substitutionx -> 1/xmaps it onto its own negative, so it is 0. More generally, for a rationalRwithR(a^2/x) a^2/x^2 = R(x),x = a tturns the integral ofln(x) R(x)intoln(a)times the integral ofR. The scalea^2is read off the denominator as|D(0) / lead(D)|^(2 / deg D)and then checked exactly.The symmetry says nothing about an integral that diverges (
ln(x)/xhas it and diverges), so the rule is used only where the integral converges:Rfinite at 0, no zero of the denominator on the half-line, and the denominator of degree at least two above the numerator. It is tried only after the antiderivative and the split atabshave both failed. Entry inBREAKING-CHANGES.md.Full UnitTests suite (net10.0, on a1b69bf + this): 21817 passed, 0 failed, 13 skipped.
🤖 Generated with Claude Code