partial fractions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


convert/parfrac

convert to partial fraction form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(f, parfrac)

convert(f, parfrac, x)

convert(f, parfrac, K)

convert(f, parfrac, x, K)

convert(flist, parfrac, x)

Parameters

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)

Description

• 

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).

Examples

fx5+1x4x2

fx5+1x4x2

(1)

convertf,parfrac,x

x+1x11x2

(2)

convertf,parfrac

x+1x11x2

(3)

fxxb2

fxxb2

(4)

convertf,parfrac,x

bxb2+1xb

(5)

Note: This is an error because Maple cannot determine whether to use x or b.

convertf,parfrac

Error, (in `convert/parfrac`) the variable name (for conversion to partial fractions) must be provided

f2.3x5.4x32.3x+1

f2.3x5.4x32.3x+1

(6)

convertf,parfrac,x

0.2240312285x+0.06336062145x20.8091847442x+0.22885402440.2240312285x+0.8091847442

(7)

convertf,parfrac,x,complex

0.11201561420.3016538619Ix0.40459237210.2552626820I+0.1120156144+0.3016538619Ix0.4045923721+0.2552626820I0.2240312285x+0.8091847442

(8)

f4x36x22x42x32x+4

f4x36x22x42x32x+4

(9)

convertf,parfrac,x

3x2x32+1x2

(10)

The cubic factor (x^3-2) does not factor over the integers.

convertf,parfrac,x,213

62+213223+2213+4x2+22312132+213x+213+2132x223213xx2

(11)

convertf,parfrac,x,real

1.000000000x1.259921050+1.000000000x2.+2.000000000x+1.259921050x2+1.259921050x+1.587401052

(12)

convertf,parfrac,x,complex

1.000000000+2.837357306×10−10Ix1.259921050+1.000000000x+0.6299605249+1.091123636I+1.0000000004.166666666×10−10Ix2.+1.000000000x+0.62996052491.091123636I

(13)

px52x42x3+4x2+x2:

f36p

f36x52x42x3+4x2+x2

(14)

convertf,parfrac,x

9x12+4x24x+13x+12

(15)

convertf,parfrac,x,sqrfree

4x2+12x24x212+4x8x21

(16)

f36convertp,sqrfree,x

f36x2x212

(17)

convertf,parfrac,x,true

4x2+12x24x212+4x8x21

(18)

Programmer entry point form,

fl4x36x22,x2,2,x32,1

fl4x36x22,x2,2,x32,1

(19)

plconvertfl,parfrac,x

pl0,x2,2,1,x32,2x2x2

(20)

which you can compare to the regular form.

ffl1muli1i2,i=fl2..1

f4x36x22x22x32

(21)

pconvertf,parfrac,x,true

p2x2x2x32+2x2+1x22

(22)

pl1+addaddiji1j1,j=2..nopsi,i=pl2..1

2x2x2x32+2x2+1x22

(23)

See Also

convert/fullparfrac

factor

int

sqrfree