Partial Fraction Decomposition Calculator with Steps
Decompose a rational function of the form Ax + B(x – r1)(x – r2) into C(x – r1) + D(x – r2). Enter the coefficients A, B and the distinct roots r1, r2.
What is Partial Fraction Decomposition?
Partial fraction decomposition is a technique in algebra used to break down a complex rational function (a fraction of two polynomials) into a sum of simpler fractions. This process is particularly useful in calculus for integrating rational functions, as the simpler fractions are often easier to integrate individually. It’s also used in other areas of mathematics and engineering, such as solving differential equations and in Laplace transforms.
The goal of partial fraction decomposition is to express a given rational function as the sum of fractions whose denominators are the factors of the original denominator, raised to appropriate powers, and whose numerators are polynomials of a lower degree than these factors.
Who Should Use It?
Students of algebra and calculus, engineers, and scientists often use partial fraction decomposition to simplify expressions or solve problems involving rational functions. Anyone needing to integrate a rational function or analyze its behavior might find this technique invaluable.
Common Misconceptions
A common misconception is that any rational function can be decomposed into fractions with linear denominators. This is only true if the denominator of the original function can be factored completely into linear factors over the real numbers. If there are irreducible quadratic factors or repeated factors in the denominator, the form of the partial fractions will be different. This calculator specifically handles distinct linear factors in the denominator.
Partial Fraction Decomposition Formula and Mathematical Explanation (Distinct Linear Factors)
When we have a proper rational function (degree of numerator is less than the degree of the denominator) of the form:
P(x)Q(x) = Ax + B(x – r1)(x – r2)
where the denominator has distinct linear factors (x – r1) and (x – r2) (i.e., r1 ≠ r2), the partial fraction decomposition takes the form:
Ax + B(x – r1)(x – r2) = C(x – r1) + D(x – r2)
To find the constants C and D, we first combine the right-hand side over a common denominator:
C(x – r2) + D(x – r1) = Ax + B
This equation must hold for all values of x. We can find C and D using a couple of methods:
- Substituting roots (Heaviside cover-up method):
- Set x = r1: C(r1 – r2) + D(r1 – r1) = Ar1 + B => C(r1 – r2) = Ar1 + B => C = (Ar1 + B) / (r1 – r2)
- Set x = r2: C(r2 – r2) + D(r2 – r1) = Ar2 + B => D(r2 – r1) = Ar2 + B => D = (Ar2 + B) / (r2 – r1)
- Equating coefficients: Expand C(x – r2) + D(x – r1) = Cx – Cr2 + Dx – Dr1 = (C+D)x + (-Cr2 – Dr1). Then equate coefficients with Ax + B: C+D = A and -Cr2 – Dr1 = B. Solve this system of linear equations for C and D.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| A | Coefficient of x in the numerator | None | Real numbers |
| B | Constant term in the numerator | None | Real numbers |
| r1 | First distinct root of the denominator | None | Real numbers |
| r2 | Second distinct root of the denominator (r1 ≠ r2) | None | Real numbers |
| C | Coefficient of the first partial fraction | None | Real numbers |
| D | Coefficient of the second partial fraction | None | Real numbers |
Practical Examples (Real-World Use Cases)
Example 1: Decomposing (3x – 4) / ((x – 1)(x – 2))
Let’s decompose the function f(x) = (3x – 4) / ((x – 1)(x – 2)). Here, A=3, B=-4, r1=1, r2=2.
We set up: (3x – 4) / ((x – 1)(x – 2)) = C/(x – 1) + D/(x – 2)
3x – 4 = C(x – 2) + D(x – 1)
If x=1: 3(1) – 4 = C(1 – 2) => -1 = -C => C = 1
If x=2: 3(2) – 4 = D(2 – 1) => 6 – 4 = D => D = 2
So, (3x – 4) / ((x – 1)(x – 2)) = 1/(x – 1) + 2/(x – 2). This form is much easier to integrate.
Using the calculator with A=3, B=-4, r1=1, r2=2 gives C=1 and D=2.
Example 2: Decomposing (5x + 3) / (x2 – 4)
First, factor the denominator: x2 – 4 = (x – 2)(x + 2). So, we have (5x + 3) / ((x – 2)(x + 2)). Here, A=5, B=3, r1=2, r2=-2.
We set up: (5x + 3) / ((x – 2)(x + 2)) = C/(x – 2) + D/(x + 2)
5x + 3 = C(x + 2) + D(x – 2)
If x=2: 5(2) + 3 = C(2 + 2) => 13 = 4C => C = 13/4
If x=-2: 5(-2) + 3 = D(-2 – 2) => -10 + 3 = -4D => -7 = -4D => D = 7/4
So, (5x + 3) / (x2 – 4) = (13/4)/(x – 2) + (7/4)/(x + 2).
Using the calculator with A=5, B=3, r1=2, r2=-2 gives C=3.25 and D=1.75.
How to Use This Partial Fraction Decomposition Calculator
- Enter Numerator Coefficients: Input the value for ‘A’ (coefficient of x) and ‘B’ (constant term) of the numerator polynomial Ax + B.
- Enter Denominator Roots: Input the values for ‘r1‘ and ‘r2‘, which are the distinct roots of the quadratic denominator, meaning the denominator is (x – r1)(x – r2). Ensure r1 is not equal to r2.
- Calculate: Click the “Calculate” button or simply change the input values. The calculator will automatically update.
- View Results: The calculator will display the decomposed form, the values of C and D, and the step-by-step process used to find them.
- Check the Chart: The chart visually compares the original function and the sum of the partial fractions to confirm they are identical (except at the asymptotes).
- Reset: Click “Reset” to clear the fields to their default values.
- Copy Results: Click “Copy Results” to copy the main result, intermediate values, and steps to your clipboard.
This calculator is designed for cases where the denominator is a product of two distinct linear factors. If your denominator has repeated roots or irreducible quadratic factors, the method and the form of the decomposition will differ. For more complex cases, you might need a more advanced algebra calculator or techniques like polynomial long division first.
Key Factors That Affect Partial Fraction Decomposition Results
- Degree of Numerator and Denominator: The partial fraction decomposition process is typically applied to proper rational functions (degree of numerator < degree of denominator). If it's improper, polynomial long division is performed first.
- Factors of the Denominator: The form of the decomposition depends entirely on the nature of the factors of the denominator (linear, repeated linear, irreducible quadratic, repeated irreducible quadratic). This calculator handles distinct linear factors.
- Distinct vs. Repeated Roots: If the denominator has repeated roots (e.g., (x-r)2), the partial fraction form includes terms like A/(x-r) + B/(x-r)2. Our calculator requires distinct roots.
- Irreducible Quadratic Factors: If the denominator contains factors like (x2 + ax + b) that cannot be factored into linear factors with real roots, the decomposition includes terms like (Cx + D)/(x2 + ax + b). Our calculator doesn’t handle these directly.
- Coefficients of the Polynomials: The specific values of the coefficients in the numerator and denominator determine the values of the constants (C, D, etc.) in the partial fractions.
- Field of Numbers: The factorization of the denominator depends on whether we are working with real or complex numbers. Irreducible quadratics over reals might factor over complex numbers.
Understanding these factors is crucial for correctly applying the partial fraction decomposition technique, especially when using tools like an integrate rational functions guide.
Frequently Asked Questions (FAQ)
- What if the degree of the numerator is greater than or equal to the degree of the denominator?
- If the rational function is improper, you must first perform polynomial long division to get a polynomial plus a proper rational function. Then, apply partial fraction decomposition to the proper rational function part.
- What if the roots r1 and r2 are the same?
- This calculator is designed for distinct roots (r1 ≠ r2). If the roots are the same (repeated root), the form of the decomposition is different (e.g., A/(x-r) + B/(x-r)2), and this calculator won’t give the correct form for that case.
- Can I use this calculator for denominators with three or more distinct linear factors?
- No, this specific calculator is set up for exactly two distinct linear factors in the denominator, resulting from a quadratic denominator that factors. For more factors, the setup and number of constants (C, D, E, etc.) would increase.
- What if the denominator is an irreducible quadratic like x2 + 1?
- If the denominator has an irreducible quadratic factor (one that doesn’t have real roots), the corresponding partial fraction term is of the form (Ax + B)/(x2 + 1). This calculator doesn’t handle that case. You’d need to consult resources on irreducible quadratic factors in partial fractions.
- How is partial fraction decomposition useful in integration?
- It breaks down a complex rational function into simpler fractions that are easier to integrate using basic integration rules, like the natural logarithm or power rule for integration. See our guide on integration techniques.
- What is the Heaviside cover-up method?
- It’s a quick way to find the coefficients (like C and D) for distinct linear factors. For C/(x-r1), you “cover up” (x-r1) in the original denominator and substitute x=r1 into the rest of the expression to find C.
- Can I find C and D by solving a system of equations?
- Yes. After setting Ax + B = C(x – r2) + D(x – r1), you can expand the right side, collect terms with x and constant terms, and equate coefficients with the left side. This gives a system of linear equations for C and D, solvable using a system of equations solver.
- Is partial fraction decomposition only for real numbers?
- While often introduced with real numbers, the technique also applies when working with complex numbers, allowing factorization of all polynomials into linear factors over the complex field.
Related Tools and Internal Resources
- Rational Function Grapher: Visualize rational functions and their asymptotes.
- Integration Techniques Guide: Learn how partial fractions are used in integration.
- Algebra Calculator: Solve various algebraic equations and expressions.
- Polynomial Long Division Guide: Learn how to divide polynomials, often a first step before partial fractions.
- System of Linear Equations Solver: Useful for finding coefficients when equating terms.
- Quadratic Equations Guide: Understand factoring and roots of quadratic equations, relevant to the denominator.