List of Integrals of Logarithmic Functions With Proofs

#Calculus
TL;DR
Every integral of ln⁡x\ln x traces back to xln⁡x−x+Cx\ln x - x + C. This list of integrals of logarithmic functions groups the standard results by family, with domain conditions, derivation notes and verified examples.
BT
Bhanzu TeamLast updated on October 11, 202616 min read

What Is The List Of Integrals Of Logarithmic Functions?

The list of integrals of logarithmic functions is a reference table of antiderivatives for integrands that contain a logarithm, such as ln⁡x\ln x, log⁡ax\log_a x, (ln⁡x)n(\ln x)^n, xmln⁡xx^m\ln x and ln⁡xx\frac{\ln x}{x}. Its anchor entry is

∫ln⁡x,dx=xln⁡x−x+C,x>0,\int \ln x,dx = x\ln x - x + C, \qquad x > 0,

where ln⁡x\ln x is the natural logarithm and CC is the constant of integration. Every other entry is this result after a change of base, a substitution or one more round of integration by parts.

The symbols used throughout the tables:

Symbol

Meaning

Condition

xx

variable of integration

x>0x > 0 wherever ln⁡x\ln x appears unprotected

aa, bb

constants

a≠0a \neq 0; for a log base, a>0a > 0 and a≠1a \neq 1

mm, nn

exponents

m≠−1m \neq -1 in power-times-log rows; nn a positive integer in reduction rows

CC

constant of integration

added to every indefinite integral

li⁡(x)\operatorname{li}(x)

logarithmic integral

a special function, defined for x>1x > 1 in this list

How Do You Read A Table Of Logarithmic Integrals?

You read each row as "the derivative of the right-hand column is the integrand", valid only inside the stated domain. Three reading rules prevent most errors.

  • The domain column is part of the answer. ln⁡x\ln x needs x>0x > 0, so a row like ∫ln⁡x,dx\int \ln x,dx says nothing about negative xx. Rows that output ln⁡∣u∣\ln\lvert u\rvert keep the absolute value because the integrand is defined on both sides of zero.

  • "log" means ln⁡\ln in this list. University texts and software usually write log⁡\log for base ee; for base 10 or any base aa, use the change-of-base rows.

  • Different-looking answers can both be right. Two antiderivatives of the same function may differ by a constant, so xln⁡(2x)−xx\ln(2x) - x and xln⁡x−x+xln⁡2x\ln x - x + x\ln 2 are the same entry.

That last rule answers a Quora question that comes up often: "Why is the integral of 1/x ln(x) instead of ln(ax)?" Both are correct. Since ln⁡(ax)=ln⁡x+ln⁡a\ln(ax) = \ln x + \ln a and ln⁡a\ln a is a constant, ln⁡(ax)\ln(ax) and ln⁡x\ln x differ only by a constant that CC absorbs.

What Are The Integrals Involving Only Logarithms?

These rows integrate a single logarithm of xx, of a linear expression or of a simple quadratic. All of them come from integration by parts with uu equal to the logarithm and dv=dxdv = dx, sometimes after a substitution.

Integral

Result

Domain

How it is derived

∫ln⁡x,dx\int \ln x,dx

xln⁡x−x+Cx\ln x - x + C

x>0x > 0

Parts: u=ln⁡xu = \ln x, dv=dxdv = dx

∫log⁡ax,dx\int \log_a x,dx

xln⁡x−xln⁡a+C\frac{x\ln x - x}{\ln a} + C

x>0x > 0; a>0a > 0, a≠1a \neq 1

Change of base, then row 1

∫log⁡10x,dx\int \log_{10} x,dx

xln⁡x−xln⁡10+C\frac{x\ln x - x}{\ln 10} + C

x>0x > 0

Row 2 with a=10a = 10

∫ln⁡(ax),dx\int \ln(ax),dx

xln⁡(ax)−x+Cx\ln(ax) - x + C

ax>0ax > 0

Split ln⁡a+ln⁡x\ln a + \ln x

∫ln⁡(ax+b),dx\int \ln(ax+b),dx

ax+baln⁡(ax+b)−x+C\frac{ax+b}{a}\ln(ax+b) - x + C

ax+b>0ax+b > 0

Substitute u=ax+bu = ax+b

∫ln⁡(x2),dx\int \ln(x^2),dx

xln⁡(x2)−2x+Cx\ln(x^2) - 2x + C

x≠0x \neq 0

Parts, du=2x,dxdu = \frac{2}{x},dx

∫ln⁡(x2+a2),dx\int \ln(x^2+a^2),dx

xln⁡(x2+a2)−2x+2aarctan⁡xa+Cx\ln(x^2+a^2) - 2x + 2a\arctan\frac{x}{a} + C

all real xx

Parts, then the arctan⁡\arctan form

∫ln⁡(x2−a2),dx\int \ln(x^2-a^2),dx

xln⁡(x2−a2)−2x+aln⁡∣x+ax−a∣+Cx\ln(x^2-a^2) - 2x + a\ln\left\lvert\frac{x+a}{x-a}\right\rvert + C

∣x∣>a>0\lvert x\rvert > a > 0

Parts, then partial fractions

∫ln⁡(ex),dx\int \ln(e^{x}),dx

x22+C\frac{x^2}{2} + C

all real xx

Simplify ln⁡(ex)=x\ln(e^{x}) = x first

The change-of-base step uses one of the properties of logarithms, log⁡ax=ln⁡xln⁡a\log_a x = \frac{\ln x}{\ln a}. For base 10 the factor 1ln⁡10\frac{1}{\ln 10} is about 0.43430.4343.

The ln⁡(x2+a2)\ln(x^2+a^2) row deserves a second look because it is the one most likely to be misremembered. Parts gives xln⁡(x2+a2)−∫2x2x2+a2,dxx\ln(x^2+a^2) - \int \frac{2x^2}{x^2+a^2},dx, and rewriting 2x2x2+a2=2−2a2x2+a2\frac{2x^2}{x^2+a^2} = 2 - \frac{2a^2}{x^2+a^2} produces both the −2x-2x and the 2aarctan⁡xa2a\arctan\frac{x}{a}.

What Are The Integrals Of Powers Of Logarithms?

Powers of ln⁡x\ln x are integrated with a reduction formula, an identity that lowers the power by one each time it is applied:

∫(ln⁡x)n,dx=x(ln⁡x)n−n∫(ln⁡x)n−1,dx,x>0.\int (\ln x)^n,dx = x(\ln x)^n - n\int (\ln x)^{n-1},dx, \qquad x > 0.

It comes from parts with u=(ln⁡x)nu = (\ln x)^n and dv=dxdv = dx, since du=n(ln⁡x)n−1x,dxdu = \frac{n(\ln x)^{n-1}}{x},dx and v=xv = x cancel the 1x\frac{1}{x}.

Integral

Result

∫(ln⁡x)2,dx\int (\ln x)^2,dx

x[(ln⁡x)2−2ln⁡x+2]+Cx\big[(\ln x)^2 - 2\ln x + 2\big] + C

∫(ln⁡x)3,dx\int (\ln x)^3,dx

x[(ln⁡x)3−3(ln⁡x)2+6ln⁡x−6]+Cx\big[(\ln x)^3 - 3(\ln x)^2 + 6\ln x - 6\big] + C

∫(ln⁡x)4,dx\int (\ln x)^4,dx

x[(ln⁡x)4−4(ln⁡x)3+12(ln⁡x)2−24ln⁡x+24]+Cx\big[(\ln x)^4 - 4(\ln x)^3 + 12(\ln x)^2 - 24\ln x + 24\big] + C

The coefficients follow a falling-product pattern: for n=4n = 4 they are 11, 44, 4×34 \times 3, 4×3×24 \times 3 \times 2 and 4×3×2×14 \times 3 \times 2 \times 1, with alternating signs. That pattern is a fast check on any long answer.

What Are The Integrals Of Logarithms Times Powers Of X?

When a power of xx multiplies ln⁡x\ln x, parts with u=ln⁡xu = \ln x and dv=xm,dxdv = x^m,dx gives one general row, valid for m≠−1m \neq -1 and x>0x > 0:

