Logarithmic and Exponential Integrals: Reverse the Change

CBSE Mathematics · 2026–27 · Class 12

Learn with Rajesh Sir

If differentiation turns ln x into 1/x, integration should help us travel back. The return journey has an extra detail: signs and intervals matter. Learn to recognise a logarithm hiding inside an integrand and verify the result by differentiating it.

By the end, you can…
  • Use ln|x| as an antiderivative of 1/x away from zero.
  • Recognise an inner derivative divided by its function.
  • Integrate exponentials while keeping the correct coefficient.
  • Integrate ln x by parts with a clear choice of factors.
  • Evaluate definite integrals on allowed intervals and reject crossings of a singularity.
About 5 minutes
TOPIC 01Class 12

Why 1/x leads to ln absolute x

Integration asks for a function whose derivative matches the integrand. Since d(ln⁡x)/dx=1/xd(\ln x)/dx=1/x for x>0, we already know an antiderivative of 1/x on the positive side. On the negative side, −x>0-x>0, and the chain rule gives ddxln⁡(−x)=−1−x=1x.\frac{d}{dx}\ln(-x)=\frac{-1}{-x}=\frac1x.

We can write both cases with an absolute value:

∫1x dx=ln⁡∣x∣+C.\boxed{\int\frac1x\,dx=\ln|x|+C.}

This formula applies on an interval that does not contain zero. For positive x, ln|x|=ln x; for negative x, ln|x|=ln(−x). The absolute value keeps the logarithm argument positive. It does not make the original integrand defined at zero.

The constant C matters because every vertical translate has the same derivative. On separate negative and positive intervals, the constants may be chosen independently; there is no requirement to join the antiderivatives through the missing point.

Do not try the usual power rule by substituting exponent−1 into xn+1/(n+1)x^{n+1}/(n+1): its denominator would be zero. The reciprocal case is the special one that produces a logarithm.

A quick derivative check is more reliable than memorising a shape. Differentiate your proposed answer on the interval in the question. If its derivative equals 1/x and its logarithm exists there, you have an antiderivative. If the problem crosses zero, pause and inspect the interval before using any endpoint subtraction.

Work it through

Example. Find ∫3/x dx\int 3/x\,dx on x<0.

An answer is 3ln⁡(−x)+C3\ln(-x)+C, equivalently 3ln⁡∣x∣+C3\ln|x|+C. Its derivative is 3(−1)/(−x)=3/x3(-1)/(-x)=3/x. Writing 3 ln x would not define a real function on the requested negative interval.

Pause. Think. Try.

1. Which is an antiderivative of 1/x on x<0?
A hint, pleaseThe argument of a real logarithm must be positive.
Read the answer and explanation

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

For x<0,−x>0 and the derivative of ln(−x) is (−1)/(−x)=1/x.
2. Why does the ordinary expression xn+1/(n+1)x^{n+1}/(n+1) fail when n=−1?
A hint, pleaseSubstitute n=−1 into the denominator.
Read the answer and explanation

The denominator n+1 is zero.

It becomes zero. The n=−1 case has antiderivative ln|x| instead, on intervals excluding zero.
About 5 minutes
TOPIC 02Class 12

Spot a derivative divided by its function

A logarithm often hides in a fraction. If the numerator is the derivative of the denominator, reverse the chain rule:

∫f′(x)f(x) dx=ln⁡∣f(x)∣+C.\boxed{\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+C.}

Use this on an interval where f is differentiable and nonzero. A continuous nonzero f has a constant sign on that interval, so the absolute-value logarithm is well behaved there.

For a linear denominator, the inner derivative is its coefficient. Thus, for a≠0, ∫1ax+b dx=1aln⁡∣ax+b∣+C.\int\frac1{ax+b}\,dx=\frac1a\ln|ax+b|+C. The factor 1/a compensates for the chain-rule factor a that appears when you differentiate the answer.

Sometimes the match is exact. In ∫2x/(x2+4) dx\int2x/(x^2+4)\,dx, the numerator 2 x is the derivative of x²+4, so the result is ln⁡(x2+4)+C\ln(x^2+4)+C. Here x²+4 is always positive, so absolute-value signs are unnecessary.

Sometimes a constant adjustment is needed. In ∫x/(x2+4) dx\int x/(x^2+4)\,dx, the numerator is half the inner derivative, giving 12ln⁡(x2+4)+C\tfrac12\ln(x^2+4)+C.

Look for the pattern rather than declaring that every denominator gives a logarithm. For instance, 1/(x2+4)1/(x^2+4) lacks the factor x needed for this particular substitution. Recognising a useful method also means recognising when its numerator condition is missing. Finish by differentiating your result and checking the interval.

Work it through

Example. Find ∫1/(2x−3) dx\int1/(2x-3)\,dx.

Set u=2 x−3, so du=2 dx and dx=du/2. Then ∫dx2x−3=12∫duu=12ln⁡∣2x−3∣+C.\int\frac{dx}{2x-3}=\frac12\int\frac{du}u=\frac12\ln|2x-3|+C. Work on an interval lying entirely below or above x=3/2. Differentiation gives 12⋅2/(2x−3)\tfrac12\cdot2/(2x-3), the original integrand.

Pause. Think. Try.

1. Find ∫1/(3x+2) dx\int1/(3x+2)\,dx, away from x=−2/3.
A hint, pleaseThe inner derivative is 3, so compensate with 1/3.
Read the answer and explanation

13ln⁡∣3x+2∣+C\tfrac13\ln|3x+2|+C

Differentiating(1/3)ln|3 x+2| multiplies by 3 and recovers 1/(3 x+2).
2. Find ∫2x/(x2+5) dx\int2x/(x^2+5)\,dx.
A hint, pleaseCompare the numerator with the derivative of the denominator.
Read the answer and explanation

ln⁡(x2+5)+C\ln(x^2+5)+C

The inner derivative is exactly 2 x. The denominator is positive for every real x, so ln(x²+5)+C works everywhere.
About 5 minutes
TOPIC 03Class 12

Undo an exponential derivative

The exponential e^x is its own derivative, so it is also its own antiderivative:

∫ex dx=ex+C.\int e^x\,dx=e^x+C.

If its exponent is a linear expression, compensate for the inner derivative. For a≠0, ∫eax+b dx=1aeax+b+C.\boxed{\int e^{ax+b}\,dx=\frac1a e^{ax+b}+C.} Differentiating the right side brings down a and cancels the factor 1/a.

For a fixed exponential base b>0 with b≠1, the derivative of b^x contains ln b. Reverse that multiplier:

∫bx dx=bxln⁡b+C.\int b^x\,dx=\frac{b^x}{\ln b}+C.

More generally, ∫bax+c dx=bax+c/(aln⁡b)+C\int b^{ax+c}\,dx=b^{ax+c}/(a\ln b)+C when a≠0 and b≠1. If either factor in that denominator is zero, return to the actual function instead of dividing by zero. For example, b=1 makes the integrand 1, whose antiderivative is x+C; a=0 makes the integrand the constant b^c.

A base between 0 and 1 is allowed. Its logarithm is negative, so an antiderivative such as (1/2)x/ln⁡(1/2)(1/2)^x/\ln(1/2) is negative before adding C. That does not contradict the positive integrand: the derivative of the antiderivative is positive. Function values and rates of change need not have the same sign.

Keep the two adjustments separate: one for the exponential base, and one for a changing inner exponent. A derivative check exposes either missing factor immediately.

Work it through

Example. Find ∫23x dx\int2^{3x}\,dx.

Differentiating 2^(3 x) produces both ln 2 and the inner factor 3. Therefore ∫23x dx=23x3ln⁡2+C.\int2^{3x}\,dx=\frac{2^{3x}}{3\ln2}+C. Its derivative is 23x(3ln⁡2)/(3ln⁡2)=23x2^{3x}(3\ln2)/(3\ln2)=2^{3x}.

Pause. Think. Try.

1. Find ∫e4x dx\int e^{4x}\,dx.
A hint, pleaseDifferentiate your candidate and check its multiplier.
Read the answer and explanation

14e4x+C\tfrac14e^{4x}+C

The derivative of(1/4)e^(4 x) is e^(4 x).
2. Find ∫3x dx\int3^x\,dx.
A hint, pleaseThe derivative of 3^x has an extra ln 3.
Read the answer and explanation

