Skip to content

A logarithm named as a linear is asked about where its name is zero - #1667

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
a-logarithm-of-its-exponential
Oct 2, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
a-logarithm-of-its-exponential

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Closes #1666.

SolveByNamingALogarithmLinearInTheVariable writes ln(e^x) as x + c, with c standing for ln(e^x) - x, and answers the generic case. 1/(x ln(e^x)) becomes 1/(x (x + c)), whose answer divides by c. But ln(e^v) is v on the strip |Im v| < pi, so c is zero at every real x, and the answer had no value anywhere on the real line.

Now, when the answer has no value at c = 0 and c is zero at real points, c = 0 is asked as well, and its answer becomes the arm for ln(e^x) - x = 0:

1/(x*ln(e^x))   =>   piecewise(-1/x provided ln(e^x) - x = 0, <the generic answer> otherwise)

That is exact everywhere: -1/x on the strip, and the generic answer off it, where it held already. The arm is added only when both conditions hold:

  • For atanh(tanh(a + b x)), c is ln(e^(2(a + b x))) - 2 b x, which is 2a on the real line, so the generic answer stands alone, as before.
  • For atanh(tanh(x))^2, the answer has a value at c = 0, so nothing changes.

Tests: ANameThatIsZeroOnTheRealLineIsAskedAboutAsZero differentiates 1/(x ln(e^x)), cot(x)/ln(e^sin(x)) and 1/(x ln(e^(2x))) back at five real points. All three fail on master. ANameThatIsNotZeroOrIsHarmlessGetsNoArm pins that the two cases above stay without a piecewise.

Measured on the Rubi corpus against master bc6c190c, with both builds side by side:

master this
family 3, logarithms (1382) 1318, 2 wrong 1321, 0 wrong
7.3.7 and 7.4.1, inverse hyperbolic tangent and cotangent (399) 371 372
family 0, independent suites (1814) 1758 1758
families 1, 2, 4, 5, 6 and 7, sampled (1769) 1547 1547

None of these are wrong on this branch.

Four problems moved, and I re-ran each alone on both builds:

The suite passes, 14,309 tests on a fresh build, and so does the allocation gate.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

`SolveByNamingALogarithmLinearInTheVariable` writes `ln(e^x)` as `x + c`, with `c` standing for
`ln(e^x) - x`, and answers the generic case: `1/(x ln(e^x))` is `1/(x (x + c))`, whose answer divides
by `c`. But `ln(e^v)` is `v` on the strip `|Im v| < pi`, so `c` is zero at every real `x` and the
answer had no value anywhere on the real line.

Where the answer has no value at `c = 0` and `c` is zero at real points, `c = 0` is asked as well,
and its answer is the arm for `ln(e^x) - x = 0`: `1/(x ln(e^x))` is `-1/x` there.
`ln(e^(2(a + b x))) - 2 b x`, which is `2a` on the real line, keeps the generic answer alone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 2, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit e802567 into master Oct 2, 2026
34 checks passed
Rafael-SOWNet added a commit that referenced this pull request Oct 2, 2026
…and the spellings at risk measured again (#1671)

* Breaking-changes entries for the integrals that say where they hold

Two entries for answers #1663, #1667 and #1669 changed, measured on the
2.5.0 tag and on master 94ba5ff: e^atanh(a x) beside a half-integer power
of a linear, and a logarithm of e^x named as a linear, both left
unevaluated in 2.5.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

* The spellings at risk, measured again

`2 | 6` is divisibility now, which is what it says, so it leaves the
section; `{ x | x > 0 }` is still a one-element set, holding a
divisibility rather than a disjunction; `a != b` is still `a! = b`. And a
not-equal written `<>` prints as `not a = b`, not as `<>`. Measured on
94ba5ff.

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>
@Rafael-SOWNet
Rafael-SOWNet deleted the a-logarithm-of-its-exponential branch October 29, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The integral of 1/(x ln(e^x)) has no value at any real x

1 participant