∫xmln⁡x,dx=xm+1m+1ln⁡x−xm+1(m+1)2+C.\int x^m\ln x,dx = \frac{x^{m+1}}{m+1}\ln x - \frac{x^{m+1}}{(m+1)^2} + C.

Integral

Value of mm

Result

∫xln⁡x,dx\int x\ln x,dx

11

x22ln⁡x−x24+C\frac{x^2}{2}\ln x - \frac{x^2}{4} + C

∫x2ln⁡x,dx\int x^2\ln x,dx

22

x33ln⁡x−x39+C\frac{x^3}{3}\ln x - \frac{x^3}{9} + C

∫x3ln⁡x,dx\int x^3\ln x,dx

33

x44ln⁡x−x416+C\frac{x^4}{4}\ln x - \frac{x^4}{16} + C

∫ln⁡xx,dx\int \frac{\ln x}{\sqrt{x}},dx

−12-\frac{1}{2}

2xln⁡x−4x+C2\sqrt{x}\ln x - 4\sqrt{x} + C

∫ln⁡xx2,dx\int \frac{\ln x}{x^2},dx

−2-2

−ln⁡xx−1x+C-\frac{\ln x}{x} - \frac{1}{x} + C

∫x(ln⁡x)2,dx\int x(\ln x)^2,dx

11, squared log

x22(ln⁡x)2−x22ln⁡x+x24+C\frac{x^2}{2}(\ln x)^2 - \frac{x^2}{2}\ln x + \frac{x^2}{4} + C

∫xm(ln⁡x)2,dx\int x^m(\ln x)^2,dx

m≠−1m \neq -1

xm+1[(ln⁡x)2m+1−2ln⁡x(m+1)2+2(m+1)3]+Cx^{m+1}\left[\frac{(\ln x)^2}{m+1} - \frac{2\ln x}{(m+1)^2} + \frac{2}{(m+1)^3}\right] + C

The excluded value m=−1m = -1 is not a gap in the list. It is the integrand ln⁡xx\frac{\ln x}{x}, which belongs to the substitution family below.

Which Logarithmic Integrals Use Substitution?

Any integrand that pairs a function of ln⁡x\ln x with a factor 1x\frac{1}{x} uses integration by substitution with u=ln⁡xu = \ln x, because du=1x,dxdu = \frac{1}{x},dx. A Quora question, "How to integrate 1/x ln(x)", is the classic case: with u=ln⁡xu = \ln x it becomes ∫duu=ln⁡∣u∣+C\int \frac{du}{u} = \ln\lvert u\rvert + C.

Integral

Result

Domain

Substitution

∫ln⁡xx,dx\int \frac{\ln x}{x},dx

(ln⁡x)22+C\frac{(\ln x)^2}{2} + C

x>0x > 0

u=ln⁡xu = \ln x

∫(ln⁡x)nx,dx\int \frac{(\ln x)^n}{x},dx

(ln⁡x)n+1n+1+C\frac{(\ln x)^{n+1}}{n+1} + C

x>0x > 0, n≠−1n \neq -1

u=ln⁡xu = \ln x

∫dxxln⁡x\int \frac{dx}{x\ln x}

ln⁡∣ln⁡x∣+C\ln\lvert\ln x\rvert + C

x>0x > 0, x≠1x \neq 1

u=ln⁡xu = \ln x

∫dxx(ln⁡x)2\int \frac{dx}{x(\ln x)^2}

−1ln⁡x+C-\frac{1}{\ln x} + C

x>0x > 0, x≠1x \neq 1

u=ln⁡xu = \ln x

∫ln⁡(ln⁡x)x,dx\int \frac{\ln(\ln x)}{x},dx

ln⁡x,ln⁡(ln⁡x)−ln⁡x+C\ln x,\ln(\ln x) - \ln x + C

x>1x > 1

u=ln⁡xu = \ln x, then row 1

∫f′(x)f(x),dx\int \frac{f'(x)}{f(x)},dx

ln⁡∣f(x)∣+C\ln\lvert f(x)\rvert + C

f(x)≠0f(x) \neq 0

u=f(x)u = f(x)

Two homework questions in the search results show how far this family reaches. The first asks for ∫ln⁡(x+1)−ln⁡xx(x+1),dx\int \frac{\ln(x+1) - \ln x}{x(x+1)},dx. Set t=ln⁡(1+1x)t = \ln\left(1 + \frac{1}{x}\right), which equals the numerator, and note that dt=−1x(x+1),dxdt = -\frac{1}{x(x+1)},dx:

∫ln⁡(x+1)−ln⁡xx(x+1),dx=−∫t,dt=−12[ln⁡(1+1x)]2+C.\int \frac{\ln(x+1) - \ln x}{x(x+1)},dx = -\int t,dt = -\frac{1}{2}\left[\ln\left(1 + \frac{1}{x}\right)\right]^2 + C.

The second asks for ∫ln⁡x(1+ln⁡x)2,dx\int \frac{\ln x}{(1+\ln x)^2},dx. No substitution is needed once you spot that it is a quotient-rule derivative: ddx[x1+ln⁡x]=(1+ln⁡x)−1(1+ln⁡x)2=ln⁡x(1+ln⁡x)2\frac{d}{dx}\left[\frac{x}{1+\ln x}\right] = \frac{(1+\ln x) - 1}{(1+\ln x)^2} = \frac{\ln x}{(1+\ln x)^2}, so the answer is x1+ln⁡x+C\frac{x}{1+\ln x} + C.

What Are The Integrals Of Logarithms With Trig, Exponential And Hyperbolic Functions?

These mixed rows either substitute x=etx = e^{t} or recognise a product-rule derivative. Each one is easiest to trust by differentiating the result.

Integral

Result

Domain

∫sin⁡(ln⁡x),dx\int \sin(\ln x),dx

x2[sin⁡(ln⁡x)−cos⁡(ln⁡x)]+C\frac{x}{2}\big[\sin(\ln x) - \cos(\ln x)\big] + C

x>0x > 0

∫cos⁡(ln⁡x),dx\int \cos(\ln x),dx

x2[sin⁡(ln⁡x)+cos⁡(ln⁡x)]+C\frac{x}{2}\big[\sin(\ln x) + \cos(\ln x)\big] + C

x>0x > 0

∫sinh⁡(ln⁡x),dx\int \sinh(\ln x),dx

x24−ln⁡x2+C\frac{x^2}{4} - \frac{\ln x}{2} + C

x>0x > 0

∫cosh⁡(ln⁡x),dx\int \cosh(\ln x),dx

x24+ln⁡x2+C\frac{x^2}{4} + \frac{\ln x}{2} + C

x>0x > 0

∫ex(ln⁡x+1x)dx\int e^{x}\left(\ln x + \frac{1}{x}\right)dx

exln⁡x+Ce^{x}\ln x + C

x>0x > 0

∫ex(xln⁡x−x−1x)dx\int e^{x}\left(x\ln x - x - \frac{1}{x}\right)dx

ex(xln⁡x−x−ln⁡x)+Ce^{x}\big(x\ln x - x - \ln x\big) + C

x>0x > 0

The hyperbolic functions rows look exotic but collapse quickly: sinh⁡(ln⁡x)=eln⁡x−e−ln⁡x2=12(x−1x)\sinh(\ln x) = \frac{e^{\ln x} - e^{-\ln x}}{2} = \frac{1}{2}\left(x - \frac{1}{x}\right), which integrates term by term. The two exponential rows are the product rule read backwards, since ddx[exg(x)]=ex(g(x)+g′(x))\frac{d}{dx}\big[e^{x}g(x)\big] = e^{x}\big(g(x) + g'(x)\big).

Which Logarithmic Integrals Have No Elementary Formula?

Some logarithmic integrands have antiderivatives that cannot be written with a finite combination of polynomials, roots, exponentials, logarithms and trig functions. A Quora thread asks it directly: "Is it possible to integrate 1/ln(x)?" It is, but the answer is a new function rather than a formula built from old ones.

Integral

Result

Notes

∫dxln⁡x\int \frac{dx}{\ln x}

li⁡(x)+C\operatorname{li}(x) + C

Logarithmic integral; li⁡(x)=Ei⁡(ln⁡x)\operatorname{li}(x) = \operatorname{Ei}(\ln x) for x>1x > 1

∫ln⁡(1+x)x,dx\int \frac{\ln(1+x)}{x},dx

−Li⁡2(−x)+C-\operatorname{Li}_2(-x) + C

Dilogarithm, a special function

∫ln⁡(sin⁡x),dx\int \ln(\sin x),dx

no elementary form

Its definite value on [0,π2][0, \frac{\pi}{2}] is known (table below)

The logarithmic integral is defined as a principal-value integral, li⁡(x)=∫0xdtln⁡t\operatorname{li}(x) = \int_{0}^{x} \frac{dt}{\ln t}, in the NIST Digital Library of Mathematical Functions, equation 6.2.8. Numerical values: li⁡(2)≈1.0452\operatorname{li}(2) \approx 1.0452, li⁡(10)≈6.1656\operatorname{li}(10) \approx 6.1656, li⁡(100)≈30.1261\operatorname{li}(100) \approx 30.1261. Its only positive zero, the Ramanujan-Soldner constant, is about 1.45141.4514.

What Are The Standard Definite Integrals Of Logarithms?

Many logarithmic integrals over [0,1][0, 1] are improper integrals, because ln⁡x→−∞\ln x \to -\infty as x→0+x \to 0^{+}. They still converge, thanks to the limit lim⁡t→0+tkln⁡t=0\lim_{t \to 0^{+}} t^{k}\ln t = 0 for any k>0k > 0.

Definite integral

Value

Approximate

∫01ln⁡x,dx\int_{0}^{1} \ln x,dx

−1-1

−1-1

∫01(ln⁡x)2,dx\int_{0}^{1} (\ln x)^2,dx

22

22

∫01(ln⁡x)3,dx\int_{0}^{1} (\ln x)^3,dx

−6-6

−6-6

∫01xmln⁡x,dx\int_{0}^{1} x^m\ln x,dx, m>−1m > -1

−1(m+1)2-\frac{1}{(m+1)^2}

∫1eln⁡x,dx\int_{1}^{e} \ln x,dx

11

11

∫01ln⁡(1+x),dx\int_{0}^{1} \ln(1+x),dx

2ln⁡2−12\ln 2 - 1

0.38630.3863

∫01ln⁡(1+x)x,dx\int_{0}^{1} \frac{\ln(1+x)}{x},dx

π212\frac{\pi^2}{12}

0.82250.8225

∫01ln⁡x1−x,dx\int_{0}^{1} \frac{\ln x}{1-x},dx

−π26-\frac{\pi^2}{6}

−1.6449-1.6449

∫0π/2ln⁡(sin⁡x),dx\int_{0}^{\pi/2} \ln(\sin x),dx

−π2ln⁡2-\frac{\pi}{2}\ln 2

−1.0888-1.0888

∫1∞ln⁡xx2,dx\int_{1}^{\infty} \frac{\ln x}{x^2},dx

11

11

∫ee2dxxln⁡x\int_{e}^{e^2} \frac{dx}{x\ln x}

ln⁡2\ln 2

0.69310.6931

The pattern in the first three rows continues: ∫01(ln⁡x)n,dx\int_{0}^{1} (\ln x)^n,dx equals nn factorial with the sign (−1)n(-1)^n, so n=4n = 4 gives 2424. The rows with π2\pi^2 come from expanding the logarithm as a power series and summing term by term, an idea that belongs to series courses rather than to this list. For more on evaluating with limits, see definite integrals.

Examples Of Integrals Of Logarithmic Functions

Example 1

Use the list to find ∫ln⁡(4x+1),dx\int \ln(4x + 1),dx.

Match the row ∫ln⁡(ax+b),dx\int \ln(ax+b),dx with a=4a = 4 and b=1b = 1:

∫ln⁡(4x+1),dx=4x+14ln⁡(4x+1)−x+C\int \ln(4x+1),dx = \frac{4x+1}{4}\ln(4x+1) - x + C

The domain is 4x+1>04x + 1 > 0, so x>−14x > -\frac{1}{4}.

Final answer: 4x+14ln⁡(4x+1)−x+C\frac{4x+1}{4}\ln(4x+1) - x + C

Example 2

Find ∫dxxln⁡x\int \frac{dx}{x\ln x} for x>1x > 1.

A quick scan of the table can land on the wrong row. The integrand contains 1ln⁡x\frac{1}{\ln x}, and the row ∫dxln⁡x=li⁡(x)+C\int \frac{dx}{\ln x} = \operatorname{li}(x) + C says that has no elementary formula, so a hurried reader concludes:

Attempt: ∫dxxln⁡x has no elementary antiderivative.\text{Attempt: } \int \frac{dx}{x\ln x} \text{ has no elementary antiderivative.}

That conclusion ignores the extra 1x\frac{1}{x}. The extra factor changes the family entirely, because 1x,dx\frac{1}{x},dx is exactly d(ln⁡x)d(\ln x). Substitute u=ln⁡xu = \ln x:

du=1x,dxdu = \frac{1}{x},dx

∫dxxln⁡x=∫duu\int \frac{dx}{x\ln x} = \int \frac{du}{u}

=ln⁡∣u∣+C=ln⁡∣ln⁡x∣+C= \ln\lvert u\rvert + C = \ln\lvert\ln x\rvert + C

Check: ddxln⁡(ln⁡x)=1ln⁡x⋅1x\frac{d}{dx}\ln(\ln x) = \frac{1}{\ln x}\cdot\frac{1}{x}, which is the integrand.

Final answer: ln⁡∣ln⁡x∣+C\ln\lvert\ln x\rvert + C

Example 3

Use the list to find ∫x3ln⁡x,dx\int x^3\ln x,dx.

Match the row ∫xmln⁡x,dx\int x^m\ln x,dx with m=3m = 3:

∫x3ln⁡x,dx=x44ln⁡x−x442+C\int x^3\ln x,dx = \frac{x^4}{4}\ln x - \frac{x^4}{4^2} + C

=x44ln⁡x−x416+C= \frac{x^4}{4}\ln x - \frac{x^4}{16} + C

Final answer: x44ln⁡x−x416+C\frac{x^4}{4}\ln x - \frac{x^4}{16} + C

Example 4

Evaluate ∫1e(ln⁡x)2x,dx\int_{1}^{e} \frac{(\ln x)^2}{x},dx.

Use the row ∫(ln⁡x)nx,dx=(ln⁡x)n+1n+1+C\int \frac{(\ln x)^n}{x},dx = \frac{(\ln x)^{n+1}}{n+1} + C with n=2n = 2:

∫1e(ln⁡x)2x,dx=[(ln⁡x)33]1e\int_{1}^{e} \frac{(\ln x)^2}{x},dx = \left[\frac{(\ln x)^3}{3}\right]_{1}^{e}

=13−0=13= \frac{1}{3} - 0 = \frac{1}{3}

Final answer: 13≈0.3333\frac{1}{3} \approx 0.3333

Example 5

Evaluate ∫01x2ln⁡x,dx\int_{0}^{1} x^2\ln x,dx.

Use the definite row ∫01xmln⁡x,dx=−1(m+1)2\int_{0}^{1} x^m\ln x,dx = -\frac{1}{(m+1)^2} with m=2m = 2, or work from the indefinite row:

∫01x2ln⁡x,dx=lim⁡t→0+[x33ln⁡x−x39]t1\int_{0}^{1} x^2\ln x,dx = \lim_{t \to 0^{+}} \left[\frac{x^3}{3}\ln x - \frac{x^3}{9}\right]_{t}^{1}

=(0−19)−0=−19= \left(0 - \frac{1}{9}\right) - 0 = -\frac{1}{9}

Final answer: −19≈−0.1111-\frac{1}{9} \approx -0.1111

Example 6

A designer models a cross-section whose height is ln⁡(x2+9)\ln(x^2 + 9) for 0≤x≤30 \leq x \leq 3. Find the area under the curve.

Use the row ∫ln⁡(x2+a2),dx\int \ln(x^2+a^2),dx with a=3a = 3:

∫03ln⁡(x2+9),dx=[xln⁡(x2+9)−2x+6arctan⁡x3]03\int_{0}^{3} \ln(x^2+9),dx = \left[x\ln(x^2+9) - 2x + 6\arctan\frac{x}{3}\right]_{0}^{3}

=3ln⁡18−6+6⋅π4= 3\ln 18 - 6 + 6\cdot\frac{\pi}{4}

=3ln⁡18−6+3π2≈7.3835= 3\ln 18 - 6 + \frac{3\pi}{2} \approx 7.3835

Final answer: 3ln⁡18−6+3π2≈7.38353\ln 18 - 6 + \frac{3\pi}{2} \approx 7.3835 square units

Why Does A Separate List For Logarithmic Integrals Exist?

Logarithmic integrals get their own list because the logarithm has no reverse power rule. Polynomials, exponentials and trig functions each integrate by reversing one derivative rule, but ln⁡x\ln x does not, so every log entry is the product of a technique rather than a lookup of a reversed derivative.

  • One technique per family. Parts handles bare logs and powers of xx times logs; substitution handles anything with a 1x\frac{1}{x} factor; the reduction formula handles powers of the log.

  • A boundary you can see. The list shows exactly where closed forms stop. ∫dxxln⁡x\int \frac{dx}{x\ln x} is elementary while ∫dxln⁡x\int \frac{dx}{\ln x} is not, and the only difference is one factor of 1x\frac{1}{x}.

  • A destination beyond the classroom. The non-elementary entry li⁡(x)\operatorname{li}(x) is the main term in the prime number estimate: it approximates how many primes lie below xx, giving about 177.6177.6 at x=1000x = 1000, where the true count is 168168.

Common Errors When Working With Integrals Of Logarithmic Functions

Mistake 1: Using The Power-Times-Log Row At M Equals Minus One

Where it slips in: Integrating ln⁡xx\frac{\ln x}{x} by plugging m=−1m = -1 into the xmln⁡xx^m\ln x row.

Don't do this: Writing x00ln⁡x−x002\frac{x^{0}}{0}\ln x - \frac{x^{0}}{0^2}, which divides by zero.

The correct way: Switch families: with u=ln⁡xu = \ln x, ∫ln⁡xx,dx=(ln⁡x)22+C\int \frac{\ln x}{x},dx = \frac{(\ln x)^2}{2} + C.

The memorizer reaches for the general row because it "covers every power", and the condition m≠−1m \neq -1 is the one line they skipped.

Mistake 2: Dropping The Absolute Value In Ln Of Ln X

Where it slips in: Answering ∫dxxln⁡x\int \frac{dx}{x\ln x} on an interval where 0<x<10 < x < 1.

Don't do this: Writing ln⁡(ln⁡x)+C\ln(\ln x) + C there, which is undefined because ln⁡x<0\ln x < 0.

The correct way: Keep ln⁡∣ln⁡x∣+C\ln\lvert\ln x\rvert + C, valid on (0,1)(0, 1) and on (1,∞)(1, \infty) separately.

Mistake 3: Rejecting A Correct Answer Because It Looks Different

Where it slips in: Comparing your answer for ∫ln⁡(2x),dx\int \ln(2x),dx with a table that writes it another way.

Don't do this: Deciding xln⁡x+xln⁡2−xx\ln x + x\ln 2 - x is wrong because the table shows xln⁡(2x)−xx\ln(2x) - x.

The correct way: Subtract the two candidates; if the difference is a constant (here it is 00), both are valid.

The second-guesser is the student most likely to erase a correct answer here. Differentiating both forms takes ten seconds and settles it, which is the habit worth building before any table lookup.

Mistake 4: Trusting A Pattern Without Proof

Where it slips in: Reading the li⁡(x)\operatorname{li}(x) row and assuming, from a few computed values, that li⁡(x)\operatorname{li}(x) always exceeds the number of primes below xx.

Don't do this: Treating numerical agreement on small inputs as a theorem.

The correct way: State only what is proved: li⁡(x)\operatorname{li}(x) is asymptotically close to the prime count, and the sign of the difference changes infinitely often.

The real-world version of Mistake 4 is one of the most famous in number theory. Every computed value of li⁡(x)\operatorname{li}(x) for the prime count sat above the true count, and many expected that to hold forever, until Littlewood's 1914 proof showed it fails. The first crossing is so far out that bounding it took decades of work, described in the history of Skewes's number.

Practice Problems On The List Of Integrals Of Logarithmic Functions

  1. Find ∫ln⁡(2x−5),dx\int \ln(2x - 5),dx for x>52x > \frac{5}{2}.

  2. Find ∫(ln⁡x)3,dx\int (\ln x)^3,dx.

  3. Find ∫dxx(ln⁡x)2\int \frac{dx}{x(\ln x)^2} for x>1x > 1.

  4. Evaluate ∫01(ln⁡x)4,dx\int_{0}^{1} (\ln x)^4,dx.

  5. Find ∫cos⁡(ln⁡x),dx\int \cos(\ln x),dx.

Answer to Question 1: 2x−52ln⁡(2x−5)−x+C\frac{2x-5}{2}\ln(2x-5) - x + C

Answer to Question 2: x[(ln⁡x)3−3(ln⁡x)2+6ln⁡x−6]+Cx\big[(\ln x)^3 - 3(\ln x)^2 + 6\ln x - 6\big] + C

Answer to Question 3: −1ln⁡x+C-\frac{1}{\ln x} + C

Answer to Question 4: 2424

Answer to Question 5: x2[sin⁡(ln⁡x)+cos⁡(ln⁡x)]+C\frac{x}{2}\big[\sin(\ln x) + \cos(\ln x)\big] + C

Bottom Line

  • The list of integrals of logarithmic functions grows from one result, ∫ln⁡x,dx=xln⁡x−x+C\int \ln x,dx = x\ln x - x + C.

  • Other bases divide by ln⁡a\ln a, linear insides divide by aa, and powers of the log use the reduction formula.

  • A spare 1x\frac{1}{x} factor signals substitution with u=ln⁡xu = \ln x; without it, reach for integration by parts.

  • ∫dxln⁡x\int \frac{dx}{\ln x} has no elementary formula and defines li⁡(x)\operatorname{li}(x).

  • Domain conditions and absolute values are part of every entry, not decoration.

Where To Go From Here

Work through practice problems 1 to 5; if you cannot tell which row a problem matches, return to "Which Logarithmic Integrals Use Substitution?" and look for the 1x\frac{1}{x} factor before anything else. Want a live Bhanzu trainer to help you build table-reading speed? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

How do you prove that 1/ln(x) doesn't have an integral?
It does have an integral, just not an elementary one. The function 1ln⁡x\frac{1}{\ln x} is continuous on (1,∞)(1, \infty), so an antiderivative exists, namely li⁡(x)+C\operatorname{li}(x) + C. The proof that no elementary formula exists uses Liouville's theorem on integration in finite terms, which is beyond a first calculus course.
What is the integral of log_e e^x in the list of integrals of logarithmic functions?
Simplify first: log⁡eex=x\log_e e^{x} = x, so the integral is x22+C\frac{x^2}{2} + C.
How do you integrate x log x², using the list of integrals of logarithmic functions?
Rewrite ln⁡(x2)=2ln⁡x\ln(x^2) = 2\ln x for x>0x > 0, then double the xln⁡xx\ln x row. The result is x2ln⁡x−x22+Cx^2\ln x - \frac{x^2}{2} + C.
What is ∫ x log x dx?
x22ln⁡x−x24+C\frac{x^2}{2}\ln x - \frac{x^2}{4} + C, the m=1m = 1 entry of the power-times-log row.
Is the value of ∫ from 1 to e of log x dx equal to 1?
Yes. Using xln⁡x−xx\ln x - x, the value is (e−e)−(0−1)=1(e - e) - (0 - 1) = 1, which is also the area under ln⁡x\ln x between x=1x = 1 and x=ex = e.
How do you integrate log(x) from 0 to 1?
Treat it as an improper integral, because ln⁡x→−∞\ln x \to -\infty as x→0+x \to 0^{+}. Using xln⁡x−xx\ln x - x, the value is (0−1)−lim⁡t→0+(tln⁡t−t)=−1−0=−1(0 - 1) - \lim_{t \to 0^{+}}(t\ln t - t) = -1 - 0 = -1, since tln⁡t→0t\ln t \to 0.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →