Integration of Trigonometric Functions

RS Aggarwal Class 12 Maths Solutions Exercise 13B — Methods of Integration

RS Aggarwal, Class 12 Mathematics — Methods of Integration, Exercise 13B. All 34 questions solved.

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

Exercise 13B is about integrating trigonometric expressions. Questions 1 to 14, 26, 31 and 32 turn powers and products of sines and cosines into sums with standard identities. Questions 15 to 21 and 24, 25 use a substitution such as $u=\sin x$ when one power is odd. Questions 22, 23 and 27 to 30, 33 and 34 need a rewriting of the integrand first, a shifted angle or the half-angle substitution.

Key insight. Look at the integrand and choose the identity that removes the product or the power: $2\sin A\cos B$ and similar product formulas, $\cos 2x = 2\cos^2x-1$ for even powers, and $u=\sin x$ or $u=\cos x$ when the other factor has an odd power so that it supplies $du$.

Question 1

Evaluate (i) $\displaystyle\int \sin^2 x\,dx$ and (ii) $\displaystyle\int \cos^2 x\,dx$.

Solution. (i) Use $\sin^2x=\dfrac{1-\cos 2x}{2}$. Then $\int\dfrac{1-\cos2x}{2}dx=\dfrac x2-\dfrac{\sin2x}{4}$. (ii) Use $\cos^2x=\dfrac{1+\cos 2x}{2}$, giving $\dfrac x2+\dfrac{\sin2x}{4}$.

(i) $\dfrac12x-\dfrac14\sin2x+C$; (ii) $\dfrac12x+\dfrac14\sin2x+C$

Question 2

Evaluate (i) $\displaystyle\int \cos^2 (x/2)\,dx$ and (ii) $\displaystyle\int \cot^2 (x/2)\,dx$.

Solution. (i) $\cos^2\dfrac x2=\dfrac{1+\cos x}{2}$, so the integral is $\dfrac x2+\dfrac{\sin x}{2}$. (ii) $\cot^2\dfrac x2=\mathrm{cosec}^2\dfrac x2-1$. Since $\int\mathrm{cosec}^2\dfrac x2\,dx=-2\cot\dfrac x2$, the result is $-2\cot\dfrac x2-x$.

(i) $\dfrac12x+\dfrac12\sin x+C$; (ii) $-2\cot\dfrac x2-x+C$

Question 3

Evaluate (i) $\displaystyle\int \sin^2 nx\,dx$ and (ii) $\displaystyle\int \sin^5 x\,dx$.

Solution. (i) $\sin^2nx=\dfrac{1-\cos2nx}{2}$, so the integral is $\dfrac x2-\dfrac{\sin2nx}{4n}$. (ii) The power is odd, so peel off one $\sin x$: $\sin^5x=(1-\cos^2x)^2\sin x$. Put $u=\cos x$, $du=-\sin x\,dx$: $-\int(1-2u^2+u^4)\,du=-u+\dfrac{2u^3}{3}-\dfrac{u^5}{5}$.

(i) $\dfrac12x-\dfrac{\sin2nx}{4n}+C$; (ii) $-\cos x+\dfrac{2\cos^3x}{3}-\dfrac{\cos^5x}{5}+C$

Question 4

Evaluate $\displaystyle\int \cos^3(3x+5)\,dx$.

Solution. Write $\cos^3(3x+5)=\left(1-\sin^2(3x+5)\right)\cos(3x+5)$. Put $u=\sin(3x+5)$, so $du=3\cos(3x+5)\,dx$. The integral becomes $\dfrac13\int(1-u^2)\,du=\dfrac13\left(u-\dfrac{u^3}{3}\right)$.

$\dfrac13\sin(3x+5)-\dfrac19\sin^3(3x+5)+C$

Question 5

Evaluate $\displaystyle\int \sin^7(3-2x)\,dx$.

Solution. Write $\sin^7\theta=(1-\cos^2\theta)^3\sin\theta$ with $\theta=3-2x$. Put $u=\cos(3-2x)$; then $du=2\sin(3-2x)\,dx$, so $\sin(3-2x)\,dx=\dfrac{du}{2}$. Expanding $(1-u^2)^3=1-3u^2+3u^4-u^6$: $\dfrac12\left(u-u^3+\dfrac{3u^5}{5}-\dfrac{u^7}{7}\right)$.

$\dfrac12\cos(3-2x)-\dfrac12\cos^3(3-2x)+\dfrac{3}{10}\cos^5(3-2x)-\dfrac1{14}\cos^7(3-2x)+C$

