Definite Integrals

RS Aggarwal Class 12 Maths Solutions Exercise 16C — Definite Integrals

RS Aggarwal, Class 12 Mathematics — Definite Integrals, Exercise 16C. All 58 questions solved.

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

Exercise 16C is about the properties of definite integrals rather than about finding antiderivatives. Questions 1 to 17 are all the same trick in different dress, questions 18 to 37 use the reflection $f(x)\to f(a-x)$ or the logarithmic integral $\int_0^{\pi/2}\log\sin x\,dx$, questions 38 to 47 use $f(x)\to f(a+b-x)$ on a general interval, and questions 48 to 58 use odd and even symmetry, or split the interval where a modulus changes sign or a function changes formula.

Key insight. Always ask what happens when $x$ is replaced by (upper limit + lower limit) $-\,x$. If the integrand turns into a partner that adds up to something simple, such as $1$, write $I$ in both forms and add: $2I$ is then easy. If the integrand turns into minus itself, $I=0$. If neither happens, simplify the integrand first.

Question 1

Prove that $\int_0^{\pi/2} \frac{\cos x}{\sin x+\cos x}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. Since $\cos(\tfrac\pi2-x)=\sin x$ and $\sin(\tfrac\pi2-x)=\cos x$,

$$I=\int_0^{\pi/2}\frac{\cos x}{\sin x+\cos x}\,dx=\int_0^{\pi/2}\frac{\sin x}{\cos x+\sin x}\,dx.$$

Adding the two forms, the denominators match and the numerators combine to the denominator:

$$2I=\int_0^{\pi/2}\frac{\cos x+\sin x}{\sin x+\cos x}\,dx=\int_0^{\pi/2}1\,dx=\frac\pi2,$$

so $I=\dfrac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 2

Prove that $\int_0^{\pi/2} \frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. The roles of sine and cosine swap, so

$$I=\int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx=\int_0^{\pi/2}\frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}\,dx.$$

Adding gives $2I=\int_0^{\pi/2}\dfrac{\sqrt{\sin x}+\sqrt{\cos x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx=\dfrac\pi2$, hence $I=\dfrac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 3

Prove that:

(i) $\int_0^{\pi/2} \frac{\sin^3 x}{\sin^3 x+\cos^3 x}\,dx=\frac{\pi}{4}$

(ii) $\int_0^{\pi/2} \frac{\cos^3 x\,dx}{\sin^3 x+\cos^3 x}=\frac{\pi}{4}$

Solution. (i) Call the integral $I$. Replacing $x$ by $\frac\pi2-x$ turns $\sin^3x$ into $\cos^3x$ and vice versa, so $I=\int_0^{\pi/2}\frac{\cos^3x}{\cos^3x+\sin^3x}\,dx$. Adding this to the original, the integrand of the sum is $\frac{\sin^3x+\cos^3x}{\sin^3x+\cos^3x}=1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

(ii) Call this integral $J$. The same replacement gives $J=\int_0^{\pi/2}\frac{\sin^3x}{\sin^3x+\cos^3x}\,dx$, which is exactly the integral of part (i), already shown to equal $\frac\pi4$. (Equivalently, $I+J=\frac\pi2$ and $I=J$.) So $J=\frac\pi4$.

(i) $\dfrac\pi4$; (ii) $\dfrac\pi4$ (both proved)

Question 4

Prove that:

(i) $\int_0^{\pi/2} \frac{\sin^7 x}{\sin^7 x+\cos^7 x}\,dx=\frac{\pi}{4}$

(ii) $\int_0^{\pi/2} \frac{\sin^5 x}{\sin^5 x+\cos^5 x}\,dx=\frac{\pi}{4}$

Solution. (i) Let $I$ be the integral. Under $x\to\frac\pi2-x$ the integrand becomes $\frac{\cos^7x}{\cos^7x+\sin^7x}$. Adding the two expressions for $I$ gives $2I=\int_0^{\pi/2}\frac{\sin^7x+\cos^7x}{\sin^7x+\cos^7x}\,dx=\frac\pi2$, so $I=\frac\pi4$.

(ii) Exactly the same argument with the power $5$: the reflected integrand is $\frac{\cos^5x}{\cos^5x+\sin^5x}$, the sum of the two integrands is $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

(i) $\dfrac\pi4$; (ii) $\dfrac\pi4$ (both proved)

Question 5

Prove that $\int_0^{\pi/2} \frac{\cos^4 x}{\sin^4 x+\cos^4 x}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. The reflected integrand is $\frac{\sin^4x}{\cos^4x+\sin^4x}$. Adding,

$$2I=\int_0^{\pi/2}\frac{\cos^4x+\sin^4x}{\sin^4x+\cos^4x}\,dx=\frac\pi2,\qquad I=\frac\pi4.$$

$I=\dfrac{\pi}{4}$ (proved)

Question 6

Prove that $\int_0^{\pi/2} \frac{\cos^{1/4} x}{\sin^{1/4} x+\cos^{1/4} x}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. The reflected integrand is $\frac{\sin^{1/4}x}{\cos^{1/4}x+\sin^{1/4}x}$. Adding the two forms, numerator and denominator agree, so $2I=\int_0^{\pi/2}1\,dx=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 7

Prove that $\int_0^{\pi/2} \frac{\sin^{3/2} x}{\sin^{3/2} x+\cos^{3/2} x}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. The reflected integrand is $\frac{\cos^{3/2}x}{\cos^{3/2}x+\sin^{3/2}x}$. Adding the two forms of $I$ gives an integrand equal to $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 8

Prove that $\int_0^{\pi/2} \frac{\sin^n x}{\sin^n x+\cos^n x}\,dx=\frac{\pi}{4}$.

Solution. Let $I$ denote the integral. By the property $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi/2$, we may replace $x$ by $\frac{\pi}{2}-x$ in the integrand. Here $n$ is any real number for which the integrand is defined on $(0,\frac\pi2)$; sine and cosine are both positive there, so the denominator never vanishes. The reflected integrand is $\frac{\cos^nx}{\cos^nx+\sin^nx}$. Adding the two forms, the integrand becomes $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$, whatever the value of $n$. Questions 3(i), 4 and 7 are the cases $n=3,7,5,\tfrac32$ of this result.

$I=\dfrac{\pi}{4}$ for every admissible $n$ (proved)

Question 9

Prove that $\int_0^{\pi/2} \frac{\sqrt{\tan x}}{\sqrt{\tan x}+\sqrt{\cot x}}\,dx=\frac{\pi}{4}$.

Solution. Write $\tan x=\frac{\sin x}{\cos x}$ and $\cot x=\frac{\cos x}{\sin x}$. Multiplying numerator and denominator by $\sqrt{\sin x\cos x}$ gives

$$\frac{\sqrt{\tan x}}{\sqrt{\tan x}+\sqrt{\cot x}}=\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}},$$