3x/ln⁡3+C3^x/\ln3+C

Dividing by ln 3 reverses that multiplier; ln 3 is nonzero.
About 5 minutes
TOPIC 04Class 12

Integrate ln x by choosing two factors

The integral of ln x does not match the reciprocal pattern. Instead, view it as a product: ln⁡x⋅1\ln x\cdot1. Integration by parts reverses the derivative of a product:

∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.

Choose the factor that becomes simpler when differentiated as u. On x>0, take u=ln⁡x,dv=dx,du=dxx,v=x.u=\ln x,\quad dv=dx,\quad du=\frac{dx}x,\quad v=x. Substitute every part before simplifying:

∫ln⁡x dx=xln⁡x−∫xdxx=xln⁡x−∫1 dx.\int\ln x\,dx=x\ln x-\int x\frac{dx}x=x\ln x-\int1\,dx.

Hence ∫ln⁡x dx=xln⁡x−x+C,x>0.\boxed{\int\ln x\,dx=x\ln x-x+C,\qquad x>0.}

Check it: the derivative of x ln x is ln x + 1, and the derivative of−x is−1. The unwanted constants cancel, leaving ln x. The subtraction is doing real work; x ln x alone is not an antiderivative.

The same choice of u helps with a polynomial times ln x. For ∫xln⁡x dx\int x\ln x\,dx, keep u=ln x but choose dv=x dx, so v=x²/2. The remaining integral is simpler because the 1/x from du removes one power of x.

Before calculating, write a small two-column plan: what will be differentiated, and what will be integrated? If the second integral becomes harder, reconsider that choice. Here the logarithm is the factor to differentiate because its derivative is a simple reciprocal.

Work it through

Example. Find ∫xln⁡x dx\int x\ln x\,dx on x>0.

u=ln⁡x,dv=x dx,du=dx/x,v=x2/2.u=\ln x,\quad dv=x\,dx,\quad du=dx/x,\quad v=x^2/2.∫xln⁡x dx=x22ln⁡x−12∫x dx=x22ln⁡x−x24+C.\int x\ln x\,dx=\frac{x^2}{2}\ln x-\frac12\int x\,dx=\frac{x^2}{2}\ln x-\frac{x^2}{4}+C.

Differentiation gives x ln x+x/2−x/2=x ln x.

Pause. Think. Try.

1. For ∫ln⁡x dx\int\ln x\,dx, which choice makes integration by parts straightforward?
A hint, pleaseChoose a factor whose derivative is simpler and whose partner is easy to integrate.
Read the answer and explanation

u=ln⁡x,  dv=dxu=\ln x,\;dv=dx

With u=ln x and dv=dx, du=dx/x and v=x; the remaining integral is∫1 dx.
2. Which is an antiderivative of ln x on x>0?
A hint, pleaseDifferentiate each candidate if necessary.
Read the answer and explanation

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

The derivative of x ln x−x is (ln x + 1)−1=ln x.
About 5 minutes
TOPIC 05Class 12

Add an interval before subtracting endpoints

A definite integral combines an integrand with an interval. If 0<a<b, the function 1/x is positive and continuous on[a,b], so ∫abdxx=ln⁡b−ln⁡a=ln⁡(ba).\int_a^b\frac{dx}x=\ln b-\ln a=\ln\left(\frac ba\right). Its value is also the area below 1/x between those positive bounds. Reversing the bounds reverses the sign of the integral.

The answer depends on a ratio. From 1 to 2 and from 2 to 4, the integral is the same: ln 2. The second interval is twice as wide, but its curve is correspondingly lower. Use the area exploration to compare these intervals without confusing width with area.

Now inspect ∫−111/x dx\int_{-1}^{1}1/x\,dx. Zero lies inside the interval, and 1/x is undefined there. You cannot substitute endpoints into ln|x| and announce 0. The fundamental endpoint rule needs its hypotheses: this integrand is not continuous across the interval.

If interpreted as an improper integral, the negative and positive sides must each converge separately. They do not, so the integral does not converge. Equal-looking areas on a symmetric sketch do not justify cancelling two divergences.

For every definite integral, use this order: check the whole interval, choose an antiderivative valid there, evaluate the upper endpoint, then subtract the lower endpoint. A logarithm’s absolute value keeps an argument positive but cannot repair a singularity inside the integration interval.

