Integrating fractions: when it is ln, and when it is not
What this lesson covers
- ln f(x) is the answer only when the numerator is the derivative of the denominator.
- Other fractions are split, divided, or integrated by reverse chain rule.
Not every fraction is ln
- The 2025 error: ln of the bottom, every time.
- That works for one kind of fraction.
- Tell the kinds apart first.
The ln case: ∫ 2x/(x² + 5) dx
- Differentiate the bottom
- It matches the top
- ∫ 2x/(x² + 5) dx
- d/dx (x² + 5) = 2xderivative of bottom
- top = 2x: a match
- = ln(x² + 5) + cx² + 5 > 0
- d/dx ln(x² + 5) = 2x/(x² + 5)
Try it: the curve y = 1/x
A constant multiple still counts
- Top = multiple of bottom′
- Adjust the number in front
- ∫ x/(x² + 5) dx
- x = (1/2)(2x)half the derivative
- = (1/2) ∫ 2x/(x² + 5) dx
- = (1/2)ln(x² + 5) + c
- ∫ 3/(2x + 1) dx
- d/dx (2x + 1) = 2derivative of bottom
- = (3/2) ∫ 2/(2x + 1) dx3 = (3/2) × 2
- = (3/2)ln|2x + 1| + cbottom can be < 0
Four routes for a fraction
- First: differentiate the bottom.
- Match: ln. One-term bottom: split.
- Top power as high: divide. Bracket: chain.
| Fraction | Test | Route |
|---|---|---|
| 2x/(x² + 1) | top = bottom′ | ln |
| (x² + 1)/x | single-term bottom | split |
| (x² + 2x + 3)/(x + 1) | top power ≥ bottom | divide |
| 1/(2x + 1)³ | a bracket power | reverse chain |
Split: ∫ (x² + 3x − 2)/x dx
- Divide each term by x
- Integrate term by term
- ∫ (x² + 3x − 2)/x dx
- = ∫ (x + 3 − 2/x) dxdivide each term by x
- ∫ x dx = x²/2
- ∫ 3 dx = 3x
- ∫ −2/x dx = −2ln|x|the only log
- = x²/2 + 3x − 2ln|x| + c
Try it: a definite integral
Split: ∫ (4x + 1)/x² dx
- 4/x gives a log
- 1/x² is x⁻², a power
- ∫ (4x + 1)/x² dx
- = ∫ (4/x + x⁻²) dxdivide each term by x²
- ∫ 4/x dx = 4ln|x|a log
- ∫ x⁻² dx = x⁻¹/(−1) = −1/xa power
- = 4ln|x| − 1/x + c
Divide: ∫ (x² + 2x + 3)/(x + 1) dx
- Top power ≥ bottom
- Check the division
- (x² + 2x + 3) ÷ (x + 1)
- x(x + 1) = x² + xx into x²
- (x² + 2x + 3) − (x² + x) = x + 3
- 1(x + 1) = x + 11 into x
- (x + 3) − (x + 1) = 2
- quotient x + 1, remainder 2
- (x + 1)² + 2 = x² + 2x + 3
- ∫ (x + 1 + 2/(x + 1)) dx
- = x²/2 + x + 2ln|x + 1| + c
Reverse chain: ∫ 6/(2x + 1)³ dx
- Write it as a power
- Divide by power and by 2
- ∫ 6/(2x + 1)³ dx
- = ∫ 6(2x + 1)⁻³ dxas a power
- = 6(2x + 1)⁻²/(−2 × 2) + c
- = −3/(2(2x + 1)²) + c6/(−4) = −3/2
- d/dx gives 6(2x + 1)⁻³check
The "everything is ln" error
- Split, divide or chain
- Differentiate to test it
- ∫ 1/x² dx = ln(x²)differentiates to 2/x
- ∫ x⁻² dx = −1/x + ca power
- ∫ (x² + 1)/x dx = ln xsplit first
- ∫ (x + 1/x) dx = x²/2 + ln|x| + c
- ∫ x/(x + 2) dx = ln|x + 2|divide first
- ∫ (1 − 2/(x + 2)) dxx = (x + 2) − 2
- = x − 2ln|x + 2| + c
- ∫ (2x + 1)⁻³ dxreverse chain, not ln
- = −1/(4(2x + 1)²) + c
Solving for an unknown limit
- From 0 to k, equals ln 5
- K > 0: reject −2
- ∫ 2x/(x² + 1) dx = ln(x² + 1)
- ln(k² + 1) − ln 1 = ln 5limits k and 0
- ln(k² + 1) = ln 5ln 1 = 0
- k² + 1 = 5equal logs
- k² = 4, so k = ±2
- k = −2k > 0
- k = 2
Where the marks are
- Achieved: rearrange, spot the ln case.
- Merit: keep the algebra right afterwards.
- Excellence: long division first.
What to take away
- Differentiate the bottom first, then choose the route.
| Top = bottom′ | ln of the bottom |
| One-term bottom | split |
| Top power ≥ | divide first |
| Bracket power | reverse chain rule |
| Check | differentiate back |
Common mistakes
- ∫ 1/x² dx = ln(x²) + c1/x² = x⁻² is a power: ∫ x⁻² dx = −1/x + c. ln(x²) differentiates to 2/x, not 1/x².
- ∫ x/(x² + 5) dx = ln(x² + 5) + cThe top is half the bottom's derivative 2x, so the answer is (1/2)ln(x² + 5) + c.
- ∫ x/(x + 2) dx = ln|x + 2| + cThe top's power is as high as the bottom's, so divide first: ∫ (1 − 2/(x + 2)) dx = x − 2ln|x + 2| + c.
- ∫ 6/(2x + 1)³ dx = 6ln|(2x + 1)³| + cWrite it as 6(2x + 1)⁻³ and use the reverse chain rule: −3/(2(2x + 1)²) + c.
Your turn: four questions
- Decide the route first.
- One answer has no log at all.
| Integrate | Find | |
|---|---|---|
| 1 | 6x/(x² + 4) | its integral |
| 2 | (x³ − 5)/x² | its integral |
| 3 | (x² + 3x + 5)/(x + 2) | its integral |
| 4 | 8/(4x − 1)² | its integral |
Show answer
1. 3ln(x² + 4) + c. 2. x²/2 + 5/x + c, with no ln at all. 3. x + 1 remainder 3, so x²/2 + x + 3ln|x + 2| + c. 4. −2/(4x − 1) + c.
The answers: questions 1 and 2
- 1. bottom′ = 2x, top 6x = 3 × 2xa multiple: ln
- = 3ln(x² + 4) + c
- 2. ∫ (x − 5x⁻²) dxdivide each term by x²
- = x²/2 − 5x⁻¹/(−1) + cpower rule
- = x²/2 + 5/x + cno log
The answers: questions 3 and 4
- 3. (x² + 3x + 5) ÷ (x + 2)
- x(x + 2) = x² + 2xleaves x + 5
- 1(x + 2) = x + 2leaves 3
- ∫ (x + 1 + 3/(x + 2)) dx
- = x²/2 + x + 3ln|x + 2| + c
- 4. ∫ 8(4x − 1)⁻² dxas a power
- = 8(4x − 1)⁻¹/(−1 × 4) + cdivide by −1 and by 4
- = −2/(4x − 1) + c
Sample question: Achieved
Find ∫ 6xx² + 1 dx.
Hint
Differentiate the bottom. If the top is a multiple of that derivative, the answer is that multiple times ln of the bottom.
Answer
3 ln(x² + 1) + c
Step by step
- Before reaching for ln, test the fraction: differentiate the bottom and compare it with the top.
- The bottom is x² + 1, and its derivative is 2x.
- The top is 6x, which is 3 × 2x. So the top is 3 times the derivative of the bottom.
- The rule: ∫ f′(x)f(x) dx = ln|f(x)| + c. With 3 in front, we get 3 ln(x² + 1) + c.
- x² + 1 is always positive, so the modulus signs are not needed.
- Classic mistake: writing 6 ln(x² + 1). The 6 must be split as 3 × 2x, and only the 3 stays in front.
- Check: differentiate 3 ln(x² + 1) to get 3 × 2xx² + 1 = 6xx² + 1. It matches.
Full working
- ddx (x² + 1) = 2xderivative of the bottom
- 6x = 3 × 2xtop is a multiple: ln
- ∫ 6xx² + 1 dx = 3 ∫ 2xx² + 1 dx
- 3 ln(x² + 1) + c
Sample questions: Merit
Find the exact value of ∫₁ᵉ 2x² − 3x + 4x² dx.
Hint
The bottom is a single term, so split the fraction. One term gives a log and one is a negative power.
Answer
2e − 1 − 4e
Step by step
- The bottom is one term, x², so split the fraction by dividing each term on top by x².
- 2x²x² = 2, 3xx² = 3x, and 4x² = 4x⁻². So the integrand is 2 − 3x + 4x⁻².
- Classic mistake: writing ln(x²) for the whole fraction. The top is not the derivative of the bottom, so it is not a log of the bottom.
- Integrate each term. 2 gives 2x. −3x gives −3 ln x. 4x⁻² gives 4x⁻¹ ÷ (−1) = −4x.
- So F(x) = 2x − 3 ln x − 4x. No modulus is needed, since x is between 1 and e, so positive.
- Top limit: F(e) = 2e − 3 ln e − 4e = 2e − 3 − 4e, because ln e = 1.
- Bottom limit: F(1) = 2 − 3 ln 1 − 4 = 2 − 0 − 4 = −2, because ln 1 = 0.
- Subtract with brackets: (2e − 3 − 4e) − (−2) = 2e − 1 − 4e.
- Check: 2e − 1 − 4e ≈ 2.965, and a calculator gives the same value for the integral.
Full working
- 2x² − 3x + 4x² = 2 − 3x + 4x⁻²split: one-term bottom
- F(x) = 2x − 3 ln x − 4xintegrate each term
- F(e) = 2e − 3 − 4eln e = 1
- F(1) = 2 − 0 − 4 = −2ln 1 = 0
- 2e − 1 − 4e
Find ∫ x² + 4x + 1x + 2 dx.
Hint
The top has a higher power than the bottom, so divide first. Write the top as (x + 2) × something + a remainder.
Answer
x²2 + 2x − 3 ln|x + 2| + c
Step by step
- Test the routes. The derivative of the bottom is 1, and the top is not a multiple of 1, so it is not the ln case.
- The top's power (2) is higher than the bottom's (1), so divide first.
- x goes into x² x times: x(x + 2) = x² + 2x. Take it away: (x² + 4x + 1) − (x² + 2x) = 2x + 1.
- x goes into 2x 2 times: 2(x + 2) = 2x + 4. Take it away: (2x + 1) − (2x + 4) = −3.
- So the quotient is x + 2 and the remainder is −3: the fraction is x + 2 − 3x + 2.
- Check the division: (x + 2)(x + 2) − 3 = x² + 4x + 4 − 3 = x² + 4x + 1. Correct.
- Integrate: x gives x²2, 2 gives 2x, and −3x + 2 gives −3 ln|x + 2|, since the top 1 is the derivative of x + 2.
- Keep the modulus: x + 2 can be negative.
- Classic mistake: writing ln|x + 2| for the whole thing without dividing. Differentiating that gives 1x + 2, which is not the question.
- Answer: x²2 + 2x − 3 ln|x + 2| + c.
Full working
- x² + 4x + 1 = (x + 2)(x + 2) − 3divide: top power ≥ bottom
- x² + 4x + 1x + 2 = x + 2 − 3x + 2
- ∫ (x + 2) dx = x²2 + 2x
- ∫ −3x + 2 dx = −3 ln|x + 2|top = bottom′
- x²2 + 2x − 3 ln|x + 2| + c
Sample questions: Excellence
Find the exact value of ∫₀² 2x³ + xx² + 1 dx.
Hint
Divide first: write 2x³ + x as 2x(x² + 1) plus a remainder. The remainder part is a multiple of the ln case.
Answer
4 − (12)ln 5
Step by step
- The top has power 3 and the bottom has power 2, so divide before doing anything else.
- 2x × (x² + 1) = 2x³ + 2x. Take it away from the top: (2x³ + x) − (2x³ + 2x) = −x.
- So 2x³ + xx² + 1 = 2x − xx² + 1.
- Check: 2x(x² + 1) − x = 2x³ + 2x − x = 2x³ + x. Correct.
- First part: ∫ 2x dx = x².
- Second part: the derivative of x² + 1 is 2x, and the top is x = (12) × 2x. So ∫ xx² + 1 dx = (12)ln(x² + 1).
- Classic mistake: writing ln(x² + 1) without the 12. The top is only half of the bottom's derivative.
- So F(x) = x² − (12)ln(x² + 1).
- F(2) = 4 − (12)ln 5. F(0) = 0 − (12)ln 1 = 0.
- Value: 4 − (12)ln 5.
- Check: 4 − (12)ln 5 ≈ 3.195, and a calculator gives the same for the integral.
Full working
- 2x³ + x = 2x(x² + 1) − xdivide first
- 2x³ + xx² + 1 = 2x − xx² + 1
- ∫ xx² + 1 dx = (12)ln(x² + 1)top = (12) × bottom′
- F(x) = x² − (12)ln(x² + 1)
- F(2) − F(0) = 4 − (12)ln 5 − 0ln 1 = 0
- 4 − (12)ln 5
k is a positive constant. Show that ∫₀¹ xx + k dx = 1 − k ln(k + 1k). Hence find the exact value of ∫₀¹ xx + 1 dx, and explain why the integral is less than 1 for every k > 0.
Hint
Rewrite the top as (x + k) − k, so the fraction becomes 1 − kx + k. Use a log law to combine the two logs.
Answer
∫₀¹ xx + 1 dx = 1 − ln 2 ≈ 0.307. The integral is 1 minus k ln(k + 1k), and that amount is positive, so the integral is less than 1.
Step by step
- The top and bottom have the same power, so this is not the ln case: the derivative of x + k is 1, not x.
- Trick: x = (x + k) − k. So xx + k = x + kx + k − kx + k = 1 − kx + k.
- Integrate: 1 gives x. −kx + k gives −k ln(x + k), because the top 1 is the derivative of x + k. No modulus is needed, because x + k > 0 here.
- So F(x) = x − k ln(x + k).
- F(1) = 1 − k ln(k + 1). F(0) = 0 − k ln k.
- Subtract: 1 − k ln(k + 1) + k ln k = 1 − k(ln(k + 1) − ln k).
- Log law: ln a − ln b = ln(ab). So the integral is 1 − k ln(k + 1k), as required.
- Classic mistake: losing the sign when subtracting F(0). It is −(−k ln k), which is +k ln k.
- Hence, with k = 1: 1 − 1 × ln(21) = 1 − ln 2 ≈ 0.307.
- Why it is below 1: k > 0, and k + 1k is bigger than 1, so its log is positive. So k ln(k + 1k) is positive, and 1 minus a positive number is less than 1.
- That makes sense: on 0 to 1, xx + k is always less than 1, so its integral over a width of 1 must be less than 1.
Full working
- xx + k = 1 − kx + kx = (x + k) − k
- F(x) = x − k ln(x + k)x + k > 0
- F(1) − F(0) = 1 − k ln(k + 1) + k ln k
- = 1 − k ln(k + 1k)ln a − ln b = ln(ab)
- k = 1: 1 − ln 2 ≈ 0.307hence
- k + 1k > 1, so k ln(k + 1k) > 0why it is below 1
- 1 − k ln(k + 1k); 1 − ln 2; less than 1 because k ln(k + 1k) > 0
Report a mistake
More in AS 91579
The integration toolkit: surds, e, trig and the chain rule10 min
Integrating fractions: when it is ln, and when it is not9 min
The constant of integration: find c, never assume it9 min
Definite integrals and area, including between two curves11 min
Trapezium and Simpson's rules: numerical areas10 min
Differential equations: growth, decay and Newton's cooling11 min
Integration toolkit: 7 exam questions solved step by step10 min
Integrating fractions: 7 exam questions solved step by step10 min
Constant of integration: 7 exam questions solved step by step11 min
Definite integrals: 7 exam questions solved step by step11 min
Numerical integration: 6 exam questions solved step by step11 min
Differential equations: 6 exam questions solved step by step11 minIs your child on track?
Take the free placement test