so the integral is that of Question 2. Replacing $x$ by $\frac\pi2-x$ and adding the two forms gives $2I=\int_0^{\pi/2}1\,dx=\frac\pi2$, hence $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 10

Prove that $\int_0^{\pi/2} \frac{\sqrt{\cot x}}{\sqrt{\tan x}+\sqrt{\cot x}}\,dx=\frac{\pi}{4}$.

Solution. Multiplying top and bottom by $\sqrt{\sin x\cos x}$, the integrand becomes $\frac{\sqrt{\cos x}}{\sqrt{\sin x}+\sqrt{\cos x}}$. Under $x\to\frac\pi2-x$ this becomes $\frac{\sqrt{\sin x}}{\sqrt{\cos x}+\sqrt{\sin x}}$. Adding the two forms of $I$ gives an integrand $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 11

Prove that $\int_0^{\pi/2} \frac{dx}{1+\tan x}=\frac{\pi}{4}$.

Solution. Rewrite the integrand as $\frac{1}{1+\tan x}=\frac{\cos x}{\cos x+\sin x}$. This is the integral of Question 1: replacing $x$ by $\frac\pi2-x$ gives $\frac{\sin x}{\sin x+\cos x}$, and the two forms add to $1$. So $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 12

Prove that $\int_0^{\pi/2} \frac{dx}{1+\cot x}=\frac{\pi}{4}$.

Solution. Here $\frac{1}{1+\cot x}=\frac{\sin x}{\sin x+\cos x}$. Under $x\to\frac\pi2-x$ it becomes $\frac{\cos x}{\cos x+\sin x}$; the two add to $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 13

Prove that $\int_0^{\pi/2} \frac{dx}{1+\tan^3 x}=\frac{\pi}{4}$.

Solution. Multiply top and bottom by $\cos^3x$: $\frac{1}{1+\tan^3x}=\frac{\cos^3x}{\cos^3x+\sin^3x}$. The reflection $x\to\frac\pi2-x$ gives $\frac{\sin^3x}{\sin^3x+\cos^3x}$, and the two add to $1$. So $2I=\frac\pi2$, $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 14

Prove that $\int_0^{\pi/2} \frac{dx}{1+\cot^3 x}=\frac{\pi}{4}$.

Solution. Multiply top and bottom by $\sin^3x$: $\frac{1}{1+\cot^3x}=\frac{\sin^3x}{\sin^3x+\cos^3x}$. Its reflection is $\frac{\cos^3x}{\cos^3x+\sin^3x}$ and the sum of the two is $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 15

Prove that $\int_0^{\pi/2} \frac{dx}{1+\sqrt{\tan x}}=\frac{\pi}{4}$.

Solution. Multiply top and bottom by $\sqrt{\cos x}$: $\frac{1}{1+\sqrt{\tan x}}=\frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}$. Its reflection under $x\to\frac\pi2-x$ is $\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}$. The two add to $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 16

Prove that $\int_0^{\pi/2} \frac{\sqrt{\cot x}}{1+\sqrt{\cot x}}\,dx=\frac{\pi}{4}$.

Solution. Multiply top and bottom by $\sqrt{\sin x}$: $\frac{\sqrt{\cot x}}{1+\sqrt{\cot x}}=\frac{\sqrt{\cos x}}{\sqrt{\sin x}+\sqrt{\cos x}}$. Reflecting, we get $\frac{\sqrt{\sin x}}{\sqrt{\cos x}+\sqrt{\sin x}}$; the two add to $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 17

