Partial Fraction Decomposition Calculator
Easily find the practical fractions of rational functions with distinct linear factors.
Rational Function Inputs
Enter the coefficients for the numerator (ax + b) and the distinct roots (r1, r2) of the denominator (x – r1)(x – r2). We assume the degree of the numerator is less than the denominator.
What is Partial Fraction Decomposition?
Partial Fraction Decomposition, or finding the practical fractions of a rational function, is a method used to rewrite a complex rational function (a fraction where the numerator and denominator are polynomials) as a sum of simpler fractions. This technique is invaluable in calculus, particularly for integrating rational functions, and also in solving differential equations and analyzing linear time-invariant systems using Laplace transforms. Our Partial Fraction Decomposition Calculator helps you perform this for cases with distinct linear factors in the denominator.
The core idea is that a rational function P(x)/Q(x), where P(x) and Q(x) are polynomials and the degree of P(x) is less than the degree of Q(x) (a proper rational function), can be broken down based on the factors of the denominator Q(x). If the degree of P(x) is greater than or equal to the degree of Q(x), polynomial long division must be performed first.
This Partial Fraction Decomposition Calculator focuses on the case where the denominator has distinct linear factors, which is a common scenario.
Partial Fraction Decomposition Formula and Mathematical Explanation
For a proper rational function P(x)/Q(x) where the denominator Q(x) can be factored into distinct linear factors, like Q(x) = (x – r1)(x – r2)…(x – rn), the decomposition is of the form:
P(x) / Q(x) = A1/(x – r1) + A2/(x – r2) + … + An/(x – rn)
Our calculator specifically handles the case: (ax + b) / ((x – r1)(x – r2)) = A/(x – r1) + B/(x – r2)
To find A and B, we multiply both sides by (x – r1)(x – r2):
ax + b = A(x – r2) + B(x – r1)
We can solve for A and B using the Heaviside cover-up method:
- Set x = r1: a*r1 + b = A(r1 – r2) + B(0) => A = (a*r1 + b) / (r1 – r2)
- Set x = r2: a*r2 + b = A(0) + B(r2 – r1) => B = (a*r2 + b) / (r2 – r1)
This is valid as long as r1 ≠ r2.
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, r2 | Distinct roots of the denominator | None | Real numbers, r1 ≠ r2 |
| A, B | Coefficients of the partial fractions | None | Real numbers |
Practical Examples
Example 1:
Let’s decompose the function f(x) = (x + 3) / ((x – 1)(x – 2)).
Here, a = 1, b = 3, r1 = 1, r2 = 2.
Using the formulas:
A = (1*1 + 3) / (1 – 2) = 4 / (-1) = -4
B = (1*2 + 3) / (2 – 1) = 5 / 1 = 5
So, (x + 3) / ((x – 1)(x – 2)) = -4/(x – 1) + 5/(x – 2). Our Partial Fraction Decomposition Calculator would give these values.
Example 2:
Decompose g(x) = (5x – 1) / (x(x + 1)). Note that x(x+1) = (x-0)(x-(-1))
Here, a = 5, b = -1, r1 = 0, r2 = -1.
A = (5*0 – 1) / (0 – (-1)) = -1 / 1 = -1
B = (5*(-1) – 1) / (-1 – 0) = -6 / -1 = 6
So, (5x – 1) / (x(x + 1)) = -1/x + 6/(x + 1).
How to Use This Partial Fraction Decomposition Calculator
- Enter Numerator Coefficients: Input the values for ‘a’ (coefficient of x) and ‘b’ (constant term) of the numerator polynomial (ax + b).
- Enter Denominator Roots: Input the distinct roots ‘r1’ and ‘r2’ from the denominator factors (x – r1) and (x – r2). Ensure r1 is not equal to r2.
- Calculate: Click the “Calculate” button or simply change the input values. The results will update automatically.
- View Results: The calculator displays the decomposed form A/(x – r1) + B/(x – r2) as the primary result, along with the calculated values of A and B.
- See Chart: A bar chart visualizes the magnitudes of A and B.
- Reset: Use the “Reset” button to clear inputs and results to default values.
- Copy: Use the “Copy Results” button to copy the decomposition and values to your clipboard.
This Partial Fraction Decomposition Calculator is designed for proper rational functions with two distinct linear factors in the denominator. If your function has a numerator degree equal to or higher than the denominator, or if the denominator has repeated roots or irreducible quadratic factors, you’ll need different methods (or polynomial long division first).
Key Factors That Affect Partial Fraction Decomposition Results
- Degree of Numerator vs. Denominator: The method of partial fractions directly applies to *proper* rational functions (degree of numerator < degree of denominator). If improper, polynomial long division is needed first, and the remainder (which is a proper rational function) is then decomposed. Our Partial Fraction Decomposition Calculator assumes a proper fraction.
- Nature of Denominator Roots: The form of the decomposition depends entirely on the factors of the denominator:
- Distinct Linear Factors: (x – r1)(x – r2)… gives terms A1/(x-r1) + A2/(x-r2) + …
- Repeated Linear Factors: (x – r)^k gives terms A1/(x-r) + A2/(x-r)^2 + … + Ak/(x-r)^k
- Irreducible Quadratic Factors: (ax^2 + bx + c) where b^2 – 4ac < 0 gives a term (Ax + B)/(ax^2 + bx + c)
- Repeated Irreducible Quadratic Factors: (ax^2 + bx + c)^k gives more complex terms.
- Values of the Roots: The specific values of the roots (r1, r2, etc.) directly influence the calculated coefficients (A, B, etc.). Small changes in roots can lead to significant changes in coefficients, especially if roots are close together.
- Coefficients of the Numerator: The coefficients of the numerator polynomial are used directly in the calculation of the partial fraction coefficients.
- Completeness of Factorization: The denominator must be fully factored into linear and irreducible quadratic factors over the real numbers (or linear over complex numbers if needed) to apply the correct decomposition form.
- Method of Solving for Coefficients: While the Heaviside method is quick for distinct linear factors, equating coefficients or substituting other values of x might be needed for more complex cases.
Frequently Asked Questions (FAQ)
A: A rational function is a function that can be expressed as the ratio of two polynomials, P(x)/Q(x), where Q(x) is not the zero polynomial.
A: You need to perform polynomial long division if the degree of the numerator polynomial is greater than or equal to the degree of the denominator polynomial. Our calculator assumes the degree of the numerator (1 in ax+b) is less than the denominator (2 in (x-r1)(x-r2)).
A: If the denominator has a factor like (x-r)^k, the decomposition includes terms A1/(x-r) + A2/(x-r)^2 + … + Ak/(x-r)^k. This calculator doesn’t handle this case directly.
A: An irreducible quadratic factor like (ax^2 + bx + c) (with b^2-4ac < 0) in the denominator leads to a term (Ax+B)/(ax^2+bx+c) in the decomposition. This calculator is not set up for this.
A: It simplifies complex rational functions into sums of simpler ones, which are much easier to integrate or use in inverse Laplace transforms. It’s a key technique in calculus and engineering.
A: This calculator is designed for real roots r1 and r2. If the denominator has complex roots, they come in conjugate pairs, forming an irreducible quadratic over real numbers, which requires a different approach.
A: The formulas used here require r1 ≠ r2 (distinct roots). If r1 = r2, the denominator would have a repeated root (x-r1)^2, and a different decomposition form is needed. The calculator will show an error or undefined result if r1=r2.
A: No, finding roots of polynomials of degree 3 or higher can be difficult. This calculator assumes you already know the distinct linear factors (and thus the roots r1, r2) of the denominator.
Related Tools and Internal Resources
- {related_keywords}[0] – Find the roots of quadratic equations to help factor your denominator.
- {related_keywords}[1] – Perform polynomial long division if your rational function is improper.
- {related_keywords}[2] – Learn more about integration techniques where partial fractions are used.
- {related_keywords}[3] – Calculate Laplace transforms, which often involve partial fraction decomposition.
- {related_keywords}[4] – Explore different types of polynomial factorizations.
- {related_keywords}[5] – A general tool for various algebraic manipulations.