
Partial Fraction Decomposition Calculator solves complex fractions for Calculus and Engineering. Get detailed steps and verify answers. Use it now!
Partial Fraction Decomposition Calculator: The Tool for Calculus and Engineering Calculus is often described as the study of change. It helps us model the physical world, from the orbits of planets to the flow of…
Calculus is often described as the study of change. It helps us model the physical world, from the orbits of planets to the flow of electricity. However, for many students and professional engineers, calculus often feels more like the study of complex, unmanageable algebra. If you have ever stared at a complicated rational function inside an integral symbol or a Laplace transform and wondered, “How do I even begin to solve this?”, you are not alone. The answer usually lies in a powerful algebraic technique called Partial Fraction Decomposition.
This method allows you to break down complex, bulky fractions into simpler, “bite-sized” pieces that are infinitely easier to integrate or transform. However, the algebra required to perform this decomposition manually is tedious, error-prone, and incredibly time-consuming. One small arithmetic mistake in the first step can ruin pages of work. That is why we built our Partial Fraction Decomposition Calculator.
This tool is more than just an answer key. It is a comprehensive solver designed to be the best resource on the web. It handles proper and improper fractions, validates your input, and provides the detailed, step-by-step logic you need to master the concept. Whether you are tackling Calculus II integration problems, solving differential equations in engineering, or just checking your homework, this guide and calculator will become your go-to resource. For more tools to assist with your mathematical journey, you can always rely on My Online Calculators for accurate and helpful solutions.
To truly understand partial fraction decomposition, it helps to use a construction analogy. Imagine you have a large, intricate Lego castle. It is one massive structure made of many small, distinct bricks. Partial fraction decomposition is the process of taking that castle apart to identify the individual bricks used to build it. In mathematical terms, it is the exact reverse procedure of adding fractions.
Think back to basic algebra or Basic Algebra Concepts. When you add two simple fractions, you find a common denominator and combine them into a single, more complex expression. This is a process of synthesis/combination.
Example of Addition (Synthesis):
1/(x+1) + 2/(x-3) → (Combines to form) → (3x - 1) / (x2 - 2x - 3)
Partial fraction decomposition does the opposite. It is a process of analysis/breakdown. It starts with the complex rational expression (the result on the right) and breaks it back down into the sum of simpler fractions (the parts on the left).
Example of Decomposition (Analysis):
(3x - 1) / (x2 - 2x - 3) → (Decomposes into) → 1/(x+1) + 2/(x-3)
Formally, partial fraction decomposition expresses a rational function, $P(x)/Q(x)$, as a sum of simpler rational functions. This is only possible if the original function is “proper,” meaning the degree of the numerator $P(x)$ is less than the degree of the denominator $Q(x)$. If the function is improper, we must perform long division first—a step our calculator handles automatically.
Decomposition is rarely the end goal in a math problem; it is a means to an end. Complex rational functions are notoriously difficult to integrate or manipulate directly. There is no simple “Quotient Rule” for integration that works for every function. However, the “decomposed” simple fractions (like 1/(x+1)) are incredibly easy to work with.
This technique is a cornerstone of several advanced mathematical fields:
We designed this calculator to be the most helpful, user-friendly tool available. Unlike basic solvers that just spit out a final line of math without context, our tool respects the strict mathematical rules of decomposition. It includes features like automatic long division for improper fractions and interactive graphing.
Here is a step-by-step guide to using it effectively:
(x^2 + 1) / (x^3 - x). Always use parentheses to group terms clearly.While our calculator handles the heavy lifting, understanding the underlying algebra is crucial for exams. Before attempting partial fraction decomposition manually, you should be comfortable with three specific algebraic skills. If you are weak in these areas, consider reviewing Polynomial Factoring Guide.
The entire process relies on your ability to break the denominator, $Q(x)$, into its simplest factors. You must be able to recognize:
As mentioned, you cannot decompose an improper fraction. You must divide the numerator by the denominator to get a polynomial plus a remainder. This requires fluency in polynomial long division or synthetic division.
Once you set up your decomposition, you will end up with variables like A, B, and C. Finding the values of these variables requires solving a system of linear equations. You generally use substitution or elimination methods to solve for these unknowns.
One of the most common mistakes in calculus exams is attempting to decompose a fraction that isn’t ready for it. Partial fraction decomposition only works on proper rational functions.
A rational function is considered “proper” if the degree (the highest exponent) of the numerator is strictly less than the degree of the denominator.
x / (x^2 + 1) — (Degree 1 < Degree 2). This is ready to decompose.x^2 / (x^2 + 1) — (Degree 2 = Degree 2). You must divide first.x^3 / (x + 1) — (Degree 3 > Degree 1). You must divide first.If you identify an improper fraction, do not try to solve for A and B yet. Perform polynomial long division using the formula:
$$ \text{Improper Function} = \text{Polynomial Quotient} + \frac{\text{Remainder}}{\text{Divisor}} $$
Once divided, the “Remainder / Divisor” part will be a proper fraction. You then perform partial fraction decomposition on only that remainder part. Our calculator detects this immediately.
Once you have ensured you have a proper fraction, you must look at the denominator. The specific factors of the denominator dictate the “template” or “form” you will use. There are four distinct scenarios (or cases) you will encounter. We have summarized them in the table below for quick reference.
| Case Type | Description of Factor | Required Numerator Setup |
|---|---|---|
| Case 1 | Distinct Linear Factors (ax + b) |
Use a constant letter. Example: A / (ax + b) |
| Case 2 | Repeated Linear Factors (ax + b)n |
Use a series of constants for each power. Example: A/(...) + B/(...)^2 |
| Case 3 | Distinct Irreducible Quadratic (ax2 + bx + c) |
Use a linear term. Example: (Ax + B) / (...) |
| Case 4 | Repeated Irreducible Quadratic (ax2 + bx + c)n |
Use a series of linear terms. Example: (Ax + B)/(...) + (Cx + D)/(...)^2 |
This is the simplest and most common case. The denominator factors into unique linear terms. “Linear” means $x$ is to the power of 1, and “Distinct” means none of the factors are the same.
The Rule: For every factor $(ax + b)$, create a fraction $\frac{A}{(ax + b)}$.
Example: Decompose $\frac{1}{(x-1)(x+3)}$
The Setup: $\frac{1}{(x-1)(x+3)} = \frac{A}{(x-1)} + \frac{B}{(x+3)}$
Your goal is to find the numbers A and B that make this equation true. This usually leads to simpler natural logarithm integrals.
Sometimes a linear factor appears more than once. For example, $(x-1)^2$. A rookie mistake is to just write $\frac{A}{(x-1)^2}$. This is incorrect because it misses potential lower-power terms that contribute to the final sum.
The Rule: If a linear factor $(ax + b)$ is repeated $n$ times, you must include a sum of $n$ fractions, counting up from power 1 to power $n$.
Example: Decompose $\frac{x}{(x-2)^3}$
The Setup: $\frac{x}{(x-2)^3} = \frac{A}{(x-2)} + \frac{B}{(x-2)^2} + \frac{C}{(x-2)^3}$
Notice how we build up the powers: 1, 2, and 3. Each numerator is still a simple constant because the base factor inside the parenthesis, $(x-2)$, is linear.
An “irreducible quadratic” is a term with $x^2$ that cannot be factored further using real numbers. Examples include $(x^2 + 1)$ or $(x^2 + 4)$. You can test if a quadratic is irreducible by checking the discriminant ($b^2 – 4ac$). If the result is negative, it is irreducible.
The Rule: Because the denominator is degree 2 (quadratic), the numerator must be degree 1 (linear). The numerator takes the form $Ax + B$.
Example: Decompose $\frac{3}{(x-1)(x^2 + 1)}$
The Setup: $\frac{3}{(x-1)(x^2 + 1)} = \frac{A}{(x-1)} + \frac{Bx + C}{(x^2 + 1)}$
Here, the first part is a distinct linear factor (Case 1), so it gets an $A$. The second part is a quadratic factor, so it gets $Bx + C$. This setup is vital for inverse tangent integrals.
This is the “boss battle” of partial fractions. It combines the rules of Case 2 (repeating powers) and Case 3 (quadratic numerators). It involves a quadratic factor that cannot be reduced, raised to a power.
The Rule: You count up the powers like in Case 2, but every numerator must be in the linear form $Ax + B$ like in Case 3.
Example: Decompose $\frac{1}{(x^2 + 1)^2}$
The Setup: $\frac{1}{(x^2 + 1)^2} = \frac{Ax + B}{(x^2 + 1)} + \frac{Cx + D}{(x^2 + 1)^2}$
These problems result in large systems of equations with 4 or more variables ($A, B, C, D$). While solvable by hand, they are prime candidates for our calculator.
While our calculator gives you the answer instantly, understanding the manual process is vital for exams. Let’s walk through a complete “Case 1” example to see the logic in action.
Problem: Decompose $\frac{7x + 3}{x^2 + 3x – 4}$
We need to factor $x^2 + 3x – 4$. We are looking for two numbers that multiply to -4 and add to +3. Those numbers are +4 and -1.
Denominator = $(x + 4)(x – 1)$
Since these are distinct linear factors, we use single constants A and B.
$$ \frac{7x + 3}{(x + 4)(x – 1)} = \frac{A}{x + 4} + \frac{B}{x – 1} $$
Multiply the entire equation by the common denominator $(x + 4)(x – 1)$. This is the magic step that turns a fraction problem into a simple linear algebra problem.
$$ 7x + 3 = A(x – 1) + B(x + 4) $$
This equation is an identity; it must hold true for any value of $x$.
There are two primary methods to do this. Knowing both is helpful.
Pick x-values that make the terms zero. This is usually the fastest method for distinct linear factors.
Expand the right side and group x-terms and constant terms. This method is better for complex quadratic cases (Case 3 and 4) where substitution doesn’t eliminate enough variables.
$7x + 3 = Ax – A + Bx + 4B$
$7x + 3 = (A + B)x + (-A + 4B)$
Now, match the coefficients from the left side to the right side:
You now have a system of two equations. If $A + B = 7$, then $A = 7 – B$. Substitute this into the second equation to solve. This yields the same result: $A = 5, B = 2$.
Substitute A and B back into your setup from Step 2.
Final Answer: $\frac{5}{x + 4} + \frac{2}{x – 1}$
Partial fraction decomposition might seem like abstract algebra, but it is actually a practical tool used to simplify problems in physics and engineering. Here are two detailed examples of its application.
In Calculus II, you learn that the integral of $\frac{1}{x}$ is $\ln|x|$. Partial fractions allow you to turn impossible integrals into simple natural log problems.
Example: Calculate the integral $\int \frac{7x + 3}{x^2 + 3x – 4} \, dx$.
Trying to integrate this directly is very difficult. However, using our result from the previous section, the problem becomes:
$$ \int \left( \frac{5}{x + 4} + \frac{2}{x – 1} \right) \, dx $$
Because the integral of a sum is the sum of the integrals, we can integrate each part separately instantly:
$$ 5 \ln|x+4| + 2 \ln|x-1| + C $$
Without decomposition, solving this integral would require trigonometric substitution or other advanced, messy techniques. See the Integration Rules Guide for more examples.
In electrical engineering and control systems, engineers use the Laplace Transform to turn differential equations (Calculus) into algebraic equations (Algebra). This moves the problem from the “time domain” ($t$) to the “s-domain” ($s$).
When analyzing a circuit, an engineer might derive an equation for the output voltage that looks like this:
$$ V(s) = \frac{1}{s^2 + 3s + 2} $$
To find out what the voltage actually does over time, the engineer must convert this back using the Inverse Laplace Transform. However, standard Laplace tables only have entries for simple fractions like $\frac{1}{s+a}$, which corresponds to $e^{-at}$. They do not have entries for complex denominators.
The engineer must use partial fraction decomposition to break the function into:
$$ \frac{A}{s+1} + \frac{B}{s+2} $$
Once found, they can instantly write the time-domain solution: $V(t) = Ae^{-t} + Be^{-2t}$. This tells the engineer that the voltage will decay exponentially. Without this calculator and method, analyzing dynamic systems would be infinitely harder.
Even advanced math students stumble on specific pitfalls. If your answer looks wrong or your system of equations has no solution, check this list:
If a quadratic factor like $x^2 – 9$ appears, you should factor it further into $(x-3)(x+3)$. This converts it from a “Case 3” problem (Irreducible Quadratic) into a “Case 1” problem (Distinct Linear). Case 1 is much easier to solve algebraically. Always factor the denominator completely before setting up your variables.
Partial fraction decomposition is strictly for rational functions (polynomials divided by polynomials). However, calculus students often use U-substitution to convert trig integrals into rational functions. For example, if you substitute $u = \sin(x)$, you transform trigonometric expressions into polynomials in terms of $u$. You can then use this calculator on the resulting $u$ terms.
For distinct linear factors, the “Heaviside Cover-up Method” (Method A above) is the fastest. You simply “cover up” the factor in the denominator and substitute the root value into the remaining x’s. For repeated roots or quadratic factors, equating coefficients (Method B) is more reliable. Or, for the absolute fastest results, use our Partial Fraction Decomposition Calculator at the top of this page.
If you set up your system and cannot find a valid solution for A, B, etc., you likely set up the partial fraction form incorrectly. Check if you missed a term for a repeated root or forgot the $Ax+B$ structure for a quadratic factor. Also, ensure you copied the original problem correctly.
Yes. The rule generalizes for any degree. If you have an irreducible cubic factor $(x^3 + …)$ in the denominator, the numerator must be one degree less: a quadratic $(Ax^2 + Bx + C)$. However, in standard calculus courses, you will rarely encounter irreducible factors higher than degree 2.
Partial Fraction Decomposition is a powerful algebraic technique that serves as a bridge between complex rational expressions and solvable calculus problems. It is the key to unlocking difficult integrals and solving complex differential equations in engineering. Whether you are manually calculating coefficients using the substitution method or verifying your homework results, understanding the logic behind the decomposition is essential for mathematical success.
Stop struggling with messy algebra and impossible integrals. Use our Partial Fraction Decomposition Calculator to get instant, accurate results, visualize the function, and learn the step-by-step process required to master this skill. For further study and more helpful tools, remember to bookmark My Online Calculators. Give the solver a try above and simplify your calculus journey today!
It takes a rational function, meaning a polynomial on top of a polynomial, and rewrites it as a sum of simpler fractions. This is useful because those simpler pieces are often easier to integrate, invert (for Laplace transforms), or simplify.
Many calculators also:
(x - 2)^2.x^2 + 1 by using a linear numerator, such as (Cx + D)/(x^2 + 1).Most calculators factor the denominator for you, but it still helps to know what you’re expecting. The factorization controls the “shape” of the answer.
A quick guide:
(x - r) gives terms like A/(x - r).(x - r)^2 gives A/(x - r) + B/(x - r)^2.x^2 + bx + c gives (Cx + D)/(x^2 + bx + c).If the tool’s output looks odd, it’s often because the denominator didn’t factor the way you thought it would.
A reliable calculator will usually do long division automatically and then decompose only the remainder part.
For example, if you enter something like (x^2 + 1)/(x + 1), the calculator should first rewrite it as:
If your tool skips that step, the result can look wrong or incomplete. When in doubt, do the long division yourself first, then decompose the leftover fraction.
Many are accurate for standard homework-style problems, but accuracy depends on the engine behind the tool and the problem type.
In general:
If the problem is complex or your answer matters (grades, reports, published work), it’s smart to verify the result.
Use a simple algebra check:
Multiply the calculator’s decomposed answer by the original denominator, then simplify. You should get back the original numerator.
If you don’t, one of these is usually the issue:
For tougher problems, comparing results in two tools (for example, Wolfram|Alpha and Symbolab) can help you spot mistakes fast.
(Cx + D)/(x^2 + 1) instead of a constant on top?That happens when the denominator has an irreducible quadratic, meaning it can’t be factored into real linear factors.
For a quadratic factor like x^2 + 1, the numerator has to be general enough to cover all possibilities, so calculators use:
(Cx + D)/(x^2 + 1)That’s normal and expected. If you only put a constant on top, you’d miss valid decompositions.
Different forms can still be correct. Common reasons:
If you want to match a specific format, try simplifying both answers, or expand and compare by multiplying by the denominator.
It depends on the site, but many follow a few common rules:
* for multiplication (2*x, not 2x if the tool is strict).^ for powers (x^2).(x+1)(x-2) often needs to be (x+1)*(x-2)).On mobile apps that accept photo input, it’s worth double-checking the parsed expression, handwriting recognition can misread signs and exponents.