Work it through

Example. Evaluate ∫132x/(x2+1) dx\int_1^3 2x/(x^2+1)\,dx.

The denominator is positive throughout[1,3]. An antiderivative is ln(x²+1), so ∫132xx2+1 dx=ln⁡10−ln⁡2=ln⁡5.\int_1^3\frac{2x}{x^2+1}\,dx=\ln10-\ln2=\boxed{\ln5}. The integrand is positive, and ln 5 is positive, providing a useful sign check.

Enable JavaScript to explore the inputs. The explanation and worked example remain available here.

Pause. Think. Try.

1. Evaluate ∫1edxx\displaystyle\int_1^e\frac{dx}x.
A hint, pleaseUse ln x at the upper and lower bounds.
Read the answer and explanation

11

ln⁡e−ln⁡1=1−0=1\ln e-\ln1=1-0=1.
2. Why is ∫−11dxx\displaystyle\int_{-1}^{1}\frac{dx}x not found by writing ln|1|−ln|−1|=0?
A hint, pleaseCheck the integrand on the entire interval.
Read the answer and explanation

Because the interval contains the singularity x=0.

The integrand is undefined at 0. The separate improper integrals diverge, so symmetric cancellation does not give a convergent integral.
PUT IT TOGETHER

Your chapter checkpoint

Mix the ideas. Try each question before opening its explanation.

1. Find ∫x/(x2−1) dx\int x/(x^2-1)\,dx on any interval avoiding x=±1.
A hint, pleaseThe numerator is half the derivative of the denominator.
Read the answer and explanation

12ln⁡∣x2−1∣+C\tfrac12\ln|x^2-1|+C

Differentiating(1/2)ln|x²−1| gives x/(x²−1). Work separately on intervals cut by−1 and 1.
2. Find ∫e−2x dx\int e^{-2x}\,dx.
A hint, pleaseThe inner derivative is−2.
Read the answer and explanation

−12e−2x+C-\tfrac12e^{-2x}+C

The multiplier−1/2 cancels the−2 produced by differentiation.
3. Evaluate ∫1eln⁡x dx\displaystyle\int_1^e\ln x\,dx.
A hint, pleaseUse x ln x−x at both bounds.
Read the answer and explanation

11

At e the antiderivative is e−e=0; at 1 it is 0−1=−1. Subtracting gives 1.

Write the reasoning

Show the domain, the key steps and a check of your answer.

A negative interval is allowed

Evaluate ∫−3−12x dx\displaystyle\int_{-3}^{-1}\frac{2}{x}\,dx, and explain the sign.
Compare your solution

The interval stays entirely below zero, so the integrand is continuous there and 2 ln|x| is a valid antiderivative.

∫−3−12x dx=2ln⁡1−2ln⁡3=−2ln⁡3.\int_{-3}^{-1}\frac2x\,dx=2\ln1-2\ln3=-2\ln3.

The result is negative because 2/x is below the horizontal axis throughout the interval. Negative bounds are allowed; crossing the singularity at zero is the problem to avoid.

Combine parts with definite bounds

Evaluate ∫1exln⁡x dx\displaystyle\int_1^e x\ln x\,dx.
Compare your solution

Integration by parts gives F(x)=x22ln⁡x−x24F(x)=\tfrac{x^2}2\ln x-\tfrac{x^2}4, valid for x>0. The entire interval [1,e] lies in that domain.

F(e)=e22−e24=e24,F(1)=0−14=−14.F(e)=\frac{e^2}2-\frac{e^2}4=\frac{e^2}4,\qquad F(1)=0-\frac14=-\frac14.∫1exln⁡x dx=F(e)−F(1)=e2+14.\int_1^e x\ln x\,dx=F(e)-F(1)=\boxed{\frac{e^2+1}{4}}.

The integrand is nonnegative on[1,e], matching the positive result.

Class 12 milestone

You can now recognise the logarithm inside an integral

You can reverse a chain rule, compensate for exponential multipliers and integrate ln x by parts. Revisit interval checks before mixing definite integrals. For a broader algebra workout, explore the JEE challenge route, or return to the logarithms course map.