Repository navigation
Integrate a symbolic power of a trigonometric function where it is the derivative of a product - #1912
Merged
Rafael-SOWNet merged 3 commits intoOct 16, 2026
Conversation
…e derivative of a product f^m (alpha + beta f^2) for f a sine, cosine, secant or cosecant of a linear is the derivative of cos sin^(m + 1), sin cos^(m + 1), tan sec^m or cot csc^m where beta p0 = alpha p2, p0 + p2 f^2 being that derivative's bracket. Rubi's 4.1.4.1 and 4.5.4.1 sec(c + d x)^m (m - (1 + m) sec(c + d x)^2), sin(e + f x)^m (1 + m - (2 + m) sin(e + f x)^2) 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
…-a-trigonometric-function-as-the-derivative-of-a-product # 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
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.
f^m (alpha + beta f^2), for a symbolicmandfa sine, cosine, secant or cosecant of a linearu, is the derivative of a product where its bracket is a multiple of that derivative's. Withu' = 1:fsincos sin^(m + 1)sin^m ((m + 1) - (m + 2) sin^2)cossin cos^(m + 1)cos^m ((m + 2) cos^2 - (m + 1))sectan sec^msec^m ((m + 1) sec^2 - m)csccot csc^m-csc^m ((m + 1) csc^2 - m)SolveASymbolicPowerOfATrigonometricFunctionAsTheDerivativeOfAProductreads the integrand asf^mtimes a polynomial infwith only a constant and a square term. It matchesalpha + beta f^2againstp0 + p2 f^2wherebeta p0 = alpha p2, and answers(alpha/p0) G/u'. The match is exact, with nothing sampled.SolveAsTheDerivativeOfAProductOfPowersraises the powers an integrand has, and the sine above the bar thattan sec^mbrings is not one of them.The power is taken off by writing 1 for it rather than dividing by it, because
s^m (...)/s^mis not cancelled by the simplification.Checks
mandnof both signs: 126/126.ASymbolicPowerOfATrigonometricFunctionAsADerivativeIntegralTest: 6 cases, among them one whose bracket is not the derivative and is not claimed.Corpus, measured against master 90c9d3e (this branch then merged bc175c2):
All six solve on this branch re-run alone and none on master. No losses. Three 4.x.4.2 rows read as slow. Re-timed alone twice per arm, they are 790–854 vs 821–881 ms, 220–245 vs 217–233 ms and 268–270 vs 266–285 ms. Gate passed; suite 15,470 passed, 0 failed.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura