Skip to content

Commit 7edf328

Browse files
A product of powers of quotients of linears is written over each linear once (#1683)
* A product of powers of quotients of linears is written over each linear once `e^atanh(a x) sqrt(c - c/(a x))` is `sqrt((1 + a x)/(1 - a x)) sqrt(c (a x - 1)/(a x))`, and the root `1/a` stands in both, with exponents `-1/2` and `1/2`. The substitution search did not finish on it. Written over each linear once it is `K sqrt(a x + 1)/sqrt(x)`, and `K` -- the integrand over that product -- has a zero logarithmic derivative, so it is constant wherever it is defined and stands in front of the answer, as Rubi writes `x^p (c + d/x)^p/(1 + c x/d)^p` in front of its. `SolveByWritingEachLinearOnce` reads the integrand through products, quotients, powers and the exponential of a multiple of a logarithm into linears whose roots are rational in the symbols, sums each root's exponents, and fires where a root stands in two bases under powers that are not whole, or in a root of a quotient with x below the bar and another base, and at most two linears are left under such powers. Each linear takes the sign that is positive on an interval where the integrand is real, so that the product is real there; each such sign is an arm saying where it holds, found with the other symbols pinned to either sign, and an arm for negative x is integrated in `t = -x`, where the power of the variable is one the rules read. The product is asked as a quotient, and without this rule. Every arm or none. With every power whole, a root of a quotient shared with another base is enough -- `e^(2 acoth(a x))/(c - c/(a^2 x^2))^2` is `K x^4/((a x + 1)(a x - 1)^3)`, which the partial fractions answer at once -- and `K` is a constant, with one arm and no condition. First in the chain, at the question asked: the polynomial term writes `1/u` as `u^(-1)` and asks that a level down. Two tests pinned the conditioned answers the linear-radical step gives for integrands this rule now answers on both sides; they assert that instead, and the step's condition stays pinned on `1/sqrt(x + x^(3/2))`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * A breaking-changes entry for a product of powers of quotients of linears 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>
1 parent eaf3cde commit 7edf328

5 files changed

Lines changed: 460 additions & 12 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,25 @@ and this is the same answer reached through the even root
987987
|---|---|---|
988988
| `"sqrt(x)/(sqrt(1/x + 1)*sqrt(1 - x^2))".Integrate("x")` | `integral(...)` | an antiderivative in `sqrt(x)`, `provided x >= 0` |
989989

990+
### A product of powers of quotients of linears is written over each linear once
991+
992+
**Improvement, not silent.** `e^atanh(a x) sqrt(c - c/(a x))` is
993+
`sqrt((1 + a x)/(1 - a x)) sqrt(c (a x - 1)/(a x))`, in which the linear `1 - a x` stands twice, under
994+
two roots, and the substitution search took one root at a time and ran out of time. The integrand is
995+
now written over each linear once, `K sqrt(a x + 1)/sqrt(x)`, where `K` is the integrand over that
996+
product: its logarithmic derivative is zero, so it is constant on every interval where it is defined,
997+
and it stands in front of the answer as Rubi's does. Each sign the linears take where the integrand is
998+
real is an arm of a piecewise, saying where it holds. Rubi's 7.3.6 and 7.4.2
999+
([#718](https://github.com/asc-community/AngouriMath/issues/718)).
1000+
1001+
| Input | Was (2.5.0) | Now |
1002+
|---|---|---|
1003+
| `"e^atanh(a*x)*sqrt(c-c/(a*x))".Integrate("x")` | left unevaluated | the antiderivative, a piecewise with an arm for each interval where it is real |
1004+
| `"1/(e^atanh(a*x)*(c-c/(a*x))^(3/2))".Integrate("x")` | left unevaluated | the same |
1005+
| `"e^(2*acoth(a*x))/(c-c/(a^2*x^2))^2".Integrate("x")` | left unevaluated | `K` times the antiderivative of `x^4/((a x + 1)(a x - 1)^3)` |
1006+
| `"x*sqrt(c - a*c*x)/e^(3*atanh(a*x))".Integrate("x")` | left unevaluated | the antiderivative on both sides of `a x = 1`, where `master` gave one `provided c - a c x >= 0` |
1007+
| `"sqrt(x)/(sqrt(1/x + 1)*sqrt(1 - x^2))".Integrate("x")` | left unevaluated | the antiderivative on both sides of `x = 0`, where `master` gave one `provided x >= 0` |
1008+
9901009
### The inverse hyperbolic tangent's answer is given on its domain, and says so
9911010

9921011
`1/((1 - a^2 x^2)^(5/2) artanh(a x))` was left unevaluated, although the substitution `a x = tanh(u)`

0 commit comments

Comments
 (0)