Skip to content

Commit f03b090

Browse files
Rafael-SOWNetclaude
andcommitted
Integrate five shapes of the independent suites: a cube root's T'/(1 - T^3), a root of a quartic's numerator square, an Ei derivative, roots of sec ± 1, and Euler's substitution on a nested root
- A quotient beside the cube root of a cubic with a linear factor, where it is T'/(1 - T^3) for T the root over the linear: Welz 94-96. - A linear over a linear beside the root of a quartic, where it is a function of the numerator's square over the root: Welz 179, 180, and Rubi's 1.2.2.3:557-560. - An exponential of a rational function beside the derivative of its exponential integral: Hebisch 12. - A function of sqrt(sec(u) + 1) and sqrt(sec(u) - 1), in their difference: Charlwood 140. - A half-odd power of a linear plus the root of a quadratic, in Euler's substitution where their squares differ by a square: Bondarenko 24, 25. Chain against master f7f2a7a: pocket of 1,774 rows, 1,738 -> 1,742 solved, 0 wrong; family 0 whole 1,805 -> 1,814 of 1,814; other samples unchanged; the 13 rows that moved, alone, 0 -> 13 solved; no row's allocation grew past 1.3x. 2.5.0 declined all thirteen. CubeRootLogarithmAnsatzTest held `1/(x ((x - 1)(q - 2 q x + x^2))^(1/3))` as declined, the ansatz's field not holding q^(1/3). The first rule above answers it, with T = q^(1/3) (x - 1)/root, and the answer differentiates back for q = 0.37, 2.3, -0.7 and -3.1 at eleven points on both sides of the radicand's zeros; the row moves to a theory of its own that checks the derivative. Part of #233. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
1 parent 86d60b9 commit f03b090

9 files changed

Lines changed: 756 additions & 3 deletions

‎BREAKING-CHANGES.md‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,73 @@ an arctangent ([#718](https://github.com/asc-community/AngouriMath/issues/718)).
16001600
| `"1/((d+k*x)*(c^2*d^2-b*c*d*k+b^2*k^2+3*b*c*k^2*x+3*c^2*k^2*x^2)^(1/3))".ToEntity().Integrate("x")` | `integral(...)` | 1,934 characters |
16011601
| `"1/((d+k*x)*(-c^2*d^2+b*c*d*k+2*b^2*k^2+9*b*c*k^2*x+9*c^2*k^2*x^2)^(1/3))".ToEntity().Integrate("x")` | `integral(...)` | 1,274 characters |
16021602

1603+
### A quotient beside the cube root of a cubic with a linear factor is integrated where it is `T'/(1 - T^3)`
1604+
1605+
**Answers where there were none.** Welz's `1/(x ((x - 1) (q - 2 q x + x^2))^(1/3))`,
1606+
`(2 - (1 + k) x)/((x (1 - x) (1 - k x))^(1/3) (1 - (1 + k) x))` and
1607+
`(1 - k x)/((1 - (2 - k) x) (x (1 - x) (1 - k x))^(2/3))` were declined. For `P = L Q` with `L` linear, a rational
1608+
function over `P^(1/3)` that is a constant times `W/(Q - mu L^2)`, or over `P^(2/3)` that is one times
1609+
`L W/(L^2 - mu Q)`, `W = 2 Q L' - L Q'`, is a constant times `T'/(1 - T^3)` for `T = m L/P^(1/3)` or `m P^(1/3)/L`,
1610+
`m^3 = mu`, and is answered by two logarithms and an arctangent of `T`. With numbers in `P` the ansatz over
1611+
logarithms of `L - y` answers these, and is asked first ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1612+
1613+
| Input | Was (2.5.0) | Now |
1614+
|---|---|---|
1615+
| `"1/(x*((-1+x)*(q-2*q*x+x^2))^(1/3))".ToEntity().Integrate("x")` | `integral(...)` | 385 characters |
1616+
| `"(2-(1+k)*x)/(((1-x)*x*(1-k*x))^(1/3)*(1-(1+k)*x))".ToEntity().Integrate("x")` | `integral(...)` | 319 characters |
1617+
| `"(1-k*x)/((1+(-2+k)*x)*((1-x)*x*(1-k*x))^(2/3))".ToEntity().Integrate("x")` | `integral(...)` | 424 characters |
1618+
1619+
### A linear over a linear beside the root of a quartic is integrated where it is a function of the numerator's square over the root
1620+
1621+
**Answers where there were none.** `(1 + x - sqrt(3))/((1 + x + sqrt(3)) sqrt(x^4 + 4 sqrt(3) x^2 - 4))` and its
1622+
conjugate were declined, in Welz's suite and in Rubi's 1.2.2.3, and so were the two with `1 + 2 x` beside them.
1623+
Where `gamma P - mu M W = L^4` for `W = 4 L' P - L P'` and constants `gamma` and `mu`, `L/(M sqrt(P))` is the
1624+
derivative of `(2 mu/c) artanh(L^2/(c sqrt(P)))` with `c^2 = gamma`, an arctangent where `gamma` is negative. The
1625+
ansatz over logarithms of `A - B y` takes its places at rational poles, and these are at `-1 -+ sqrt(3)` ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1626+
1627+
| Input | Was (2.5.0) | Now |
1628+
|---|---|---|
1629+
| `"(1+x-sqrt(3))/((1+x+sqrt(3))*sqrt(-4+x^4+4*x^2*sqrt(3)))".ToEntity().Integrate("x")` | `integral(...)` | 246 characters |
1630+
| `"(1+x+sqrt(3))/((1+x-sqrt(3))*sqrt(-4+x^4-4*x^2*sqrt(3)))".ToEntity().Integrate("x")` | `integral(...)` | 151 characters |
1631+
| `"(1+2*x-sqrt(3))/((1+2*x+sqrt(3))*sqrt(-1+4*x^4+4*x^2*sqrt(3)))".ToEntity().Integrate("x")` | `integral(...)` | 261 characters |
1632+
| `"(1+2*x+sqrt(3))/((1+2*x-sqrt(3))*sqrt(-1+4*x^4-4*x^2*sqrt(3)))".ToEntity().Integrate("x")` | `integral(...)` | 159 characters |
1633+
1634+
### An exponential of a rational function beside the derivative of its exponential integral is integrated
1635+
1636+
**Answers where there were none.** Hebisch's `(2 + 2x + 3x^2 - x^3 + 2x^4) e^(x/(2 + x^2))/(2x + x^3)` was declined.
1637+
It is `((2 + x^2) e^h)' + e^h h'/h` for `h = x/(2 + x^2)`, and the ansatz for `e^h N/D` alone has no solution. The
1638+
multiple of `h'/h` is the residue at a zero of `h`, the rest is asked of the ansatz, and the answer is
1639+
`e^h N/D + c Ei(h)` ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1640+
1641+
| Input | Was (2.5.0) | Now |
1642+
|---|---|---|
1643+
| `"(2+2*x+3*x^2-x^3+2*x^4)*e^(x/(2+x^2))/(2*x+x^3)".ToEntity().Integrate("x")` | `integral(...)` | 61 characters |
1644+
1645+
### A function of `sqrt(sec(u) + 1)` and `sqrt(sec(u) - 1)` is integrated in their difference
1646+
1647+
**Answers where there were none.** Charlwood's `sqrt(sqrt(1 + sec(x)) - sqrt(sec(x) - 1))` was declined. Both roots
1648+
and the secant are rational functions of `w = sqrt(sec(u) + 1) - sqrt(sec(u) - 1)`, and `dx` is
1649+
`-8 K w dw/(b (w^4 + 4))` for `u = a + b x` and `K = cot(u) sqrt(sec(u) + 1) sqrt(sec(u) - 1)`, which is 1 or -1. The
1650+
integral in `w` is taken from `sqrt(2)`, where `K` changes sign, so that the answer is continuous wherever the
1651+
integrand is real ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1652+
1653+
| Input | Was (2.5.0) | Now |
1654+
|---|---|---|
1655+
| `"sqrt(-sqrt(-1+sec(x))+sqrt(1+sec(x)))".ToEntity().Integrate("x")` | `integral(...)` | 2,635 characters |
1656+
1657+
### A half-odd power of a linear plus the root of a quadratic is integrated in Euler's substitution where their squares differ by a square
1658+
1659+
**Answers where there were none.** Bondarenko's `sqrt(1 + sqrt(x) + sqrt(1 + 2 x + 2 sqrt(x)))` and
1660+
`sqrt(sqrt(2) + sqrt(x) + sqrt(2 + 2 x + sqrt(8) sqrt(x)))` were declined. Under `x = t^2` each is a half-odd power of
1661+
`L + sqrt(Q)` with `Q - L^2 = c (t - r)^2`, and in `u = (sqrt(Q) - L)/(t - r)` both `t` and `sqrt(Q)` are rational and
1662+
`L + sqrt(Q)` is a constant over the quadratic `c - 2 b u - u^2`, `b` the slope of `L`: the integrand is rational
1663+
beside a root of a quadratic ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1664+
1665+
| Input | Was (2.5.0) | Now |
1666+
|---|---|---|
1667+
| `"sqrt(1+sqrt(x)+sqrt(1+2*x+2*sqrt(x)))".ToEntity().Integrate("x")` | `integral(...)` | 2,261 characters |
1668+
| `"sqrt(sqrt(2)+sqrt(x)+sqrt(2+2*x+sqrt(8)*sqrt(x)))".ToEntity().Integrate("x")` | `integral(...)` | 2,715 characters |
1669+
16031670
### A linear and a quadratic to one power are integrated as one binomial
16041671

16051672
**Answers where there were none.** `1/((1 + x)^(1/3) (1 - x + x^2)^(1/3))` was declined. A linear and a quadratic to

0 commit comments

Comments
 (0)