@@ -532,6 +532,27 @@ written in powers of `u = a + b f`, with coefficients `c_j = sum_i p_i C(i, j) (
532532| `"(a+b*sin(e+f*x))^2*(A+B*sin(e+f*x))/(c+d*sin(e+f*x))^2".ToEntity().Integrate("x")` | `integral(...)` | 3,337 characters |
533533| `"cos(c+d*x)^4*(A+C*cos(c+d*x)^2)/(a+b*cos(c+d*x))^4".ToEntity().Integrate("x")` | `integral(...)` | 10,859 characters |
534534
535+ ### An even power of a cosine over a power of `a + b sin` is reduced in the power of the binomial
536+
537+ **Answers where there were none.** `cos(c + d x)^8/(a + b sin(c + d x))^8` ran out of time, and so did
538+ `cos^6`, `sec^2` and `sec^4` over the same eighth power and `sec^4/(a + b sin)^3`, Rubi's 4.1.1.2: with symbols for `a`
539+ and `b` the half-angle's partial fractions did not finish. With `u = a + b sin(y)`, `b^2 cos(y)^2 = (b^2 - a^2) + 2 a u - u^2`
540+ lowers a power of the cosine above the bar, and read for `a^2 - b^2` it lowers one below it; what is left is the integral
541+ `I_n` of `1/u^n`, and `(n - 1)(a^2 - b^2) I_n = b cos(y) u^(1 - n) + (2 n - 3) a I_(n - 1) - (n - 2) I_(n - 2)` takes it
542+ down to `I_1`. A sine over a binomial in the cosine is the same with `-b sin(y)`. The coefficients are summed exactly, so
543+ the answer holds `I_1` once. For `a^2 != b^2`, the generic case, as Rubi answers it: `a + a sin` declines. `1/(a + b sin)^n`
544+ and a polynomial in the sine over it are answered this way too, more shortly than by the half-angle
545+ ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
546+
547+ | Input | Was (2.5.0) | Now |
548+ |---|---|---|
549+ | `"cos(c+d*x)^8/(a+b*sin(c+d*x))^8".ToEntity().Integrate("x")` | `integral(...)` | 4,788 characters |
550+ | `"sec(c+d*x)^4/(a+b*sin(c+d*x))^8".ToEntity().Integrate("x")` | `integral(...)` | 6,910 characters |
551+ | `"sec(c+d*x)^4/(a+b*sin(c+d*x))^3".ToEntity().Integrate("x")` | `integral(...)` | 3,030 characters |
552+ | `"cos(c+d*x)^4/(a+b*sin(c+d*x))^8".ToEntity().Integrate("x")` | `integral(...)` | 4,092 characters |
553+ | `"sin(x)^4/(a+b*cos(x))".ToEntity().Integrate("x")` | `integral(...)` | 1,309 characters |
554+ | `"1/(a+b*cos(c+d*x))^4".ToEntity().Integrate("x")` | `integral(...)` | 1,851 characters |
555+
535556### A difference of a negated term is printed as a sum
536557
537558**A printed form.** A solution and a difference were printed with the sign of a negative factor left inside:
@@ -658,6 +679,18 @@ Only where the product `T B` is in the integrand; without it the rules after thi
658679| `"x^5*(a+b*acoth(c*x))*(d+k*ln(1-c^2*x^2))".ToEntity().Integrate("x")` | `integral(...)` | 717 characters |
659680| `"(a+b*acoth(c*x))*(d+k*ln(1-c^2*x^2))".ToEntity().Integrate("x")` | `integral(...)` | 354 characters |
660681
682+ ### An odd power of a tangent beside a root of `a + b sin^2` is integrated under `v = sin^2`
683+
684+ **Answers where there were none.** `tan(e + f x)^5/(a + b sin(e + f x)^2)^(5/2)`, Rubi's 4.1.7, ran out of time: the
685+ substitution in the secant wrote the root as a power of `a + b - b/u^2` and spent eight seconds writing it apart. With
686+ `v = sin(y)^2`, `tan(y)^(2 k + 1) dy = v^k/(1 - v)^(k + 1) dv/2`, and in `v` the root is of a linear. Only where a root of a
687+ sum with a constant in it holds the sine's square ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
688+
689+ | Input | Was (2.5.0) | Now |
690+ |---|---|---|
691+ | `"tan(k+f*x)^5/(a+b*sin(k+f*x)^2)^(5/2)".ToEntity().Integrate("x")` | `integral(...)` | 4,109 characters |
692+ | `"tan(k+f*x)^5/sqrt(a-a*sin(k+f*x)^2)".ToEntity().Integrate("x")` | `integral(...)` | 190 characters |
693+
661694### A power of x times an inverse tangent and the logarithm of its quadratic is integrated by parts
662695
663696**Answers where there were none.** `x^4 (a + b atan(c x)) (d + e ln(1 + c^2 x^2))` ran out of time, and so did three more
@@ -834,6 +867,17 @@ over a power of a linear. That is answered with `Si` and `Ci`
834867| `"cos(c+d*x)^3/((pe+f*x)*(a+a*sin(c+d*x)))".ToEntity().Integrate("x")` | `integral(...)` | 246 characters |
835868| `"cos(c+d*x)^3/((pe+f*x)^2*(a+a*sin(c+d*x)))".ToEntity().Integrate("x")` | `integral(...)` | 790 characters |
836869
870+ ### From the twelfth power, a power of a tangent over a power of `a + a sec` is cancelled
871+
872+ **Answers where there were none.** `tan(c + d x)^12/(a + a sec(c + d x))^3`, Rubi's 4.5.1.4, ran out of time. `tan^2` is
873+ `(sec - 1)(sec + 1)`, so `tan(y)^m/(k (1 + sec(y)))^n` is `tan(y)^(m - 2 n) (sec(y) - 1)^n/k^n`, and over `k (1 - sec(y))`
874+ the same with `sec(y) + 1` over `(-k)^n`. From the twelfth power only, where the rules after it stop answering in time:
875+ below it they answer more shortly ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
876+
877+ | Input | Was (2.5.0) | Now |
878+ |---|---|---|
879+ | `"tan(c+d*x)^12/(a+a*sec(c+d*x))^3".ToEntity().Integrate("x")` | `integral(...)` | 1,140 characters |
880+
837881### Every linear beside a block is split off, a quadratic with rational roots among them
838882
839883**Answers where there were none.** `sec(c + d x)/(a + b sin(c + d x)^3)` was declined, and so were
@@ -1006,6 +1050,20 @@ split. It is written `b (s + r)(s^2 - r s + r^2)` now, with `r = (a/b)^(1/3)`, w
10061050| `"sec(c + d*x)^2/(a + b*sin(c + d*x)^3)".ToEntity().Integrate("x")` | `integral(...)` | 7,010 characters |
10071051| `"sec(c + d*x)^4/(a + b*sin(c + d*x)^3)".ToEntity().Integrate("x")` | `integral(...)` | 11,646 characters |
10081052
1053+ ### A root of `1 - cos` beside another root is integrated under the cosine
1054+
1055+ **Answers where there were none.** `sqrt(1 - cos(x))/sqrt(a - cos(x))`, Rubi's 4.2.2.1, was declined and
1056+ `sqrt((1 - cos(x))/(a - cos(x)))` ran out of time: the half angle at which `1 - cos` is a square reads only roots of
1057+ that kind. With `g` the other function, `sqrt(k (1 + s f)/D)` is `K g/(sqrt(D) sqrt(1 - s f))` where `K` has the square
1058+ `k` and so is constant between the zeros of `g`, and under `u = f(y)` what is left is
1059+ `1/(sqrt(1 + u) sqrt(a - u))`. For a number `k` and another root with a symbol in it only: the rules after it answer
1060+ the rest, and more shortly ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1061+
1062+ | Input | Was (2.5.0) | Now |
1063+ |---|---|---|
1064+ | `"sqrt(1-cos(x))/sqrt(a-cos(x))".ToEntity().Integrate("x")` | `integral(...)` | 98 characters |
1065+ | `"sqrt((1-cos(x))/(a-cos(x)))".ToEntity().Integrate("x")` | `integral(...)` | 138 characters |
1066+
10091067### A linear factor common to a sum below the bar is taken out of it
10101068
10111069**Answers where there were none.** `1/(a x + b x/log(c x^n))` was left unevaluated. With x taken out of the sum below the
@@ -1424,6 +1482,18 @@ integral of the function ([#718](https://github.com/asc-community/AngouriMath/is
14241482| `"atan(k*x/sqrt(-a*k^2/b-k^2*x^2))^m/sqrt(a+b*x^2)".ToEntity().Integrate("x")` | `integral(...)` | 320 characters |
14251483| `"1/(atan(k*x/sqrt(-a*k^2/b-k^2*x^2))^3*sqrt(a+b*x^2))".ToEntity().Integrate("x")` | `integral(...)` | 314 characters |
14261484
1485+ ### Roots that are a constant times a power of x are taken out as that constant
1486+
1487+ **Answers where there were none.** `sin(x) sqrt(b - a/x^2)/sqrt(a - b x^2)`, Rubi's 4.7.7, was declined. The roots are
1488+ `K/x` with `K = x sqrt(b - a/x^2)/sqrt(a - b x^2)`, whose square is `-1`: constant between the zeros of the roots, where
1489+ it changes sign. With `r` the degree of the roots both at infinity and at zero, `K = A/x^r` is taken as constant where its
1490+ derivative is zero at sampled points, and the integral is `K` times that of `x^r` times the rest, here `K Si(x)`. Last
1491+ but two, where everything reading the roots as written has declined ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1492+
1493+ | Input | Was (2.5.0) | Now |
1494+ |---|---|---|
1495+ | `"sin(x)*sqrt(b-a/x^2)/sqrt(a-b*x^2)".ToEntity().Integrate("x")` | `integral(...)` | 107 characters |
1496+
14271497### Half an odd power of an inverse hyperbolic cosine of `c + d x^2` is integrated in error functions
14281498
14291499**Answers where there were none.** `(a + b acosh(1 + d x^2))^(1/2)` was declined, and so were thirteen more of Rubi's
@@ -1504,6 +1574,21 @@ answer these integrands; the split now ends at the first term declined. More slo
15041574| `"1/(a*coth(x)+b*csch(x))^2".ToEntity().Integrate("x")` | `integral(...)` | 1,831 characters |
15051575| `"1/(1-cosh(x)^8)".ToEntity().Integrate("x")` | `integral(...)` | 1,232 characters |
15061576
1577+ ### A power of a secant over a power of `a cos + b sin` is written in powers of `a + b tan`
1578+
1579+ **Answers where there were none.** `sec(c + d x)^4/(a cos(c + d x) + b sin(c + d x))^3` and `sec^3/(a cos + b sin)^4`, Rubi's
1580+ 4.7.2, ran out of time. Where the two powers together are even the quotient is a rational function of the tangent beside
1581+ `sec^2`; odd, it went to the half-angle. It is `sec(y) (1 + tan(y)^2)^k/(a + b tan(y))^n` with `2 k + 1 = m + n`, and in
1582+ powers of `w = a + b tan(y)` a term below the bar, `sec(y)/w^i`, is `cos(y)^(i - 1)/(a cos(y) + b sin(y))^i`, and one above
1583+ it a polynomial in the tangent beside the secant. From `m + n = 7`: below it the half-angle answers in time
1584+ ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1585+
1586+ | Input | Was (2.5.0) | Now |
1587+ |---|---|---|
1588+ | `"sec(c+d*x)^4/(a*cos(c+d*x)+b*sin(c+d*x))^3".ToEntity().Integrate("x")` | `integral(...)` | 2,175 characters |
1589+ | `"sec(c+d*x)^3/(a*cos(c+d*x)+b*sin(c+d*x))^4".ToEntity().Integrate("x")` | `integral(...)` | 3,401 characters |
1590+ | `"sec(c+d*x)^6/(a*cos(c+d*x)+b*sin(c+d*x))".ToEntity().Integrate("x")` | `integral(...)` | 1,151 characters |
1591+
15071592### A whole power of an inverse function of `c + d x^2` is integrated by its recurrence
15081593
15091594**Answers where there were none.** `(a + b acos(1 + d x^2))^4` was declined, and so were twenty-five more of Rubi's
@@ -1629,6 +1714,18 @@ twice ([#1877](https://github.com/asc-community/AngouriMath/issues/1877),
16291714| `"sin(a + b*x)/((d*e - c*f)*x^3 + f)".ToEntity().Integrate("x")` | `integral(...)` | 1,416 characters |
16301715| `"sin(x)/(a*x^2 + 2*a*x + a)".ToEntity().Integrate("x")` | `integral(...)` | 246 characters |
16311716
1717+ ### An odd power of a sine over a power of `a + b tan^2` is integrated under the cosine with `a - b` named
1718+
1719+ **Answers where there were none.** `sin(e + f x)^3/(a + b tan(e + f x)^2)^3`, Rubi's 4.3.7, ran out of time in the
1720+ substitution search before Bioche's substitution was reached, and `sin^5` over the same cube took fifteen seconds. Under
1721+ `u = cos(y)`, `a + b tan(y)^2 = ((a - b) u^2 + b)/u^2`, and the rational function in `u` is asked with `a - b` named by
1722+ a symbol of its own: written in, it took seven seconds, named a tenth of one ([#233](https://github.com/asc-community/AngouriMath/issues/233)).
1723+
1724+ | Input | Was (2.5.0) | Now |
1725+ |---|---|---|
1726+ | `"sin(k+f*x)^3/(a+b*tan(k+f*x)^2)^3".ToEntity().Integrate("x")` | `integral(...)` | 2,667 characters |
1727+ | `"sin(k+f*x)^5/(a+b*tan(k+f*x)^2)^3".ToEntity().Integrate("x")` | `integral(...)` | 6,183 characters |
1728+
16321729### A trigonometric function of `a + b/x` beside a rational function is integrated in `1/x`
16331730
16341731**Answers where there were none.** `sin(c + d/x)/(e + f x)` was declined: the substitution search reads a candidate's
@@ -3842,7 +3939,7 @@ of the six functions read inside a power as it is
38423939| `"(c*sin(a+b*x)^n)^(1/n)".ToEntity().Integrate("x")` | `integral(...)` | 77 characters |
38433940| `"sin(c+d*x)^6/(a+b*sin(c+d*x)^2)^2".ToEntity().Integrate("x")` | `integral(...)` | 2,169 characters |
38443941| `"cot(c+d*x)^2/(a+b*sec(c+d*x)^2)^2".ToEntity().Integrate("x")` | `integral(...)` | 1,963 characters |
3845- | `"sqrt(1-cos(x))/sqrt(a-cos(x))".ToEntity().Integrate("x")` | `integral(...)` | 70 characters |
3942+ | `"sqrt(1-cos(x))/sqrt(a-cos(x))".ToEntity().Integrate("x")` | `integral(...)` | 98 characters |
38463943
38473944### A product of powers of the trigonometric functions, some not whole, is integrated as sine and cosine powers
38483945
0 commit comments