Exercise 3.2 Examples – 12th Class Math New Book (Substitution and Change of Variable)

By Ehsan Ahmed · updated
Exercise 3.2 solved examples thumbnail for 12th class math chapter 3 (Integration)

Solved examples of Exercise 3.2 (Substitution and Change of Variable): the 16 textbook examples, Chapter 3: Integration, 12th class Mathematics new book (Punjab, PECTAA 2026-27), worked step by step.

Tap an example to open or close it.
Example 13Evaluate $\int(5x^5+5)^3x^4\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

The integrand has an expression raised to a power, so substitute $u$ for that expression.

$$\text{Let }u=5x^5+5\ \Longrightarrow\ du=25x^4\,dx$$
$$\begin{aligned}\int(5x^5+5)^3x^4\,dx&=\frac1{25}\int(5x^5+5)^3\cdot25x^4\,dx\\[6pt]&=\frac1{25}\int u^3\,du\\[6pt]&=\frac1{25}\cdot\frac{u^4}4+c\\[6pt]&=\frac1{100}u^4+c\end{aligned}$$

Put back $u=5x^5+5$.

Answer $\frac1{100}(5x^5+5)^4+c$
Example 14Integrate $\int\sqrt x\,\sqrt{1+\sqrt x}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

$$\text{Let }u=1+\sqrt x$$
$$\sqrt x=u-1\ \Longrightarrow\ x=(u-1)^2$$
$$dx=2(u-1)\,du$$
$$\begin{aligned}&\int\sqrt x\,\sqrt{1+\sqrt x}\,dx\\[6pt]&=\int(u-1)\sqrt u\cdot2(u-1)\,du\\[6pt]&=2\int(u-1)^2u^{1/2}\,du\\[6pt]&=2\int(u^2-2u+1)u^{1/2}\,du\\[6pt]&=2\int(u^{5/2}-2u^{3/2}+u^{1/2})\,du\\[6pt]&=2\left[\frac27u^{7/2}-\frac45u^{5/2}+\frac23u^{3/2}\right]+c\\[6pt]&=\frac47u^{7/2}-\frac85u^{5/2}+\frac43u^{3/2}+c\end{aligned}$$

Put back $u=1+\sqrt x$.

Answer $\frac47(1+\sqrt x)^{7/2}-\frac85(1+\sqrt x)^{5/2}+\frac43(1+\sqrt x)^{3/2}+c$
Example 15Evaluate $\int\frac x{\sqrt{1+x^2}+1+x^2}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Solution:

$$\text{Let }u=\sqrt{1+x^2}\ \Longrightarrow\ u^2=1+x^2$$
$$2u\,du=2x\,dx\ \Longrightarrow\ u\,du=x\,dx$$
$$\begin{aligned}\int\frac x{\sqrt{1+x^2}+1+x^2}\,dx&=\int\frac u{u+u^2}\,du\\[6pt]&=\int\frac u{u(1+u)}\,du\\[6pt]&=\int\frac1{1+u}\,du\\[6pt]&=\ln|1+u|+c\end{aligned}$$

Put back $u=\sqrt{1+x^2}$. The modulus bars are not needed, because $1+\sqrt{1+x^2}>0$ for all $x$.

Answer $\ln(1+\sqrt{1+x^2})+c$
Example 16Evaluate $\int\frac{\sin x}{e^{\cos x}}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int e^{ax}\,dx=\frac{e^{ax}}a+c$$

Solution:

$$\text{Let }u=\cos x\ \Longrightarrow\ du=-\sin x\,dx$$
$$\begin{aligned}\int\frac{\sin x}{e^{\cos x}}\,dx&=\int\frac{-du}{e^u}\\[6pt]&=-\int e^{-u}\,du\\[6pt]&=-\left(\frac{e^{-u}}{-1}\right)+c\\[6pt]&=e^{-u}+c\end{aligned}$$

Put back $u=\cos x$.

Answer $e^{-\cos x}+c$
Example 17Evaluate $\int\frac{e^{\tan^{-1}x}}{1+x^2}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int e^x\,dx=e^x+c$$

Solution:

$$\text{Let }u=\tan^{-1}x\ \Longrightarrow\ du=\frac1{1+x^2}\,dx$$
$$\begin{aligned}\int\frac{e^{\tan^{-1}x}}{1+x^2}\,dx&=\int e^u\,du\\[6pt]&=e^u+c\end{aligned}$$

Put back $u=\tan^{-1}x$.

