Partial Fractions Decomposition Calculator
For rational functions with distinct linear factors (x-r1)(x-r2) in the denominator.
Calculator
Enter the coefficients of the numerator (px + q) and the distinct roots (r1, r2) of the denominator (x-r1)(x-r2) to find the partial fractions decomposition.
Decomposition Result
Coefficient A: –
Coefficient B: –
Values of Coefficients A and B
What is Partial Fractions Decomposition?
Partial fractions decomposition, or partial fraction expansion, is a method used in algebra to break down a complex rational function (a fraction of two polynomials) into a sum of simpler fractions. This technique is particularly useful in calculus for integrating rational functions, as the simpler fractions are often easier to integrate. The Partial Fractions Decomposition Calculator helps automate this process for specific cases.
The core idea is that a rational function where the degree of the numerator is less than the degree of the denominator can be expressed as a sum of fractions whose denominators are the factors of the original denominator.
Anyone studying algebra, calculus (especially integration), or fields that use these mathematical tools (like engineering, physics, and economics) might use partial fraction decomposition. This Partial Fractions Decomposition Calculator is designed for rational functions with two distinct linear factors in the denominator.
Common Misconceptions
- It works for all fractions: Partial fraction decomposition is primarily for rational functions where the numerator’s degree is less than the denominator’s degree (proper fractions). If not, polynomial long division must be performed first.
- The form is always the same: The form of the decomposed fractions depends on the nature of the factors in the denominator (linear, repeated linear, irreducible quadratic, repeated irreducible quadratic). Our Partial Fractions Decomposition Calculator focuses on the distinct linear factors case.
Partial Fractions Decomposition Formula and Mathematical Explanation
For a rational function of the form:
(px + q) / ((x – r1)(x – r2))
where the denominator has two distinct linear factors (x – r1) and (x – r2) (meaning r1 ≠ r2), the partial fraction decomposition is:
A / (x – r1) + B / (x – r2)
To find the coefficients A and B, we combine the right side over a common denominator:
(A(x – r2) + B(x – r1)) / ((x – r1)(x – r2))
Since the denominators are now the same, the numerators must be equal:
px + q = A(x – r2) + B(x – r1)
To solve for A and B, we can use the Heaviside cover-up method or compare coefficients. Using the cover-up method:
- Set x = r1: p*r1 + q = A(r1 – r2) + B(0) => A = (p*r1 + q) / (r1 – r2)
- Set x = r2: p*r2 + q = A(0) + B(r2 – r1) => B = (p*r2 + q) / (r2 – r1)
This Partial Fractions Decomposition Calculator uses these formulas for A and B.
Variables Table
| Variable | Meaning | Unit | Typical range |
|---|---|---|---|
| p | Coefficient of x in the numerator | Dimensionless | Real numbers |
| q | Constant term in the numerator | Dimensionless | Real numbers |
| r1 | First distinct root of the denominator | Dimensionless | Real numbers |
| r2 | Second distinct root of the denominator (r1 ≠ r2) | Dimensionless | Real numbers |
| A | Coefficient of the first partial fraction | Dimensionless | Calculated real number |
| B | Coefficient of the second partial fraction | Dimensionless | Calculated real number |
Practical Examples (Real-World Use Cases)
Example 1:
Decompose the fraction (x + 5) / ((x – 1)(x – 2)).
Here, p = 1, q = 5, r1 = 1, r2 = 2.
- A = (1*1 + 5) / (1 – 2) = 6 / (-1) = -6
- B = (1*2 + 5) / (2 – 1) = 7 / 1 = 7
So, (x + 5) / ((x – 1)(x – 2)) = -6/(x – 1) + 7/(x – 2).
Our Partial Fractions Decomposition Calculator would yield A=-6 and B=7.
Example 2:
Decompose (3x – 1) / (x(x + 3)). This can be written as (3x – 1) / ((x – 0)(x – (-3))).
Here, p = 3, q = -1, r1 = 0, r2 = -3.
- A = (3*0 – 1) / (0 – (-3)) = -1 / 3
- B = (3*(-3) – 1) / (-3 – 0) = -10 / -3 = 10/3
So, (3x – 1) / (x(x + 3)) = (-1/3)/x + (10/3)/(x + 3).
Using the Partial Fractions Decomposition Calculator with p=3, q=-1, r1=0, r2=-3 gives A=-1/3 and B=10/3.
How to Use This Partial Fractions Decomposition Calculator
- Identify the form: Ensure your rational function is of the form (px + q) / ((x – r1)(x – r2)), where r1 and r2 are distinct.
- Enter numerator coefficients: Input the value of ‘p’ (coefficient of x) and ‘q’ (constant term) from your numerator.
- Enter denominator roots: Input the values of ‘r1’ and ‘r2’, the distinct roots from the denominator factors (x-r1) and (x-r2).
- Calculate: Click the “Calculate” button or simply change input values. The Partial Fractions Decomposition Calculator will automatically update.
- Read results: The calculator will display the values of A and B, and the final decomposed form A/(x-r1) + B/(x-r2).
- Check errors: If r1 and r2 are the same, an error message will appear as the formula used is for distinct roots.
Key Factors That Affect Partial Fractions Decomposition Results
- Degree of Numerator vs. Denominator: This calculator assumes the numerator’s degree (1) is less than the denominator’s (2). If it were higher, polynomial long division would be needed first.
- Nature of Denominator Factors: The method changes based on whether the denominator has distinct linear factors (like here), repeated linear factors, or irreducible quadratic factors. Our Partial Fractions Decomposition Calculator is for distinct linear ones.
- Distinctness of Linear Factors: If the linear factors are not distinct (r1 = r2), the form of the decomposition changes, and this calculator’s specific formulas don’t apply.
- Coefficients of the Numerator: The values of ‘p’ and ‘q’ directly influence the values of A and B.
- Roots of the Denominator: The values ‘r1’ and ‘r2’ also directly influence A and B.
- Irreducible Quadratic Factors: If the denominator contained factors like (x^2 + 1), the partial fraction form would include terms like (Cx + D) / (x^2 + 1), which is beyond this calculator’s scope.
Frequently Asked Questions (FAQ)
A: You must first perform polynomial long division to get a polynomial plus a proper rational function (where the numerator’s degree is smaller). Then, you can apply partial fraction decomposition to the resulting proper rational function. This Partial Fractions Decomposition Calculator does not perform long division.
A: If the denominator has a factor (x-r)^2, the decomposition includes terms like A/(x-r) + B/(x-r)^2. This calculator is not designed for repeated roots.
A: If the denominator has a factor (ax^2+bx+c) where b^2-4ac < 0, the decomposition includes a term (Cx+D)/(ax^2+bx+c). This Partial Fractions Decomposition Calculator doesn't handle these.
A: No, this specific Partial Fractions Decomposition Calculator is designed for exactly two distinct linear factors (x-r1)(x-r2) and a linear or constant numerator. The principle extends, but the input and calculation are specific here.
A: It’s very useful in calculus for integrating rational functions, as integrals of simpler fractions are easier to find. It’s also used in solving differential equations using Laplace transforms and in other areas of engineering and science.
A: It uses the Heaviside cover-up method formulas: A = (p*r1 + q) / (r1 – r2) and B = (p*r2 + q) / (r2 – r1).
A: It means the roots r1 and r2 must be different numbers. If they were the same, we would have a repeated root, and the denominator would be (x-r1)^2.
A: Yes, they can be any real numbers, including fractions or decimals. The Partial Fractions Decomposition Calculator handles numerical inputs.
Related Tools and Internal Resources
- Algebra Solver: For solving various algebraic equations and expressions.
- Polynomial Calculator: Performs operations like addition, subtraction, multiplication, and division of polynomials.
- Integral Calculator: Useful for integrating functions, including those decomposed into partial fractions.
- System of Equations Solver: Solving systems of linear equations is key to finding coefficients in more complex partial fraction problems.
- Math Help & Resources: General resources for various math topics.
- Fraction Calculator: For basic arithmetic with fractions.