Prove that $\int_0^{\pi/2}\frac{\sqrt{\tan x}}{1+\sqrt{\tan x}}\,dx=\frac{\pi}{4}$.

Solution. Multiply top and bottom by $\sqrt{\cos x}$: the integrand is $\frac{\sqrt{\sin x}}{\sqrt{\cos x}+\sqrt{\sin x}}$. Reflecting gives $\frac{\sqrt{\cos x}}{\sqrt{\sin x}+\sqrt{\cos x}}$; the sum is $1$, so $2I=\frac\pi2$ and $I=\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 18

Prove that $\int_0^{\pi/2}\frac{\sin x-\cos x}{1+\sin x\cos x}\,dx=0$

Solution. Let $f(x)=\frac{\sin x-\cos x}{1+\sin x\cos x}$. Then $f(\tfrac\pi2-x)=\frac{\cos x-\sin x}{1+\cos x\sin x}=-f(x)$, because the denominator is unchanged and the numerator changes sign. Hence $I=\int_0^{\pi/2}f(x)\,dx=\int_0^{\pi/2}f(\tfrac\pi2-x)\,dx=-I$, so $2I=0$ and $I=0$.

$I=0$ (proved)

Question 19

Prove that $\int_0^{1}x(1-x)^5\,dx=\frac{1}{42}$

Solution. Use $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=1$ so that the awkward power sits on $x$:

$$I=\int_0^1(1-x)\,x^5\,dx=\int_0^1(x^5-x^6)\,dx=\frac16-\frac17=\frac{7-6}{42}=\frac1{42}.$$

$I=\dfrac{1}{42}$ (proved)

Question 20

Prove that $\int_0^{2}x\sqrt{2-x}\,dx=\frac{16\sqrt2}{15}$

Solution. Replace $x$ by $2-x$ (property with $a=2$): $I=\int_0^2(2-x)\sqrt{x}\,dx=\int_0^2\left(2x^{1/2}-x^{3/2}\right)dx$. Integrating,

$$I=\left[\tfrac43x^{3/2}-\tfrac25x^{5/2}\right]_0^2=\tfrac43\cdot2\sqrt2-\tfrac25\cdot4\sqrt2=\frac{8\sqrt2}{3}-\frac{8\sqrt2}{5}=\frac{16\sqrt2}{15}.$$

$I=\dfrac{16\sqrt2}{15}$ (proved)

Question 21

Prove that $\int_0^{\pi}x\cos^2x\,dx=\frac{\pi^2}{4}$

Solution. Use $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$ with $a=\pi$. Since $\cos^2(\pi-x)=\cos^2x$, $I=\int_0^\pi(\pi-x)\cos^2x\,dx$. Adding to the original, $2I=\pi\int_0^\pi\cos^2x\,dx=\pi\int_0^\pi\frac{1+\cos2x}{2}\,dx=\pi\cdot\frac\pi2$, because $\int_0^\pi\cos2x\,dx=0$. So $I=\dfrac{\pi^2}{4}$.

$I=\dfrac{\pi^2}{4}$ (proved)

Question 22

Prove that $\int_0^{\pi}\frac{x\tan x}{\sec x\,\operatorname{cosec}x}\,dx=\frac{\pi^2}{4}$

Solution. Simplify the integrand first: $\frac{\tan x}{\sec x\operatorname{cosec}x}=\tan x\cdot\cos x\sin x=\sin^2x$. So $I=\int_0^\pi x\sin^2x\,dx$. Since $\sin^2(\pi-x)=\sin^2x$, the property with $a=\pi$ gives $I=\int_0^\pi(\pi-x)\sin^2x\,dx$, and adding, $2I=\pi\int_0^\pi\frac{1-\cos2x}{2}\,dx=\pi\cdot\frac\pi2$. Hence $I=\dfrac{\pi^2}{4}$.

$I=\dfrac{\pi^2}{4}$ (proved)

Question 23

Prove that $\int_0^{\pi/2}\frac{\cos^2x}{\sin x+\cos x}\,dx=\frac{1}{\sqrt2}\log(\sqrt2+1)$

Solution. Reflecting $x\to\frac\pi2-x$ gives $I=\int_0^{\pi/2}\frac{\sin^2x}{\sin x+\cos x}\,dx$. Adding, $2I=\int_0^{\pi/2}\frac{\sin^2x+\cos^2x}{\sin x+\cos x}\,dx=\int_0^{\pi/2}\frac{dx}{\sin x+\cos x}$. Now $\sin x+\cos x=\sqrt2\sin(x+\frac\pi4)$, so

$$2I=\frac1{\sqrt2}\int_0^{\pi/2}\operatorname{cosec}\!\left(x+\tfrac\pi4\right)dx=\frac1{\sqrt2}\left[\log\tan\frac{x+\pi/4}{2}\right]_0^{\pi/2}=\frac1{\sqrt2}\left(\log\tan\frac{3\pi}8-\log\tan\frac\pi8\right).$$

With $\tan\frac{3\pi}8=\sqrt2+1$ and $\tan\frac\pi8=\sqrt2-1=\frac1{\sqrt2+1}$, the bracket is $2\log(\sqrt2+1)$. So $2I=\frac{2}{\sqrt2}\log(\sqrt2+1)$ and $I=\dfrac1{\sqrt2}\log(\sqrt2+1)$.

$I=\dfrac{1}{\sqrt2}\log(\sqrt2+1)$ (proved)

Question 24

Prove that $\int_0^{\pi}\frac{x\tan x}{\sec x+\cos x}\,dx=\frac{\pi^2}{4}$

Solution. Simplify: $\frac{\tan x}{\sec x+\cos x}=\frac{\sin x/\cos x}{(1+\cos^2x)/\cos x}=\frac{\sin x}{1+\cos^2x}$. Thus $I=\int_0^\pi\frac{x\sin x}{1+\cos^2x}\,dx$. Since $\sin(\pi-x)=\sin x$ and $\cos^2(\pi-x)=\cos^2x$, the property with $a=\pi$ gives $2I=\pi\int_0^\pi\frac{\sin x}{1+\cos^2x}\,dx$. Put $t=\cos x$, $dt=-\sin x\,dx$, with limits $1$ to $-1$:

$$2I=\pi\int_{-1}^{1}\frac{dt}{1+t^2}=\pi\left[\tan^{-1}t\right]_{-1}^{1}=\pi\cdot\frac\pi2,$$

so $I=\dfrac{\pi^2}{4}$.

$I=\dfrac{\pi^2}{4}$ (proved)

Question 25

Prove that $\int_0^{\pi}\frac{x\sin x}{1+\sin x}\,dx=\pi\left(\frac\pi2-1\right)$

Solution. As $\sin(\pi-x)=\sin x$, the property with $a=\pi$ gives $2I=\pi\int_0^\pi\frac{\sin x}{1+\sin x}\,dx=\pi\int_0^\pi\left(1-\frac{1}{1+\sin x}\right)dx$. Multiply the second fraction by $\frac{1-\sin x}{1-\sin x}$: $\frac1{1+\sin x}=\sec^2x-\sec x\tan x$, with antiderivative $\tan x-\sec x$. Over $[0,\pi]$ this is $(0-(-1))-(0-1)=2$. Therefore $2I=\pi(\pi-2)$ and $I=\dfrac\pi2(\pi-2)=\pi\left(\dfrac\pi2-1\right)$.

$I=\pi\left(\dfrac\pi2-1\right)$ (proved)

Question 26

Prove that $\int_0^{\pi}\frac{x}{1+\sin^2x}\,dx=\frac{\pi^2}{2\sqrt2}$

Solution. Since $\sin^2(\pi-x)=\sin^2x$, we get $2I=\pi\int_0^\pi\frac{dx}{1+\sin^2x}$. The integrand is symmetric about $\frac\pi2$, so this is $2\pi\int_0^{\pi/2}\frac{dx}{1+\sin^2x}$. Divide top and bottom by $\cos^2x$: $\int_0^{\pi/2}\frac{\sec^2x\,dx}{\sec^2x+\tan^2x}=\int_0^{\pi/2}\frac{\sec^2x\,dx}{1+2\tan^2x}$. With $t=\tan x$ this is $\int_0^\infty\frac{dt}{1+2t^2}=\frac1{\sqrt2}\left[\tan^{-1}(\sqrt2t)\right]_0^\infty=\frac{\pi}{2\sqrt2}$. Hence $2I=2\pi\cdot\frac\pi{2\sqrt2}$, giving $I=\dfrac{\pi^2}{2\sqrt2}$.

$I=\dfrac{\pi^2}{2\sqrt2}$ (proved)

Question 27

Prove that $\int_0^{\pi/2}(2\log\cos x-\log\sin2x)\,dx=-\frac\pi2(\log2)$

Solution. Use $\sin2x=2\sin x\cos x$: the integrand is $2\log\cos x-\log2-\log\sin x-\log\cos x=\log\cos x-\log\sin x-\log2$. The reflection $x\to\frac\pi2-x$ shows $\int_0^{\pi/2}\log\cos x\,dx=\int_0^{\pi/2}\log\sin x\,dx$, so those two terms cancel (both are finite, equal to $-\frac\pi2\log2$). What remains is $-\log2\int_0^{\pi/2}dx=-\dfrac\pi2\log2$.

$-\dfrac\pi2\log2$ (proved)

Question 28

Prove that $\int_0^{\infty}\frac{x}{(1+x)(1+x^2)}\,dx=\frac\pi4$

Solution. Split into partial fractions: $\frac{x}{(1+x)(1+x^2)}=\frac{A}{1+x}+\frac{Bx+C}{1+x^2}$. Then $x=A(1+x^2)+(Bx+C)(1+x)$. Putting $x=-1$: $-1=2A$, so $A=-\frac12$. Comparing $x^2$: $0=A+B$, so $B=\frac12$; constant: $0=A+C$, so $C=\frac12$. Hence

$$\int\frac{x\,dx}{(1+x)(1+x^2)}=-\tfrac12\log(1+x)+\tfrac14\log(1+x^2)+\tfrac12\tan^{-1}x.$$

The logarithms combine to $\frac14\log\frac{1+x^2}{(1+x)^2}$, which is $0$ at $x=0$ and tends to $\frac14\log1=0$ as $x\to\infty$. The arctangent contributes $\frac12\cdot\frac\pi2=\frac\pi4$. So $I=\dfrac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 29

Prove that $\int_0^{a}\frac{dx}{x+\sqrt{a^2-x^2}}=\frac\pi4$

Solution. Take $a>0$ and put $x=a\sin\theta$, so $dx=a\cos\theta\,d\theta$ and $\sqrt{a^2-x^2}=a\cos\theta$, with $\theta$ from $0$ to $\frac\pi2$. Then $I=\int_0^{\pi/2}\frac{a\cos\theta\,d\theta}{a\sin\theta+a\cos\theta}=\int_0^{\pi/2}\frac{\cos\theta}{\sin\theta+\cos\theta}\,d\theta$, which is the integral of Question 1, equal to $\frac\pi4$.

$I=\dfrac{\pi}{4}$ (proved)

Question 30

Evaluate $\int_0^{a}\frac{\sqrt x}{\sqrt x+\sqrt{a-x}}\,dx$ for $a>0$.

Solution. Take $a>0$. By the property $\int_0^af(x)\,dx=\int_0^af(a-x)\,dx$, $I=\int_0^a\frac{\sqrt{a-x}}{\sqrt{a-x}+\sqrt x}\,dx$. Adding the two forms, the integrand is $1$, so $2I=\int_0^a dx=a$ and $I=\dfrac a2$. (The value does not involve $\pi$: for $a=4$ the integral is $2$, not $\frac\pi4$, so the value $\frac\pi4$ claimed in the question cannot hold.)

$I=\dfrac{a}{2}$

Question 31

Prove that $\int_0^{\pi}\sin^2x\cos^3x\,dx=0$

Solution. Let $f(x)=\sin^2x\cos^3x$. Then $f(\pi-x)=\sin^2x\,(-\cos x)^3=-f(x)$. By $\int_0^af(x)\,dx=\int_0^af(a-x)\,dx$ with $a=\pi$, $I=-I$, so $I=0$. (Check on the halves: with $t=\sin x$ on $[0,\frac\pi2]$ the integral is $\int_0^1t^2(1-t^2)\,dt=\frac2{15}$, and on $[\frac\pi2,\pi]$ it is $-\frac2{15}$, so they cancel.)

$I=0$ (proved)

Question 32

Prove that $\int_0^{\pi}\sin^{2m}x\cos^{2m+1}x\,dx=0$, where $m$ is a positive integer

Solution. Let $f(x)=\sin^{2m}x\cos^{2m+1}x$. Then $\sin(\pi-x)=\sin x$ and $\cos(\pi-x)=-\cos x$, and $2m+1$ is odd, so $f(\pi-x)=\sin^{2m}x\,(-\cos x)^{2m+1}=-f(x)$. Therefore $I=\int_0^\pi f(\pi-x)\,dx=-I$, and $I=0$.

$I=0$ (proved)

Question 33

Prove that $\int_0^{\pi/2}(\sin x-\cos x)\log(\sin x+\cos x)\,dx=0$

Solution. Let $f(x)=(\sin x-\cos x)\log(\sin x+\cos x)$. Under $x\to\frac\pi2-x$ the factor $\sin x-\cos x$ changes sign while $\sin x+\cos x$ is unchanged, so $f(\frac\pi2-x)=-f(x)$. Then $I=\int_0^{\pi/2}f(\tfrac\pi2-x)\,dx=-I$, so $I=0$.

$I=0$ (proved)

Question 34

Prove that $\int_0^{\pi/2}\log(\sin2x)\,dx=-\frac\pi2(\log2)$

Solution. Write $\log\sin2x=\log2+\log\sin x+\log\cos x$. First find $K=\int_0^{\pi/2}\log\sin x\,dx$. Reflecting, $K=\int_0^{\pi/2}\log\cos x\,dx$, so $2K=\int_0^{\pi/2}\log(\sin x\cos x)\,dx=\int_0^{\pi/2}\log\sin2x\,dx-\frac\pi2\log2$. Substituting $t=2x$ in the first term, $\int_0^{\pi/2}\log\sin2x\,dx=\frac12\int_0^{\pi}\log\sin t\,dt=\frac12\cdot2K=K$, since $\sin t$ is symmetric about $\frac\pi2$. So $2K=K-\frac\pi2\log2$, giving $K=-\frac\pi2\log2$. The required integral equals $K$ as just shown, i.e. $-\dfrac\pi2\log2$.

$I=-\dfrac\pi2\log2$ (proved)

Question 35

Prove that $\int_0^{\pi}x\log(\sin x)\,dx=-\frac{\pi^2}{2}(\log2)$

Solution. Since $\sin(\pi-x)=\sin x$, the property with $a=\pi$ gives $2I=\pi\int_0^\pi\log\sin x\,dx=2\pi\int_0^{\pi/2}\log\sin x\,dx$, using symmetry about $\frac\pi2$. From Question 34, $\int_0^{\pi/2}\log\sin x\,dx=-\frac\pi2\log2$. Hence $2I=2\pi\cdot\left(-\frac\pi2\log2\right)$ and $I=-\dfrac{\pi^2}{2}\log2$.

$I=-\dfrac{\pi^2}{2}\log2$ (proved)

Question 36

Prove that $\int_0^{\pi}\log(1+\cos x)\,dx=-\pi(\log2)$

Solution. Use $1+\cos x=2\cos^2\frac x2$, so $\log(1+\cos x)=\log2+2\log\cos\frac x2$ (for $0<x<\pi$). Then $I=\pi\log2+2\int_0^\pi\log\cos\frac x2\,dx$. Put $t=\frac x2$, $dx=2\,dt$: $\int_0^\pi\log\cos\frac x2\,dx=2\int_0^{\pi/2}\log\cos t\,dt=2\left(-\frac\pi2\log2\right)=-\pi\log2$, using Question 34. So $I=\pi\log2-2\pi\log2=-\pi\log2$.

$I=-\pi\log2$ (proved)

Question 37

Prove that $\int_0^{\pi/2}\log(\tan x+\cot x)\,dx=\pi(\log2)$

Solution. Combine: $\tan x+\cot x=\frac{\sin^2x+\cos^2x}{\sin x\cos x}=\frac{2}{\sin2x}$. So the integrand is $\log2-\log\sin2x$ and $I=\frac\pi2\log2-\int_0^{\pi/2}\log\sin2x\,dx=\frac\pi2\log2-\left(-\frac\pi2\log2\right)=\pi\log2$, using Question 34.

$I=\pi\log2$ (proved)

Question 38

Prove that $\int_{\pi/8}^{3\pi/8}\frac{\cos x}{\cos x+\sin x}\,dx=\frac\pi8$

Solution. Use $\int_a^bf(x)\,dx=\int_a^bf(a+b-x)\,dx$. Here $a+b=\frac\pi8+\frac{3\pi}8=\frac\pi2$, so $x$ goes to $\frac\pi2-x$ and $I=\int_{\pi/8}^{3\pi/8}\frac{\sin x}{\sin x+\cos x}\,dx$. Adding, $2I=\int_{\pi/8}^{3\pi/8}1\,dx=\frac{3\pi}8-\frac\pi8=\frac\pi4$, so $I=\dfrac\pi8$.

$I=\dfrac{\pi}{8}$ (proved)

Question 39

Prove that $\int_{\pi/6}^{\pi/3}\frac{1}{1+\sqrt{\tan x}}\,dx=\frac\pi{12}$

Solution. Write the integrand as $\frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}$. Here $a+b=\frac\pi6+\frac\pi3=\frac\pi2$, so replacing $x$ by $\frac\pi2-x$ gives $\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}$. Adding, $2I=\frac\pi3-\frac\pi6=\frac\pi6$, so $I=\dfrac\pi{12}$.

$I=\dfrac{\pi}{12}$ (proved)

Question 40

Prove that $\int_{\pi/4}^{3\pi/4}\frac{dx}{1+\cos x}=2$

Solution. Use $1+\cos x=2\cos^2\frac x2$, so the integrand is $\frac12\sec^2\frac x2$ with antiderivative $\tan\frac x2$. Then $I=\tan\frac{3\pi}8-\tan\frac\pi8=(\sqrt2+1)-(\sqrt2-1)=2$.

$I=2$ (proved)

Question 41

Prove that $\int_{\pi/4}^{3\pi/4}\frac{x}{1+\sin x}\,dx=\pi(\sqrt2-1)$

Solution. Here $a+b=\pi$ and $\sin(\pi-x)=\sin x$, so $I=\int_{\pi/4}^{3\pi/4}\frac{\pi-x}{1+\sin x}\,dx$. Adding, $2I=\pi\int_{\pi/4}^{3\pi/4}\frac{dx}{1+\sin x}=\pi\left[\tan x-\sec x\right]_{\pi/4}^{3\pi/4}$. At $\frac{3\pi}4$: $-1+\sqrt2$; at $\frac\pi4$: $1-\sqrt2$. The difference is $2(\sqrt2-1)$, so $2I=2\pi(\sqrt2-1)$ and $I=\pi(\sqrt2-1)$.

$I=\pi(\sqrt2-1)$ (proved)

Question 42

Prove that $\int_{a/4}^{3a/4}\frac{\sqrt x}{\sqrt{a-x}+\sqrt x}\,dx=\frac a4$

Solution. The lower limit is the constant $\frac a4$, the same $a$ as in the integrand (with $a>0$). The limits add to $\frac a4+\frac{3a}4=a$, so replacing $x$ by $a-x$ gives $I=\int_{a/4}^{3a/4}\frac{\sqrt{a-x}}{\sqrt x+\sqrt{a-x}}\,dx$. Adding, $2I=\frac{3a}4-\frac a4=\frac a2$, so $I=\dfrac a4$.

$I=\dfrac{a}{4}$ (proved)

Question 43

Prove that $\int_{1}^{4}\frac{\sqrt x}{\sqrt{5-x}+\sqrt x}\,dx=\frac32$

Solution. The limits add to $1+4=5$, the same $5$ that appears under the root, so $x\to5-x$ gives $I=\int_1^4\frac{\sqrt{5-x}}{\sqrt x+\sqrt{5-x}}\,dx$. Adding, $2I=\int_1^41\,dx=3$ and $I=\dfrac32$.

$I=\dfrac32$ (proved)

Question 44

Prove that $\int_0^{\pi/2}x\cot x\,dx=\frac\pi2(\log2)$

Solution. Integrate by parts with $u=x$, $dv=\cot x\,dx$, $v=\log\sin x$: $I=\left[x\log\sin x\right]_0^{\pi/2}-\int_0^{\pi/2}\log\sin x\,dx$. At $\frac\pi2$ the boundary term is $\frac\pi2\log1=0$, and at $0$ it is $x\log x\to0$ (since $\sin x\sim x$). By Question 34, $\int_0^{\pi/2}\log\sin x\,dx=-\frac\pi2\log2$, so $I=\dfrac\pi2\log2$.

$I=\dfrac\pi2\log2$ (proved)

Question 45

Prove that $\int_0^{1}\left(\frac{\sin^{-1}x}{x}\right)dx=\frac\pi2(\log2)$

Solution. Substitute $x=\sin\theta$, $dx=\cos\theta\,d\theta$, with $\theta$ from $0$ to $\frac\pi2$: $I=\int_0^{\pi/2}\frac{\theta\cos\theta}{\sin\theta}\,d\theta=\int_0^{\pi/2}\theta\cot\theta\,d\theta$. This is Question 44, equal to $\dfrac\pi2\log2$.

$I=\dfrac\pi2\log2$ (proved)

Question 46

Prove that $\int_0^{1}\frac{\log x}{\sqrt{1-x^2}}\,dx=-\frac\pi2(\log2)$

Solution. Put $x=\sin\theta$, $dx=\cos\theta\,d\theta$, $\sqrt{1-x^2}=\cos\theta$: $I=\int_0^{\pi/2}\log\sin\theta\,d\theta$, which by Question 34 equals $-\dfrac\pi2\log2$.

$I=-\dfrac\pi2\log2$ (proved)

Question 47

Prove that $\int_0^{1}\frac{\log(1+x)}{1+x^2}\,dx=\frac\pi8(\log2)$

Solution. Put $x=\tan\theta$, $dx=\sec^2\theta\,d\theta$, $1+x^2=\sec^2\theta$, limits $0$ to $\frac\pi4$: $I=\int_0^{\pi/4}\log(1+\tan\theta)\,d\theta$. Using $\int_0^af(\theta)\,d\theta=\int_0^af(a-\theta)\,d\theta$ with $a=\frac\pi4$ and $\tan(\frac\pi4-\theta)=\frac{1-\tan\theta}{1+\tan\theta}$,

$$I=\int_0^{\pi/4}\log\frac{2}{1+\tan\theta}\,d\theta=\frac\pi4\log2-I,$$

since $1+\frac{1-\tan\theta}{1+\tan\theta}=\frac{2}{1+\tan\theta}$. So $2I=\frac\pi4\log2$ and $I=\dfrac\pi8\log2$.

$I=\dfrac\pi8\log2$ (proved)

Question 48

Prove that $\int_{-a}^{a}x^3\sqrt{a^2-x^2}\,dx=0$

Solution. Let $f(x)=x^3\sqrt{a^2-x^2}$. Then $f(-x)=(-x)^3\sqrt{a^2-x^2}=-f(x)$, so $f$ is an odd function. The integral of an odd function over $[-a,a]$ is $0$.

$I=0$ (proved)

Question 49

Prove that $\int_{-\pi}^{\pi}(\sin^{75}x+x^{125})\,dx=0$

Solution. Both $\sin^{75}x$ and $x^{125}$ have odd powers, and $\sin$ is odd, so each term is an odd function and so is their sum: $f(-x)=-\sin^{75}x-x^{125}=-f(x)$. Over the symmetric interval $[-\pi,\pi]$ the integral is $0$.

$I=0$ (proved)

Question 50

Prove that $\int_{-\pi}^{\pi}x^{12}\sin^9x\,dx=0$

Solution. Here $x^{12}$ is even and $\sin^9x$ is odd (odd power of an odd function), so $f(-x)=x^{12}(-\sin x)^9=-f(x)$. An odd integrand over $[-\pi,\pi]$ gives $0$.

$I=0$ (proved)

Question 51

Prove that $\int_{-1}^{1}e^{|x|}\,dx=2(e-1)$

Solution. The function $e^{|x|}$ is even, so $I=2\int_0^1e^{|x|}\,dx=2\int_0^1e^x\,dx$ (as $|x|=x$ on $[0,1]$) $=2\left[e^x\right]_0^1=2(e-1)$.

$I=2(e-1)$ (proved)

Question 52

Evaluate $\int_{-2}^{2}|x+1|\,dx$.

Solution. The expression $x+1$ changes sign at $x=-1$: it is negative for $x<-1$ and non-negative for $x\ge-1$. Split the interval there:

