Skip to content

Commit 35d8674

Browse files
Rafael-SOWNetclaude
andcommitted
Integrate a power of x that is not whole beside binomials in a power of it, and thirteen more algebraic shapes
Fourteen shapes of Rubi's family 1 and the Welz suite, each listed with its rule and an example in the BREAKING-CHANGES entry: among them a half-odd power of x beside binomials in x^2, a rational function of a quadratic beside a half-odd power of it under t = Q'/sqrt(Q), two equal half-odd powers of linears beside a power of a quadratic as one power of their product, cube roots of two linears whose product is a quadratic, and a power below -1 of a cube root of a binomial divided out first. The scaling of the variable to numbers declines where two roots scale to one polynomial: it multiplied them into that polynomial, and the answer to 1/(sqrt(-2 - b x) sqrt(2 + b x)) had the wrong sign where 1 + b x/2 < 0, which the existing test's points reach and the chain's rows do not. And the rule under t = Q'/sqrt(Q) runs after the reduction over a power of the quadratic, which answers the third and fourth powers in a third of the characters (1,379 where this wrote 4,428); it answers the fifth, which that declines. Chain against master f7f2a7a: pocket of 988 rows, 921 -> 953 solved, 0 wrong; family 0 whole 1,805 -> 1,807 and family 1's sample 1,375 -> 1,376, the other samples unchanged; of the 34 rows that moved, alone, master solved 1 and this solves all 34; 6,453 rows compared for allocation, none grew past 1.3x. 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 2a98be4 commit 35d8674

18 files changed

Lines changed: 2214 additions & 73 deletions

‎BREAKING-CHANGES.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,55 @@ biquadratic that the rule above makes, and the terms in `1/(x^2 - r)^j` go by th
29232923
| `"sqrt(c + d*tan(x))/(a + b*tan(x))^2".ToEntity().Integrate("x")` | `integral(...)`; 40,540 characters on the unreleased master | 1,465 characters |
29242924
| `"(c + d*tan(x))^(3/2)/(a + b*tan(x))^3".ToEntity().Integrate("x")` | `integral(...)`; 71,293 characters on the unreleased master | 2,786 characters |
29252925

2926+
### A power of x that is not whole beside binomials in a power of it, and thirteen more algebraic shapes, are integrated
2927+
2928+
**Answers where there were none.** Rubi's algebraic integrands of these shapes were declined or ran out of time
2929+
([#233](https://github.com/asc-community/AngouriMath/issues/233)):
2930+
- `x^q R(x^n)`, `q` not whole and `R` over whole powers of two binomials in `x^n`, split into partial fractions in
2931+
`w = x^n` with `x^r` kept beside each term: `x^(9/2)/((a + b x^2)(c + d x^2)^2)` is `sqrt(x)` times
2932+
`w^2/((a + b w)(c + d w)^2)` written apart, three binomial differentials.
2933+
- `x^q P(x^n) (a + b x^n)^p`, and the same over a trinomial in `x^n`, for a whole `p ≤ -2`, by the reduction that
2934+
raises `p` to `-1`: `1/(x^(3/2) (a + c x^4)^2)`, `1/(x^(3/2) (a + b x^2 + c x^4)^2)`.
2935+
- `R(Q) Q^(k/2)` for a quadratic `Q`, under `t = Q'/sqrt(Q)`, where `Q = D/(4 c - t^2)` and `dx/sqrt(Q) = 2 dt/(4 c - t^2)`
2936+
with `D = 4 a c - b^2`, past the fourth power the reduction over a power of the quadratic answers:
2937+
`1/((d + b x + c x^2)^5 sqrt(a + b x + c x^2))`.
2938+
- A linear below the cube roots of two linears whose product is a quadratic, read as the cube root of the quadratic:
2939+
`1/((a + b x)(c + d x)^(1/3)(b c + a d + 2 b d x)^(1/3))`. Two equal half-odd powers of linears beside a power of a
2940+
quadratic, read as one power of their product: `1/((a + b x + c x^2)^2 sqrt(1 - d x) sqrt(1 + d x))`.
2941+
- A linear over a linear beside the reciprocal root of an even quartic, at the coefficients where the integral is an
2942+
inverse hyperbolic tangent or an arctangent of `N^2/(q sqrt(P))`:
2943+
`(1 + x - sqrt(3))/((1 + x + sqrt(3)) sqrt(-4 + x^4 + 4 sqrt(3) x^2))`.
2944+
- A rational function beside the reciprocal root of a palindromic quartic, in `u = x + 1/x`:
2945+
`(k f - k f x^2)/((a d + b d x + a d x^2) sqrt(a + b x + c x^2 + b x^3 + a x^4))`.
2946+
- `P(x) (a + b x)^m (c + d x)^n` with `m + n = -1`, by the reduction that leaves the two powers alone:
2947+
`(k + f x)^3/((a + b x)^(1/3)(c + d x)^(2/3))`.
2948+
- A rational function with symbols in it beside a half-odd power of a quadratic, split first over the factors below
2949+
the bar as written: `(a + b x + c x^2)^(3/2)/((d + k x)(f + g x)^2)`.
2950+
- A scaling of the variable that leaves numbers only, `x = (c/d) y`: `1/((c + d x)(2 c^3 + d^3 x^3)^(1/3))`.
2951+
- A power below `-1` of an odd root of a binomial in `x^n`, beside another binomial, divided by the root first:
2952+
`1/(x^9 (a + b x^3)^(4/3)(c + d x^3))`.
2953+
- A product under a nested root written out: `sqrt(x (a x + b sqrt(-a/b^2 + a^2 x^2/b^2)))/(x sqrt(-a/b^2 + a^2 x^2/b^2))`.
2954+
- A sum whose terms share a power of one polynomial that is not whole, written as that power times the rest:
2955+
`(1 - x^6)^(2/3) + (1 - x^6)^(2/3)/x^6` is `-(1 - x^6)^(5/3)/(5 x^5)` differentiated.
2956+
2957+
The depth of nested questions is sixteen where it was twelve. Twenty-three of 1.1.2.4's
2958+
`x^(k/2)/((a + b x^2)^j (c + d x^2)^l)`, which 2.5.0 declined and the unreleased master answered, change form:
2959+
`x^(7/2)/((a + b x^2)(c + d x^2)^2)` is 799 characters there and 1,246 here, and
2960+
`1/(x^(3/2) (a + b x^2)(c + d x^2)^2)` is 1,577 there and 1,367 here.
2961+
2962+
| Input | Was (2.5.0) | Now |
2963+
|---|---|---|
2964+
| `"x^(9/2)/((a + b*x^2)*(c + d*x^2)^2)".ToEntity().Integrate("x")` | `integral(...)` | 1,313 characters |
2965+
| `"1/(x^(3/2)*(a + c*x^4)^2)".ToEntity().Integrate("x")` | `integral(...)` | 1,237 characters |
2966+
| `"1/((d + b*x + c*x^2)^5*sqrt(a + b*x + c*x^2))".ToEntity().Integrate("x")` | `integral(...)` | 10,616 characters |
2967+
| `"1/((a + b*x)*(c + d*x)^(1/3)*(b*c + a*d + 2*b*d*x)^(1/3))".ToEntity().Integrate("x")` | `integral(...)` | 1,120 characters |
2968+
| `"(1 + x - sqrt(3))/((1 + x + sqrt(3))*sqrt(-4 + x^4 + 4*x^2*sqrt(3)))".ToEntity().Integrate("x")` | `integral(...)` | 241 characters |
2969+
| `"(k*f - k*f*x^2)/((a*d + b*d*x + a*d*x^2)*sqrt(a + b*x + c*x^2 + b*x^3 + a*x^4))".ToEntity().Integrate("x")` | `integral(...)` | 1,460 characters |
2970+
| `"(k + f*x)^3/((a + b*x)^(1/3)*(c + d*x)^(2/3))".ToEntity().Integrate("x")` | `integral(...)` | 1,413 characters |
2971+
| `"1/((c + d*x)*(2*c^3 + d^3*x^3)^(1/3))".ToEntity().Integrate("x")` | `integral(...)` | 754 characters |
2972+
| `"1/(x^9*(a + b*x^3)^(4/3)*(c + d*x^3))".ToEntity().Integrate("x")` | `integral(...)` | 3,205 characters |
2973+
| `"x^(7/2)/((a+b*x^2)*(c+d*x^2)^2)".ToEntity().Integrate("x")` | `integral(...)` | 1,246 characters, where the unreleased master gives 799 |
2974+
29262975
### A quotient in `x^2` over a power of `x` and a biquadratic is split in `x^2`
29272976

29282977
**Shorter answers, sooner.** `cot(x)^(13/2) (a + b tan(x))^(5/2) (A + B tan(x))` was declined in 2.5.0

0 commit comments

Comments
 (0)