A power of a linear plus a root whose square matches it is integrated in their sum - #1775
Merged
Rafael-SOWNet merged 2 commits intoOct 5, 2026
Conversation
… in their sum (d + e x + f sqrt(Q))^n with e^2 the leading coefficient of Q times f^2 was declined for a symbolic e or f, and for any power but a whole one. The sum is Euler's variable: t = d + e x + f sqrt(Q) squares to an equation linear in x, so x, the root and dx are rational in t and a power of the sum is a power of t. The substitution's compound constants are named while the question is asked; a polynomial in t over a monomial beside the power is integrated term by term; and the rule is asked for such a sum before the split that would expand the powers of Q beside it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…t-of-a-quadratic-is-eulers-variable # Conflicts: # BREAKING-CHANGES.md # Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs
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.
(d + e x + f sqrt(Q))^nwithe^2the leading coefficient ofQtimesf^2-- Rubi's 1.3.2 writesQasa + b x + e^2 x^2/f^2-- was declined for a symboliceorf, whatevernwas, and for any power but a whole one. 2.5.0 declined these too:4105b3bf(d + k x + f sqrt(a + 2 d k x/f^2 + k^2 x^2/f^2))^nT^(n + 1)/(2k (n + 1)) + (a f^2 - d^2) T^(n - 1)/(2k (n - 1)),Tthe sum, in 0.5 s; 245 characters1/(d + k x + f sqrt(a + k^2 x^2/f^2))Tand ofT - d, and a reciprocal ofT - d, in 0.2 s; 267 characterssqrt(d + k x + f sqrt(a + b x + k^2 x^2/f^2))sqrt(T), and an arctangent or a logarithm of it by the sign ofd - b f^2/(2k), in 0.3 s; 2,853 characters1/(d + k x + f sqrt(a + b x + k^2 x^2/f^2))^(3/2)sqrt(b x + sqrt(a + b^2 x^2))/sqrt(a + b^2 x^2)2 sqrt(b x + sqrt(a + b^2 x^2))/b, in 0.05 sEach answer is differentiated back and compared with the integrand at six points; the times include that. The two answers with a general
bare long: the shiftd - b f^2/(2k)is written into every term. Simplified intwhile the constants are named, they are two-fifths shorter, at a second and a half more each; that is a follow-up.What changes. The sum is Euler's variable:
t = d + e x + f sqrt(Q)squares to an equation linear inx, sox, the root anddxare rational int, and a power of the sum is a power oft. With the shifts = d - b f^2/(2e)andkappa = c f^2 - (b f^2/(2e))^2,x = ((t - d)^2 - c f^2)/(2e (t - s)),sqrt(Q) = ((t - s)^2 + kappa)/(2f (t - s))anddx/dt = ((t - s)^2 + kappa)/(2e (t - s)^2). Three things keep it short:sandkappa, are named while the question intis asked and put back in the answer, which took the rows with a generalbfrom 6 to 171 seconds to under half of one;tover a monomial beside the power, which is what the written sum makes ofQ^k (d + e x + f sqrt(Q))^nwhereb f^2 = 2 d e, is integrated term by term by the power rule, with its coefficients reduced by their gcd; through the general chain it took seconds a term;Qbeside it.Tests:
SumOfALinearAndARootAsEulersVariableIntegralTest, six rows differentiated back with the symbols pinned; master declines all six.Measured first on Rubi's 1.3.2, all 714 problems, at the corpus's 5-second budget, against master
287c69a7, the branch's base:Measured then on the Rubi corpus against master
287c69a7:The harness counts no answer wrong in either. The 33 problems the two builds disagreed on, pocket and sample together, run again one build at a time: master answers 3 and this 29. This answers 27 that master does not -- the sums of 1.3.2:640-669 and 698-707 and Welz's 73 at under a fifth of a second each, and 3.2.1:152 at 20 seconds -- and master answers one this does not, 7.3.2:89,
(a + b artanh(c x^2))^2/x^5, which both take 24 to 26 seconds alone, past the budget on either build. The figures above were measured with three other corpus runs on the machine.The suite on the commit measured,
2bdfbebd, passed but forSettingsAndThreads.SettingParallelSolve, which passes alone and in its class, 10 of 10. The allocation gate passed. The head here merges master4105b3bf, which brings #1774's fix to the same substitution; the calculus and corpus tests pass on it and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura