Skip to content

Integrate a negative power of an inverse function of c + d x^2 in sine and cosine integrals - #1906

Merged
Rafael-SOWNet merged 4 commits into
masterfrom
a-negative-power-of-an-inverse-function-of-a-quadratic
Oct 16, 2026
Merged

Rafael-SOWNet merged 4 commits into
masterfrom
a-negative-power-of-an-inverse-function-of-a-quadratic

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718. Follows #1904.

#1904 integrates (a + b u)^n for a whole n >= 1, with u the inverse sine or cosine of c + d x^2 (c^2 = 1) or its inverse hyperbolic cosine. This adds the negative powers.

w - c is a constant times g(theta)^2 with theta = u/2 + beta:

u c = 1 c = -1
acos(w) cos u - 1 = -2 sin(u/2)^2 cos u + 1 = 2 cos(u/2)^2
asin(w) sin u - 1 = -2 sin(u/2 - pi/4)^2 sin u + 1 = 2 cos(u/2 - pi/4)^2
acosh(w) cosh u - 1 = 2 sinh(u/2)^2 cosh u + 1 = 2 cosh(u/2)^2

So x = kappa g(theta), with kappa = x/g(theta) constant on each side of 0, and dx = (kappa/2) g'(theta) du. With v = (a + b u)/(2 b), I(-1) = (kappa/(2 b)) integral g'(v - gamma)/v dv is Ci/Si (Chi/Shi for acosh). I(-2) follows by parts, and the recurrence of #1904 run backwards gives the lower powers.

The answers are exact on the integrand's real domain. Off it, where the inverse function is complex, x/g can change sign across a cut. The exact checks found 114 such points, every one with the integrand non-real there. The rule refuses an answer only where it differs from the integrand where the integrand is real (DerivativeDiffersWhereReal).

Checks

  • Exact checks at 50–2000 digits on the eighteen corpus shapes, four sign patterns each, points on both sides of 0: 750/864. The 114 misses are all off the real domain, as above.
  • APowerOfAnInverseFunctionOfAQuadraticIntegralTest: 6 more cases, pinned on the real domain.

Corpus, measured against master 55a8044, before #1904 (this branch then merged 2d17cd1):

master this branch
pocket: every row of 5.1.5, 5.2.5, 7.1.5, 7.2.5 (719 statable) 642 686 (#1904's 668, and 18 more)
families 0–8 samples the same rows; no losses
rows new here +18: 5.1.5:538–540, 545–547; 5.2.5:140–142, 147–149; 7.2.5:347–349, 354–356

No losses and no slower rows. Gate passed; suite 15,427 passed, 0 failed.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 4 commits October 16, 2026 06:22
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
…e and cosine integrals

w - c is a constant times g(u/2 + beta)^2 for a sine or a cosine g, so x/g is constant on each
side of 0 and dx = (x/g)(g'/2) du. The powers -1 and -2 are then sine and cosine integrals of
(a + b u)/(2 b), hyperbolic ones for the inverse hyperbolic cosine, and the recurrence run
backwards gives the rest. Rubi's 5.1.5, 5.2.5 and 7.2.5 1/(a + b acos(1 + d x^2)) and the like,
to the first three negative powers, 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
…-an-inverse-function-of-a-quadratic

# Conflicts:
#	Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs
#	Sources/AngouriMath/Functions/Continuous/Integration/Integration.Definition.cs
#	Sources/Tests/UnitTests/Calculus/APowerOfAnInverseFunctionOfAQuadraticIntegralTest.cs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 16, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 90c9d3e into master Oct 16, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant