Vertex Learn

Integrating fractions: when it is ln, and when it is not

WorksheetShare to Classroom

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.
Key idea

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.
Worked example

The ln case: ∫ 2x/(x² + 5) dx

  • Differentiate the bottom
  • It matches the top
  1. ∫ 2x/(x² + 5) dx
  2. d/dx (x² + 5) = 2xderivative of bottom
  3. top = 2x: a match
  4. = ln(x² + 5) + cx² + 5 > 0
  5. d/dx ln(x² + 5) = 2x/(x² + 5)
Key idea

Try it: the curve y = 1/x

Worked example

A constant multiple still counts

  • Top = multiple of bottom′
  • Adjust the number in front
  1. ∫ x/(x² + 5) dx
  2. x = (1/2)(2x)half the derivative
  3. = (1/2) ∫ 2x/(x² + 5) dx
  4. = (1/2)ln(x² + 5) + c
  5. ∫ 3/(2x + 1) dx
  6. d/dx (2x + 1) = 2derivative of bottom
  7. = (3/2) ∫ 2/(2x + 1) dx3 = (3/2) × 2
  8. = (3/2)ln|2x + 1| + cbottom can be < 0
Key idea

Four routes for a fraction

  • First: differentiate the bottom.
  • Match: ln. One-term bottom: split.
  • Top power as high: divide. Bracket: chain.
FractionTestRoute
2x/(x² + 1)top = bottom′ln
(x² + 1)/xsingle-term bottomsplit
(x² + 2x + 3)/(x + 1)top power ≥ bottomdivide
1/(2x + 1)³a bracket powerreverse chain
Worked example

Split: ∫ (x² + 3x − 2)/x dx

  • Divide each term by x
  • Integrate term by term
  1. ∫ (x² + 3x − 2)/x dx
  2. = ∫ (x + 3 − 2/x) dxdivide each term by x
  3. ∫ x dx = x²/2
  4. ∫ 3 dx = 3x
  5. ∫ −2/x dx = −2ln|x|the only log
  6. = x²/2 + 3x − 2ln|x| + c
Key idea

Try it: a definite integral

Worked example

Split: ∫ (4x + 1)/x² dx

  • 4/x gives a log
  • 1/x² is x⁻², a power
  1. ∫ (4x + 1)/x² dx
  2. = ∫ (4/x + x⁻²) dxdivide each term by x²
  3. ∫ 4/x dx = 4ln|x|a log
  4. ∫ x⁻² dx = x⁻¹/(−1) = −1/xa power
  5. = 4ln|x| − 1/x + c
Worked example

Divide: ∫ (x² + 2x + 3)/(x + 1) dx

  • Top power ≥ bottom
  • Check the division
  1. (x² + 2x + 3) ÷ (x + 1)
  2. x(x + 1) = x² + xx into x²
  3. (x² + 2x + 3) − (x² + x) = x + 3
  4. 1(x + 1) = x + 11 into x
  5. (x + 3) − (x + 1) = 2
  6. quotient x + 1, remainder 2
  7. (x + 1)² + 2 = x² + 2x + 3
  8. ∫ (x + 1 + 2/(x + 1)) dx
  9. = x²/2 + x + 2ln|x + 1| + c
Worked example

Reverse chain: ∫ 6/(2x + 1)³ dx

  • Write it as a power
  • Divide by power and by 2
  1. ∫ 6/(2x + 1)³ dx
  2. = ∫ 6(2x + 1)⁻³ dxas a power
  3. = 6(2x + 1)⁻²/(−2 × 2) + c
  4. = −3/(2(2x + 1)²) + c6/(−4) = −3/2
  5. d/dx gives 6(2x + 1)⁻³check
Worked example

The "everything is ln" error

  • Split, divide or chain
  • Differentiate to test it
  1. ∫ 1/x² dx = ln(x²)differentiates to 2/x
  2. ∫ x⁻² dx = −1/x + ca power
  3. ∫ (x² + 1)/x dx = ln xsplit first
  4. ∫ (x + 1/x) dx = x²/2 + ln|x| + c
  5. ∫ x/(x + 2) dx = ln|x + 2|divide first
  6. ∫ (1 − 2/(x + 2)) dxx = (x + 2) − 2
  7. = x − 2ln|x + 2| + c
  8. ∫ (2x + 1)⁻³ dxreverse chain, not ln
  9. = −1/(4(2x + 1)²) + c
Worked example

Solving for an unknown limit

  • From 0 to k, equals ln 5
  • K > 0: reject −2