Answer $e^{\tan^{-1}x}+c$
Example 18Evaluate $\int\frac{e^{2x}+2e^x}{(e^x+1)^2}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac1x\,dx=\ln|x|+c$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

$$\text{Let }u=e^x+1\ \Longrightarrow\ e^x=u-1$$
$$e^x\,dx=du$$
$$\begin{aligned}\int\frac{e^{2x}+2e^x}{(e^x+1)^2}\,dx&=\int\frac{e^x+2}{(e^x+1)^2}\cdot e^x\,dx\\[6pt]&=\int\frac{u-1+2}{u^2}\,du\\[6pt]&=\int\frac{u+1}{u^2}\,du\\[6pt]&=\int\left(\frac1u+u^{-2}\right)du\\[6pt]&=\ln|u|+\frac{u^{-1}}{-1}+c\\[6pt]&=\ln|u|-\frac1u+c\end{aligned}$$

Put back $u=e^x+1$.

Answer $\ln|e^x+1|-\frac1{e^x+1}+c$
Example 19Evaluate $\int\frac{e^x\ln(1+e^x)}{1+e^x}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

$$\text{Let }u=\ln(1+e^x)\ \Longrightarrow\ du=\frac{e^x}{1+e^x}\,dx$$
$$\begin{aligned}\int\frac{e^x\ln(1+e^x)}{1+e^x}\,dx&=\int u\,du\\[6pt]&=\frac{u^2}2+c\end{aligned}$$

Put back $u=\ln(1+e^x)$.

Answer $\frac12[\ln(1+e^x)]^2+c$
Example 20Evaluate $\int\frac{\ln(1+x)-\ln x}{x(1+x)}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

$$\text{Let }u=\ln(1+x)-\ln x$$
$$\begin{aligned}\frac{du}{dx}&=\frac1{1+x}-\frac1x\\[6pt]&=\frac{x-(1+x)}{x(1+x)}\\[6pt]&=\frac{-1}{x(1+x)}\end{aligned}$$
$$-du=\frac1{x(1+x)}\,dx$$
$$\begin{aligned}\int\frac{\ln(1+x)-\ln x}{x(1+x)}\,dx&=\int u(-du)\\[6pt]&=-\int u\,du\\[6pt]&=-\frac{u^2}2+c\end{aligned}$$

Put back $u=\ln(1+x)-\ln x$.

Answer $-\frac12[\ln(1+x)-\ln x]^2+c$
Example 21Evaluate $\int\frac{x^2\tan^{-1}(x^3)}{1+x^6}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c,\ n\ne-1$$

Solution:

$$\text{Let }u=\tan^{-1}(x^3)$$
$$\begin{aligned}\frac{du}{dx}&=\frac1{1+(x^3)^2}\cdot\frac d{dx}(x^3)\\[6pt]&=\frac{3x^2}{1+x^6}\end{aligned}$$
$$\frac13\,du=\frac{x^2}{1+x^6}\,dx$$
$$\begin{aligned}\int\frac{x^2\tan^{-1}(x^3)}{1+x^6}\,dx&=\int u\cdot\frac13\,du\\[6pt]&=\frac13\int u\,du\\[6pt]&=\frac16u^2+c\end{aligned}$$

Put back $u=\tan^{-1}(x^3)$.

Answer $\frac16[\tan^{-1}(x^3)]^2+c$
Example 22Evaluate $\int\frac{\sqrt{9-x^2}}{x^2}\,dx$.
Formula used
$$x=a\sin\theta\ \text{ for }\sqrt{a^2-x^2}$$
$$\cot^2\theta=\csc^2\theta-1$$
$$\int\csc^2x\,dx=-\cot x+c$$

Solution:

$$\text{Let }x=3\sin\theta,\quad\theta\in\left[-\frac\pi2,0\right)\cup\left(0,\frac\pi2\right]$$
$$dx=3\cos\theta\,d\theta$$
$$\begin{aligned}\sqrt{9-x^2}&=\sqrt{9-(3\sin\theta)^2}\\[6pt]&=\sqrt{9(1-\sin^2\theta)}\\[6pt]&=\sqrt{9\cos^2\theta}\\[6pt]&=3\cos\theta\end{aligned}$$
$$\begin{aligned}\int\frac{\sqrt{9-x^2}}{x^2}\,dx&=\int\frac{3\cos\theta}{(3\sin\theta)^2}\cdot3\cos\theta\,d\theta\\[6pt]&=\int\cot^2\theta\,d\theta\\[6pt]&=\int(\csc^2\theta-1)\,d\theta\\[6pt]&=-\cot\theta-\theta+c\qquad\text{(1)}\end{aligned}$$
$$x=3\sin\theta\ \Longrightarrow\ \sin\theta=\frac x3\ \Longrightarrow\ \theta=\sin^{-1}\left(\frac x3\right)$$
$$\begin{aligned}\cot\theta&=\frac{\cos\theta}{\sin\theta}\\[6pt]&=\frac{\sqrt{1-\sin^2\theta}}{\sin\theta}\\[6pt]&=\frac{\sqrt{1-\left(\frac x3\right)^2}}{\frac x3}\\[6pt]&=\frac{\sqrt{9-x^2}}x\end{aligned}$$

