Repository navigation
Integrate a power of an inverse function of c + d x^2 by its recurrence - #1904
Merged
Rafael-SOWNet merged 4 commits intoOct 16, 2026
Conversation
For u the inverse sine or cosine of w = c + d x^2 with c^2 = 1, its hyperbolic cosine with c^2 = 1, or its hyperbolic sine with c^2 = -1, integral (a + b u)^n is x (a + b u)^n + 2 e n b H (a + b u)^(n - 1) - 4 e b^2 n (n - 1) integral (a + b u)^(n - 2), with H = 1/(d x u'(w)), and it closes at the first two powers. Rubi's 5.1.5, 5.2.5 and 7.2.5 (a + b acos(1 + d x^2))^4 and the like were declined. Part of #718 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…se-function-of-a-quadratic-by-the-recurrence # Conflicts: # Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs # Sources/AngouriMath/Functions/Continuous/Integration/Integration.Definition.cs
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> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #718.
For
uthe inverse sine or cosine ofw = c + d x^2withc^2 = 1, or its inverse hyperbolic cosine withc^2 = 1,(a + b u)^nfor a wholenfrom 1 to 12 has an elementary antiderivative by a recurrence that closes at the first two powers:integral (a + b u)^n = x (a + b u)^n + 2 e n b H (a + b u)^(n - 1) - 4 e b^2 n (n - 1) integral (a + b u)^(n - 2)Here
H = 1/(d x u'(w)), andeis1for the circular functions and-1for the hyperbolic one. Eachuhasu'' = e w u'^3, and withc^2 = 1the radicand ofu'isd x^2 (2 c + d x^2)up to sign. SoH u' = 2, and the derivative of the first two terms is(a + b u)^nplus a multiple of(a + b u)^(n - 2). The parser writesacosh(w)asln(w + sqrt(w^2 - 1)), and the rule reads it from that form (andasinhwithc^2 = -1the same way).SolveAPowerOfAnInverseFunctionOfAQuadraticByTheRecurrencechecksH u' = 2symbolically, with the derivative the library takes, rather than at sampled points. The sampled check declined the right answer toasin(1 + d x^2)^2. Withc = 1and the positivedit pins,wis past 1, on the cut of the inverse sine.Checks
dof both signs, on each real domain and off it: 432/432.APowerOfAnInverseFunctionOfAQuadraticIntegralTest: 8 cases.Corpus, measured against master 55a8044 (this branch then merged c92dbe0):
Twelve of the 26 were timeouts on master; on this branch the slowest takes 0.47 s. No losses and no slower rows. Gate passed. The chain's suite aborted with the test host exiting and no exception logged, 14,372 tests in. Re-run alone it passed: 15,421 passed, 0 failed.
acos(1 + d x^2)was answered on master in 106 characters and is 76 here; 2.5.0 declined it.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura