Instant PDF download, name-and-email checkout. Complete Book Bundle: every Economics, Statistics, Mathematics, Econometrics and Research Methods book
Mathematics

Partial Fractions Explained: Splitting Rational Functions, Repeated Factors and Integration

Learn partial fractions step by step: distinct, repeated and quadratic factors, improper fractions and integration, with a worked app-downloads case study.

In 30 seconds
  • Partial fractions split one awkward rational function into a sum of simple fractions that you can integrate one at a time.
  • Each linear factor \((x-a)\) gives a term \(\frac{A}{x-a}\); a repeated factor \((x-a)^2\) needs two terms; an irreducible quadratic needs \(\frac{Bx+C}{x^2+k}\).
  • In our case, a revision app’s weekly downloads \(\frac{1500}{(t+1)(t+4)}\) split into \(\frac{500}{t+1}-\frac{500}{t+4}\), so the first 8 weeks bring about 549 downloads.
  • Even if the launch ran for ever, total downloads would never pass \(500\ln 4 \approx 693\): the integral converges.
  • Exam point: if the top degree is not lower than the bottom degree, divide first. Splitting an improper fraction directly is the most common lost mark.

The case: how many downloads will a launch campaign bring?

A small team launches a free revision app for A Level students. They run a burst of adverts in the first week and then stop paying for promotion. Downloads are high at the start and then fall away as the advert effect fades. From the first fortnight of data they fit a simple model for the download rate, measured in downloads per week:

\[ R(t) = \frac{1500}{(t+1)(t+4)}, \qquad t \ge 0 \text{ weeks after launch.} \]

At launch the rate is \(R(0) = 1500/4 = 375\) downloads a week. One week later it has dropped to \(R(1) = 1500/10 = 150\). By week 4 it is \(37.5\), and by week 8 it is under 14 a week. (The figures are illustrative.)

The team’s questions are practical. How many downloads should they expect in the first 8 weeks? When will they reach half of everything the campaign will ever deliver? And is there a ceiling, or will the downloads keep adding up for ever if they simply wait?

Each question asks for a total, and a total of a rate is an integral. The trouble is the integrand. You cannot integrate \(\frac{1500}{(t+1)(t+4)}\) by any rule you learnt first. There is no obvious substitution, and integration by parts makes it worse. The tool that unlocks it is partial fractions.

The concept: undoing the common denominator

You already know how to add fractions. To add \(\frac{2}{x-1}\) and \(\frac{3}{x+2}\) you use the common denominator \((x-1)(x+2)\) and get \(\frac{5x+1}{(x-1)(x+2)}\). Partial fractions is that process run backwards. You start with the single combined fraction and recover the simple pieces it came from.

Why bother? Because the simple pieces are easy to integrate. Every term of the form \(\frac{A}{x-a}\) integrates to \(A\ln|x-a|\). Every term \(\frac{A}{(x-a)^2}\) integrates to \(-\frac{A}{x-a}\). A messy rational function becomes a short list of logarithms and reciprocals.

The method works only for a proper rational function, where the degree of the numerator is less than the degree of the denominator. If it is not proper, you first divide to get a polynomial plus a proper remainder, and then split the remainder.[3]

Key termPartial fraction decomposition: writing a proper rational function \(\frac{P(x)}{Q(x)}\) as a sum of simpler fractions whose denominators are the factors of \(Q(x)\). The form of each term is fixed by the type of factor: linear, repeated linear or irreducible quadratic.

Three standard forms cover the questions you will meet in AP Calculus BC, IB higher level and Cambridge AS/A Level:

\[ \frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}, \qquad \frac{px^2+qx+r}{(x-a)(x-b)^2} = \frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{(x-b)^2}, \qquad \frac{px^2+qx+r}{(x-a)(x^2+k)} = \frac{A}{x-a} + \frac{Bx+C}{x^2+k} \]

Here \(a\) and \(b\) are the roots of the linear factors and \(k>0\), so \(x^2+k\) cannot be factorised over the real numbers. The letters \(A\), \(B\) and \(C\) are constants you must find. The rule behind the forms is simple: the numerator over each factor is one degree lower than that factor. A linear factor gets a constant on top; a quadratic factor gets a linear expression \(Bx+C\) on top. A repeated factor \((x-b)^2\) needs a term for every power, \((x-b)\) and \((x-b)^2\), because the combined denominator could have come from either.

Mathematics Made Simple textbook coverMathematics Made Simple explains partial fractions and integration with worked examples and graphs.Get the textbook · $12

Why this method fits the case

The download rate is a rational function whose denominator already splits into two different linear factors, \((t+1)\) and \((t+4)\). That is the textbook situation for partial fractions. Once split, each piece is a constant over a linear factor, and the integral is a pair of logarithms.[3]

The decomposition also tells a story. The rate becomes \(\frac{500}{t+1} – \frac{500}{t+4}\): the difference of two decaying curves. Early on the first term is much larger than the second, so the rate is high. Later the two terms become almost equal and nearly cancel, which is why the rate falls so fast. The model has the shape of a launch: a strong start and a long tail.

Partial fractions is not the right tool in every case. If the numerator is the derivative of the denominator, as in \(\frac{2x+3}{x^2+3x+2}\), you can write the answer straight away as \(\ln|x^2+3x+2|\). If the denominator is an irreducible quadratic on its own, such as \(\frac{1}{x^2+9}\), you need the inverse tangent, not a split. And if the integrand is not a rational function at all, for example \(x e^{x}\), you need integration by parts. Check for these shortcuts before reaching for the full method.

Setting it up

Here is everything we know, and what each quantity means.

QuantitySymbolValue or expressionMeaning
Time since launch\(t\)weeks, \(t \ge 0\)The input variable
Download rate\(R(t)\)\(\frac{1500}{(t+1)(t+4)}\)Downloads per week at time \(t\)
Rate at launch\(R(0)\)375 per weekPeak of the campaign
Cumulative downloads\(S(T)\)\(\int_0^T R(t)\,dt\)Total from launch to week \(T\)
Long-run total\(S_\infty\)\(\lim_{T\to\infty} S(T)\)The ceiling, if there is one

The plan has three stages. First split \(R(t)\) into partial fractions. Then integrate each term to find \(S(T)\). Finally, put in the numbers: \(T=8\), the half-way point and the limit as \(T\) grows.

Solving it

Worked example

Split \(R(t) = \frac{1500}{(t+1)(t+4)}\) into partial fractions and find the number of downloads in the first 8 weeks.

Step 1The fraction is proper (degree 0 over degree 2) and the factors are distinct and linear, so write \(\frac{1500}{(t+1)(t+4)} = \frac{A}{t+1} + \frac{B}{t+4}\).
Step 2Multiply through by \((t+1)(t+4)\): \(1500 = A(t+4) + B(t+1)\). This is an identity, true for every \(t\).
Step 3Put \(t=-1\): \(1500 = 3A\), so \(A = 500\). Put \(t=-4\): \(1500 = -3B\), so \(B = -500\). (Choosing the roots makes one term vanish each time. This is often called the cover-up method.)
Step 4So \(R(t) = \frac{500}{t+1} – \frac{500}{t+4}\). Check at \(t=0\): \(500 – 125 = 375\). Correct.
Step 5Integrate: \(S(T) = \Big[500\ln(t+1) – 500\ln(t+4)\Big]_0^T = 500\ln\frac{T+1}{T+4} – 500\ln\frac{1}{4} = 500\ln\frac{4(T+1)}{T+4}\).
Step 6At \(T=8\): \(S(8) = 500\ln\frac{36}{12} = 500\ln 3 \approx 549.3\).

The first 8 weeks bring about 549 downloads.

The same formula answers the team’s other questions. The long-run total is the limit of \(S(T)\). As \(T\to\infty\), \(\frac{T+1}{T+4}\to 1\), so

\[ S_\infty = \lim_{T\to\infty} 500\ln\frac{4(T+1)}{T+4} = 500\ln 4 \approx 693.1. \]

Half of that is \(250\ln 4 = 500\ln 2\). Setting \(500\ln\frac{4(T+1)}{T+4} = 500\ln 2\) gives \(\frac{4(T+1)}{T+4} = 2\), so \(4T+4 = 2T+8\) and \(T = 2\). Half of all downloads arrive in the first two weeks. To reach 90% of the ceiling, about 623.8 downloads, you need \(T=20\): \(S(19) \approx 623.3\) falls just short, while \(S(20) \approx 626.4\) clears it.

Worked example