Question 6

Evaluate (i) $\displaystyle\int \dfrac{1-\cos 2x}{1+\cos 2x}\,dx$ and (ii) $\displaystyle\int \dfrac{1+\cos 2x}{1-\cos 2x}\,dx$.

Solution. Since $1-\cos2x=2\sin^2x$ and $1+\cos2x=2\cos^2x$: (i) the integrand is $\tan^2x=\sec^2x-1$, so the integral is $\tan x-x$. (ii) the integrand is $\cot^2x=\mathrm{cosec}^2x-1$, so the integral is $-\cot x-x$.

(i) $\tan x-x+C$; (ii) $-\cot x-x+C$

Question 7

Evaluate (i) $\displaystyle\int \dfrac{1-\cos x}{1+\cos x}\,dx$ and (ii) $\displaystyle\int \dfrac{1+\cos x}{1-\cos x}\,dx$.

Solution. Now the angle is $x$, so use $1-\cos x=2\sin^2\dfrac x2$ and $1+\cos x=2\cos^2\dfrac x2$. (i) The integrand is $\tan^2\dfrac x2=\sec^2\dfrac x2-1$, and $\int\sec^2\dfrac x2\,dx=2\tan\dfrac x2$, so the result is $2\tan\dfrac x2-x$. (ii) The integrand is $\cot^2\dfrac x2=\mathrm{cosec}^2\dfrac x2-1$, giving $-2\cot\dfrac x2-x$.

(i) $2\tan\dfrac x2-x+C$; (ii) $-2\cot\dfrac x2-x+C$

Question 8

Evaluate $\displaystyle\int \sin 3x\cos 4x\,dx$.

Solution. Use $\sin A\cos B=\tfrac12[\sin(A+B)+\sin(A-B)]$ with $A=3x$, $B=4x$: $\sin3x\cos4x=\tfrac12[\sin7x-\sin x]$. Integrating, $\tfrac12\left[-\dfrac{\cos7x}{7}+\cos x\right]$.

$-\dfrac{\cos7x}{14}+\dfrac{\cos x}{2}+C$

Question 9

Evaluate $\displaystyle\int \cos 4x\cos 3x\,dx$.

Solution. $\cos A\cos B=\tfrac12[\cos(A+B)+\cos(A-B)]$, so $\cos4x\cos3x=\tfrac12[\cos7x+\cos x]$. Integrating gives $\tfrac12\left[\dfrac{\sin7x}{7}+\sin x\right]$.

$\dfrac{\sin7x}{14}+\dfrac12\sin x+C$

Question 10

Evaluate $\displaystyle\int \sin 4x\sin 8x\,dx$.

Solution. $\sin A\sin B=\tfrac12[\cos(A-B)-\cos(A+B)]$, so $\sin4x\sin8x=\tfrac12[\cos4x-\cos12x]$. Integrating, $\tfrac12\left[\dfrac{\sin4x}{4}-\dfrac{\sin12x}{12}\right]$.

$\dfrac{\sin4x}{8}-\dfrac{\sin12x}{24}+C$

Question 11

Evaluate $\displaystyle\int \sin 6x\cos x\,dx$.

Solution. $\sin6x\cos x=\tfrac12[\sin7x+\sin5x]$. Integrating, $\tfrac12\left[-\dfrac{\cos7x}{7}-\dfrac{\cos5x}{5}\right]$.

$-\dfrac{\cos7x}{14}-\dfrac{\cos5x}{10}+C$

Question 12

Evaluate $\displaystyle\int \sin x\sqrt{1+\cos 2x}\,dx$.

Solution. $1+\cos2x=2\cos^2x$, so $\sqrt{1+\cos2x}=\sqrt2\,|\cos x|$. Taking $\cos x>0$ (the usual reading), the integrand is $\sqrt2\sin x\cos x$. Put $u=\sin x$: $\sqrt2\int u\,du=\dfrac{\sqrt2\,u^2}{2}=\dfrac{\sin^2x}{\sqrt2}$.

$\dfrac{\sin^2x}{\sqrt2}+C$ (for $\cos x>0$)

Question 13

Evaluate $\displaystyle\int \cos^4 x\,dx$.

Solution. $\cos^4x=\left(\dfrac{1+\cos2x}{2}\right)^2=\dfrac14\left(1+2\cos2x+\cos^22x\right)$. Replace $\cos^22x=\dfrac{1+\cos4x}{2}$ to get $\dfrac38+\dfrac12\cos2x+\dfrac18\cos4x$. Integrating term by term gives the answer.

