convert/fullparfrac
convert a rational expression to full partial fraction form
Calling Sequence
Parameters
Description
Examples
convert(f, fullparfrac)
convert(f, fullparfrac, x)
convert(f, fullparfrac, methext)
convert(f, fullparfrac, x, methext)
convert(f, fullparfrac, ratflag)
convert(f, fullparfrac, x, ratflag)
convert(f, fullparfrac, methext, ratflag)
convert(f, fullparfrac, x, methext, ratflag)
f
-
rational function in x
x
main variable name
methext
(optional); method (normal, sqrfree, or factor) or an extension
ratflag
(optional); flag that alters the form of the output
Convert to fullparfrac performs a partial fraction decomposition of the rational function f in the variable x after completely factoring the denominator into linear factors over its splitting field.
If no x is provided, parfrac attempts to determine a suitable x, and proceeds if the operation is not ambiguous. For example, an expression that is a rational polynomial in both a and b requires that the variable be specified.
Optionally, the methext parameter can be one of 'normal', 'sqrfree', 'factor' (the default) or a field extension. In the first three cases, the associated function is applied to the denominator(s), and in the last case, factoring over that field extension is applied. The 'normal' and 'sqrfree' options are very efficient, although the answer often contains reducible RootOfs. Factoring eliminates this problem but at a high computational cost, and also at the cost of not always producing the simplest output form.
Optionally, the ratflag parameter is a boolean flag indicating if rational expressions in terms of the roots of the irreducible RootOfs should be rationalized to polynomial functions. By default, this rationalization is performed when the denominator of f contains only x. If additional unknowns are present in the denominator, then this rationalization is not performed.
The default can be overridden by using the environment variable _Env_fullparfrac_normalized. If set to true, rationalization is performed by default, and if set to false it is not. This is most useful when fullparfrac is being called from another routine over which you have no control (see the final example below).
Warning: If the coefficients of the function f contain parameters, then there will be values for those parameters for which the decomposition is erroneous, as a symbolic splitting field is valid only for generic values of the parameter. This is known as the specialization problem.
convert⁡x2+1x2+x+1,fullparfrac,x
1+∑_α=RootOf⁡_Z2+_Z+1⁡−_α3−23x−_α
convert⁡x2+1x2+x+1,fullparfrac
convert⁡x3+xx2−3⁢x+2,fullparfrac,x
x+3+10x−2−2x−1
convert⁡x3+xx2−3⁢x+2,fullparfrac,x,normal
x+3+∑_α=RootOf⁡_Z2−3⁢_Z+2⁡12⁢_α−14x−_α
convert⁡1x2+1,fullparfrac,x
∑_α=RootOf⁡_Z2+1⁡−_α2⁢x−_α
convert⁡xx3+RootOf⁡_Z2+3⁢x+1,fullparfrac,x
∑_α=RootOf⁡_Z3+RootOf⁡_Z2+3⁢_Z+1⁡−4⁢RootOf⁡_Z2+3⁢_α243+8⁢RootOf⁡_Z2+3⁢_α129−9⁢_α243−6⁢RootOf⁡_Z2+343+6⁢_α43+843x−_α
In the following example, 'x' and 'a' appear in the denominator, so x must be specified.
convert⁡1x3+a⁢x+1,fullparfrac,x
∑_α=RootOf⁡_Z3+a⁢_Z+1⁡13⁢_α2+a⁢x−_α
Not specifying x results in an error:
convert⁡1x3+a⁢x+1,fullparfrac
Error, (in `convert/fullparfrac`) the variable name (for conversion to partial fractions) must be provided
You can request rationalization via:
convert⁡1x3+a⁢x+1,fullparfrac,x,true
∑_α=RootOf⁡_Z3+a⁢_Z+1⁡6⁢a⁢_α24⁢a3+27−9⁢_α4⁢a3+27+4⁢a24⁢a3+27x−_α
In the following example, 'x' is the only variable in the denominator, so rationalization is performed.
convert⁡1x3+x+12,fullparfrac,x
∑_α=RootOf⁡_Z3+_Z+1⁡431+3⁢_α231x−_α2+∑_α=RootOf⁡_Z3+_Z+1⁡162961⁢_α2−150961⁢_α+108961x−_α
To disable rationalization, use the false option.
convert⁡1x3+x+12,fullparfrac,x,false
∑_α=RootOf⁡_Z3+_Z+1⁡13⁢_α2+12⁢x−_α2+∑_α=RootOf⁡_Z3+_Z+1⁡−6⁢_α3⁢_α2+13⁢x−_α
or
_Env_fullparfrac_normalized≔false:
_Env_fullparfrac_normalized≔_Env_fullparfrac_normalized:
As a final example, you can control the behavior of fullparfrac when used in other functions.
sum⁡1x4+x+12,x
∑_α=RootOf⁡_Z4+_Z+1⁡−−27229−24229⁢_α3+16229⁢_α2⁢Ψ⁡1,x−_α+∑_α=RootOf⁡_Z4+_Z+1⁡−1382452441⁢_α3+1568452441⁢_α2−1358452441⁢_α−1036852441⁢Ψ⁡x−_α
forget⁡sum:
∑_α=RootOf⁡_Z4+_Z+1⁡−Ψ⁡1,x−_α4⁢_α3+12+∑_α=RootOf⁡_Z4+_Z+1⁡−12⁢_α2⁢Ψ⁡x−_α4⁢_α3+13
See Also
convert
convert/parfrac
forget
Download Help Document