Skip to content

Commit 3fba4e5

Browse files
A power of x beside a symbolic block, and blocks in one power of x, are split off (#1700)
* A power of x beside a symbolic block of the third degree or more is split off N/(x^k B), where the block B has a symbol in it and a constant term that is not zero, is split at the power of x: the first k terms of the power series of N/B at 0 are the part over x^k, and the rest is a polynomial over B exactly, which the rules for a binomial and the rest read. The split over written factors took linear and quadratic blocks only, so 1/(x (x^3 + c)) was declined where 1/(x (x^3 + 2)) was answered. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * Symbolic blocks in one power of x are split in that power Blocks that are each a polynomial in one power x^n, n >= 3, linear or quadratic in it, with a symbol among them, are split in u = x^n by the split over written factors, one residue of the numerator's powers modulo n at a time, and each fraction back in x is over one block, which the rule for a binomial reads. 1/((a + b x^3)(c + d x^3)) was declined: over the rationals it does not factor, and a block of the third degree is nothing the split over written factors reads. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * A quotient with x below a bar inside it is written over one bar Every rule the partial fractions try reads the numerator and the denominator as polynomials, and `a + b/x` is not one, so 1/(a + b/x) was declined where x/(a x + b) was answered, and so was the numeric 1/(2 + 3/x^2)^3. Such a quotient is written over one bar first. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * A product of sums in a symbolic power of x is written out (a + b x^n)(c + d x^n)^3 had no antiderivative, and written out it is eight powers of x, each answered at once: no rule reads a power of x whose exponent is a symbol as a polynomial, and the rule that writes out a power takes one power and not a product of them. A product whose factors with x in them are sums, positive whole powers of sums and powers of x is written out now, as late as that rule and for the same reason. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The one bar takes out the power of x it put in Writing 1/((a + c/x^2 + b/x) x (d + e x)^2) over one bar clears its bars with a power of x, and leaves x^3/(x^2 Q L^2): the rules after it read the two sides as coprime, and answered that wrongly. The greatest power of x dividing both is taken out of each, the denominator's factors kept as written. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * One symbolic block quadratic in a power of x is split at its roots a + b x^n + c x^(2n), n >= 3, with a symbol in it, is c (u - r_1)(u - r_2) in u = x^n, and the split in u takes the two factors as it takes two blocks, each then a binomial in x: 1/(a + b x^3 + c x^6) and (1 + x^4)/(1 + b x^4 + x^8) were declined, where a + b x^2 + c x^4 was answered that way already. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * Two symbolic blocks or more in x^2 are split in it too The split over written factors reads a block of x^2 only while it is quadratic in x, so 1/(x^4 (d + e x^2)(a + c x^4)) was declined. The split in u = x^n takes n = 2 as well where there are two blocks or more; one quadratic in x^2 alone stays the biquadratic rule's. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The breaking-changes entry for the rational functions in x^n, written as one list Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * One block in a power of x is split at its roots last The roots of a + b u + c u^2 are complex where b^2 < 4ac, and every fraction after the split is over a binomial x^n - r with one in it. A rule after the split that branches on the sign of r has no branch for a complex one: (d + e x^4)/(x^3 (a + b x^4 + c x^8)) came to x/(x^4 - r), and the table's piecewise on the sign of r had no value at any point, where the substitution v = x^2 answers the block whole. The split of one block is now its own rule, after every other, so that whatever answers the block whole answers first. The examples it was for are still answered, at either sign of the discriminant. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The splits in a power of x answer only what they were written for Each of these splits integrates its parts again, so where it fires on a shape it was not written for, the whole question is asked a level down, and inside a search that is paid for every candidate. - A power of x beside a block is split off only where the quotient is in lowest terms in x, a factor of the block is past the second degree, and the question is the one asked or one substitution below it. - Only a quotient of polynomials is written over one bar. - A block that x divides is left to the content, where its roots would include a zero not recognised as one. - A product of sums is written out only for the question asked, and only where each sum is of powers of x. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The two blocks at the roots are a list initialiser, not a collection expression A collection expression for a List is lowered through CollectionsMarshal, which is in System.Runtime.InteropServices, an assembly the kernel does not reference. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The coefficients are read off their pairs, which netstandard2.0 does not deconstruct 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 504a557 commit 3fba4e5

4 files changed

Lines changed: 534 additions & 0 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,38 @@ rules' already
196196
| `"asin(sqrt(1 + x) - sqrt(x))".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in `arcsin(sqrt(1 + x) - sqrt(x))` |
197197
| `"x^3*atan(-sqrt(x)+sqrt(1+x))".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in the arctangent |
198198

199+
### Rational functions of `x` and `x^n` with symbols in them are taken apart
200+
201+
**Answers where there were none.** The partial fractions took apart a denominator with symbols in it
202+
only where its factors were linear or quadratic, so `1/(x (x^3 + c))` was declined where
203+
`1/(x (x^3 + 2))` was answered. Now:
204+
- a power of `x` beside a block `B` whose constant term is not zero is split off: the first `k`
205+
terms of the power series of `N/B` at 0 are the part over `x^k`, and the rest is a polynomial
206+
over `B` exactly;
207+
- blocks that are each a polynomial in one power `x^n` are split in `u = x^n`, where they are linear
208+
or quadratic, for `n >= 3`, or `n = 2` with two blocks or more; one block quadratic in `u` is two
209+
at its roots, as `a + b x^2 + c x^4` already was;
210+
- a quotient with `x` below a bar inside it, `1/(a + b/x)`, is written over one bar first, and the
211+
power of `x` that cleared the bars is taken out of both sides again;
212+
- a product of sums in `x^n` with a symbol for `n` is written out, as a power of one already was.
213+
214+
Rubi's `x^m (a + b x^n)^p` and `(a + b x^n)^p (c + d x^n)^q`
215+
([#718](https://github.com/asc-community/AngouriMath/issues/718)).
216+
217+
| Input | Was (2.5.0) | Now |
218+
|---|---|---|
219+
| `"1/(x*(x^3 + c))".Integrate("x")` | left unevaluated | `ln(x)/c - ln(c x^3 + c^2)/(3 c)` |
220+
| `"1/(x^4*(a + b*x^3))".Integrate("x")` | left unevaluated | `-1/(3 a x^3) - b ln(x)/a^2 + b ln(a^2 b x^3 + a^3)/(3 a^2)` |
221+
| `"1/(x*(a + b*x^5))".Integrate("x")` | left unevaluated | `ln(x)/a - ln(a b x^5 + a^2)/(5 a)` |
222+
| `"1/(x^2*(x^3 + c))".Integrate("x")`, and `(c + d x + e x^2)/(x^2 (a + b x^3))` | left unevaluated | a logarithm and an arctangent in `c^(1/3)`, beside `-1/(c x)` |
223+
| `"1/((a+b*x^3)*(c+d*x^3))".Integrate("x")`, and `x/((a + b x^3)(c + d x^3))` | left unevaluated | logarithms and arctangents in `(-a/b)^(1/3)` and `(-c/d)^(1/3)`, over `a d - b c` |
224+
| `"1/((a+b*x^4)*(c+d*x^4))".Integrate("x")` | left unevaluated | arctangents and logarithms of each binomial's roots, over `a d - b c` |
225+
| `"1/(a+b*x^3+c*x^6)".Integrate("x")`, `(1 + x^4)/(1 + b x^4 + x^8)` | left unevaluated | the same, at the two roots of the quadratic in `x^n`, over `sqrt(b^2 - 4 a c)` |
226+
| `"1/(x^4*(d+e*x^2)*(a+c*x^4))".Integrate("x")` | left unevaluated | powers of `x`, an arctangent over `d + e x^2`, and the biquadratic's arctangents |
227+
| `"1/(a+b/x)".Integrate("x")` | left unevaluated | `x/a - b ln(a x + b)/a^2` |
228+
| `"1/(2+3/x^2)^3".Integrate("x")`, `1/(a + b/x^3)` | left unevaluated | an antiderivative |
229+
| `"(a+b*x^n)*(c+d*x^n)^3".Integrate("x")` | left unevaluated | written out, eight powers of `x` integrated: `a c^3 x + ... + b d^3 x^(4 n + 1)/(4 n + 1)` |
230+
199231
### The hyperbolic functions have antiderivatives, and so does anything rational in `e^(k x)`
200232

201233
An integrand rational in `e^(k x)` becomes a rational function of one variable under

0 commit comments

Comments
 (0)