$\dfrac{3x}{8}+\dfrac{\sin2x}{4}+\dfrac{\sin4x}{32}+C$

Question 14

Evaluate $\displaystyle\int \cos 2x\cos 4x\cos 6x\,dx$.

Solution. First $\cos2x\cos4x=\tfrac12[\cos6x+\cos2x]$. Multiplying by $\cos6x$: $\tfrac12\cos^26x+\tfrac12\cos2x\cos6x=\tfrac14(1+\cos12x)+\tfrac14(\cos8x+\cos4x)$. Integrating each term: $\dfrac x4+\dfrac{\sin12x}{48}+\dfrac{\sin8x}{32}+\dfrac{\sin4x}{16}$.

$\dfrac x4+\dfrac{\sin4x}{16}+\dfrac{\sin8x}{32}+\dfrac{\sin12x}{48}+C$

Question 15

Evaluate $\displaystyle\int \sin^3 x\cos x\,dx$.

Solution. Put $u=\sin x$, $du=\cos x\,dx$. Then $\int u^3\,du=\dfrac{u^4}{4}$.

$\dfrac{\sin^4x}{4}+C$

Question 16

Evaluate $\displaystyle\int \sec^4 x\,dx$.

Solution. Split $\sec^4x=\sec^2x\cdot\sec^2x=(1+\tan^2x)\sec^2x$. With $u=\tan x$, $du=\sec^2x\,dx$: $\int(1+u^2)\,du=u+\dfrac{u^3}{3}$.

$\tan x+\dfrac13\tan^3x+C$

Question 17

Evaluate $\displaystyle\int \cos^3 x\sin^4 x\,dx$.

Solution. The power of cosine is odd, so write $\cos^3x=(1-\sin^2x)\cos x$ and put $u=\sin x$: $\int u^4(1-u^2)\,du=\dfrac{u^5}{5}-\dfrac{u^7}{7}$.

$\dfrac15\sin^5x-\dfrac17\sin^7x+C$

Question 18

Evaluate $\displaystyle\int \cos^4 x\sin^3 x\,dx$.

Solution. Here sine has the odd power: $\sin^3x=(1-\cos^2x)\sin x$. Put $u=\cos x$, $du=-\sin x\,dx$: $-\int u^4(1-u^2)\,du=-\dfrac{u^5}{5}+\dfrac{u^7}{7}$.

$\dfrac17\cos^7x-\dfrac15\cos^5x+C$

Question 19

Evaluate $\displaystyle\int \sin^{2/3}x\cos^3 x\,dx$.

Solution. Cosine has the odd power, so put $u=\sin x$ and use $\cos^3x=(1-u^2)\cos x$: $\int u^{2/3}(1-u^2)\,du=\int\left(u^{2/3}-u^{8/3}\right)du=\dfrac{3u^{5/3}}{5}-\dfrac{3u^{11/3}}{11}$.

$\dfrac35\sin^{5/3}x-\dfrac3{11}\sin^{11/3}x+C$

Question 20

Evaluate $\displaystyle\int \cos^{3/5}x\sin^3 x\,dx$.

Solution. Put $u=\cos x$, $du=-\sin x\,dx$, and $\sin^3x=(1-u^2)\sin x$. Then $-\int u^{3/5}(1-u^2)\,du=-\int\left(u^{3/5}-u^{13/5}\right)du=-\dfrac{5u^{8/5}}{8}+\dfrac{5u^{18/5}}{18}$.

$-\dfrac58\cos^{8/5}x+\dfrac5{18}\cos^{18/5}x+C$

Question 21

Evaluate $\displaystyle\int \mathrm{cosec}^4 2x\,dx$.

Solution. Write $\mathrm{cosec}^42x=(1+\cot^22x)\mathrm{cosec}^22x$. Put $u=\cot2x$, so $du=-2\,\mathrm{cosec}^22x\,dx$. The integral is $-\dfrac12\int(1+u^2)\,du=-\dfrac12\left(u+\dfrac{u^3}{3}\right)$.

$-\dfrac12\cot2x-\dfrac16\cot^32x+C$

Question 22

Evaluate $\displaystyle\int \dfrac{\cos 2x}{\cos x}\,dx$.

Solution. Using $\cos2x=2\cos^2x-1$, the integrand is $2\cos x-\sec x$. Hence the integral is $2\sin x-\log|\sec x+\tan x|$.