y equals 2x over (x squared plus 1) with the area from 0 to 2 shaded, equal to ln 5.
  1. ∫ 2x/(x² + 1) dx = ln(x² + 1)
  2. ln(k² + 1) − ln 1 = ln 5limits k and 0
  3. ln(k² + 1) = ln 5ln 1 = 0
  4. k² + 1 = 5equal logs
  5. k² = 4, so k = ±2
  6. k = −2k > 0
  7. k = 2
Key idea

Where the marks are

  • Achieved: rearrange, spot the ln case.
  • Merit: keep the algebra right afterwards.
  • Excellence: long division first.
Summary

What to take away

  • Differentiate the bottom first, then choose the route.
Top = bottom′ln of the bottom
One-term bottomsplit
Top power ≥divide first
Bracket powerreverse chain rule
Checkdifferentiate back

Common mistakes

  • ∫ 1/x² dx = ln(x²) + c
    1/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) + c
    The 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| + c
    The 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)³| + c
    Write it as 6(2x + 1)⁻³ and use the reverse chain rule: −3/(2(2x + 1)²) + c.
Your turn

Your turn: four questions

  • Decide the route first.
  • One answer has no log at all.
IntegrateFind
16x/(x² + 4)its integral
2(x³ − 5)/x²its integral
3(x² + 3x + 5)/(x + 2)its integral
48/(4x − 1)²its integral
1
2
3
4
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.

Worked example

The answers: questions 1 and 2

  1. 1. bottom′ = 2x, top 6x = 3 × 2xa multiple: ln
  2. = 3ln(x² + 4) + c
  3. 2. ∫ (x − 5x⁻²) dxdivide each term by x²
  4. = x²/2 − 5x⁻¹/(−1) + cpower rule
  5. = x²/2 + 5/x + cno log
Worked example

The answers: questions 3 and 4

  1. 3. (x² + 3x + 5) ÷ (x + 2)
  2. x(x + 2) = x² + 2xleaves x + 5
  3. 1(x + 2) = x + 2leaves 3
  4. ∫ (x + 1 + 3/(x + 2)) dx
  5. = x²/2 + x + 3ln|x + 2| + c
  6. 4. ∫ 8(4x − 1)⁻² dxas a power
  7. = 8(4x − 1)⁻¹/(−1 × 4) + cdivide by −1 and by 4
  8. = −2/(4x − 1) + c
Your turn

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
  1. Before reaching for ln, test the fraction: differentiate the bottom and compare it with the top.
  2. The bottom is x² + 1, and its derivative is 2x.
  3. The top is 6x, which is 3 × 2x. So the top is 3 times the derivative of the bottom.
  4. The rule: ∫ f′(x)f(x) dx = ln|f(x)| + c. With 3 in front, we get 3 ln(x² + 1) + c.
  5. x² + 1 is always positive, so the modulus signs are not needed.
  6. Classic mistake: writing 6 ln(x² + 1). The 6 must be split as 3 × 2x, and only the 3 stays in front.
  7. Check: differentiate 3 ln(x² + 1) to get 3 × 2xx² + 1 = 6xx² + 1. It matches.
Full working
  1. ddx (x² + 1) = 2xderivative of the bottom
  2. 6x = 3 × 2xtop is a multiple: ln
  3. ∫ 6xx² + 1 dx = 3 ∫ 2xx² + 1 dx
  4. 3 ln(x² + 1) + c
Your turn

Sample questions: Merit

1

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
  1. The bottom is one term, x², so split the fraction by dividing each term on top by x².
  2. 2x²x² = 2, 3xx² = 3x, and 4x² = 4x⁻². So the integrand is 2 − 3x + 4x⁻².
  3. 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.
  4. Integrate each term. 2 gives 2x. −3x gives −3 ln x. 4x⁻² gives 4x⁻¹ ÷ (−1) = −4x.
  5. So F(x) = 2x − 3 ln x − 4x. No modulus is needed, since x is between 1 and e, so positive.
  6. Top limit: F(e) = 2e − 3 ln e − 4e = 2e − 3 − 4e, because ln e = 1.
  7. Bottom limit: F(1) = 2 − 3 ln 1 − 4 = 2 − 0 − 4 = −2, because ln 1 = 0.
  8. Subtract with brackets: (2e − 3 − 4e) − (−2) = 2e − 1 − 4e.
  9. Check: 2e − 1 − 4e ≈ 2.965, and a calculator gives the same value for the integral.
Full working
  1. 2x² − 3x + 4x² = 2 − 3x + 4x⁻²split: one-term bottom
  2. F(x) = 2x − 3 ln x − 4xintegrate each term
  3. F(e) = 2e − 3 − 4eln e = 1
  4. F(1) = 2 − 0 − 4 = −2ln 1 = 0
  5. 2e − 1 − 4e
2

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
  1. 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.
  2. The top's power (2) is higher than the bottom's (1), so divide first.
  3. x goes into x² x times: x(x + 2) = x² + 2x. Take it away: (x² + 4x + 1) − (x² + 2x) = 2x + 1.
  4. x goes into 2x 2 times: 2(x + 2) = 2x + 4. Take it away: (2x + 1) − (2x + 4) = −3.
  5. So the quotient is x + 2 and the remainder is −3: the fraction is x + 2 − 3x + 2.
  6. Check the division: (x + 2)(x + 2) − 3 = x² + 4x + 4 − 3 = x² + 4x + 1. Correct.
  7. 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.
  8. Keep the modulus: x + 2 can be negative.
  9. Classic mistake: writing ln|x + 2| for the whole thing without dividing. Differentiating that gives 1x + 2, which is not the question.
  10. Answer: x²2 + 2x − 3 ln|x + 2| + c.
Full working
  1. x² + 4x + 1 = (x + 2)(x + 2) − 3divide: top power ≥ bottom
  2. x² + 4x + 1x + 2 = x + 2 − 3x + 2
  3. ∫ (x + 2) dx = x²2 + 2x
  4. ∫ −3x + 2 dx = −3 ln|x + 2|top = bottom′
  5. x²2 + 2x − 3 ln|x + 2| + c
Your turn

Sample questions: Excellence

1

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
  1. The top has power 3 and the bottom has power 2, so divide before doing anything else.
  2. 2x × (x² + 1) = 2x³ + 2x. Take it away from the top: (2x³ + x) − (2x³ + 2x) = −x.
  3. So 2x³ + xx² + 1 = 2x − xx² + 1.
  4. Check: 2x(x² + 1) − x = 2x³ + 2x − x = 2x³ + x. Correct.
  5. First part: ∫ 2x dx = x².
  6. Second part: the derivative of x² + 1 is 2x, and the top is x = (12) × 2x. So ∫ xx² + 1 dx = (12)ln(x² + 1).
  7. Classic mistake: writing ln(x² + 1) without the 12. The top is only half of the bottom's derivative.
  8. So F(x) = x² − (12)ln(x² + 1).
  9. F(2) = 4 − (12)ln 5. F(0) = 0 − (12)ln 1 = 0.
  10. Value: 4 − (12)ln 5.
  11. Check: 4 − (12)ln 5 ≈ 3.195, and a calculator gives the same for the integral.
Full working
  1. 2x³ + x = 2x(x² + 1) − xdivide first
  2. 2x³ + xx² + 1 = 2x − xx² + 1
  3. ∫ xx² + 1 dx = (12)ln(x² + 1)top = (12) × bottom′
  4. F(x) = x² − (12)ln(x² + 1)
  5. F(2) − F(0) = 4 − (12)ln 5 − 0ln 1 = 0
  6. 4 − (12)ln 5
2

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
  1. The top and bottom have the same power, so this is not the ln case: the derivative of x + k is 1, not x.
  2. Trick: x = (x + k) − k. So xx + k = x + kx + k − kx + k = 1 − kx + k.
  3. 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.
  4. So F(x) = x − k ln(x + k).
  5. F(1) = 1 − k ln(k + 1). F(0) = 0 − k ln k.
  6. Subtract: 1 − k ln(k + 1) + k ln k = 1 − k(ln(k + 1) − ln k).
  7. Log law: ln a − ln b = ln(ab). So the integral is 1 − k ln(k + 1k), as required.
  8. Classic mistake: losing the sign when subtracting F(0). It is −(−k ln k), which is +k ln k.
  9. Hence, with k = 1: 1 − 1 × ln(21) = 1 − ln 2 ≈ 0.307.
  10. 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.
  11. 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
  1. xx + k = 1 − kx + kx = (x + k) − k
  2. F(x) = x − k ln(x + k)x + k > 0
  3. F(1) − F(0) = 1 − k ln(k + 1) + k ln k
  4. = 1 − k ln(k + 1k)ln a − ln b = ln(ab)
  5. k = 1: 1 − ln 2 ≈ 0.307hence
  6. k + 1k > 1, so k ln(k + 1k) > 0why it is below 1
  7. 1 − k ln(k + 1k); 1 − ln 2; less than 1 because k ln(k + 1k) > 0
Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91579

Is your child on track?

Take the free placement test