Skip to content

Commit c2013cf

Browse files
A linear over a quadratic beside the root of another, in closed form (#1583)
(g + h x)/(A sqrt(B)) with two different quadratics was declined wherever a coefficient was a symbol: the rational function beside a root was taken apart over linears only, and Euler's substitution leaves a quartic in a field the rational integrator does not stay in. For L = lambda + mu x, u = L/sqrt(B) turns N/(A sqrt(B)) into 2 rho/(alpha + beta u^2) where alpha B + beta L^2 = rho A, and that holds for the two roots of E lambda^2 - 2 P lambda mu + F mu^2 = 0, P = A2 B0 - A0 B2, E = A2 B1 - A1 B2, F = A1 B0 - A0 B1. Their two numerators span every linear, so the answer is two arctangents of a linear over the root with sqrt(P^2 - E F) in their coefficients, Rubi's q for 1.2.1.6, and a hyperbolic arctangent where the ratio under a piece's root is a negative number. The rational function beside the root is taken apart over a quadratic, a power of a linear and a power of the radicand as well, and each piece is closed: over a power of a linear by its reciprocal, over a power of the radicand as one half-odd power. Powers of linears only beside a quadratic: over squared linears alone the reciprocal writes a sign of each, sgn(sqrt(1 + x) - 1) under u = sqrt(1 + x), whose derivative is not read, and Euler's substitution answers those without one. Measured with work/intbench against a8a2b7e, 3 s a problem: Rubi's 1.2.1.6, 4.3.9 and 4.4.9 in full, 66 -> 201 of 217 solved, none lost and none wrong, every gain made by this alone; and 12 more gained over the families sample (912 problems) and family 0 (1814), none lost. Part of #718. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 75ed5cc commit c2013cf

5 files changed

Lines changed: 418 additions & 13 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,27 @@ poles of `tan(x/2)`, as every half-angle answer.
329329
| `"csc(x)^2/(a+b*sin(x)+c*sin(x)^2)".Integrate("x")`, `"sec(x)^2/…"` | unevaluated | `-cot(x)/a + …`, the blocks over `sin^2` and `1 - sin^2` beside the two roots |
330330
| `"1/(a+b*cos(x)+c*cos(x)^2)".Integrate("x")` | unevaluated | the cosine form |
331331

332+
### A linear over a quadratic beside the root of another quadratic is integrated
333+
334+
`(g + h x)/(A sqrt(B))`, `A` and `B` two different quadratics, was left unevaluated wherever a
335+
coefficient was a symbol, and so was what the tangent substitution makes of Rubi's
336+
`trig^m (a + b tan + c tan^2)^(p/2)`: `1/sqrt(a + b tan(x) + c tan(x)^2)` is
337+
`1/((1 + t^2) sqrt(a + b t + c t^2))`. It is closed now, as two arctangents of a linear over
338+
`sqrt(B)` whose coefficients hold `sqrt(P^2 - E F)`, `P = A2 B0 - A0 B2`, `E = A2 B1 - A1 B2` and
339+
`F = A1 B0 - A0 B1` -- the root Rubi's 1.2.1.6 calls `q`; where the ratio under a piece's root is a
340+
negative number the piece is written as the hyperbolic arctangent it is. A rational function
341+
beside the root with such a quadratic, a power of a linear or a power of `B` below the bar is
342+
taken apart into pieces each closed the same way
343+
([#718](https://github.com/asc-community/AngouriMath/issues/718)).
344+
345+
| Input | Was (2.5.0) | Now |
346+
|---|---|---|
347+
| `"1/sqrt(a + b*tan(x) + c*tan(x)^2)".ToEntity().Integrate("x")` | `integral(...)` | two arctangents of a linear in `tan(x)` over the root |
348+
| `"(g + h*x)/((d + k*x + f*x^2)*sqrt(a + b*x + c*x^2))".ToEntity().Integrate("x")` | `integral(...)` | two arctangents of a linear over the root |
349+
| `"cot(x)^3/(a + b*tan(x) + c*tan(x)^2)^(3/2)".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative |
350+
| `"(2 + x)/((2 + 4*x - 3*x^2)*(1 + 3*x + 2*x^2)^(3/2))".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative |
351+
| `"1/((x^2 + 1)*sqrt(x^2 + x + 1))".ToEntity().Integrate("x")` | `integral(...)` | a logarithm and an arctangent |
352+
332353
### A function comes out of a fractional power of its even power with its sign
333354

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

0 commit comments

Comments
 (0)