$2\sin x-\log|\sec x+\tan x|+C$

Question 23

Evaluate $\displaystyle\int \dfrac{\cos x}{\cos(x+\alpha)}\,dx$.

Solution. Write $x=(x+\alpha)-\alpha$, so $\cos x=\cos(x+\alpha)\cos\alpha+\sin(x+\alpha)\sin\alpha$. Dividing by $\cos(x+\alpha)$ the integrand is $\cos\alpha+\sin\alpha\tan(x+\alpha)$. Since $\int\tan(x+\alpha)\,dx=-\log|\cos(x+\alpha)|$, we get $x\cos\alpha-\sin\alpha\log|\cos(x+\alpha)|$.

$x\cos\alpha-\sin\alpha\,\log|\cos(x+\alpha)|+C$

Question 24

Evaluate $\displaystyle\int \cos^3 x\sin 2x\,dx$.

Solution. $\sin2x=2\sin x\cos x$, so the integrand is $2\cos^4x\sin x$. Put $u=\cos x$, $du=-\sin x\,dx$: $-2\int u^4\,du=-\dfrac{2u^5}{5}$.

$-\dfrac25\cos^5x+C$

Question 25

Evaluate $\displaystyle\int \dfrac{\cos^9 x}{\sin x}\,dx$.

Solution. Write $\cos^9x=(1-\sin^2x)^4\cos x$ and put $u=\sin x$. The integral is $\int\dfrac{(1-u^2)^4}{u}\,du=\int\left(\dfrac1u-4u+6u^3-4u^5+u^7\right)du=\log|u|-2u^2+\dfrac{3u^4}{2}-\dfrac{2u^6}{3}+\dfrac{u^8}{8}$.

$\log|\sin x|-2\sin^2x+\dfrac32\sin^4x-\dfrac23\sin^6x+\dfrac18\sin^8x+C$

Question 26

Evaluate $\displaystyle\int \cos^4 2x\,dx$.

Solution. As in Question 13 but with $2x$ in place of $x$: $\cos^42x=\dfrac38+\dfrac12\cos4x+\dfrac18\cos8x$. Integrating, $\dfrac{3x}{8}+\dfrac{\sin4x}{8}+\dfrac{\sin8x}{64}$.

$\dfrac{3x}{8}+\dfrac{\sin4x}{8}+\dfrac{\sin8x}{64}+C$

Question 27

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

Solution. Replace $\sin^2x=(1-\cos x)(1+\cos x)$ and cancel one factor: $\dfrac{1-\cos x}{1+\cos x}=\tan^2\dfrac x2=\sec^2\dfrac x2-1$. So the integral is $2\tan\dfrac x2-x$.

$2\tan\dfrac x2-x+C$

Question 28

Evaluate $\displaystyle\int \dfrac{dx}{3\cos x+4\sin x}$.

Solution. Write $3\cos x+4\sin x=5\sin(x+\phi)$ where $\cos\phi=\dfrac45$, $\sin\phi=\dfrac35$, that is $\phi=\tan^{-1}\dfrac34$ (the amplitude is $\sqrt{3^2+4^2}=5$). Then the integral is $\dfrac15\int\mathrm{cosec}(x+\phi)\,dx=\dfrac15\log\left|\tan\dfrac{x+\phi}{2}\right|$.

$\dfrac15\log\left|\tan\left(\dfrac12\tan^{-1}\dfrac34+\dfrac x2\right)\right|+C$

Question 29

Evaluate $\displaystyle\int \dfrac{dx}{(a\cos x+b\sin x)^2}$, where $a>0$ and $b>0$.

Solution. Write $a\cos x+b\sin x=R\cos(x-\beta)$ with $R=\sqrt{a^2+b^2}$ and $\tan\beta=\dfrac ba$. The integrand becomes $\dfrac{1}{R^2}\sec^2(x-\beta)$, whose integral is $\dfrac{1}{a^2+b^2}\tan(x-\beta)$.

$\dfrac{1}{a^2+b^2}\tan\left(x-\tan^{-1}\dfrac ba\right)+C$

Question 30

Evaluate $\displaystyle\int \dfrac{dx}{\cos x-\sin x}$.

