Integration by Parts

RS Aggarwal Class 12 Maths Solutions Exercise 13C (Part 2) — Methods of Integration

RS Aggarwal, Class 12 Mathematics — Methods of Integration, Exercise 13C, Questions 45 to 87 (second half). All 43 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

The second half of Exercise 13C opens with inverse trigonometric integrands that collapse to a multiple of $\tan^{-1}x$ or $\cos^{-1}x$ after a substitution (Questions 45 to 50), then moves to exponential times trigonometric integrals that need integration by parts twice (51 to 55). Most of the rest (56 to 87) hide the pattern $\int e^x\{f(x)+f'(x)\}dx$, sometimes after a substitution $x=e^t$ or with $e^{2x}$ or $e^{3x}$ in place of $e^x$.

Key insight. Whenever $e^{kx}$ multiplies a bracket, ask whether the bracket is $kf+f’$ for some $f$. If so the integral is simply $e^{kx}f(x)$ and no integration by parts is needed. Splitting the fraction and spotting $f$ is the whole skill.

Question 45

Evaluate $\int\cos^{-1}(4x^3-3x)\,dx$.

Solution. Put $x=\cos\theta$, so $4x^3-3x=4\cos^3\theta-3\cos\theta=\cos3\theta$ and $\cos^{-1}(4x^3-3x)=3\theta=3\cos^{-1}x$ (for $\tfrac12\le x\le1$, where $3\theta$ stays in $[0,\pi]$). The integral becomes $3\int\cos^{-1}x\,dx$. Integrate by parts with $u=\cos^{-1}x$, $dv=dx$: $\int\cos^{-1}x\,dx=x\cos^{-1}x+\int\dfrac{x}{\sqrt{1-x^2}}dx=x\cos^{-1}x-\sqrt{1-x^2}$. Multiply by $3$.

$3x\cos^{-1}x-3\sqrt{1-x^2}+C$

Question 46

Evaluate $\int\cos^{-1}\left(\dfrac{1-x^2}{1+x^2}\right)dx$.

Solution. Let $x=\tan\theta$. Then $\dfrac{1-x^2}{1+x^2}=\cos2\theta$, so the inverse cosine is $2\theta=2\tan^{-1}x$ (taking $x\ge0$). We need $2\int\tan^{-1}x\,dx$. By parts, $\int\tan^{-1}x\,dx=x\tan^{-1}x-\int\dfrac{x}{1+x^2}dx=x\tan^{-1}x-\tfrac12\log(1+x^2)$. Doubling gives the result.

$2x\tan^{-1}x-\log(1+x^2)+C$

Question 47

Evaluate $\int\tan^{-1}\left(\dfrac{2x}{1-x^2}\right)dx$.

Solution. With $x=\tan\theta$, $\dfrac{2x}{1-x^2}=\tan2\theta$, so the integrand is $2\tan^{-1}x$ (for $|x|<1$). Then $2\int\tan^{-1}x\,dx=2\left[x\tan^{-1}x-\tfrac12\log(1+x^2)\right]$, using integration by parts with $u=\tan^{-1}x$.

$2x\tan^{-1}x-\log(1+x^2)+C$

Question 48

Evaluate $\int \tan^{-1}\left(\dfrac{3x-x^3}{1-3x^2}\right)dx$.

Solution. Substitute $x=\tan\theta$: the fraction is $\dfrac{3\tan\theta-\tan^3\theta}{1-3\tan^2\theta}=\tan3\theta$, so the integrand equals $3\tan^{-1}x$ (near $x=0$). Then $3\int\tan^{-1}x\,dx=3\left[x\tan^{-1}x-\tfrac12\log(1+x^2)\right]$.

$3x\tan^{-1}x-\dfrac32\log(1+x^2)+C$

Question 49

Evaluate $\int \dfrac{\sin^{-1}x}{x^2}dx$.

Solution. Integrate by parts with $u=\sin^{-1}x$ and $dv=x^{-2}dx$, so $v=-\dfrac1x$: $\int\dfrac{\sin^{-1}x}{x^2}dx=-\dfrac{\sin^{-1}x}{x}+\int\dfrac{dx}{x\sqrt{1-x^2}}$. For the last integral put $x=\sin\theta$: it becomes $\int\operatorname{cosec}\theta\,d\theta=\log|\operatorname{cosec}\theta-\cot\theta|=\log\left|\dfrac{1-\sqrt{1-x^2}}{x}\right|$. This equals $-\log\left|\dfrac{1+\sqrt{1-x^2}}{x}\right|$, as $(1-\sqrt{1-x^2})(1+\sqrt{1-x^2})=x^2$.

$-\dfrac{\sin^{-1}x}{x}+\log\left|\dfrac{1-\sqrt{1-x^2}}{x}\right|+C$

Question 50

Evaluate $\int \dfrac{\tan x\sec^2x}{1-\tan^2x}dx$.

Solution. The factor $\sec^2x\,dx$ is the differential of $\tan x$. Let $u=\tan x$, so $du=\sec^2x\,dx$ and the integral is $\int\dfrac{u}{1-u^2}du$. Since $\dfrac{d}{du}(1-u^2)=-2u$, this is $-\tfrac12\log|1-u^2|$.

$-\dfrac12\log|1-\tan^2x|+C$

Question 51

Evaluate $\int e^{3x}\sin4x\,dx$.

Solution. Use the standard formula $\int e^{ax}\sin bx\,dx=\dfrac{e^{ax}}{a^2+b^2}(a\sin bx-b\cos bx)$, which comes from integrating by parts twice and solving for $I$. Here $a=3$, $b=4$, so $a^2+b^2=25$.

$\dfrac{e^{3x}}{25}(3\sin4x-4\cos4x)+C$

Question 52

Evaluate $\int e^{2x}\sin x\,dx$.

Solution. Let $I=\int e^{2x}\sin x\,dx$. By parts, $I=-e^{2x}\cos x+2\int e^{2x}\cos x\,dx$, and again $\int e^{2x}\cos x\,dx=e^{2x}\sin x-2I$. So $I=-e^{2x}\cos x+2e^{2x}\sin x-4I$, giving $5I=e^{2x}(2\sin x-\cos x)$.

$\dfrac15e^{2x}(2\sin x-\cos x)+C$

Question 53

Evaluate $\int e^{2x}\sin x\cos x\,dx$.

Solution. Write $\sin x\cos x=\tfrac12\sin2x$ so the integral is $\tfrac12\int e^{2x}\sin2x\,dx$. With $a=2$, $b=2$ in the formula $\int e^{ax}\sin bx\,dx=\dfrac{e^{ax}}{a^2+b^2}(a\sin bx-b\cos bx)$ we get $\dfrac{e^{2x}}{8}(2\sin2x-2\cos2x)$. Half of that is $\dfrac{e^{2x}}{8}(\sin2x-\cos2x)$.

$\dfrac18e^{2x}(\sin2x-\cos2x)+C$

Question 54

Evaluate $\int e^{2x}\cos(3x+4)\,dx$.

Solution. Let $I=\int e^{2x}\cos(3x+4)dx$. By parts, $I=\tfrac12e^{2x}\cos(3x+4)+\tfrac32\int e^{2x}\sin(3x+4)dx$, and $\int e^{2x}\sin(3x+4)dx=\tfrac12e^{2x}\sin(3x+4)-\tfrac32I$. Substituting, $I=\tfrac12e^{2x}\cos(3x+4)+\tfrac34e^{2x}\sin(3x+4)-\tfrac94I$, so $\tfrac{13}{4}I=\tfrac14e^{2x}\{2\cos(3x+4)+3\sin(3x+4)\}$.

$\dfrac{e^{2x}}{13}\{2\cos(3x+4)+3\sin(3x+4)\}+C$

Question 55

Evaluate $\int e^{-x}\cos x\,dx$.

Solution. Use $\int e^{ax}\cos bx\,dx=\dfrac{e^{ax}}{a^2+b^2}(a\cos bx+b\sin bx)$ with $a=-1$, $b=1$, so $a^2+b^2=2$: the result is $\dfrac{e^{-x}}{2}(-\cos x+\sin x)$.

$\dfrac12e^{-x}(\sin x-\cos x)+C$

Question 56

Evaluate $\int e^x(\sin x+\cos x)\,dx$.

Solution. This has the form $\int e^x\{f(x)+f'(x)\}dx=e^xf(x)$ with $f=\sin x$, $f’=\cos x$.

$e^x\sin x+C$

Question 57

Evaluate $\int e^x(\cot x-\operatorname{cosec}^2x)\,dx$.

Solution. Take $f(x)=\cot x$; then $f'(x)=-\operatorname{cosec}^2x$, so the bracket is $f+f’$ and the integral is $e^xf(x)$.

$e^x\cot x+C$

Question 58

Evaluate $\int e^x\sec x(1+\tan x)\,dx$.

Solution. Expand: $\sec x+\sec x\tan x$. With $f=\sec x$ we have $f’=\sec x\tan x$, so this is $f+f’$ and the integral is $e^x\sec x$.

$e^x\sec x+C$

Question 59

Evaluate $\int e^x\left(\tan^{-1}x+\dfrac{1}{1+x^2}\right)dx$.

Solution. Here $f=\tan^{-1}x$ and $f’=\dfrac1{1+x^2}$, so the bracket is $f+f’$.

$e^x\tan^{-1}x+C$

Question 60

Evaluate $\int e^x(\cot x+\log\sin x)\,dx$.

Solution. Take $f=\log\sin x$. Then $f’=\dfrac{\cos x}{\sin x}=\cot x$. The bracket is $f’+f$, so the integral is $e^x\log\sin x$.

$e^x\log(\sin x)+C$

Question 61

Evaluate $\int e^x(\tan x-\log\cos x)\,dx$.

Solution. Take $f=-\log\cos x=\log\sec x$. Then $f’=\dfrac{\sin x}{\cos x}=\tan x$, so the bracket is $f’+f$ and the integral is $e^x\log\sec x$.

$e^x\log(\sec x)+C$

Question 62

Evaluate $\int e^x[\sec x+\log(\sec x+\tan x)]dx$.

Solution. Let $f=\log(\sec x+\tan x)$. Then $f’=\dfrac{\sec x\tan x+\sec^2x}{\sec x+\tan x}=\sec x$, so the bracket is $f’+f$.

$e^x\log(\sec x+\tan x)+C$

Question 63

Evaluate $\int e^x\left(\dfrac{1+\sin x\cos x}{\cos^2x}\right)dx$.

Solution. Split the fraction: $\dfrac{1}{\cos^2x}+\dfrac{\sin x\cos x}{\cos^2x}=\sec^2x+\tan x$. With $f=\tan x$, $f’=\sec^2x$, the bracket is $f+f’$.

$e^x\tan x+C$

Question 64

Evaluate $\int e^x\left(\dfrac{\sin x\cos x-1}{\sin^2x}\right)dx$.

Solution. Split: $\dfrac{\cos x}{\sin x}-\dfrac1{\sin^2x}=\cot x-\operatorname{cosec}^2x$. With $f=\cot x$ and $f’=-\operatorname{cosec}^2x$ this is $f+f’$.

$e^x\cot x+C$

Question 65

Evaluate $\int e^x\left(\dfrac{\cos x+\sin x}{\cos^2x}\right)dx$.

Solution. Split: $\dfrac1{\cos x}+\dfrac{\sin x}{\cos^2x}=\sec x+\sec x\tan x$. With $f=\sec x$, $f’=\sec x\tan x$, this is $f+f’$.

$e^x\sec x+C$

Question 66

Evaluate $\int e^x\left(\dfrac{2-\sin2x}{1-\cos2x}\right)dx$.

Solution. Use $1-\cos2x=2\sin^2x$ and $\sin2x=2\sin x\cos x$: the fraction is $\dfrac{2-2\sin x\cos x}{2\sin^2x}=\operatorname{cosec}^2x-\cot x$. Take $f=-\cot x$, so $f’=\operatorname{cosec}^2x$ and the bracket is $f+f’$.

$-e^x\cot x+C$

Question 67

Evaluate $\int e^x\left(\dfrac{1+\sin x}{1+\cos x}\right)dx$.

Solution. Use $1+\cos x=2\cos^2\tfrac x2$ and $\sin x=2\sin\tfrac x2\cos\tfrac x2$. The fraction becomes $\tfrac12\sec^2\tfrac x2+\tan\tfrac x2$. With $f=\tan\tfrac x2$, $f’=\tfrac12\sec^2\tfrac x2$, so this is $f+f’$.

$e^x\tan\dfrac x2+C$

Question 68

Evaluate $\int e^x\left(\dfrac{\sin4x-4}{1-\cos4x}\right)dx$.

Solution. Use $1-\cos4x=2\sin^22x$ and $\sin4x=2\sin2x\cos2x$. The fraction is $\cot2x-2\operatorname{cosec}^22x$. With $f=\cot2x$, $f’=-2\operatorname{cosec}^22x$, so the bracket is $f+f’$.

$e^x\cot2x+C$

Question 69

Evaluate $\int\dfrac{e^x[\sqrt{1-x^2}\,\sin^{-1}x+1]}{\sqrt{1-x^2}}dx$.

Solution. Divide through by $\sqrt{1-x^2}$: the bracket is $\sin^{-1}x+\dfrac1{\sqrt{1-x^2}}$. With $f=\sin^{-1}x$, $f’=\dfrac1{\sqrt{1-x^2}}$, this is $f+f’$.

$e^x\sin^{-1}x+C$

Question 70

Evaluate $\int e^x\left(\dfrac{1+x\log x}{x}\right)dx$.

Solution. Split: $\dfrac1x+\log x$. With $f=\log x$, $f’=\dfrac1x$, the bracket is $f+f’$.

$e^x\log x+C$

Question 71

Evaluate $\int e^x\cdot\dfrac{x}{(1+x)^2}dx$.

Solution. Write $x=(1+x)-1$, so $\dfrac{x}{(1+x)^2}=\dfrac1{1+x}-\dfrac1{(1+x)^2}$. With $f=\dfrac1{1+x}$, $f’=-\dfrac1{(1+x)^2}$, the bracket is $f+f’$.

$\dfrac{e^x}{1+x}+C$

Question 72

Evaluate $\int e^x\,\dfrac{x-1}{(x+1)^3}dx$.

Solution. Write $x-1=(x+1)-2$: $\dfrac{x-1}{(x+1)^3}=\dfrac1{(x+1)^2}-\dfrac2{(x+1)^3}$. With $f=\dfrac1{(x+1)^2}$, $f’=-\dfrac2{(x+1)^3}$, this is $f+f’$.

$\dfrac{e^x}{(x+1)^2}+C$

Question 73

Evaluate $\int e^x\,\dfrac{2-x}{(1-x)^2}dx$.

Solution. Write $2-x=(1-x)+1$: the fraction is $\dfrac1{1-x}+\dfrac1{(1-x)^2}$. With $f=\dfrac1{1-x}$, $f’=\dfrac1{(1-x)^2}$, this is $f+f’$.

$\dfrac{e^x}{1-x}+C$

Question 74

Evaluate $\int e^x\cdot\dfrac{x-3}{(x-1)^3}dx$.

Solution. Write $x-3=(x-1)-2$: the fraction is $\dfrac1{(x-1)^2}-\dfrac2{(x-1)^3}$. With $f=\dfrac1{(x-1)^2}$, $f’=-\dfrac2{(x-1)^3}$, this is $f+f’$.

$\dfrac{e^x}{(x-1)^2}+C$

Question 75

Evaluate $\int e^{3x}\left(\dfrac{3x-1}{9x^2}\right)dx$.

Solution. Split: $\dfrac{3x-1}{9x^2}=\dfrac1{3x}-\dfrac1{9x^2}$. For $e^{3x}$ the pattern is $\int e^{kx}\{kf+f’\}dx=e^{kx}f$. Take $f=\dfrac1{9x}$: $3f=\dfrac1{3x}$ and $f’=-\dfrac1{9x^2}$, which matches.

$\dfrac{e^{3x}}{9x}+C$

Question 76

Evaluate $\int\dfrac{x+1}{(x+2)^2}e^x\,dx$.

Solution. Write $x+1=(x+2)-1$: the fraction is $\dfrac1{x+2}-\dfrac1{(x+2)^2}$. With $f=\dfrac1{x+2}$, $f’=-\dfrac1{(x+2)^2}$, this is $f+f’$.

$\dfrac{e^x}{x+2}+C$

Question 77

Evaluate $\int\dfrac{xe^{2x}}{(1+2x)^2}dx$.

Solution. Write $x=\tfrac12(1+2x)-\tfrac12$, so $\dfrac{x}{(1+2x)^2}=\dfrac1{2(1+2x)}-\dfrac1{2(1+2x)^2}$. Use $\int e^{2x}\{2f+f’\}dx=e^{2x}f$ with $f=\dfrac1{4(1+2x)}$: $2f=\dfrac1{2(1+2x)}$ and $f’=-\dfrac{2}{4(1+2x)^2}=-\dfrac1{2(1+2x)^2}$, as required.

$\dfrac{e^{2x}}{4(1+2x)}+C$

Question 78

Evaluate $\int e^{2x}\left(\dfrac{2x-1}{4x^2}\right)dx$.

Solution. Split: $\dfrac{2x-1}{4x^2}=\dfrac1{2x}-\dfrac1{4x^2}$. With $f=\dfrac1{4x}$: $2f=\dfrac1{2x}$ and $f’=-\dfrac1{4x^2}$, so the integrand is $e^{2x}(2f+f’)$.

$\dfrac{e^{2x}}{4x}+C$

Question 79

Evaluate $\int e^x\left(\log x+\dfrac1{x^2}\right)dx$.

Solution. Try $f=\log x-\dfrac1x$. Then $f’=\dfrac1x+\dfrac1{x^2}$, so $f+f’=\log x-\dfrac1x+\dfrac1x+\dfrac1{x^2}=\log x+\dfrac1{x^2}$. The integral is $e^xf$.

$e^x\left(\log x-\dfrac1x\right)+C$

Question 80

Evaluate $\int\dfrac{\log x}{(1+\log x)^2}dx$.

Solution. Put $x=e^t$, $dx=e^tdt$: the integral is $\int e^t\dfrac{t}{(1+t)^2}dt$. Now $\dfrac t{(1+t)^2}=\dfrac1{1+t}-\dfrac1{(1+t)^2}$, which is $f+f’$ for $f=\dfrac1{1+t}$. So the integral is $\dfrac{e^t}{1+t}=\dfrac{x}{1+\log x}$.

$\dfrac{x}{1+\log x}+C$

Question 81

Evaluate $\int\{\sin(\log x)+\cos(\log x)\}dx$.

Solution. Put $x=e^t$, $dx=e^tdt$: we get $\int e^t(\sin t+\cos t)dt=e^t\sin t$, since $\cos t=\dfrac{d}{dt}\sin t$. Back-substitute $e^t=x$, $t=\log x$.

$x\sin(\log x)+C$

Question 82

Evaluate $\int\left\{\dfrac1{\log x}-\dfrac1{(\log x)^2}\right\}dx$.

Solution. Put $x=e^t$: the integral is $\int e^t\left(\dfrac1t-\dfrac1{t^2}\right)dt$. With $f=\dfrac1t$, $f’=-\dfrac1{t^2}$, so it equals $e^t\cdot\dfrac1t=\dfrac{x}{\log x}$.

$\dfrac{x}{\log x}+C$

Question 83

Evaluate $\int\left\{\log(\log x)+\dfrac1{(\log x)^2}\right\}dx$.

Solution. Put $x=e^t$: we need $\int e^t\left(\log t+\dfrac1{t^2}\right)dt$. Take $f=\log t-\dfrac1t$, so $f’=\dfrac1t+\dfrac1{t^2}$ and $f+f’=\log t+\dfrac1{t^2}$. The integral is $e^tf=x\left\{\log(\log x)-\dfrac1{\log x}\right\}$.

$x\left\{\log(\log x)-\dfrac1{\log x}\right\}+C$

Question 84

Evaluate $\int\left(\dfrac{\sin^{-1}\sqrt x-\cos^{-1}\sqrt x}{\sin^{-1}\sqrt x+\cos^{-1}\sqrt x}\right)dx$.

Solution. The denominator is $\dfrac\pi2$, since $\sin^{-1}y+\cos^{-1}y=\dfrac\pi2$. Also $\cos^{-1}\sqrt x=\dfrac\pi2-\sin^{-1}\sqrt x$, so the numerator is $2\sin^{-1}\sqrt x-\dfrac\pi2$. The integrand simplifies to $\dfrac4\pi\sin^{-1}\sqrt x-1$. Put $x=\sin^2\theta$, $dx=\sin2\theta\,d\theta$: $\int\theta\sin2\theta\,d\theta=-\tfrac12\theta\cos2\theta+\tfrac14\sin2\theta$. With $\cos2\theta=1-2x$ and $\sin2\theta=2\sqrt{x-x^2}$ this is $-\tfrac12(1-2x)\sin^{-1}\sqrt x+\tfrac12\sqrt{x-x^2}$. Multiplying by $\dfrac4\pi$ and subtracting $x$ gives the answer.

$\dfrac2\pi\left\{\sqrt{x-x^2}-(1-2x)\sin^{-1}\sqrt x\right\}-x+C$

Question 85

Evaluate $\int 5^{5^{5^x}}\cdot5^{5^x}\cdot5^x\,dx$.

Solution. Let $u=5^{5^x}$. Then $du=5^{5^x}\log5\cdot5^x\log5\,dx$, so $5^{5^x}\cdot5^x\,dx=\dfrac{du}{(\log5)^2}$. The integral becomes $\dfrac1{(\log5)^2}\int5^u\,du=\dfrac{5^u}{(\log5)^3}$.

$\dfrac{5^{5^{5^x}}}{(\log5)^3}+C$

Question 86

Evaluate $\int e^{2x}\left(\dfrac{1+\sin2x}{1+\cos2x}\right)dx$.

Solution. Use $1+\sin2x=(\sin x+\cos x)^2$ and $1+\cos2x=2\cos^2x$. The fraction is $\tfrac12(1+\tan x)^2=\tfrac12(\sec^2x+2\tan x)$. With $f=\tan x$ we have $2f+f’=2\tan x+\sec^2x$, so the integrand is $\tfrac12e^{2x}(2f+f’)$ and the integral is $\tfrac12e^{2x}\tan x$.

$\dfrac12e^{2x}\tan x+C$

Question 87

Evaluate $\int e^{2x}\left(\dfrac{1-\sin2x}{1-\cos2x}\right)dx$.

Solution. Use $1-\sin2x=(\cos x-\sin x)^2$ and $1-\cos2x=2\sin^2x$. The fraction is $\tfrac12(\cot x-1)^2=\tfrac12(\operatorname{cosec}^2x-2\cot x)$ (using $\cot^2x=\operatorname{cosec}^2x-1$). With $f=-\cot x$ we have $2f+f’=-2\cot x+\operatorname{cosec}^2x$, so the integrand is $\tfrac12e^{2x}(2f+f’)$ and the integral is $-\tfrac12e^{2x}\cot x$. Differentiating confirms it.

$-\dfrac12e^{2x}\cot x+C$

Common mistakes

  • In Questions 45 to 48, forgetting that the simplification of the inverse function (for example $\cos^{-1}(4x^3-3x)=3\cos^{-1}x$) holds only on a restricted range of $x$; outside it a different branch appears.
  • Using the rule $\int e^x\{f+f’\}dx=e^xf$ when the bracket is $f-f’$ or $f+2f’$. Check the sign by differentiating your $f$ before you apply the rule.
  • For $e^{2x}$ and $e^{3x}$ (Questions 75, 77, 78, 86, 87), applying the $e^x$ rule directly. The correct bracket is $kf+f’$, not $f+f’$, and a missed factor of $\tfrac12$ or $\tfrac13$ is the usual loss.
  • In Question 87, expanding $\tfrac12(\cot x-1)^2$ without replacing $\cot^2x$ by $\operatorname{cosec}^2x-1$; the constants $-1+1$ cancel only after that step, which is what leaves $-2\cot x$ in the bracket.
  • Forgetting to convert back from $t$ to $x$ after the substitution $x=e^t$ in Questions 80 to 83.

Practise next

Exercise 13C (Part 1) in the same chapter covers the earlier integration-by-parts questions, and Exercise 13D follows with partial fractions.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe