AngouriMath
TrySplitBiquadraticOverTheReals(AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity.Variable,AngouriMath.Entity@,AngouriMath.Entity@)
Method (no overloads)
Summary
quadratics.
Remarks
and stops where the rationals do:
is left whole and
#233 names as
wanting "partial fractioning". Over the reals it is
for a linear numerator over a quadratic. Nothing was missing but a factorisation the
rational one is right to refuse.
general quartic factors into real quadratics through its resolvent cubic, whose roots
carry Cardano's nested radicals; a biquadratic
the resolvent is solvable by inspection, and the two factors stay in one square root.
Two shapes come out of it, by the sign of
- Negative — no real root in
x^2 . Matching
(x^2 + ax + b)(x^2 - ax + b) = x^4 + (2b - a^2)x^2 + b^2 gives
b = sqrt(q) anda = sqrt(2b - p) , both real becauseq > 0 and
p^2 < 4q forcesp < 2sqrt(q) . This isx^4 + 1 , at
a = sqrt(2) ,b = 1 .
- Positive — two distinct real roots in
x^2 , so
(x^2 + M)(x^2 + N) withM, N = (p +- sqrt(p^2 - 4q))/2 . Both factors are
even, and the split is two independent pairs of equations rather than four.
- Zero —
(x^2 + p/2)^2 , a repeated quadratic, declined for the same reason
the guard above declines one: there is no rule for a numerator over
(x^2 + c)^k , so decomposing it ends in the integral it started from.
are distinct and coprime, so their product vanishes exactly where the original
denominator does.
is left to the rational step, which reaches it whenever the root is rational.
arrives here to be given a square root it does not need.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online