Calculate Partial Fraction Expansion
Enter the numerator polynomial coefficients and the distinct real roots of the denominator polynomial below. The calculator will provide the partial fraction expansion for the form P(x) / ((x-r1)(x-r2)...(x-rn)).
Understanding Partial Fraction Expansion
Partial fraction expansion is a powerful mathematical technique used to decompose a rational function (a fraction where both the numerator and denominator are polynomials) into a sum of simpler fractions. This decomposition is incredibly useful in various fields, particularly in calculus for integration, in engineering for inverse Laplace transforms, and in control systems for analyzing system responses.
What is a Rational Function?
A rational function is defined as the ratio of two polynomials, P(x) / Q(x), where P(x) is the numerator polynomial and Q(x) is the denominator polynomial. For partial fraction expansion to be applicable, the degree of the numerator polynomial P(x) must be less than the degree of the denominator polynomial Q(x). If it's not, you first perform polynomial long division to reduce it to a proper rational function plus a polynomial.
Why Do We Use Partial Fractions?
The primary reason for using partial fractions is simplification. Integrating complex rational functions directly can be challenging or impossible. By breaking them down into simpler terms, each term often becomes straightforward to integrate (e.g., using a simple logarithmic rule). Similarly, in engineering, decomposing a complex transfer function into simpler first-order or second-order terms makes it easier to understand the system's behavior.
Types of Denominator Factors
The method of partial fraction expansion depends heavily on the nature of the factors in the denominator polynomial Q(x). Here are the common types:
- Distinct Linear Factors: Factors of the form (ax + b), where each factor appears only once. For example, Q(x) = (x-1)(x+2).
- Repeated Linear Factors: Factors of the form (ax + b)n, where a linear factor is repeated 'n' times. For example, Q(x) = (x-1)3.
- Irreducible Quadratic Factors: Factors of the form (ax2 + bx + c) where the quadratic cannot be factored into real linear factors (i.e., its discriminant b2 - 4ac < 0). These can also be repeated. For example, Q(x) = (x2+1)(x2+x+1).
Our calculator, for simplicity and to remain fully client-side without heavy libraries, currently focuses on functions with distinct linear factors in the denominator.
The Heaviside Cover-Up Method (for Distinct Linear Factors)
For rational functions with distinct linear factors in the denominator, the Heaviside Cover-Up Method (also known as the "cover-up rule" or "Heaviside's short-cut method") provides an elegant and quick way to find the coefficients of the partial fractions. Consider a rational function:
F(x) = P(x) / ((x - r1)(x - r2)...(x - rn))
where r1, r2, ..., rn are distinct real roots. The partial fraction expansion will be:
F(x) = A1/(x - r1) + A2/(x - r2) + ... + An/(x - rn)
To find any coefficient Ak, you can use the formula:
Ak = [ (x - rk) * F(x) ] evaluated at x = rk
This means you "cover up" the (x - rk) term in the denominator of F(x), and then substitute x = rk into the remaining expression.
Example Walkthrough
Let's say we want to expand: F(x) = (x - 5) / ((x - 1)(x + 2))
The roots are r1 = 1 and r2 = -2. The expansion is A/(x - 1) + B/(x + 2).
- To find A (for r1 = 1):
A = [ (x - 1) * (x - 5) / ((x - 1)(x + 2)) ] evaluated at x = 1
A = [ (x - 5) / (x + 2) ] evaluated at x = 1
A = (1 - 5) / (1 + 2) = -4 / 3 - To find B (for r2 = -2):
B = [ (x + 2) * (x - 5) / ((x - 1)(x + 2)) ] evaluated at x = -2
B = [ (x - 5) / (x - 1) ] evaluated at x = -2
B = (-2 - 5) / (-2 - 1) = -7 / -3 = 7 / 3
So, the partial fraction expansion is: -4/3(x - 1) + 7/3(x + 2)
How to Use This Calculator
- Numerator Coefficients: Enter the coefficients of your numerator polynomial, separated by commas. For example, for P(x) = x2 + 2x + 3, you would enter "1, 2, 3". For P(x) = x - 5, you would enter "1, -5". Make sure the degree of the numerator is less than the degree of the denominator (number of roots).
- Denominator Roots: Enter the distinct real roots of your denominator polynomial, separated by commas. For example, if your denominator is Q(x) = (x - 1)(x + 2), the roots are 1 and -2. You would enter "1, -2".
- Click "Calculate Expansion".
The calculator will then display the partial fraction expansion in the format A/(x-r) + B/(x-s) + ...
Limitations of This Calculator
While powerful for its intended scope, this calculator has a few limitations:
- It currently only handles distinct real linear factors in the denominator. It does not support repeated linear factors (e.g., (x-a)2) or irreducible quadratic factors (e.g., x2+1).
- The degree of the numerator polynomial must be strictly less than the degree of the denominator polynomial (number of roots). If not, you must perform polynomial long division first.
- It assumes you have already factored your denominator polynomial to find its distinct real roots.
Despite these limitations, this calculator serves as a quick and convenient tool for a common type of partial fraction expansion, helping students and professionals verify their calculations or quickly get results for suitable problems.