SOLVER7 Study. Nothing Else.
Chapter 7 Examples Q30

Evaluate \(\int^{\pi}_0 \dfrac{x\ sin\ x}{1+cos^2\ x}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine a seesaw that is perfectly balanced in the middle. This integral has an ‘x’ sitting on one side of the seesaw. A clever trick swaps ‘x’ with ‘π minus x’, like flipping the seesaw. Adding both sides together makes the tricky ‘x’ part disappear, leaving something much friendlier. The leftover integral is easy to solve using a simple swap of variables. It is like tidying up a messy room by moving everything to one neat pile.

Answer: \[\int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx = \frac{\pi^2}{4}.\]

📖 Definite Integral Using the King's Property

Detailed Explanation

When a definite integral over \([0, \pi]\) has an integrand containing a plain factor of \(x\) multiplied by a function that is symmetric about \(x = \pi/2\), the King's property is very useful. The property states that \(\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx\). Applying it with \(a = \pi\) converts \(x\) into \(\pi - x\). Since \(\sin(\pi - x) = \sin x\) and \(\cos(\pi - x) = -\cos x\) (so \(\cos^2\) is unchanged), the messy \(x\) term partly cancels, leaving a simpler integral that we solve by substitution.

Formula Used

\[\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx\] and \[\int \frac{dt}{1+t^2} = \tan^{-1} t + C\]

Solution

  1. Step 1: Let the required integral be \(I\). So \[I = \int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx.\]
  2. Step 2: Apply the King's property \(\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx\) with \(a = \pi\). Replace \(x\) by \(\pi - x\). Using \(\sin(\pi - x) = \sin x\) and \(\cos(\pi - x) = -\cos x\), we get \[I = \int_0^{\pi} \frac{(\pi - x)\sin x}{1+\cos^2 x}\,dx.\]
  3. Step 3: Add the two expressions for \(I\). The \(x\) and \(-x\) terms cancel: \[2I = \int_0^{\pi} \frac{\pi \sin x}{1+\cos^2 x}\,dx.\] Therefore \[I = \frac{\pi}{2} \int_0^{\pi} \frac{\sin x}{1+\cos^2 x}\,dx.\]
  4. Step 4: Use the substitution \(t = \cos x\), so \(dt = -\sin x\,dx\). Change the limits: when \(x = 0\), \(t = 1\); when \(x = \pi\), \(t = -1\). This gives \[I = \frac{\pi}{2} \int_{1}^{-1} \frac{-dt}{1+t^2}.\]
  5. Step 5: Flip the limits to remove the negative sign: \[I = \frac{\pi}{2} \int_{-1}^{1} \frac{dt}{1+t^2}.\] Since the integrand is even, we can also write it as \[I = \frac{\pi}{2} \left[\tan^{-1} t\right]_{-1}^{1}.\]
  6. Step 6: Evaluate the antiderivative at the limits. We know \(\tan^{-1}(1) = \frac{\pi}{4}\) and \(\tan^{-1}(-1) = -\frac{\pi}{4}\). So \[I = \frac{\pi}{2}\left(\frac{\pi}{4} - \left(-\frac{\pi}{4}\right)\right) = \frac{\pi}{2} \cdot \frac{\pi}{2} = \frac{\pi^2}{4}.\]

Final Answer

\[\int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx = \frac{\pi^2}{4}.\]

Common Mistake

A common mistake is forgetting to change the limits after the substitution \(t = \cos x\), or mishandling the negative sign from \(dt = -\sin x\,dx\). Students often leave the limits as \(0\) to \(\pi\) with \(t\), which gives a wrong answer. Always convert the limits to the new variable and use the \(-dt\) carefully.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Name the integral: Call the given integral \(I\), so \[I = \int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx.\] — Reason: Labelling it \(I\) lets us write a clean equation when we add two versions of it later.
  2. Step 2: Apply the King's property: Replace \(x\) with \(\pi - x\) throughout. We use the identities \(\sin(\pi - x) = \sin x\) and \(\cos(\pi - x) = -\cos x\), so \(\cos^2(\pi-x) = \cos^2 x\). This gives a second expression for \(I\): \[I = \int_0^{\pi} \frac{(\pi - x)\sin x}{1+\cos^2 x}\,dx.\] — Reason: King's property guarantees the integral value is unchanged, so this new expression equals the same \(I\). It introduces the term \(\pi - x\) instead of \(x\), setting up a cancellation.
  3. Step 3: Add the two expressions for I: Add the result from Step 1 and Step 2 to get \(2I\): \[2I = \int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx + \int_0^{\pi} \frac{(\pi-x)\sin x}{1+\cos^2 x}\,dx.\] The \(x\) and \(-x\) in the numerators combine to give \(\pi\): \[2I = \int_0^{\pi} \frac{\pi\sin x}{1+\cos^2 x}\,dx.\] Dividing both sides by 2: \[I = \frac{\pi}{2}\int_0^{\pi} \frac{\sin x}{1+\cos^2 x}\,dx.\] — Reason: Adding eliminates the variable \(x\) and replaces it with the constant \(\pi\), making the remaining integral straightforward.
  4. Step 4: Apply the substitution t = cos x: Let \(t = \cos x\), so \(dt = -\sin x\,dx\). Update the limits: when \(x = 0\), \(t = \cos 0 = 1\); when \(x = \pi\), \(t = \cos\pi = -1\). Substituting: \[I = \frac{\pi}{2}\int_{1}^{-1} \frac{-\,dt}{1+t^2}.\] — Reason: The substitution converts \(\sin x\,dx\) into \(-dt\) and replaces \(\cos^2 x\) with \(t^2\), matching the standard \(\tan^{-1}\) integral form.
  5. Step 5: Flip the limits to remove the negative sign: Reversing the limits of integration removes the negative: \[I = \frac{\pi}{2}\int_{-1}^{1} \frac{dt}{1+t^2}.\] — Reason: The rule \(\int_b^a = -\int_a^b\) turns the negative sign and swapped limits into a positive integral with the natural order \(-1\) to \(1\).
  6. Step 6: Evaluate using the standard arctangent result: Using \(\int \frac{dt}{1+t^2} = \tan^{-1} t + C\): \[I = \frac{\pi}{2}\Big[\tan^{-1} t\Big]_{-1}^{1}.\] Substituting the limits: \[I = \frac{\pi}{2}\left(\tan^{-1}(1) - \tan^{-1}(-1)\right).\] Since \(\tan^{-1}(1) = \frac{\pi}{4}\) and \(\tan^{-1}(-1) = -\frac{\pi}{4}\): \[I = \frac{\pi}{2}\left(\frac{\pi}{4} - \left(-\frac{\pi}{4}\right)\right) = \frac{\pi}{2} \cdot \frac{\pi}{2} = \frac{\pi^2}{4}.\] — Reason: Directly applying the standard formula and known values of \(\tan^{-1}\) at \(\pm 1\) completes the evaluation.

Final Answer

\[\int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx = \frac{\pi^2}{4}.\]

Common Mistake

One common mistake: forgetting to account for the negative sign introduced by \(dt = -\sin x\,dx\) during substitution — students who drop this sign get \(-\frac{\pi^2}{4}\) instead of the correct \(\frac{\pi^2}{4}\).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \(I = \int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx\). By King's property, \(I = \int_0^{\pi} \frac{(\pi-x)\sin x}{1+\cos^2 x}\,dx\).
  2. Step 2: Adding both expressions: \[2I = \pi\int_0^{\pi} \frac{\sin x}{1+\cos^2 x}\,dx\] so \(I = \dfrac{\pi}{2}\int_0^{\pi} \dfrac{\sin x}{1+\cos^2 x}\,dx\).
  3. Step 3: Substitute \(t = \cos x\), \(dt = -\sin x\,dx\); limits: \(x=0 \Rightarrow t=1\), \(x=\pi \Rightarrow t=-1\): \[I = \frac{\pi}{2}\int_{-1}^{1}\frac{dt}{1+t^2} = \frac{\pi}{2}\Big[\tan^{-1}t\Big]_{-1}^{1} = \frac{\pi}{2}\left(\frac{\pi}{4}-\left(-\frac{\pi}{4}\right)\right) = \frac{\pi}{2}\cdot\frac{\pi}{2}.\]

Answer: \[\int_0^{\pi} \frac{x\sin x}{1+\cos^2 x}\,dx = \frac{\pi^2}{4}.\]

➕ More Examples

More Examples

Example 1

Question: Evaluate \[I = \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\, dx\]

Solution: Let \( I = \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\, dx \). Applying the King's Property, replace \( x \) with \( \pi - x \): \[I = \int_0^{\pi} \frac{(\pi - x)\sin(\pi - x)}{1 + \sin^2(\pi - x)}\, dx\] Since \( \sin(\pi - x) = \sin x \), this becomes: \[I = \int_0^{\pi} \frac{(\pi - x)\sin x}{1 + \sin^2 x}\, dx\] Adding the original and the transformed integrals (both equal \( I \)): \[2I = \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\, dx + \int_0^{\pi} \frac{(\pi - x)\sin x}{1 + \sin^2 x}\, dx\] \[2I = \int_0^{\pi} \frac{\pi \sin x}{1 + \sin^2 x}\, dx\] \[2I = \pi \int_0^{\pi} \frac{\sin x}{1 + \sin^2 x}\, dx\] Now substitute \( t = \cos x \), so \( dt = -\sin x\, dx \). When \( x = 0 \), \( t = 1 \); when \( x = \pi \), \( t = -1 \). Also, \( \sin^2 x = 1 - \cos^2 x = 1 - t^2 \), so: \[2I = \pi \int_1^{-1} \frac{-\, dt}{1 + (1 - t^2)}\] \[2I = \pi \int_{-1}^{1} \frac{dt}{2 - t^2}\] Wait — let us recheck: \( 1 + \sin^2 x = 1 + 1 - \cos^2 x = 2 - t^2 \). So: \[2I = \pi \int_{-1}^{1} \frac{dt}{2 - t^2}\] Using partial fractions: \(\dfrac{1}{2 - t^2} = \dfrac{1}{(\sqrt{2}-t)(\sqrt{2}+t)}\), so: \[\frac{1}{2 - t^2} = \frac{1}{2\sqrt{2}}\left(\frac{1}{\sqrt{2}+t} + \frac{1}{\sqrt{2}-t}\right)\] Thus: \[2I = \frac{\pi}{2\sqrt{2}} \left[\ln\left|\sqrt{2}+t\right| - \ln\left|\sqrt{2}-t\right|\right]_{-1}^{1}\] \[2I = \frac{\pi}{2\sqrt{2}} \left[\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right) - \ln\left(\frac{\sqrt{2}-1}{\sqrt{2}+1}\right)\right]\] \[2I = \frac{\pi}{2\sqrt{2}} \cdot 2\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right)\] \[2I = \frac{\pi}{\sqrt{2}} \ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right)\] Rationalising: \(\dfrac{\sqrt{2}+1}{\sqrt{2}-1} = (\sqrt{2}+1)^2\), so \(\ln\left(\dfrac{\sqrt{2}+1}{\sqrt{2}-1}\right) = 2\ln(\sqrt{2}+1)\). Therefore: \[2I = \frac{2\pi}{\sqrt{2}}\ln(\sqrt{2}+1) = \pi\sqrt{2}\ln(\sqrt{2}+1)\] \[I = \frac{\pi\sqrt{2}}{2}\ln(\sqrt{2}+1)\]

Answer: \[I = \frac{\pi\sqrt{2}}{2}\ln(\sqrt{2}+1)\]

Example 2

Question: Evaluate \[I = \int_0^{\pi} \frac{x \cos^2 x}{1 + \sin x}\, dx\]

Solution: Let \( I = \int_0^{\pi} \frac{x \cos^2 x}{1 + \sin x}\, dx \). Applying the King's Property, replace \( x \) with \( \pi - x \): \[I = \int_0^{\pi} \frac{(\pi - x)\cos^2(\pi - x)}{1 + \sin(\pi - x)}\, dx\] Since \( \cos(\pi - x) = -\cos x \) and \( \sin(\pi - x) = \sin x \), we have \( \cos^2(\pi - x) = \cos^2 x \). So: \[I = \int_0^{\pi} \frac{(\pi - x)\cos^2 x}{1 + \sin x}\, dx\] Adding the two expressions for \( I \): \[2I = \int_0^{\pi} \frac{\pi \cos^2 x}{1 + \sin x}\, dx\] \[2I = \pi \int_0^{\pi} \frac{\cos^2 x}{1 + \sin x}\, dx\] Write \( \cos^2 x = 1 - \sin^2 x = (1 - \sin x)(1 + \sin x) \). Then: \[\frac{\cos^2 x}{1 + \sin x} = \frac{(1 - \sin x)(1 + \sin x)}{1 + \sin x} = 1 - \sin x\] So: \[2I = \pi \int_0^{\pi} (1 - \sin x)\, dx\] \[2I = \pi \left[x + \cos x\right]_0^{\pi}\] Evaluating: \[\left[x + \cos x\right]_0^{\pi} = (\pi + \cos\pi) - (0 + \cos 0) = (\pi - 1) - (0 + 1) = \pi - 2\] Therefore: \[2I = \pi(\pi - 2)\] \[I = \frac{\pi(\pi - 2)}{2}\]

Answer: \[I = \frac{\pi(\pi - 2)}{2}\]

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate \[ \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\,dx. \]

Solution

  1. Step 1: Define the integral and apply the key property: Let \( I = \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\,dx \). Use the property \( \int_0^{\pi} f(x)\,dx = \int_0^{\pi} f(\pi - x)\,dx \). Replacing \( x \) with \( \pi - x \): \[ I = \int_0^{\pi} \frac{(\pi - x)\sin(\pi - x)}{1 + \sin^2(\pi - x)}\,dx. \] Since \( \sin(\pi - x) = \sin x \), this becomes \[ I = \int_0^{\pi} \frac{(\pi - x)\sin x}{1 + \sin^2 x}\,dx. \]
  2. Step 2: Add the two expressions for I: Adding the original expression and the transformed expression: \[ 2I = \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\,dx + \int_0^{\pi} \frac{(\pi - x)\sin x}{1 + \sin^2 x}\,dx. \] Combining the numerators: \[ 2I = \int_0^{\pi} \frac{\pi \sin x}{1 + \sin^2 x}\,dx. \] Therefore \[ I = \frac{\pi}{2} \int_0^{\pi} \frac{\sin x}{1 + \sin^2 x}\,dx. \]
  3. Step 3: Simplify the remaining integral using a substitution: Let \( J = \int_0^{\pi} \frac{\sin x}{1 + \sin^2 x}\,dx \). Write \( \sin^2 x = 1 - \cos^2 x \), so \( 1 + \sin^2 x = 2 - \cos^2 x \). Thus \[ J = \int_0^{\pi} \frac{\sin x}{2 - \cos^2 x}\,dx. \] Use the substitution \( t = \cos x \), so \( dt = -\sin x\,dx \). When \( x = 0 \), \( t = 1 \); when \( x = \pi \), \( t = -1 \). Therefore \[ J = \int_1^{-1} \frac{-dt}{2 - t^2} = \int_{-1}^{1} \frac{dt}{2 - t^2}. \]
  4. Step 4: Evaluate J using partial fractions: Write \[ \frac{1}{2 - t^2} = \frac{1}{(\sqrt{2} - t)(\sqrt{2} + t)}. \] Using partial fractions: \[ \frac{1}{(\sqrt{2}-t)(\sqrt{2}+t)} = \frac{1}{2\sqrt{2}}\left(\frac{1}{\sqrt{2}-t} + \frac{1}{\sqrt{2}+t}\right). \] Therefore \[ J = \frac{1}{2\sqrt{2}} \left[ \ln\left|\frac{\sqrt{2}+t}{\sqrt{2}-t}\right| \right]_{-1}^{1}. \] Evaluating at \( t = 1 \): \( \ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right) \). Evaluating at \( t = -1 \): \( \ln\left(\frac{\sqrt{2}-1}{\sqrt{2}+1}\right) = -\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right) \). So \[ J = \frac{1}{2\sqrt{2}} \left[ \ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right) - \left(-\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right)\right) \right] = \frac{1}{2\sqrt{2}} \cdot 2\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right). \] Thus \[ J = \frac{1}{\sqrt{2}}\ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right). \]
  5. Step 5: Simplify the logarithm: Rationalise the argument of the logarithm: \[ \frac{\sqrt{2}+1}{\sqrt{2}-1} = \frac{(\sqrt{2}+1)^2}{(\sqrt{2}-1)(\sqrt{2}+1)} = \frac{(\sqrt{2}+1)^2}{1} = (\sqrt{2}+1)^2. \] Therefore \[ J = \frac{1}{\sqrt{2}}\ln\left((\sqrt{2}+1)^2\right) = \frac{2}{\sqrt{2}}\ln(\sqrt{2}+1) = \sqrt{2}\ln(\sqrt{2}+1). \]
  6. Step 6: Compute the final answer: Recall \( I = \dfrac{\pi}{2} J \). Substituting: \[ I = \frac{\pi}{2} \cdot \sqrt{2}\ln(\sqrt{2}+1) = \frac{\pi\sqrt{2}}{2}\ln(\sqrt{2}+1). \] This can also be written as \[ I = \frac{\pi}{\sqrt{2}}\ln(1+\sqrt{2}). \]

Answer: \[ \int_0^{\pi} \frac{x \sin x}{1 + \sin^2 x}\,dx = \frac{\pi}{\sqrt{2}}\ln(1+\sqrt{2}). \]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)