← Back to all lessons
Class 12Calculus11:37Published 1 Sept 2024

Integration by Substitution: Sure Questions (Class 12, Part 1)

Eight worked Class 12 integrals solved by the substitution method, including how to spot a function and its derivative and how to handle exponential expressions.

This lesson works through eight integration questions that all yield to a single substitution. The key idea is to look for an expression whose derivative also appears in the integrand, set it equal to t, and rewrite the integral in terms of t. Examples build from powers of log x and square-root expressions up to ratios of exponential functions, with each substitution chosen to make the integral immediate.

What you'll learn

  • How to spot when an integral can be solved by substitution
  • Choosing a substitution where one part is the derivative of another
  • Solving square-root integrals using the power rule after substituting
  • Dividing by an exponential to simplify ratios of exponentials before substituting

Lesson chapters

0:05Why and when to substitute
0:15Integral of (log x) squared over x
1:26x times the root of 1 plus x squared
3:081 over x minus root x
6:05x over e to the x squared
8:14Ratios of exponential functions

Lesson notes

This lesson solves eight Class 12 integrals using the substitution method. In each one we look for an expression whose derivative also appears in the integrand, set that expression equal to tt, and rewrite the whole integral in terms of tt.

Powers of a logarithm: ∫(log⁡x)2x dx\int \dfrac{(\log x)^2}{x}\,dx

Notice that 1x\tfrac{1}{x} is the derivative of log⁡x\log x. So put

t=log⁡x,dt=1x dx.t = \log x, \qquad dt = \tfrac{1}{x}\,dx.

The integral becomes

∫(log⁡x)2⋅1x dx=∫t2 dt=t33+c.\int (\log x)^2 \cdot \tfrac{1}{x}\,dx = \int t^2\,dt = \tfrac{t^3}{3} + c.

Resubstituting t=log⁡xt = \log x gives

(log⁡x)33+c.\frac{(\log x)^3}{3} + c.

A square root with its derivative present: ∫x1+x2 dx\int x\sqrt{1+x^2}\,dx

Here ddx(1+x2)=2x\tfrac{d}{dx}(1+x^2) = 2x, and an xx already sits in the integrand. Put

t=1+x2,dt=2x dx,x dx=12 dt.t = 1 + x^2, \qquad dt = 2x\,dx, \qquad x\,dx = \tfrac{1}{2}\,dt.

Then

∫1+x2 (x dx)=∫t⋅12 dt=12⋅t3/23/2=13 t3/2.\int \sqrt{1+x^2}\,(x\,dx) = \int \sqrt{t}\cdot\tfrac{1}{2}\,dt = \tfrac{1}{2}\cdot\tfrac{t^{3/2}}{3/2} = \tfrac{1}{3}\,t^{3/2}.

Resubstituting,

13 (1+x2)3/2+c.\frac{1}{3}\,(1+x^2)^{3/2} + c.

Pulling out a constant first: ∫(4x+2)x2+x+1 dx\int (4x+2)\sqrt{x^2+x+1}\,dx

Take 22 out of 4x+24x+2 to expose the derivative of x2+x+1x^2+x+1, which is 2x+12x+1:

∫2 (2x+1)x2+x+1 dx.\int 2\,(2x+1)\sqrt{x^2+x+1}\,dx.

Put t=x2+x+1t = x^2+x+1, so dt=(2x+1) dxdt = (2x+1)\,dx. Then

2∫t dt=2⋅t3/23/2=43 t3/2,2\int \sqrt{t}\,dt = 2\cdot\tfrac{t^{3/2}}{3/2} = \tfrac{4}{3}\,t^{3/2},

and resubstituting gives

43 (x2+x+1)3/2+c.\frac{4}{3}\,(x^2+x+1)^{3/2} + c.

Deciding to substitute: ∫1x−x dx\int \dfrac{1}{x-\sqrt{x}}\,dx

This cannot be integrated directly and will not split, so substitution is the way. Factor x\sqrt{x} out of the denominator:

1x−x=1x (x−1).\frac{1}{x-\sqrt{x}} = \frac{1}{\sqrt{x}\,(\sqrt{x}-1)}.

Put t=x−1t = \sqrt{x}-1, so dt=12x dxdt = \tfrac{1}{2\sqrt{x}}\,dx, which means 1x dx=2 dt\tfrac{1}{\sqrt{x}}\,dx = 2\,dt. The integral becomes

∫2 dtt=2log⁡∣t∣=2log⁡∣x−1∣+c.\int \frac{2\,dt}{t} = 2\log|t| = 2\log|\sqrt{x}-1| + c.

A logarithm raised to a power: ∫1x (log⁡x)m dx\int \dfrac{1}{x\,(\log x)^{m}}\,dx

Again 1x\tfrac{1}{x} is the derivative of log⁡x\log x. Put t=log⁡xt = \log x, dt=1x dxdt = \tfrac{1}{x}\,dx:

∫1tm dt=∫t−m dt=t−m+1−m+1.\int \frac{1}{t^{m}}\,dt = \int t^{-m}\,dt = \frac{t^{-m+1}}{-m+1}.

Resubstituting,

(log⁡x)1−m1−m+c.\frac{(\log x)^{1-m}}{1-m} + c.

An exponential in the denominator: ∫xex2 dx\int \dfrac{x}{e^{x^2}}\,dx

Write this as ∫x e−x2 dx\int x\,e^{-x^2}\,dx and put t=x2t = x^2, so dt=2x dxdt = 2x\,dx and x dx=12 dtx\,dx = \tfrac{1}{2}\,dt:

12∫e−t dt=12 (−e−t)=−12 e−x2+c.\tfrac{1}{2}\int e^{-t}\,dt = \tfrac{1}{2}\,(-e^{-t}) = -\tfrac{1}{2}\,e^{-x^2} + c.

Ratio of exponentials: ∫e2x−1e2x+1 dx\int \dfrac{e^{2x}-1}{e^{2x}+1}\,dx

This is not directly integrable, so first divide numerator and denominator by exe^{x}:

∫ex−e−xex+e−x dx.\int \frac{e^{x}-e^{-x}}{e^{x}+e^{-x}}\,dx.

Now put t=ex+e−xt = e^{x}+e^{-x}, so dt=(ex−e−x) dxdt = (e^{x}-e^{-x})\,dx, exactly the numerator. Then

∫dtt=log⁡∣t∣=log⁡∣ex+e−x∣+c.\int \frac{dt}{t} = \log|t| = \log\left|e^{x}+e^{-x}\right| + c.

A similar exponential ratio: ∫e2x−e−2xe2x+e−2x dx\int \dfrac{e^{2x}-e^{-2x}}{e^{2x}+e^{-2x}}\,dx

Put t=e2x+e−2xt = e^{2x}+e^{-2x}. Differentiating,

dt=(2e2x−2e−2x)dx=2(e2x−e−2x)dx,dt = \left(2e^{2x}-2e^{-2x}\right)dx = 2\left(e^{2x}-e^{-2x}\right)dx,

so (e2x−e−2x) dx=12 dt(e^{2x}-e^{-2x})\,dx = \tfrac{1}{2}\,dt. The numerator matches, giving

12∫dtt=12log⁡∣t∣=12log⁡∣e2x+e−2x∣+c.\tfrac{1}{2}\int \frac{dt}{t} = \tfrac{1}{2}\log|t| = \tfrac{1}{2}\log\left|e^{2x}+e^{-2x}\right| + c.

Key takeaways

  • Choose a substitution tt whose derivative already appears in the integrand, so dtdt replaces that part cleanly.
  • Constants and simple factors (like pulling 22 out, or factoring x\sqrt{x}) can be adjusted to reveal the needed derivative.
  • For a ratio of exponentials, dividing top and bottom by exe^{x} often turns the denominator into something whose derivative is the numerator.