Repeated factor. Express \(\frac{7x+1}{(x-1)(x+1)^2}\) in partial fractions and hence find \(\int_2^3 \frac{7x+1}{(x-1)(x+1)^2}\,dx\) in exact form.

Step 1The factor \((x+1)\) is repeated, so it needs two terms: \(\frac{7x+1}{(x-1)(x+1)^2} = \frac{A}{x-1} + \frac{B}{x+1} + \frac{C}{(x+1)^2}\).
Step 2Multiply through: \(7x+1 = A(x+1)^2 + B(x-1)(x+1) + C(x-1)\).
Step 3Put \(x=1\): \(8 = 4A\), so \(A=2\). Put \(x=-1\): \(-6 = -2C\), so \(C=3\).
Step 4No root removes \(B\), so compare the coefficients of \(x^2\): \(0 = A + B\), giving \(B = -2\).
Step 5Check with \(x=0\): right-hand side \(= 2(1) – 2(-1) + 3(-1) = 1\), and the left-hand side is \(1\). Correct.
Step 6Integrate: \(\int \Big(\frac{2}{x-1} – \frac{2}{x+1} + \frac{3}{(x+1)^2}\Big)dx = 2\ln|x-1| – 2\ln|x+1| – \frac{3}{x+1}\).
Step 7At \(x=3\): \(2\ln 2 – 2\ln 4 – \frac{3}{4} = -2\ln 2 – 0.75\). At \(x=2\): \(0 – 2\ln 3 – 1\). Subtract: \(2\ln 3 – 2\ln 2 + 0.25 = 2\ln\frac{3}{2} + \frac{1}{4}\).

The integral equals \(2\ln\frac{3}{2} + \frac{1}{4} \approx 1.061\).

Worked example

Improper fraction. Find \(\int_0^1 \frac{2x^2+5x+5}{(x+1)(x+2)}\,dx\) in the form \(p + q\ln 2 + r\ln 3\).

Step 1Top and bottom both have degree 2, so the fraction is improper. Expand the bottom: \((x+1)(x+2) = x^2+3x+2\).
Step 2Divide: \(2x^2+5x+5 = 2(x^2+3x+2) + (-x+1)\). So the integrand is \(2 + \frac{-x+1}{(x+1)(x+2)}\).
Step 3Split the remainder: \(-x+1 = A(x+2) + B(x+1)\). Put \(x=-1\): \(2 = A\). Put \(x=-2\): \(3 = -B\), so \(B=-3\).
Step 4Integrate: \(\Big[2x + 2\ln(x+1) – 3\ln(x+2)\Big]_0^1 = (2 + 2\ln 2 – 3\ln 3) – (0 + 0 – 3\ln 2)\).
Step 5Simplify: \(2 + 5\ln 2 – 3\ln 3\).

The integral is \(2 + 5\ln 2 – 3\ln 3 \approx 2.170\), so \(p=2\), \(q=5\), \(r=-3\).

Mathematics Made Simple Practice Questions coverMake partial fractions automatic with the Practice Questions book: 1,565 questions, all fully worked.Get 1,565 questions · $9

What the answer tells us

The partial fraction form turned a hard integral into a clean formula, \(S(T) = 500\ln\frac{4(T+1)}{T+4}\), and that formula gives the team a full picture of the campaign. Half of everything arrives in the first two weeks. About 549 arrive by week 8, which is already 79% of the ceiling. After that, waiting adds little: it takes until week 20 to reach 90%.

Figure 1 shows the cumulative total rising quickly and then flattening towards the dashed ceiling of about 693.

Cumulative downloads after launch downloads
Total downloads S(T)Ceiling 500 ln 4 ≈ 693Weeks 2, 8 and 20
0100200300400500600700800051015202530347549626ceiling ≈ 693Weeks after launch, TDownloads
Figure 1. S(T) = 500 ln[4(T+1)/(T+4)] rises steeply and levels off. Half of the 693 ceiling is reached at week 2, 549 by week 8 and 626 by week 20. (Illustrative figures.)

Reasonableness check. A quick estimate supports the answer. The rate starts at 375 a week and is 150 after one week, so the first week alone should bring roughly 200 to 250 downloads. The formula gives \(S(1) = 500\ln\frac{8}{5} \approx 235\), inside that range. Also, \(S(T)\) is increasing and can never pass 693, which fits a rate that is always positive but shrinking fast.

