Skip to content
M
hscscience Ext 2 · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 15 · L13 of 16 ~40 min ⚡ +90 XP available

Integration with Logarithms

When the numerator of an integrand is the derivative of the denominator, the answer is a natural log — full stop. Recognising this pattern turns ugly-looking integrals into one-line answers. This lesson nails the $f'(x)/f(x)$ rule, then shows how integration by parts unlocks integrals like $\int \ln x\, dx$ that no substitution can crack.

Today's hook — Before reading on, attempt $\int \dfrac{2x}{x^2 + 1}\, dx$ and $\int \ln x\, dx$. The first is a one-liner. The second is not — and that gap is what this lesson is about. Compare your answers after card 05.
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

Differentiate $\ln|f(x)|$ using the chain rule, and read off what $\int \dfrac{f'(x)}{f(x)}\, dx$ must equal. Before checking — would the same logic work for $\int \dfrac{x}{x^2 + 1}\, dx$? What constant would you need to factor out?

auto-saved
02
The two moves for logarithmic integration
+5 XP to read

Logarithmic integrals reward two habits: scan the integrand for a derivative-over-function structure (numerator $=$ derivative of denominator, up to a constant), then when $\ln$ sits inside the integrand, reach for integration by parts with $u = \ln x$. Confusing these two roles — log as output vs log as input — is the biggest cause of error.

The scan-classify-technique reading: (1) check if numerator is (a constant multiple of) the derivative of the denominator, (2) if yes use the log rule, (3) if no but $\ln$ appears, try integration by parts with $u = \ln x$.

Log rule: $\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$  ·  By parts: $\int u\, dv = uv - \int v\, du$

Scan num vs den Classify f′/f or ln Technique log or parts Check: constant factor, sign, abs value
$\displaystyle \int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$
Keep the absolute value
$\int \frac{1}{x}\, dx = \ln|x| + C$ — the $|\cdot|$ matters because $\ln$ is only defined for positive reals; the antiderivative is valid on $x<0$ too.
Adjust by a constant if needed
If the numerator is off by a constant factor (e.g., $x$ vs $2x$), factor the constant out: $\int \frac{x}{x^2+1}\, dx = \tfrac{1}{2} \ln(x^2+1) + C$.
For $\int \ln x$, use parts with $u = \ln x$
There's no elementary substitution. Choose $u = \ln x$, $dv = dx$, so $du = \frac{1}{x} dx$, $v = x$. The $\frac{1}{x}$ kills the log on the next step.
03
What you'll master
Know

Key facts

  • $\int \frac{1}{x}\, dx = \ln|x| + C$ for $x \neq 0$
  • $\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$
  • Integration by parts: $\int u\, dv = uv - \int v\, du$
  • $\int \ln x\, dx = x \ln x - x + C$
Understand

Concepts

  • Why the log rule is just the chain rule run in reverse
  • Why $u = \ln x$ is the right choice in by-parts (the $\ln$ disappears after one differentiation)
  • Why a substitution alone cannot integrate $\ln x$
Can do

Skills

  • Recognise $f'(x)/f(x)$ patterns and adjust by a constant
  • Apply integration by parts with $u = \ln x$
  • Combine substitution with the log rule for compound integrands
04
Key terms
Natural log ($\ln x$)The logarithm with base $e$; defined for $x > 0$. Inverse of $e^x$. Derivative: $\frac{d}{dx}\ln x = \frac{1}{x}$.
Log rule for integration$\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$. Recognised when the numerator is the derivative of the denominator (up to a constant).
Integration by parts$\int u\, dv = uv - \int v\, du$. The reverse of the product rule; choose $u$ so that $du$ is simpler than $u$.
LIATE rule of thumbFor by-parts, prefer $u$ from this priority order: Logarithm, Inverse trig, Algebraic, Trig, Exponential. With $\ln$ present, $\ln$ is almost always $u$.
Absolute value in the antiderivativeWrite $\ln|f(x)|$ (not $\ln f(x)$) so the antiderivative is valid wherever $f(x) \neq 0$, including where $f(x) < 0$.
$\int \ln x\, dx$$= x \ln x - x + C$. Derived via by-parts with $u = \ln x$, $dv = dx$.
MEX-C1NESA outcome (Further Integration): applies advanced techniques of integration including integration by parts, partial fractions, trigonometric substitutions, and the $\frac{f'(x)}{f(x)}$ pattern.
05
The $f'(x)/f(x)$ rule and adjusting constants
core concept

Differentiating $\ln|f(x)|$ by the chain rule gives $\frac{f'(x)}{f(x)}$. Reversing this is the log rule for integration:

$$\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$$

Worked through the hook: For $\int \dfrac{2x}{x^2 + 1}\, dx$, the denominator is $f(x) = x^2 + 1$, and the numerator $2x$ is exactly $f'(x)$. So the answer is $\ln(x^2 + 1) + C$ (no need for $|\cdot|$ since $x^2+1>0$).

If the numerator is off by a constant, factor it out. For $\int \dfrac{x}{x^2 + 1}\, dx$:

  • $f(x) = x^2 + 1$, $f'(x) = 2x$; the numerator is $x = \tfrac{1}{2}\cdot 2x$.
  • So $\int \dfrac{x}{x^2 + 1}\, dx = \tfrac{1}{2} \int \dfrac{2x}{x^2 + 1}\, dx = \tfrac{1}{2}\ln(x^2 + 1) + C$.
Connecting to substitution. The log rule is exactly the substitution $u = f(x)$, $du = f'(x)\, dx$, giving $\int \frac{du}{u} = \ln|u| + C$. Use whichever framing feels faster.

Log rule: $\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C$ · If the numerator is off by a constant $k$, factor $\frac{1}{k}$ out the front · $\int \frac{1}{x}\, dx = \ln|x| + C$ — keep the absolute value · Worked: $\int \frac{x}{x^2+1}\, dx = \tfrac{1}{2}\ln(x^2+1) + C$

Pause — copy the log rule $\int f'(x)/f(x)\,dx = \ln|f(x)|+C$, the constant-factor adjustment, and the worked example $\int x/(x^2+1)\,dx = \tfrac{1}{2}\ln(x^2+1)+C$ into your book.

Quick check: Which of the following equals $\displaystyle \int \frac{3x^2}{x^3 + 5}\, dx$?

06
Integration by parts with $u = \ln x$
core concept

We just saw the $f'(x)/f(x)$ log rule: adjust the numerator by a constant factor, then integrate to $\ln|f(x)|+C$; the standard result $\int\ln x\,dx$ is proved by IBP with $u = \ln x$. That raises a question: how does LIATE specifically handle integrands involving $\ln x$ multiplied by a power of $x$? This card answers it → always take $u = \ln(\ldots)$ (highest LIATE class), $dv = x^n dx$; this gives $\int x\ln x\,dx = \tfrac{x^2}{2}\ln x - \tfrac{x^2}{4}+C$.

When $\ln$ appears inside the integrand (not as the answer), substitution rarely helps. The product rule run in reverse — integration by parts — is the right tool:

$$\int u\, dv = uv - \int v\, du$$

Why $u = \ln x$? Differentiating $\ln x$ gives $\frac{1}{x}$ — a much simpler function. So the new integral $\int v\, du$ has the $\ln$ gone, replaced by a power of $x$.

Standard derivation of $\int \ln x\, dx$:

  • Let $u = \ln x$ and $dv = dx$. Then $du = \frac{1}{x}\, dx$ and $v = x$.
  • $\int \ln x\, dx = x \ln x - \int x \cdot \tfrac{1}{x}\, dx = x \ln x - \int 1\, dx = x \ln x - x + C$.
Common variation. For $\int x \ln x\, dx$, choose $u = \ln x$, $dv = x\, dx$, so $du = \tfrac{1}{x} dx$, $v = \tfrac{x^2}{2}$, giving $\tfrac{x^2}{2}\ln x - \int \tfrac{x}{2}\, dx = \tfrac{x^2}{2}\ln x - \tfrac{x^2}{4} + C$.

By parts: $\int u\, dv = uv - \int v\, du$ · LIATE: when $\ln$ is present, choose $u = \ln(\ldots)$ · $\int \ln x\, dx = x \ln x - x + C$ (memorise) · $\int x \ln x\, dx = \tfrac{x^2}{2}\ln x - \tfrac{x^2}{4} + C$

Pause — copy the IBP rule for log integrals (choose $u = \ln(\ldots)$), $\int\ln x\,dx = x\ln x - x+C$ (memorise), and $\int x\ln x\,dx = \tfrac{x^2}{2}\ln x - \tfrac{x^2}{4}+C$ into your book.

Did you get this? True or false: $\displaystyle \int \ln x\, dx = \frac{1}{x} + C$.

PROBLEM 1 · THE $f'/f$ RULE

Evaluate $\displaystyle \int \frac{\cos x}{2 + \sin x}\, dx$.

1
Identify the structure. Let $f(x) = 2 + \sin x$. Then $f'(x) = \cos x$, which is exactly the numerator.
Scan first: is the numerator the derivative of the denominator? When the answer is yes, no algebraic manipulation is needed.
PROBLEM 2 · BY PARTS WITH $\ln$

Find $\displaystyle \int x^2 \ln x\, dx$.

1
Choose $u = \ln x$ and $dv = x^2\, dx$. Then $du = \dfrac{1}{x}\, dx$ and $v = \dfrac{x^3}{3}$.
LIATE: with $\ln$ present, set $u = \ln x$. Differentiating $\ln x$ removes the log on the next step.
PROBLEM 3 · SUBSTITUTION + LOG RULE

Evaluate $\displaystyle \int \frac{(\ln x)^3}{x}\, dx$.

1
Spot the structure: $\dfrac{1}{x}$ is the derivative of $\ln x$. Let $u = \ln x$, so $du = \dfrac{1}{x}\, dx$.
When you see a function of $\ln x$ multiplied by $\frac{1}{x}$, the substitution $u = \ln x$ collapses the integral to a power of $u$.

Fill the gap: Using integration by parts with $u = \ln x$ and $dv = dx$, we get $du = $ $\, dx$ and $v = $ , giving $\int \ln x\, dx = x \ln x - x + C$.

Trap 01
Dropping the absolute value
$\int \frac{1}{x}\, dx = \ln|x| + C$ — without the $|\cdot|$, the antiderivative is undefined for $x < 0$. Only omit the absolute value when you can prove $f(x) > 0$ throughout the domain (e.g., $x^2 + 1$).
Trap 02
Forgetting to adjust by a constant
$\int \frac{x}{x^2 + 1}\, dx \neq \ln(x^2+1) + C$. The derivative of $x^2 + 1$ is $2x$, not $x$, so you must multiply by $\tfrac{1}{2}$. Always check the constant factor between numerator and the true derivative.
Trap 03
Choosing $u = x$ instead of $u = \ln x$
For $\int x \ln x\, dx$, the wrong choice $u = x$, $dv = \ln x\, dx$ requires you to already know $\int \ln x\, dx$ — circular. Always set $u = \ln x$ so that differentiation removes the log.

Did you get this? True or false: $\displaystyle \int \frac{x}{x^2 + 1}\, dx = \ln(x^2 + 1) + C$.

Work mode · how are you completing this lesson?
1

Evaluate $\displaystyle \int \frac{4x^3}{x^4 + 7}\, dx$.

2

Evaluate $\displaystyle \int \frac{x^2}{x^3 - 1}\, dx$.

3

Evaluate $\displaystyle \int \tan x\, dx$ by rewriting as $\int \frac{\sin x}{\cos x}\, dx$.

4

Find $\displaystyle \int \ln(2x)\, dx$ using integration by parts.

5

Evaluate $\displaystyle \int_1^e \frac{\ln x}{x}\, dx$ using the substitution $u = \ln x$.

Odd one out: Three of these integrals are direct applications of the $\int f'(x)/f(x)\, dx = \ln|f(x)| + C$ rule. Which one is NOT?

11
Revisit your thinking

Earlier you tried $\int \dfrac{2x}{x^2 + 1}\, dx$ and $\int \ln x\, dx$ — one a one-line log-rule, the other a by-parts derivation.

The first integrand was already in $f'(x)/f(x)$ form, so the answer was $\ln(x^2+1) + C$. The second has no $f'(x)/f(x)$ structure — no substitution alone can make the $\ln$ disappear. Integration by parts with $u = \ln x$ converts $\ln$ into $\frac{1}{x}$ after one differentiation, giving $\int \ln x\, dx = x \ln x - x + C$. Two different roles for $\ln$ — answer vs ingredient — two different techniques.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 32 marks

Q1. Evaluate $\displaystyle \int \frac{6x^2 + 2}{x^3 + x}\, dx$. (2 marks)

auto-saved
ApplyBand 43 marks

Q2. Use integration by parts to evaluate $\displaystyle \int_1^e x \ln x\, dx$. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. Find $\displaystyle \int \frac{1}{x \ln x}\, dx$ by using a substitution. State the substitution. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Activity answers:

1. $f(x) = x^4 + 7$, $f'(x) = 4x^3$. Integral $= \ln(x^4 + 7) + C$ (positive denominator, drop $|\cdot|$).

2. $f(x) = x^3 - 1$, $f'(x) = 3x^2$; numerator $x^2 = \tfrac{1}{3} \cdot 3x^2$. Integral $= \tfrac{1}{3} \ln|x^3 - 1| + C$.

3. $\int \tan x\, dx = \int \frac{\sin x}{\cos x}\, dx = -\int \frac{-\sin x}{\cos x}\, dx = -\ln|\cos x| + C = \ln|\sec x| + C$.

4. $u = \ln(2x)$, $dv = dx$ $\Rightarrow$ $du = \tfrac{1}{x}\, dx$, $v = x$. $\int \ln(2x)\, dx = x \ln(2x) - \int 1\, dx = x \ln(2x) - x + C$.

5. $u = \ln x$, $du = \tfrac{1}{x}\, dx$. Limits become $u = 0$ to $u = 1$. $\int_0^1 u\, du = \tfrac{1}{2}$.

Q1 (2 marks): $f(x) = x^3 + x$, $f'(x) = 3x^2 + 1$; numerator $6x^2 + 2 = 2(3x^2 + 1) = 2f'(x)$ [1]. Therefore $\int \frac{6x^2 + 2}{x^3 + x}\, dx = 2 \ln|x^3 + x| + C$ [1].

Q2 (3 marks): $u = \ln x$, $dv = x\, dx \Rightarrow du = \tfrac{1}{x}\, dx$, $v = \tfrac{x^2}{2}$ [1]. $\int_1^e x \ln x\, dx = \left[\tfrac{x^2}{2} \ln x\right]_1^e - \int_1^e \tfrac{x}{2}\, dx = \tfrac{e^2}{2} - \left[\tfrac{x^2}{4}\right]_1^e$ [1] $= \tfrac{e^2}{2} - \tfrac{e^2}{4} + \tfrac{1}{4} = \tfrac{e^2 + 1}{4}$ [1].

Q3 (3 marks): Substitution $u = \ln x$ so $du = \tfrac{1}{x}\, dx$ [1]. Then $\int \frac{1}{x \ln x}\, dx = \int \frac{1}{u}\, du$ [1] $= \ln|u| + C = \ln|\ln x| + C$ [1].

01
Boss battle · The Log Integrator
earn bronze · silver · gold

Five timed questions on the log rule, by-parts with $\ln x$, and combined substitution. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.

⚔ Enter the arena
02
Science Jump · platform challenge

Climb platforms by answering quick integration questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with Integration with Logarithms?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →