← 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: (logx)2xdx\int \dfrac{(\log x)^2}{x}\,dx

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

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

The integral becomes

(logx)21xdx=t2dt=t33+c.\int (\log x)^2 \cdot \tfrac{1}{x}\,dx = \int t^2\,dt = \tfrac{t^3}{3} + c.

Resubstituting t=logxt = \log x gives

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

A square root with its derivative present: x1+x2dx\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=2xdx,xdx=12dt.t = 1 + x^2, \qquad dt = 2x\,dx, \qquad x\,dx = \tfrac{1}{2}\,dt.

Then

1+x2(xdx)=t12dt=12t3/23/2=13t3/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+1dx\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+1dx.\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

2tdt=2t3/23/2=43t3/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: 1xxdx\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:

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

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

2dtt=2logt=2logx1+c.\int \frac{2\,dt}{t} = 2\log|t| = 2\log|\sqrt{x}-1| + c.

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

Again 1x\tfrac{1}{x} is the derivative of logx\log x. Put t=logxt = \log x, dt=1xdxdt = \tfrac{1}{x}\,dx:

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

Resubstituting,

(logx)1m1m+c.\frac{(\log x)^{1-m}}{1-m} + c.

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

Write this as xex2dx\int x\,e^{-x^2}\,dx and put t=x2t = x^2, so dt=2xdxdt = 2x\,dx and xdx=12dtx\,dx = \tfrac{1}{2}\,dt:

12etdt=12(et)=12ex2+c.\tfrac{1}{2}\int e^{-t}\,dt = \tfrac{1}{2}\,(-e^{-t}) = -\tfrac{1}{2}\,e^{-x^2} + c.

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

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

exexex+exdx.\int \frac{e^{x}-e^{-x}}{e^{x}+e^{-x}}\,dx.

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

dtt=logt=logex+ex+c.\int \frac{dt}{t} = \log|t| = \log\left|e^{x}+e^{-x}\right| + c.

A similar exponential ratio: e2xe2xe2x+e2xdx\int \dfrac{e^{2x}-e^{-2x}}{e^{2x}+e^{-2x}}\,dx

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

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

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

12dtt=12logt=12loge2x+e2x+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.