Solution. $\cos x-\sin x=\sqrt2\sin\left(\dfrac\pi4-x\right)$. Then $\int\dfrac{dx}{\sqrt2\sin(\pi/4-x)}=\dfrac1{\sqrt2}\int\mathrm{cosec}\left(\dfrac\pi4-x\right)dx$. The inner angle has derivative $-1$, which gives a minus sign: $-\dfrac1{\sqrt2}\log\left|\tan\dfrac{\pi/4-x}{2}\right|$.

$-\dfrac1{\sqrt2}\log\left|\tan\left(\dfrac\pi8-\dfrac x2\right)\right|+C$

Question 31

Evaluate $\displaystyle\int (2\tan x-3\cot x)^2\,dx$.

Solution. Expand: $4\tan^2x-12+9\cot^2x$, because $\tan x\cot x=1$. Substituting $\tan^2x=\sec^2x-1$ and $\cot^2x=\mathrm{cosec}^2x-1$ gives $4\sec^2x+9\,\mathrm{cosec}^2x-25$. Integrating: $4\tan x-9\cot x-25x$.

$4\tan x-9\cot x-25x+C$

Question 32

Evaluate $\displaystyle\int \sin x\sin 2x\sin 3x\,dx$.

Solution. First $\sin x\sin3x=\tfrac12[\cos2x-\cos4x]$. Multiply by $\sin2x$: $\tfrac12\sin2x\cos2x-\tfrac12\sin2x\cos4x=\tfrac14\sin4x-\tfrac14(\sin6x-\sin2x)$. The integral is $-\dfrac{\cos4x}{16}+\dfrac{\cos6x}{24}-\dfrac{\cos2x}{8}$.

$\dfrac1{24}\cos6x-\dfrac1{16}\cos4x-\dfrac18\cos2x+C$

Question 33

Evaluate $\displaystyle\int \dfrac{1-\cot x}{1+\cot x}\,dx$.

Solution. Multiply top and bottom by $\sin x$: $\dfrac{\sin x-\cos x}{\sin x+\cos x}$. The derivative of the denominator is $\cos x-\sin x$, which is minus the numerator. So the integral is $-\log|\sin x+\cos x|$.

$-\log|\sin x+\cos x|+C$

Question 34

Evaluate $\displaystyle\int \dfrac{dx}{2\sin x+\cos x+3}$.

Solution. Put $t=\tan\dfrac x2$, so $\sin x=\dfrac{2t}{1+t^2}$, $\cos x=\dfrac{1-t^2}{1+t^2}$, $dx=\dfrac{2\,dt}{1+t^2}$. The denominator becomes $\dfrac{4t+1-t^2+3+3t^2}{1+t^2}=\dfrac{2t^2+4t+4}{1+t^2}$. The integral reduces to $\int\dfrac{dt}{t^2+2t+2}=\int\dfrac{dt}{(t+1)^2+1}=\tan^{-1}(t+1)$.

$\tan^{-1}\left(1+\tan\dfrac x2\right)+C$

Common mistakes

  • Using $\sin^2x=\dfrac{1-\cos 2x}{2}$ but forgetting that integrating $\cos2x$ brings a factor $\dfrac12$ (so $\dfrac{\sin 2x}{4}$, not $\dfrac{\sin 2x}{2}$). The same slip appears in Questions 1 and 3.
  • In Questions 6 and 7, mixing $2x$ and $x$: $1-\cos2x=2\sin^2x$ but $1-\cos x=2\sin^2\dfrac x2$. Picking the wrong half-angle gives $\tan x$ where $2\tan\dfrac x2$ is needed.
  • Forgetting the sign from $du=-\sin x\,dx$ in Questions 18, 20 and 24, or the factor $\dfrac12$ from $d(\cot 2x)$ in Question 21.
  • In Question 25, dropping the $\dfrac1u$ term after expanding $(1-u^2)^4$; it produces the $\log|\sin x|$ in the answer.
  • In Question 30, losing the minus sign that comes from the inner angle $\dfrac\pi4-x$.

Practise next

  • Evaluate $\displaystyle\int \sin^2x\cos^2x\,dx$.
Show answer

$\dfrac x8-\dfrac{\sin4x}{32}+C$. Write $\sin^2x\cos^2x=\dfrac{\sin^22x}{4}=\dfrac{1-\cos4x}{8}$ and integrate.

  • Evaluate $\displaystyle\int \sin5x\cos2x\,dx$.
Show answer

$-\dfrac{\cos7x}{14}-\dfrac{\cos3x}{6}+C$. Use $\sin5x\cos2x=\tfrac12[\sin7x+\sin3x]$.

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

Subscribe