convert/parfrac
convert to partial fraction form
Calling Sequence
Parameters
Description
Examples
convert(f, parfrac)
convert(f, parfrac, x)
convert(f, parfrac, K)
convert(f, parfrac, x, K)
convert(flist, parfrac, x)
f
-
rational function in x
x
main variable name
K
(optional) real, complex, a field extension, true, false, sqrfree
flist
list consisting of the numerator, prefactored denominator, and powers (this is a programmer entry point)
Convert to parfrac performs a partial fraction decomposition of the rational function f in the variable x.
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.
The optional argument K specifies how the denominator in f is to be factored. If this argument is not specified, the denominator is factored by the factor command, which factors over the field implied by the coefficients present.
If the optional argument K is real (or complex), then a real (complex) floating-point factorization of the denominator is performed.
Note: This is implemented only for the univariate case.
If the argument K is RootOf or a radical or a list or set of RootOfs or radicals, then the denominators are factored over the algebraic number field implied by the field extensions K.
If the argument K is the name `sqrfree' then a square-free partial factorization is computed. A square-free factorization of the denominator in x is computed.
If the last argument is `true', this declares that the denominator of f is already in the desired factored form, and no factorization is required.
Note: Such a partial fraction decomposition can be done only if the factors in the denominator are relatively prime to each other.
If the programmer entry point form is used, then x must be a name, and the input flist must have the form:
[n,[f1,p1],[f2,p2],...]
where n is the numerator, and f1p1,f2p2,... are the denominator factors. All f1,f2,... must be relatively prime, and all p1,p2,... must be positive integer values.
The programmer form also provides the output in a different form:
[p,[f1,n11,n12,...],[f2,n21,n22,...],...]
where p is the polynomial part, f1,f2,... are as in the input, and the n11,n12,... are the numerators of the partial fraction form such that the algebraic partial fraction form can be obtained as:
p+n11f1+n12f12+...+n21f2+n22f22+...
Note: The programmer form output is dense, meaning all zero coefficients are included, and the polynomial part is always included (even if zero).
f≔x5+1x4−x2
convert⁡f,parfrac,x
x+1x−1−1x2
convert⁡f,parfrac
f≔xx−b2
bx−b2+1x−b
Note: This is an error because Maple cannot determine whether to use x or b.
Error, (in `convert/parfrac`) the variable name (for conversion to partial fractions) must be provided
f≔2.3⁢x5.4⁢x3−2.3⁢x+1
0.2240312285⁢x+0.06336062145x2−0.8091847442⁢x+0.2288540244−0.2240312285x+0.8091847442
convert⁡f,parfrac,x,complex
0.1120156142−0.3016538619⁢Ix−0.4045923721−0.2552626820⁢I+0.1120156144+0.3016538619⁢Ix−0.4045923721+0.2552626820⁢I−0.2240312285x+0.8091847442
f≔4⁢x3−6⁢x2−2x4−2⁢x3−2⁢x+4
3⁢x2x3−2+1x−2
The cubic factor (x^3-2) does not factor over the integers.
convert⁡f,parfrac,x,213
−6−2+213⁢223+2⁢213+4⁢x−2+223−1⁢213−2+213⁢−x+213+−213−2⁢x−223−213⁢x−x2
convert⁡f,parfrac,x,real
1.000000000x−1.259921050+1.000000000x−2.+2.000000000⁢x+1.259921050x2+1.259921050⁢x+1.587401052
1.000000000+2.837357306×10−10⁢Ix−1.259921050+1.000000000x+0.6299605249+1.091123636⁢I+1.000000000−4.166666666×10−10⁢Ix−2.+1.000000000x+0.6299605249−1.091123636⁢I
p≔x5−2⁢x4−2⁢x3+4⁢x2+x−2:
f≔36p
f≔36x5−2⁢x4−2⁢x3+4⁢x2+x−2
−9x−12+4x−2−4x+1−3x+12
convert⁡f,parfrac,x,sqrfree
4x−2+−12⁢x−24x2−12+−4⁢x−8x2−1
f≔36convert⁡p,sqrfree,x
f≔36x−2⁢x2−12
convert⁡f,parfrac,x,true
Programmer entry point form,
fl≔4⁢x3−6⁢x2−2,x−2,2,x3−2,1
pl≔convert⁡fl,parfrac,x
pl≔0,x−2,2,1,x3−2,−2⁢x2−x−2
which you can compare to the regular form.
f≔fl1mul⁡i1i2,i=fl2..−1
f≔4⁢x3−6⁢x2−2x−22⁢x3−2
p≔convert⁡f,parfrac,x,true
p≔−2⁢x2−x−2x3−2+2x−2+1x−22
pl1+add⁡add⁡iji1j−1,j=2..nops⁡i,i=pl2..−1
−2⁢x2−x−2x3−2+2x−2+1x−22
See Also
convert/fullparfrac
factor
int
sqrfree
Download Help Document