Partial Fraction

Author: John J Weber III, PhD Corresponding Textbook Sections:

Expected Educational Results

Bloom’s Taxonomy

A modern version of Bloom’s Taxonomy is included here to recognize various different levels of understanding and to encourage you to work towards higher-order understanding (those at the top of the pyramid). All Objectives, Investigations, Activities, etc. are color-coded with the level of understanding.

Bloom’s Taxonomy for different levels of understanding
Figure 1.1: Bloom's Taxonomy

Partial Fractions

Method of Partial Fractions

NOTE: The Method of Partial Fractions is only valid for rational functions of the form P(x)Q(x) where

Distinct Linear Factors

Let f(x)=P(x)Q(x) be a rational function where deg(P)<deg(Q) and Q(x) is factorable into distinct linear factors. Then

P(x)Q(x)=Aa1x+b1+Ba2x+b2+

Quadratic Factors

Let f(x)=P(x)Q(x) be a rational function where deg(P)<deg(Q) and Q(x) is factorable into distinct quadratic factors. Then

P(x)Q(x)=Ax+Ba1x2+b1+Cx+Da2x2+b2+

Repeated Linear Factor

Let f(x)=P(x)Q(x) be a rational function where deg(P)<deg(Q) and Q(x) is factorable into r-repeated linear factors, i.e., Q(x)=(a1x+b1)r. Then

P(x)Q(x)=Aa1x+b1+B(a1x+b1)2+C(a1x+b1)3++R(a1x+b1)r

Repeated Quadratic Factors

Let f(x)=P(x)Q(x) be a rational function where deg(P)<deg(Q) and Q(x) is factorable into r-repeated quadratic factors, i.e., Q(x)=(a1x2+b1)r. Then

P(x)Q(x)=Ax+Ba1x2+b1+Cx+D(a1x2+b1)2+Ex+F(a1x2+b1)3++Sx+T(a1x2+b1)r

NOTE: The above may not be helpful when you first look at the definitions, so, you should try to conceptually understand the Method of Partial Fractions.

Example 01: Express x2+2x4x41 as a sum of partial fractions.

Solution 01:

All three conditions needed to use the Method of Partial fractions are met.

Completely, factor the denominator: x41=(x1)(x+1)(x2+1).

There are three (3) factors of the denominator; thus, there must be three (3) partial fractions.

Two of the factors in the denominator are linear factors, so a generic constant, A and B, is used for the numerator: Ax1 and Bx+1.

One of the factors of the denominator is an irreducible quadratic, so a generic linear function is used for the numerator: Cx+Dx2+1

Thus, the rational expression can be rewritten as the sum of three (3) partial fractions:

x2+2x4x41=Ax1+Bx+1+Cx+Dx2+1

Next, we need to solve for the coefficients: A, B, C, and D.

There are at least two methods (the traditional textbook method or the method shown below) to solve for the coefficients:

  1. Distribute the factors of the denominator to the entire equation and cancel factors:

(x2+2x4x41=Ax1+Bx+1+Cx+Dx2+1)((x1)(x+1)(x2+1))

Consider each product:

x2+2x4x41(x1)(x+1)(x2+1)x2+2x4, and

Ax1(x1)(x+1)(x2+1)A(x+1)(x2+1), and

Bx+1(x1)(x+1)(x2+1)B(x1)(x2+1)

Cx+Dx2+1(x1)(x+1)(x2+1)(Cx+d)(x1)(x+1)

Thus,

x2+2x4=A(x+1)(x2+1)+B(x1)(x2+1)+(Cx+D)(x1)(x+1)

The traditional method suggests to expand, refactor in terms of powers of x, set-up four (4) equations and use algebra to solve for the four (4) unknowns.

  1. Alternate method. Do NOT expand.

Let x=1. So, 12+2(1)4=A(1+1)(12+1)+B(11)0(12+1)+(C1+D)(11)0(1+1)

1=A(2)(2)A=14

Let x=1. So, (1)2+2(1)4=A(1+1)0((1)2+1)+B(11)((1)2+1)+(C(1)+D)(11)(1+1)0

5=B(2)(2)B=54

Let x=0. So, 02+2(0)4=14(0+1)(02+1)+54(01)(02+1)+(C(0)+D)(01)(0+1)

4=1454DD=52

Let x=2. So, 22+2(2)4=14(2+1)(22+1)+54(21)(22+1)+(C(2)+52)(21)(2+1)

4=104+254+6C+1526C=6C=1

  1. Thus,

x2+2x4x41=Ax1+Bx+1+Cx+Dx2+1=1/4x1+5/4x+1+x+5/2x2+1

Check Your Work

Use Technology to Verify Partial Fraction Decomposition

NOTE: The use of technology in this activity is to verify, i.e., check, your partial fraction decomposition. You must show work on assessments to receive credit for all Calculus II work.

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Mathematica syntax is located at: https://www.jjw3.com/Common_Mathematica_Code.html.

  2. Apart[ ] has one argument:

    1. The function to decompose into sum of partial fractions.

  3. For help on using the Apart[ ] function:

    1. In Mathematica, execute the code: ?Apart

    2. Click on near the bottom-left of output

    3. Click on local

    4. Read how to use the Apart[ ] function – you will be able to copy-paste code.

  4. You may need parens, ( and ), to group multiple terms in the numerator and denominator.

  5. Remember, correct Mathematica code will be all black except for variables.

  6. To execute code (including comment codes), press and hold the SHIFT key and press the ENTER key.

Python

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Python syntax is located at: https://www.jjw3.com/Common_Python_Code.html.

  2. All code is included above with comment codes that explain the executable code.

  3. integrate( ) for indefinite integrals has two arguments:

    1. The integrand, i.e., function of the definite integral;

    2. x​, where x​​ is the variable used in the integrand.

  4. You only need to change the function in the integrate( ) command.

  5. The Python syntax for cos2(x)​​​ is cos(x)**2​​​; etc.

  6. Python requires for explicit multiplication; ​ for exponents.

  7. Remember to use parens ( and )​ to group multiple terms in the numerator or denominator of a rational expression.

  8. Python does not return the antiderivative with +C. You need to use +C for all steps that are antiderivatives.

  9. To execute code, press the “View the result” button:

Example 02: Express x+2x4+2x2 as a sum of partial fractions.

Solution 02:

All three conditions needed to use the Method of Partial fractions are met.

Completely, factor the denominator: x4+2x2=x2(x2+2).

There are three (3) factors of the denominator; x2+2, x, and another x; thus, there must be three (3) distinct partial fractions.

Two of the factors in the denominator are linear factors, so a generic constant, A and B, is used for the numerator: Ax and Bx2.

NOTE: Ax and Bx does NOT work since these two fractions can be combined into a single partial fraction A+Bx and the Method of Partial Fractions requires three (3) partial fractions for this rational expression.

The remaining factor of the denominator is an irreducible quadratic, so a generic linear function is used for the numerator: Cx+Dx2+2

Thus, the rational expression can be rewritten as the sum of three (3) partial fractions:

x+2x4+2x2=Ax+Bx2+Cx+Dx2+2

Next, we need to solve for the coefficients: A, B, C, and D.

  1. Distribute the factors of the denominator to the entire equation and cancel factors:

(x+2x4+2x2=Ax+Bx2+Cx+Dx2+2)(x2(x2+2))

Consider each product:

x+2x4+2x2x2(x2+2)x+2, and

Axxx(x2+2)Ax(x2+2), and

Bx2x2(x2+2)B(x2+2)

Cx+Dx2+2x2(x2+2)(Cx+d)x2

Thus,

x+2=Ax(x2+2)+B(x2+2)+(Cx+D)x2

The traditional method suggests to expand, refactor in terms of powers of x, set-up four (4) equations and use algebra to solve for the four (4) unknowns.

  1. Alternate method. Do NOT expand.

Let x=2. So, 0+2=A(0)(02+2)+B(02+2)+(C(0)+D)(02)

2=B(2)B=1

Let x=1. So, 1+2=A(1)(12+2)+(1)(12+2)+(C(1)+D)(12)3=3A+3+C+D

0=3A+C+D (equation 1)

Let x=1. So, 1+2=A(1)((1)2+2)+(1)((1)2+2)+(C(1)+D)((1)2)1=3A+3C+D

2=3AC+D (equation 2)

Let x=2. So, 2+2=A(2)(22+2)+(1)(22+2)+(C(2)+D)(22)4=12A+6+8C+4D

2=12A+8C+4D (equation 3)

We have three equations (labeled) with three unknowns (A, C, and D). Either use Algebra to solve for the unknowns or use Mathematica:

Use Technology to Solve for Unknowns in a System of Equations

NOTE: You are permitted to use Mathematica to algebraically solve systems of equations without showing any work.

Mathematica

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Mathematica syntax is located at: https://www.jjw3.com/Common_Mathematica_Code.html.

  2. Solve[ ] has at least two arguments:

    1. The equations to be solved; the equations are grouped between { and } and are separated by commas

    2. The variables/parameters to be solved; the parameters are grouped between { and } and are separated by commas

  3. For help on using the Solve[ ] function:

    1. In Mathematica, execute the code: ?Solve

    2. Click on near the bottom-left of output

    3. Click on local

    4. Read how to use the Solve[ ] function – you will be able to copy-paste code.

  4. Mathematica uses the double equals sign, ==, to represent the equals sign in an equation.

  5. Remember, correct Mathematica code will be all black except for variables.

  6. To execute code (including comment codes), press and hold the SHIFT key and press the ENTER key.

Investigation 09

Rewrite the following rational expressions into a sum of partial fractions, if possible:

  1. 1x23x4

  2. xx25x+4

  3. x2x29

  4. 3x+2x2x

  5. x+1x24

  6. 3x3+x

  7. 2xx31

  8. xx3+8

  9. x2+x+1x32x2+x2

  10. x3x416

  11. x2+2x53x4+2x3

Integrating Rational Functions

Example 03: Evaluate x2+2x4x41dx.

Solution 03: From Example 01, we know

x2+2x4x41dx=(1/4x1+5/4x+1+x+5/2x2+1)dx

141x1dx+541x+1dxxx2+1dx+521x2+1dx

Using u-Substitution (for the third term) and known integrals in for the remaining three terms,

x2+2x4x41dx=14ln|x1|+54ln|x+1|12ln|x2+1|+52tan1(x)+C

Check Your Work

Use Technology to Verify Antiderivatives

NOTE: The use of technology in this activity is to verify, i.e., check, your answers. You must show work on assessments to receive credit for all Calculus II work.

Mathematica

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Mathematica syntax is located at: https://www.jjw3.com/Common_Mathematica_Code.html.

  2. Integrate[ ] has two arguments:

    1. The function in the integrand;

    2. The independent variable of the integral.

  3. For help on using the Integrate[ ] function:

    1. In Mathematica, execute the code: ?Integrate

    2. Click on near the bottom-left of output

    3. Click on local

    4. Read how to use the Integrate[ ] function – you will be able to copy-paste code.

  4. You may need parens, ( and ), to group multiple terms in the numerator and denominator.

  5. Remember, correct Mathematica code will be all black except for variables.

  6. To execute code (including comment codes), press and hold the SHIFT key and press the ENTER key.

  7. Mathematica does not show +C for antiderivatives. You will need to remember to include +C in your answers.

  8. Mathematica may return a result in a different, but equivalent, form than your answer. In these cases, use FTC-I to check your work.

Investigation 10

Integrate the following rational functions.

  1. 1x23x4dx

  2. xx25x+4dx

  3. x2x29dx

  4. 3x+2x2xdx

  5. x+1x24dx

  6. 3x3+xdx

  7. 2xx31dx

  8. xx3+8dx

  9. x2+x+1x32x2+x2dx

  10. x3x416dx

  11. x2+2x53x4+2x3dx

CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License [http://creativecommons.org/licenses/by-nc-sa/4.0/].

Created: Monday, 6 September 2020 13:33 EDT Last Modified: Wednesday, 17 August 2022 - 09:49 (EDT)