Skip to content

Integrate ln(x) over a rational function symmetric under x -> a^2/x on [0, +oo) (#2638) - #2642

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
log-inversion-symmetry-2638
Nov 29, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
log-inversion-symmetry-2638

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Closes #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 a 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 (ln(x)/x has it 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. Entry in BREAKING-CHANGES.md.

Full UnitTests suite (net10.0, on a1b69bf + this): 21817 passed, 0 failed, 13 skipped.

🤖 Generated with Claude Code

…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

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.62745% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.71%. Comparing base (a1b69bf) to head (077245f).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ctions/Continuous/Integration/InversionSymmetry.cs 66.66% 6 Missing and 10 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@           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     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.21% <68.62%> (+<0.01%) ⬆️
fsharp 32.79% <ø> (ø)
interactive 40.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...s/Continuous/Integration/Integration.Definition.cs 86.69% <100.00%> (+0.04%) ⬆️
...ctions/Continuous/Integration/InversionSymmetry.cs 66.66% <66.66%> (ø)

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit dccddc5 into master Nov 29, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 29, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the log-inversion-symmetry-2638 branch November 29, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

integral(ln(x)/(1+x^2), x, 0, +oo) is left unevaluated: the x -> 1/x symmetry makes it 0

1 participant