Put these values in (1).

Answer $-\frac{\sqrt{9-x^2}}x-\sin^{-1}\left(\frac x3\right)+c$
Example 23Evaluate $\int\frac1{x\sqrt{x^4+1}}\,dx$, $x\in(-\infty,0)\cup(0,\infty)$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$x=a\tan\theta\ \text{ for }\sqrt{a^2+x^2}$$
$$\int\csc x\,dx=\ln|\csc x-\cot x|+c$$

Solution:

Multiply and divide by $2x$.

$$\begin{aligned}\int\frac1{x\sqrt{x^4+1}}\,dx&=\frac12\int\frac{2x}{x^2\sqrt{(x^2)^2+1}}\,dx\end{aligned}$$

Let $x^2=\tan\theta$. Since $x^2>0$, we take $\theta\in\left(0,\frac\pi2\right)$. Then $2x\,dx=\sec^2\theta\,d\theta$.

$$\begin{aligned}\int\frac1{x\sqrt{x^4+1}}\,dx&=\frac12\int\frac{\sec^2\theta}{\tan\theta\sqrt{\tan^2\theta+1}}\,d\theta\\[6pt]&=\frac12\int\frac{\sec^2\theta}{\tan\theta\sec\theta}\,d\theta\\[6pt]&=\frac12\int\frac{\sec\theta}{\tan\theta}\,d\theta\\[6pt]&=\frac12\int\csc\theta\,d\theta\\[6pt]&=\frac12\ln|\csc\theta-\cot\theta|+c\\[6pt]&=\frac12\ln\left|\sqrt{1+\cot^2\theta}-\cot\theta\right|+c\end{aligned}$$
$$\tan\theta=x^2\ \Longrightarrow\ \cot\theta=\frac1{x^2}$$
$$\begin{aligned}\int\frac1{x\sqrt{x^4+1}}\,dx&=\frac12\ln\left|\sqrt{1+\left(\frac1{x^2}\right)^2}-\frac1{x^2}\right|+c\\[6pt]&=\frac12\ln\left|\frac{\sqrt{x^4+1}}{x^2}-\frac1{x^2}\right|+c\end{aligned}$$
Answer $\frac12\ln\left|\frac{\sqrt{x^4+1}-1}{x^2}\right|+c$
Example 24Evaluate $\int\frac{\sqrt{x^2-9}}x\,dx$, $(x>3)$.
Formula used
$$x=a\sec\theta\ \text{ for }\sqrt{x^2-a^2}$$
$$\tan^2\theta=\sec^2\theta-1$$
$$\int\sec^2x\,dx=\tan x+c$$

Solution:

$$\text{Let }x=3\sec\theta,\quad\theta\in\left(0,\frac\pi2\right)$$
$$dx=3\sec\theta\tan\theta\,d\theta$$
$$\begin{aligned}&\int\frac{\sqrt{x^2-9}}x\,dx\\[6pt]&=\int\frac{\sqrt{(3\sec\theta)^2-9}}{3\sec\theta}\cdot3\sec\theta\tan\theta\,d\theta\\[6pt]&=\int\sqrt{9(\sec^2\theta-1)}\,\tan\theta\,d\theta\\[6pt]&=\int3\tan\theta\tan\theta\,d\theta\\[6pt]&=3\int\tan^2\theta\,d\theta\\[6pt]&=3\int(\sec^2\theta-1)\,d\theta\\[6pt]&=3(\tan\theta-\theta)+c\\[6pt]&=3\left[\sqrt{\sec^2\theta-1}-\theta\right]+c\end{aligned}$$
$$\sec\theta=\frac x3\ \Longrightarrow\ \theta=\sec^{-1}\left(\frac x3\right)$$
$$3\left[\sqrt{\left(\frac x3\right)^2-1}-\sec^{-1}\left(\frac x3\right)\right]+c$$
Answer $\sqrt{x^2-9}-3\sec^{-1}\left(\frac x3\right)+c$
Example 25Evaluate $\int\frac{(x+1)e^x}{1+x^2e^{2x}}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac1{1+x^2}\,dx=\tan^{-1}x+c$$

Solution:

$$\text{Let }u=xe^x$$
$$\begin{aligned}\frac{du}{dx}&=xe^x+e^x(1)\\[6pt]&=(x+1)e^x\end{aligned}$$
$$du=(x+1)e^x\,dx$$
$$\begin{aligned}\int\frac{(x+1)e^x}{1+x^2e^{2x}}\,dx&=\int\frac{(x+1)e^x}{1+(xe^x)^2}\,dx\\[6pt]&=\int\frac{du}{1+u^2}\\[6pt]&=\tan^{-1}u+c\end{aligned}$$

Put back $u=xe^x$.

Answer $\tan^{-1}(xe^x)+c$
Example 26Evaluate $\int\frac1{x\sqrt{1-x^3}}\,dx$, $x\in(-\infty,0)\cup(0,1)$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac{dx}{x^2-a^2}=\frac1{2a}\ln\left|\frac{x-a}{x+a}\right|+c$$

Solution:

Multiply and divide by $-3x^2$.

$$\begin{aligned}\int\frac1{x\sqrt{1-x^3}}\,dx&=-\frac13\int\frac{-3x^2}{x^3\sqrt{1-x^3}}\,dx\end{aligned}$$
$$\text{Put }u=\sqrt{1-x^3}\ \Longrightarrow\ u^2=1-x^3$$
$$2u\,du=-3x^2\,dx,\qquad x^3=1-u^2$$
$$\begin{aligned}\int\frac1{x\sqrt{1-x^3}}\,dx&=-\frac13\int\frac{2u}{(1-u^2)u}\,du\\[6pt]&=\frac23\int\frac1{u^2-1^2}\,du\\[6pt]&=\frac23\cdot\frac1{2(1)}\ln\left|\frac{u-1}{u+1}\right|+c\end{aligned}$$

Put back $u=\sqrt{1-x^3}$.

Answer $\frac13\ln\left|\frac{\sqrt{1-x^3}-1}{\sqrt{1-x^3}+1}\right|+c$
Example 27Evaluate $\int\frac{2x}{\sqrt{x^4+9}}\,dx$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac{dx}{\sqrt{x^2+a^2}}=\ln\left|x+\sqrt{x^2+a^2}\right|+c$$

Solution:

$$\text{Let }u=x^2\ \Longrightarrow\ du=2x\,dx$$
$$\begin{aligned}\int\frac{2x}{\sqrt{x^4+9}}\,dx&=\int\frac1{\sqrt{u^2+3^2}}\,du\\[6pt]&=\ln\left|u+\sqrt{u^2+3^2}\right|+c\\[6pt]&=\ln\left|u+\sqrt{u^2+9}\right|+c\end{aligned}$$

Put back $u=x^2$.

Answer $\ln\left|x^2+\sqrt{x^4+9}\right|+c$
Example 28Evaluate $\int\frac{dx}{(x-2)\sqrt{x^2-4x+3}}$.
Formula used
$$u=g(x),\quad du=g'(x)\,dx$$
$$\int\frac{dx}{x\sqrt{x^2-a^2}}=\frac1a\sec^{-1}\left(\frac{|x|}a\right)+c$$

Solution:

$$\begin{aligned}x^2-4x+3&=(x^2-4x+4)+3-4\\[6pt]&=(x-2)^2-1\end{aligned}$$
$$\text{Let }u=x-2\ \Longrightarrow\ du=dx$$
$$\begin{aligned}&\int\frac{dx}{(x-2)\sqrt{x^2-4x+3}}\\[6pt]&=\int\frac{dx}{(x-2)\sqrt{(x-2)^2-1}}\\[6pt]&=\int\frac{du}{u\sqrt{u^2-1^2}}\\[6pt]&=\frac11\sec^{-1}\left(\frac{|u|}1\right)+c\\[6pt]&=\sec^{-1}|u|+c\end{aligned}$$

Put back $u=x-2$.

Answer $\sec^{-1}|x-2|+c$

Popular posts from this blog

Chapter 6 Conic Section Notes – 12th Class Math New Book

Exercise 3.3 Solutions – 12th Class Math New Book (Integration by Parts)

Chapter 11 MCQs and Short Questions – 12th Class Math New Book