Skip to content

Commit 148f300

Browse files
A polynomial over a power of a linear beside the root of a quadratic is integrated by undetermined coefficients (#1701)
* A polynomial over a power of a linear beside the root of a quadratic is integrated by undetermined coefficients Rubi's 1.2.1.9, P(x) Q^(m/2)/(g + h x)^k, was declined or ran past the corpus's budget wherever the linear was below the bar to a power past the first, and with symbols in it even to the first: the rules for one root of a quadratic take apart a product of distinct linears beside it, and their closed rule for a constant over a linear declined 1/((g + h x) sqrt(a + c x^2)). The rule for the roots of two linears uses nothing of the two but S' = Q'/(2 S): a triangular system for the polynomial part, and a recurrence down the powers of the linear to the integral of 1/((g + h x) S). That core is shared now, and the root of one quadratic is read into it as well. The two integrals left are a logarithm or an arcsine of the quadratic's derivative, by the sign of its leading coefficient, as the root of a quadratic alone is answered; and an artanh or an arctan of (2 q0 h - q1 g + (q1 h - 2 q2 g) x)/(2 sqrt(+-H) S), by the sign of H = h^2 Q(-g/h). Where the sign is a symbol's, both are given, each where it holds. It answers only with the linear below the bar, and a first power of it only with a symbol in it: what the rules further down answer keeps their answers. The answers of the rule for two linear roots are the same as before. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * Beside a linear that shares a root with the quadratic, every power of it is algebraic Where Q vanishes at the linear's root, Q = beta s + gamma s^2 with s = x - xi, and the derivative of sqrt(Q) s^(-j) is ((1 - 2j) beta s^(-j) + (2 - 2j) gamma s^(1-j))/(2 sqrt(Q)): from int 1/(s sqrt(Q)) = -2 sqrt(Q)/(beta s) up, each power is algebraic, and there is no third integral. Rubi writes these as (a d e + (c d^2 + a e^2) x + c d e x^2)^p over powers of d + e x, and sqrt(d^2 - e^2 x^2) over powers of d + e x, which ran past the budget. And a number times even powers of symbols has the number's sign wherever the symbols are real: the root of d^2 - e^2 x^2 has the arcsine alone, since -e^2 is negative. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The logarithm over the linear's root is the real one on either side of the discriminant int 1/((g + h x) sqrt(Q)) is -artanh(z)/sqrt(H) where H, h^2 Q at the linear's root, is positive, with z = Z/(2 sqrt(H) sqrt(Q)). Since Z^2 - 4 H Q = (q1^2 - 4 q0 q2) (g + h x)^2, z is less than 1 in size wherever Q has no real root, and the logarithm of (1 + z)/(1 - z) is real, and more than 1 wherever it has two, where the logarithm of (z + 1)/(z - 1) is: the antiderivative of sqrt(4 - x^2)/x^3 is real on the whole of (-2, 2). With symbols, both are given, each where it holds, in one piecewise with the arctangent. 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 a polynomial beside the root of a quadratic 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 3fba4e5 commit 148f300

4 files changed

Lines changed: 610 additions & 164 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,27 @@ arctangent it is ([#718](https://github.com/asc-community/AngouriMath/issues/718
589589
| `"(A + B*x + C*x^2)*sqrt(c + d*x)/((a + b*x)^3*sqrt(e + f*x))".ToEntity().Integrate("x")` | `integral(...)` | the roots over powers of `a + b x`, a logarithm, and an arctangent |
590590
| `"x^2*sqrt(a + 2*x)*sqrt(c - 3*x)".ToEntity().Integrate("x")` | `integral(...)` | a cubic times the two roots, and an arctangent of `sqrt(6)/2 sqrt(a + 2 x)/sqrt(c - 3 x)` |
591591

592+
### A polynomial over a power of a linear beside the root of a quadratic is integrated
593+
594+
`P(x) Q^(m/2)/(g + h x)^k`, a polynomial over a power of a linear beside a half-odd power of a
595+
quadratic `Q`, was left unevaluated wherever the linear was below the bar to a power past the
596+
first, and with a symbol in the linear or in `Q` even to the first. These are Rubi's 1.2.1.9, and
597+
with a constant or linear `P`, 1.2.1.2 to 1.2.1.4. They are now integrated by undetermined
598+
coefficients, as the roots of two linears are. The answer is a rational function times `sqrt(Q)`,
599+
a logarithm or an arcsine by the sign of the leading coefficient of `Q`, and a logarithm or an
600+
arctangent by the sign of `Q` at the linear's root. Where the linear shares a root with `Q`, there
601+
is no third term. Below the root's first power, `m < -1`, and without the linear, the answers are
602+
as they were ([#718](https://github.com/asc-community/AngouriMath/issues/718)).
603+
604+
| Input | Was (2.5.0) | Now |
605+
|---|---|---|
606+
| `"1/((g + h*x)*sqrt(a + c*x^2))".ToEntity().Integrate("x")` | `integral(...)` | a logarithm in `(a h - c g x)/(sqrt(a h^2 + c g^2) sqrt(a + c x^2))` where `a h^2 + c g^2 > 0`, and an arctangent where it is negative |
607+
| `"(d + k*x + f*x^2)*sqrt(a + c*x^2)/(g + h*x)^4".ToEntity().Integrate("x")` | `integral(...)` | powers of `1/(g + h x)` times `sqrt(a + c x^2)`, a logarithm or an arcsine, and the same as above |
608+
| `"(2 + x + 3*x^2 - x^3 + 5*x^4)*sqrt(3 - x + 2*x^2)/(5 + 2*x)^5".ToEntity().Integrate("x")` | `integral(...)` | powers of `1/(5 + 2 x)` times the root, and two logarithms |
609+
| `"(A + B*x + F*x^2)*sqrt(d^2 - m^2*x^2)/(d + m*x)^2".ToEntity().Integrate("x")` | `integral(...)` | a rational function times the root, and an arcsine |
610+
| `"sqrt(1 - x^2)/(1 + x)^2".ToEntity().Integrate("x")` | `integral(...)` | `-2 sqrt(1 - x^2)/(1 + x) + arcsin(-x)` |
611+
| `"sqrt(x^2 + 1)/x^2".ToEntity().Integrate("x")` | `integral(...)` | `-sqrt(x^2 + 1)/x + ln(2 sqrt(x^2 + 1) + 2 x)` |
612+
592613
### A function comes out of a fractional power of its even power with its sign
593614

594615
**Improvement, not silent.** The entry two above made `(sin(x)^2)^(3/2)` the modulus `|sin(x)|^3`

0 commit comments

Comments
 (0)