You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dcf5ba7
Browse filesBrowse the repository at this point in the historyBrowse files
A special function of a logarithm of a monomial is integrated, through Ei of a complex argument (#1645)
(e x)^m Si(d (a + b ln(c x^n))) is by parts against (e x)^m, and what is left is a power of x
times sin(d (a + b ln(c x^n)))/(a + b ln(c x^n)). Two rules were missing on the way, and both are
here.
A power of x times a function of one logarithm of a monomial, x^m G(ln(c x^n)), is integrated
under t = ln(c x^n). dx is x dt/n, and x^(m + 1) is K e^((m + 1) t/n), where
K = x^(m + 1) (c x^n)^(-(m + 1)/n) has derivative 0 wherever it is defined. So the answer is K/n
times the integral of e^((m + 1) t/n) G(t) at t = ln(c x^n), an antiderivative wherever the
integrand is real. For an even n that includes negative x, where ln(c x^n) is not ln(c) + n ln(x)
and an answer through ln(x) would be off by a branch. A power of a monomial, (e x)^m, is x^m times
a factor of the same kind. Rubi's answers to 8.3 to 8.5 are written in this K. The integral in t is
asked as one quotient, as the logarithm substitution asks its own: as a product,
(d x)^m x/ln(b x) handed over e^((m + 2) t) t^(-1), which ran away in integration by parts
(#1646). As a quotient it is Ei((m + 2) t) at once, and (d x)^m li(b x) is answered too, since by
parts leaves (d x)^m x/ln(b x) of it.
And an exponential times sines and cosines of linears over linears: each sine and cosine is
written as exponentials, the product multiplied out, and every term is an exponential with a
complex rate over the linears, which the exponential rules answer with Ei of a complex argument.
e^(2x) sin(x)/x is (Ei((2 + i) x) - Ei((2 - i) x))/(2i), two conjugate terms whose sum is real.
Only with an exponential beside the sine or cosine: sin(x)/x alone stays Si(x). The evaluator
reads Ei, Si and erf off the real line already, so these answers are checked like any other.
Measured on the Rubi corpus, master at 492afc2 and this change on it, run side by side: family 8
395 -> 411 of 420, all fifteen of F(d (a + b ln(c x^n))) -- Ei, Shi and Chi beside (e x)^m, and Si
and Ci alone, beside x, x^2 and (e x)^m, and over x^2 and x^3 -- and (d x)^m li(b x). Family 4 at
ten a file 611 -> 612, the one being cos(a + b ln(c x^n))^2. Family 2 is 544 of 650 on both,
family 3 at twenty a file 171 of 180, the independent suites 1756 of 1814, and families 1, 5, 6
and 7 at five a file 437 of 499. 0 wrong everywhere. Run alone, the seventeen are 0 of 17 on
master and 17 of 17 here.
The unit tests pass, 14,275, with the GC heap held to 4 GB, and the performance gate passes on
6a4b09c, which is this change on 492afc2: allocation is what the baseline says on all 19 gated
benchmarks.
ExponentialIntegralIntegrationTest has three rows of an exponential beside a sine or cosine over a
linear, and four of a function of a logarithm of a monomial, checked at negative x as well with
n = 2, and (k x)^m x/ln(b x) past 1. SpecialFunctionsByPartsTest checks (d x)^m li(b x) at
positive points, where li(b x) is real.
Part of #1501.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| `"cos(a+b*ln(c*x^n))^2".Integrate("x")` | `integral(cos(a + b * ln(c * x ^ n)) ^ 2, x)` | an antiderivative in `sin` and `cos` of `2 (a + b ln(c x^n))`, beside `x (c x^n)^(-1/n)` |
2407
+
2384
2408
### An exponential or a hyperbolic function over several linears is split into partial fractions over them
2385
2409
2386
2410
`e^x/(x (x + 1))` was left unevaluated, where `e^x/x` and `e^x/(x + 1)` were each answered with
0 commit comments