You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 01a944f
Browse filesBrowse the repository at this point in the historyBrowse files
Powers of asech(a x) and acsch(a x) beside a power of x are integrated, by rounds of parts (#1460)
x^3 asech(a x)^2 was left as written. One step of parts leaves
x^2 asech(a x)/sqrt(1/(a x)^2 - 1), and five things stood between that and
the next step, each traced and fixed in its place:
- The regrouping of parts around the differentiated factor is offered up to
two levels below the question asked where everything beside the factor is
algebraic with a root in it: the other factor integrates to an algebraic
expression or declines at once, and the remainder is algebraic. With a root
only, since beside a rational function the rule for a rational function
times a logarithm answers, and parts there sent (a + b atanh(c x^2))^2/x^5
into a search that did not return.
- SolveByWritingAPowerOfAQuotientApart runs at any depth where every root
stands over a monomial with a polynomial above it -- sqrt(1/(a x)^2 - 1) as
the derivative of asech writes it -- and answers with sgn(x)^m in front
rather than by parity, where the answer in |x| was a remainder no rule read
when handed on. The sign goes in front only where every power of |x| taken
came from a root that is a factor of the integrand.
- SolveByTakingASignOut: the sign of a real-valued factor is constant between
its zeros and goes in front of the antiderivative of the rest; after every
rule that reads the sign where it stands, so cos(x) sgn(sin(x)) is still
|sin(x)|.
- A radicand written in two orders is one spelling where it stands in two
places that differ in the sign of the power or the side of the bar.
- A whole power of a fractional power is normalised to the power it is:
((c^2 x^2 + 1)^(-1/2))^2 handed to Euler's substitution as a radical beside
(c^2 x^2 + 1)^(-1) answered the remainder of acsch(c x)^2/x^4 wrongly, and
the corpus caught it as its one wrong answer.
Rubi's family 7: 210 to 215 of 270, 0 wrong, 0 error, timeouts 26 to 30
(the same rows, over the budget under the load of the new answers); the
1774-problem suite unchanged at 1707, 0 wrong, 0 timeout, wall 85 s. Suite
12552 passed; the kernel gate passed on all 19 gated benchmarks.
Part of #718.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|`"x^3*asech(a*x)^2".Integrate("x")`| left unevaluated | the antiderivative, `provided a^2 > 0`|
975
+
|`"asech(a*x)^3/x^2".Integrate("x")`| left unevaluated | the antiderivative |
976
+
|`"(a+b*acsch(c*x))^2/x^4".Integrate("x")`| left unevaluated | the antiderivative |
977
+
|`"x^2/sqrt(1/(a^2*x^2)-1)".Integrate("x")`| left unevaluated | `sgn(x) |a| (2 (1 - a^2 x^2)^(3/2)/3 - 2 sqrt(1 - a^2 x^2))/(2 a^4)` up to the form -- with `sgn(x)` in front, where an answer written in `|x|` used to be given for such shapes |
978
+
960
979
### `binomial(n, k)` is a function
961
980
962
981
**Addition, not silent.** The binomial coefficient is a node, `Entity.Binomialf`, spelled
// although the rule never fires on it at the top at all.
1865
1870
//
1866
1871
// The second is in the regrouping: exactly one factor to differentiate, never two.
1867
-
if (Integration.AnsweringTheQuestionAsked
1872
+
// ...and up to two below the question asked where everything beside the
1873
+
// differentiated factor is algebraic in x with a root in it: the second step of
1874
+
// parts on `x^3 asech(a x)^2` is `x^2 asech(a x)/sqrt(1/(a x)^2 - 1)`, whose other
1875
+
// factor integrates to an algebraic expression or declines at once, and whose
1876
+
// remainder is algebraic -- none of the logarithms by the dozen the scope above
1877
+
// is there to stop. With a root only: beside a rational function the rule for a
1878
+
// rational function times a logarithm is the one that answers, and offering
1879
+
// parts there sent `(a + b atanh(c x^2))^2/x^5` into a search that did not return.
1880
+
if ((Integration.AnsweringTheQuestionAsked
1881
+
|| Integration.AnsweringTheQuestionAskedOrTwoBelow && TryRegroupAroundTheDifferentiatedFactor(expr) is var (_, algebraicOthers) && algebraicOthers is not null && IsAlgebraicIn(algebraicOthers, x) && HasARadicalOf(algebraicOthers, x))
1868
1882
&& TryRegroupAroundTheDifferentiatedFactor(expr) is var (differentiated, others)
1869
1883
&& differentiated is not null && others is not null
1870
1884
&& TrySplit(differentiated, others) is { } byLiate)
0 commit comments