$$I=\int_{-2}^{-1}-(x+1)\,dx+\int_{-1}^{2}(x+1)\,dx=\left[-\frac{(x+1)^2}{2}\right]_{-2}^{-1}+\left[\frac{(x+1)^2}{2}\right]_{-1}^{2}=\frac12+\frac92=5.$$

The value $6$ claimed in the question is not correct. (Geometrically, the areas of two right triangles, with legs $1$ and $3$: $\frac12\cdot1\cdot1+\frac12\cdot3\cdot3=5$.)

$I=5$

Question 53

Prove that $\int_{0}^{8}|x-5|\,dx=17$

Solution. $|x-5|=5-x$ for $x\le5$ and $x-5$ for $x\ge5$. So $I=\int_0^5(5-x)\,dx+\int_5^8(x-5)\,dx=\left[5x-\frac{x^2}2\right]_0^5+\left[\frac{(x-5)^2}2\right]_5^8=\frac{25}2+\frac92=17$.

$I=17$ (proved)

Question 54

Prove that $\int_{0}^{2\pi}|\cos x|\,dx=4$

Solution. $|\cos x|$ has period $\pi$ and is symmetric, so over $[0,2\pi]$ there are four equal quarter-arches: $I=4\int_0^{\pi/2}\cos x\,dx=4[\sin x]_0^{\pi/2}=4$. (Check by splitting: $\cos x\ge0$ on $[0,\frac\pi2]$ and $[\frac{3\pi}2,2\pi]$, negative on $[\frac\pi2,\frac{3\pi}2]$, giving $1+2+1=4$.)

$I=4$ (proved)

Question 55

Prove that $\int_{-\pi/4}^{\pi/4}|\sin x|\,dx=2-\sqrt2$

Solution. $|\sin x|$ is an even function, so $I=2\int_0^{\pi/4}\sin x\,dx=2\left[-\cos x\right]_0^{\pi/4}=2\left(1-\frac{\sqrt2}2\right)=2-\sqrt2$.

$I=2-\sqrt2$ (proved)

Question 56

Let $f(x)=2x+1$ for $1\le x\le2$ and $f(x)=x^2+1$ for $2\le x\le3$. Show that $\int_1^3f(x)\,dx=\frac{34}{3}$.

Solution. Split at the point $x=2$ where the formula changes (both pieces equal $5$ there, so $f$ is continuous):

$$\int_1^2(2x+1)\,dx=\left[x^2+x\right]_1^2=6-2=4,\qquad\int_2^3(x^2+1)\,dx=\left[\frac{x^3}3+x\right]_2^3=12-\frac{14}3=\frac{22}3.$$

Total: $4+\frac{22}3=\frac{34}3$.

$\displaystyle\int_1^3f(x)\,dx=\dfrac{34}{3}$ (shown)

Question 57

Let $f(x)=3x^2+4$ for $0\le x\le2$ and $f(x)=9x-2$ for $2\le x\le4$. Show that $\int_0^4f(x)\,dx=66$.

Solution. Split at $x=2$ (both pieces give $16$ there): $\int_0^2(3x^2+4)\,dx=\left[x^3+4x\right]_0^2=8+8=16$ and $\int_2^4(9x-2)\,dx=\left[\frac{9x^2}2-2x\right]_2^4=(72-8)-(18-4)=50$. The sum is $16+50=66$.

$\displaystyle\int_0^4f(x)\,dx=66$ (shown)

Question 58

Prove that $\int_0^4\{|x|+|x-2|+|x-4|\}\,dx=20$

Solution. Integrate each term separately over $[0,4]$. On this interval $|x|=x$, so $\int_0^4x\,dx=8$. The term $|x-4|=4-x$ gives $\int_0^4(4-x)\,dx=8$. For $|x-2|$ split at $2$: $\int_0^2(2-x)\,dx+\int_2^4(x-2)\,dx=2+2=4$. The total is $8+4+8=20$.

$I=20$ (proved)

Common mistakes

  • Adding the original and the reflected integrals but forgetting to divide by $2$ at the end: the sum gives $2I$, not $I$.
  • Using $\int_0^af(x)\,dx=\int_0^af(a-x)\,dx$ on an interval that does not start at $0$. For $[\alpha,\beta]$ the replacement is $x\to\alpha+\beta-x$ (Questions 38 to 43).
  • Treating $|x+1|$ or $|x-5|$ as a single formula over the whole interval instead of splitting at the point where the inside changes sign (Questions 52 to 54, 58).
  • Calling $x^{12}\sin^9x$ even because of the even power: an even function times an odd function is odd, so the integral over $[-\pi,\pi]$ is $0$ (Question 50).
  • Writing $\int_0^{\pi/2}\log\sin2x\,dx$ as $2\int_0^{\pi/2}\log\sin x\,dx$ without adjusting the limits and the factor from the substitution $t=2x$ (Question 34).

Practise next

Show answer

$\dfrac{\pi}{4}$. For $\int_0^{\pi/2}\dfrac{\sin^{9}x}{\sin^{9}x+\cos^{9}x}\,dx$, reflect $x\to\frac\pi2-x$ and add: the sum of the integrands is $1$, so $2I=\frac\pi2$.

For more integrals of this kind, continue to the next exercise of the chapter.

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

Subscribe