Why the total is finite. For large \(t\), the rate behaves like \(\frac{1500}{t^2}\). Rates that fall like \(1/t^2\) add up to a finite total, unlike rates that fall like \(1/t\), whose total grows without limit. The partial fractions show this directly: the two logarithms grow at the same speed and their difference settles down.

Sensitivity. The ceiling is \(\frac{1500}{3}\ln 4\), where 3 is the gap between the roots \(-1\) and \(-4\). If the team doubled the advertising effect so that the numerator became 3000, every figure would double: 1,099 in 8 weeks and a ceiling of 1,386. If instead the fade were slower, so the second factor were \((t+9)\), the split would be \(\frac{187.5}{t+1} – \frac{187.5}{t+9}\) and the ceiling would become \(187.5\ln 9 \approx 412\), lower overall but spread over a longer tail. The structure of the denominator drives the shape of the whole campaign.

Common mistakeSplitting an improper fraction directly. With \(\frac{2x^2+5x+5}{(x+1)(x+2)}\), writing \(\frac{A}{x+1}+\frac{B}{x+2}\) cannot work, because the right side is proper and the left is not. Always compare degrees first and divide when the top degree is equal to or greater than the bottom degree.
Common mistakeUsing only one term for a repeated factor. \(\frac{7x+1}{(x-1)(x+1)^2}\) needs \(\frac{B}{x+1}\) and \(\frac{C}{(x+1)^2}\). If you include only \(\frac{C}{(x+1)^2}\), the equations have no solution, and many students then force an answer with an arithmetic slip. A second error is integrating \(\frac{3}{(x+1)^2}\) as \(3\ln(x+1)^2\); it is a power, so the integral is \(-\frac{3}{x+1}\).
Exam tipAlways check your constants by substituting a value you did not use, such as \(x=0\). It takes ten seconds and catches most slips before they spoil the integral. When a question says “hence”, it expects you to use your partial fractions in the next part, and the final answer is often required in an exact form such as \(\ln\frac{a}{b}\); keep logarithms exact until the last line. Syllabuses differ in scope: AP Calculus BC works with distinct linear factors, while Cambridge 9709 Pure Mathematics 3 also includes repeated and quadratic factors, so check your own syllabus.[1][2][4]

To build fluency, work through the integration chapters of the Mathematics Made Simple textbook, which show each type of factor with a graph and a full worked solution, and then drill the method with the Mathematics Made Simple Practice Questions book, where every decomposition and integral is worked out step by step.

Mathematics Made Simple bundle coverMaster integration techniques with both Mathematics Made Simple books for $16.Both books · $16

Practice questions

Try each question before opening the worked answer.

EasyQ1. Express \(\frac{5}{(x-2)(x+3)}\) in partial fractions. Show worked answer
Write \(5 = A(x+3) + B(x-2)\).
\(x=2\): \(5 = 5A\), so \(A=1\).
\(x=-3\): \(5 = -5B\), so \(B=-1\).
Answer: \(\frac{1}{x-2} – \frac{1}{x+3}\).
EasyQ2. Express \(\frac{3x}{(x-1)(x+2)}\) in partial fractions. Show worked answer
Write \(3x = A(x+2) + B(x-1)\).
\(x=1\): \(3 = 3A\), so \(A=1\).
\(x=-2\): \(-6 = -3B\), so \(B=2\).
Answer: \(\frac{1}{x-1} + \frac{2}{x+2}\). Check at \(x=0\): \(-1 + 1 = 0\), matching \(\frac{0}{-2}=0\).
MediumQ3. Show that \(\int_0^2 \frac{10}{(2x+1)(x+3)}\,dx = 2\ln 3\). Show worked answer
\(10 = A(x+3) + B(2x+1)\).
\(x=-\tfrac12\): \(10 = 2.5A\), so \(A=4\). \(x=-3\): \(10 = -5B\), so \(B=-2\).
\(\int \Big(\frac{4}{2x+1} – \frac{2}{x+3}\Big)dx = 2\ln(2x+1) – 2\ln(x+3)\). Note the factor \(\tfrac12\) from the \(2x\).
Upper limit: \(2\ln 5 – 2\ln 5 = 0\). Lower limit: \(0 – 2\ln 3\).
Result: \(0 – (-2\ln 3) = 2\ln 3\) as required.
MediumQ4. Express \(\frac{x+3}{x^2(x+1)}\) in partial fractions and find \(\int_1^2 \frac{x+3}{x^2(x+1)}\,dx\) exactly. Show worked answer
Form: \(\frac{A}{x} + \frac{B}{x^2} + \frac{C}{x+1}\), so \(x+3 = Ax(x+1) + B(x+1) + Cx^2\).
\(x=0\): \(B=3\). \(x=-1\): \(2 = C\). Coefficients of \(x^2\): \(0 = A + C\), so \(A=-2\).
Integral: \(\Big[-2\ln x – \frac{3}{x} + 2\ln(x+1)\Big]_1^2\).
At 2: \(-2\ln 2 – 1.5 + 2\ln 3\). At 1: \(-3 + 2\ln 2\).
Answer: \(\frac{3}{2} + 2\ln 3 – 4\ln 2 \approx 0.925\).
ExamQ5. (a) Express \(\frac{2}{(x+1)(x^2+1)}\) in partial fractions. (b) Hence show that \(\int_0^1 \frac{2}{(x+1)(x^2+1)}\,dx = \frac{1}{2}\ln 2 + \frac{\pi}{4}\). [6 marks] Show worked answer
(a) Form \(\frac{A}{x+1} + \frac{Bx+C}{x^2+1}\), so \(2 = A(x^2+1) + (Bx+C)(x+1)\). [B1 correct form]
\(x=-1\): \(2 = 2A\), so \(A=1\). [M1]
\(x^2\): \(0 = A + B\), so \(B=-1\); constants: \(2 = A + C\), so \(C=1\). [A1 all three]
So the integrand is \(\frac{1}{x+1} + \frac{-x+1}{x^2+1} = \frac{1}{x+1} – \frac{x}{x^2+1} + \frac{1}{x^2+1}\).
(b) Integrate: \(\ln(x+1) – \tfrac12\ln(x^2+1) + \tan^{-1}x\). [M1 log terms, M1 inverse tangent]
Limits: \(\ln 2 – \tfrac12\ln 2 + \frac{\pi}{4} – 0 = \frac12\ln 2 + \frac{\pi}{4}\). [A1 exact answer shown]

Frequently asked questions

How do I know which partial fraction form to use?

Look at each factor of the denominator. A distinct linear factor gets a constant over it. A linear factor squared gets two terms, one over the factor and one over its square. An irreducible quadratic such as \(x^2+4\) gets a linear numerator \(Bx+C\). Add one term for each and you have the form.

Should I substitute values or compare coefficients?

Use both. Substituting the roots of the linear factors is fastest because each one removes all but one constant. When a constant cannot be isolated that way, as with \(B\) over a repeated factor or a quadratic factor, compare coefficients of the highest power or the constant term. Then check with a fresh value.

Why does the integral of \(\frac{1}{x+1}\) need a modulus?

The function \(\ln x\) is defined only for positive \(x\), but \(\frac{1}{x+1}\) has an antiderivative on both sides of \(x=-1\). Writing \(\ln|x+1|\) covers both. In a definite integral where \(x+1\) stays positive, as in the download model, you can drop the modulus.

Where else do partial fractions appear?

They appear in the logistic differential equation, where separating the variables gives \(\frac{1}{P(K-P)}\) to integrate. They also appear in binomial expansions of rational functions, in sums of series that telescope, and in Laplace transforms at university. Learning the method well pays off well beyond one topic.

References

  1. Cambridge Assessment International Education. Cambridge International AS & A Level Mathematics 9709: Syllabus for examination in 2026 and 2027. cambridgeinternational.org
  2. College Board. AP Calculus AB and BC Course and Exam Description. New York: College Board.
  3. Strang, G. & Herman, E. (2016). Calculus Volume 2. Houston, TX: OpenStax. openstax.org
  4. International Baccalaureate Organization (2019). Mathematics: analysis and approaches guide. Cardiff: IBO.
Mathematics Made Simple complete bundle cover
This topic has a full chapter in Mathematics Made Simple, with 1,565 fully worked practice questions in the bundle.Mathematics Made Simple Complete Bundle — Textbook + 1,565 Practice Questions
Get it for $16
E

The EconTutorials team writes clear, exam-focused lessons in economics and statistics for A-Level, IB, AP and university students, with more than 13 years of classroom teaching behind every guide and book in the Made Simple series.