SOLVER7 Study. Nothing Else.
2026 Board Paper Q29

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

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine a seesaw perfectly balanced in the middle. The integral has an awkward variable in the numerator, making it hard to solve directly. A clever trick lets us flip the problem around, replacing the variable with its mirror image. Adding the original and flipped versions makes the awkward part disappear, leaving something simple. It is like realising that two unequal halves still add up to one whole — the answer turns out to be exactly \( \pi \).

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

📖 Definite Integral Using King's Property

Detailed Explanation

This integral cannot be solved directly because of the awkward factor \( x \) in the numerator. The key tool here is a special property of definite integrals often called the King's property: \[\int_0^a f(x)\, dx = \int_0^a f(a-x)\, dx\] The idea is to write the same integral with \( x \) replaced by \( \pi - x \). When we add the original integral to this new form, the \( x \) terms combine nicely and cancel out most of the difficulty, leaving a simpler integral to evaluate. After that we simplify the trigonometric expression using standard identities and integrate.

Formula Used

\[\int_0^a f(x)\, dx = \int_0^a f(a-x)\, dx\] and the identity \[1 + \sin x = \left(\sin\tfrac{x}{2} + \cos\tfrac{x}{2}\right)^2\]

Solution

  1. Step 1: Let the required integral be \[I = \int_0^{\pi} \frac{x}{1 + \sin x}\, dx.\]
  2. Step 2: Apply the property \( \int_0^a f(x)\, dx = \int_0^a f(a-x)\, dx \) with \( a = \pi \). Replace \( x \) by \( \pi - x \). Since \( \sin(\pi - x) = \sin x \), we get \[I = \int_0^{\pi} \frac{\pi - x}{1 + \sin x}\, dx.\]
  3. Step 3: Add the two forms of \( I \). The numerators \( x \) and \( \pi - x \) add to give \( \pi \): \[2I = \int_0^{\pi} \frac{x + (\pi - x)}{1 + \sin x}\, dx = \pi \int_0^{\pi} \frac{1}{1 + \sin x}\, dx.\]
  4. Step 4: Simplify the denominator using \[1 + \sin x = \left(\sin\tfrac{x}{2} + \cos\tfrac{x}{2}\right)^2.\] So \[2I = \pi \int_0^{\pi} \frac{dx}{\left(\sin\tfrac{x}{2} + \cos\tfrac{x}{2}\right)^2}.\]
  5. Step 5: Divide numerator and denominator by \( \cos^2\tfrac{x}{2} \) to express things in \( \tan\tfrac{x}{2} \): \[2I = \pi \int_0^{\pi} \frac{\sec^2\tfrac{x}{2}}{\left(1 + \tan\tfrac{x}{2}\right)^2}\, dx.\]
  6. Step 6: Substitute \( t = 1 + \tan\tfrac{x}{2} \), so that \( dt = \tfrac{1}{2}\sec^2\tfrac{x}{2}\, dx \), which gives \( \sec^2\tfrac{x}{2}\, dx = 2\, dt \). Change the limits: when \( x = 0 \), \( t = 1 \); when \( x = \pi \), \( t \to \infty \). Then \[2I = \pi \int_1^{\infty} \frac{2\, dt}{t^2} = 2\pi \int_1^{\infty} t^{-2}\, dt.\]
  7. Step 7: Integrate: \[2\pi \int_1^{\infty} t^{-2}\, dt = 2\pi \left[ -\frac{1}{t} \right]_1^{\infty} = 2\pi \left( 0 - (-1) \right) = 2\pi.\] So \( 2I = 2\pi \), which gives \( I = \pi \).

Final Answer

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

Common Mistake

A very common mistake is forgetting that \( \sin(\pi - x) = \sin x \) (some students wrongly change its sign), which breaks the cancellation. Another slip is not changing the limits after the substitution \( t = 1 + \tan\tfrac{x}{2} \), especially the upper limit which goes to \( \infty \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Name the integral: Define \[I = \int_0^{\pi} \frac{x}{1 + \sin x}\, dx\] — Reason: Giving the integral a name allows us to work with two versions of it and add them together later.
  2. Step 2: Apply King's Property: Replace \( x \) with \( \pi - x \) throughout. Using \( \sin(\pi - x) = \sin x \), the denominator stays unchanged and we get \[I = \int_0^{\pi} \frac{\pi - x}{1 + \sin x}\, dx\] — Reason: The King's Property guarantees both integrals have the same value, so this substitution is valid. The key point is that \( \sin(\pi - x) = \sin x \) keeps the denominator identical.
  3. Step 3: Add both forms of I: Add the original integral and the new form side by side: \[2I = \int_0^{\pi} \frac{x}{1 + \sin x}\, dx + \int_0^{\pi} \frac{\pi - x}{1 + \sin x}\, dx\] The numerators combine as \( x + (\pi - x) = \pi \), so \[2I = \pi \int_0^{\pi} \frac{1}{1 + \sin x}\, dx\] — Reason: Adding eliminates the variable \( x \) from the numerator entirely, reducing the problem to integrating a pure trigonometric expression.
  4. Step 4: Rewrite the denominator using a half-angle identity: Use the identity \( 1 + \sin x = \left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2 \) so that \[2I = \pi \int_0^{\pi} \frac{dx}{\left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2}\] — Reason: Expressing the denominator as a perfect square makes it possible to divide by \( \cos^2\frac{x}{2} \) and convert the integrand into a standard \( \sec^2 \) or \( \tan \) form.
  5. Step 5: Divide numerator and denominator by \( \cos^2\frac{x}{2} \): Divide top and bottom by \( \cos^2\frac{x}{2} \): \[2I = \pi \int_0^{\pi} \frac{\sec^2\frac{x}{2}}{\left(\tan\frac{x}{2} + 1\right)^2}\, dx\] — Reason: This converts the integrand into a form that matches the standard result \( \int \frac{\sec^2 u}{(\tan u + c)^2}\, du \), which is solvable by a simple substitution.
  6. Step 6: Substitute \( t = \tan\frac{x}{2} \): Let \( t = \tan\frac{x}{2} \), so \( dt = \frac{1}{2}\sec^2\frac{x}{2}\, dx \), meaning \( \sec^2\frac{x}{2}\, dx = 2\, dt \). When \( x = 0 \), \( t = 0 \); when \( x = \pi \), \( t \to \infty \). The integral becomes \[2I = \pi \int_0^{\infty} \frac{2\, dt}{(t + 1)^2} = 2\pi \int_0^{\infty} (t+1)^{-2}\, dt\] — Reason: The substitution removes all trigonometric functions, leaving a straightforward algebraic integral.
  7. Step 7: Evaluate the resulting integral: Integrate: \[2\pi \int_0^{\infty} (t+1)^{-2}\, dt = 2\pi \left[\frac{-1}{t+1}\right]_0^{\infty}\] Evaluating the limits gives \( 2\pi \left(0 - (-1)\right) = 2\pi \). Therefore \[2I = 2\pi\] and so \[I = \pi\] — Reason: The antiderivative of \( (t+1)^{-2} \) is \( -(t+1)^{-1} \), and the upper limit contributes 0 while the lower limit contributes \( -(-1) = 1 \), giving a clean final answer.

Final Answer

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

Common Mistake

One common mistake: forgetting to apply \( \sin(\pi - x) = \sin x \) correctly when using King's Property — some students mistakenly write \( \sin(\pi - x) = -\sin x \), which changes the denominator and makes the two forms impossible to add cleanly.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( I = \int_0^{\pi} \frac{x}{1 + \sin x}\, dx \). By King's property with \( \sin(\pi - x) = \sin x \): \[ I = \int_0^{\pi} \frac{\pi - x}{1 + \sin x}\, dx \]
  2. Step 2: Adding both forms: \[ 2I = \pi \int_0^{\pi} \frac{dx}{1 + \sin x} = \pi \int_0^{\pi} \frac{dx}{\left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2} \]
  3. Step 3: Dividing numerator and denominator by \( \cos^2\frac{x}{2} \): \[ 2I = \pi \int_0^{\pi} \frac{\sec^2\frac{x}{2}}{\left(1 + \tan\frac{x}{2}\right)^2}\, dx = \pi \Big[-\frac{2}{1 + \tan\frac{x}{2}}\Big]_0^{\pi} = \pi(0 - (-2)) = 2\pi \]
  4. Step 4: \( I = \pi \)

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

➕ More Examples

More Examples

Example 1

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

Solution: Let \(I = \int_0^{\pi} \frac{x}{1 + \cos^2 x}\,dx\). Using the property \(\int_0^{\pi} x\,f(\sin x)\,dx = \dfrac{\pi}{2}\int_0^{\pi} f(\sin x)\,dx\), note that \(\cos^2 x = 1 - \sin^2 x\), so \(1 + \cos^2 x = 2 - \sin^2 x\). We can write: \[I = \frac{\pi}{2}\int_0^{\pi} \frac{dx}{2 - \sin^2 x}\] Now evaluate \(J = \int_0^{\pi} \frac{dx}{2 - \sin^2 x}\). Divide numerator and denominator by \(\cos^2 x\): \[J = \int_0^{\pi} \frac{\sec^2 x\,dx}{2\sec^2 x - \tan^2 x} = \int_0^{\pi} \frac{\sec^2 x\,dx}{2(1+\tan^2 x) - \tan^2 x} = \int_0^{\pi} \frac{\sec^2 x\,dx}{2 + \tan^2 x}\] Because the integrand has period \(\pi\) and is symmetric, we use the result: \[J = 2\int_0^{\pi/2} \frac{\sec^2 x\,dx}{2 + \tan^2 x}\] Let \(t = \tan x\), so \(dt = \sec^2 x\,dx\). When \(x = 0\), \(t = 0\); when \(x = \pi/2\), \(t \to \infty\): \[J = 2\int_0^{\infty} \frac{dt}{2 + t^2} = 2 \cdot \frac{1}{\sqrt{2}}\left[\tan^{-1}\frac{t}{\sqrt{2}}\right]_0^{\infty} = \frac{2}{\sqrt{2}} \cdot \frac{\pi}{2} = \frac{\pi}{\sqrt{2}}\] Therefore: \[I = \frac{\pi}{2} \cdot \frac{\pi}{\sqrt{2}} = \frac{\pi^2}{2\sqrt{2}}\]

Answer: \(\dfrac{\pi^2}{2\sqrt{2}}\)

Example 2

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

Solution: Let \(I = \int_0^{\pi} \frac{x\sin x}{1 + \cos^2 x}\,dx\). Apply the substitution \(x \to \pi - x\). Then \(dx \to -dx\), \(\sin(\pi - x) = \sin x\), \(\cos(\pi - x) = -\cos x\), so \(\cos^2(\pi - x) = \cos^2 x\). The limits: when \(x=0\), \(\pi - x = \pi\); when \(x = \pi\), \(\pi - x = 0\). Hence: \[I = \int_0^{\pi} \frac{(\pi - x)\sin x}{1 + \cos^2 x}\,dx\] Adding the two expressions for \(I\): \[2I = \int_0^{\pi} \frac{x\sin x + (\pi - x)\sin x}{1 + \cos^2 x}\,dx = \pi\int_0^{\pi} \frac{\sin x}{1 + \cos^2 x}\,dx\] So \(I = \dfrac{\pi}{2}\displaystyle\int_0^{\pi} \frac{\sin x}{1 + \cos^2 x}\,dx\). Now let \(t = \cos x\), so \(dt = -\sin x\,dx\). When \(x = 0\), \(t = 1\); when \(x = \pi\), \(t = -1\): \[\int_0^{\pi} \frac{\sin x}{1 + \cos^2 x}\,dx = \int_1^{-1} \frac{-dt}{1 + t^2} = \int_{-1}^{1} \frac{dt}{1 + t^2} = \left[\tan^{-1} t\right]_{-1}^{1}\] \[= \tan^{-1}(1) - \tan^{-1}(-1) = \frac{\pi}{4} - \left(-\frac{\pi}{4}\right) = \frac{\pi}{2}\] Therefore: \[I = \frac{\pi}{2} \cdot \frac{\pi}{2} = \frac{\pi^2}{4}\]

Answer: \(\dfrac{\pi^2}{4}\)

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate: \[\int_0^{\pi} \frac{x}{1 - \cos x}\,dx\]

Solution

  1. Step 1: Define the Integral: Let \(I = \int_0^{\pi} \frac{x}{1 - \cos x}\,dx\).
  2. Step 2: Apply King's Property: Using King's Property, replace \(x\) with \(\pi - x\): \[I = \int_0^{\pi} \frac{\pi - x}{1 - \cos(\pi - x)}\,dx\] Since \(\cos(\pi - x) = -\cos x\), we get \(1 - \cos(\pi - x) = 1 + \cos x\). Wait — let us recheck: \(1 - \cos(\pi - x) = 1 - (-\cos x) = 1 + \cos x\). So \[I = \int_0^{\pi} \frac{\pi - x}{1 + \cos x}\,dx\]
  3. Step 3: Add the Two Expressions: We now have two expressions: \[I = \int_0^{\pi} \frac{x}{1 - \cos x}\,dx \quad \text{and} \quad I = \int_0^{\pi} \frac{\pi - x}{1 + \cos x}\,dx\] Adding these two: \[2I = \int_0^{\pi} \frac{x}{1 - \cos x}\,dx + \int_0^{\pi} \frac{\pi - x}{1 + \cos x}\,dx\] These are two different integrals; we cannot directly add and cancel \(x\) since the denominators differ. So instead, we use a direct approach.
  4. Step 4: Use Symmetry Directly: Let \(I = \int_0^{\pi} \frac{x}{1 - \cos x}\,dx\). Apply King's Property: \[I = \int_0^{\pi} \frac{\pi - x}{1 - \cos(\pi - x)}\,dx = \int_0^{\pi} \frac{\pi - x}{1 + \cos x}\,dx\] Now add the original and the transformed version — but note the denominators are different, so this does not simplify directly. Instead, let us proceed by computing \(I\) directly using \(1 - \cos x = 2\sin^2\frac{x}{2}\).
  5. Step 5: Rewrite Using Half-Angle Identity: Using \(1 - \cos x = 2\sin^2\frac{x}{2}\): \[I = \int_0^{\pi} \frac{x}{2\sin^2\frac{x}{2}}\,dx = \frac{1}{2}\int_0^{\pi} x \csc^2\!\frac{x}{2}\,dx\]
  6. Step 6: Integration by Parts: Apply integration by parts with \(u = x\) and \(dv = \csc^2\frac{x}{2}\,dx\). Then \(du = dx\) and \(v = \int \csc^2\frac{x}{2}\,dx\). For \(v\): let \(t = \frac{x}{2}\), so \(dx = 2\,dt\) and \(\int \csc^2 t \cdot 2\,dt = -2\cot t = -2\cot\frac{x}{2}\). So \(v = -2\cot\frac{x}{2}\).
  7. Step 7: Apply the IBP Formula: \[\frac{1}{2}\int_0^{\pi} x\csc^2\frac{x}{2}\,dx = \frac{1}{2}\left[\left. -2x\cot\frac{x}{2}\right|_0^{\pi} + 2\int_0^{\pi}\cot\frac{x}{2}\,dx\right]\] At \(x = \pi\): \(-2\pi\cot\frac{\pi}{2} = -2\pi \cdot 0 = 0\). At \(x = 0\): the limit of \(-2x\cot\frac{x}{2}\) as \(x \to 0^+\) is \(\lim_{x \to 0^+}\left(-2x \cdot \frac{\cos\frac{x}{2}}{\sin\frac{x}{2}}\right)\). Since \(\sin\frac{x}{2} \approx \frac{x}{2}\) for small \(x\), this limit equals \(\lim_{x\to 0^+}\left(-2x \cdot \frac{1}{x/2}\right) = -4\). So the bracket gives \(0 - (-4) = 4\).
  8. Step 8: Evaluate the Remaining Integral: Now compute \(\int_0^{\pi} \cot\frac{x}{2}\,dx\). Let \(t = \frac{x}{2}\), so \(dx = 2\,dt\) and limits go from \(0\) to \(\frac{\pi}{2}\): \[2\int_0^{\pi/2}\cot t\,dt = 2\left[\ln|\sin t|\right]_0^{\pi/2}\] At \(t = \frac{\pi}{2}\): \(\ln|\sin\frac{\pi}{2}| = \ln 1 = 0\). At \(t \to 0^+\): \(\ln|\sin t| \to -\infty\). This integral diverges! This means \(I\) diverges. Let us check the original integrand at \(x = 0\): \(\frac{x}{1 - \cos x} \approx \frac{x}{x^2/2} = \frac{2}{x} \to \infty\), so the integral is indeed improper and diverges. We must choose a different integrand. Let us instead use \(\dfrac{x}{1 + \cos x}\).
  9. Step 9: Revised Question — Evaluate the Correct Integral: We evaluate \[I = \int_0^{\pi} \frac{x}{1 + \cos x}\,dx\] Using \(1 + \cos x = 2\cos^2\frac{x}{2}\): \[I = \int_0^{\pi} \frac{x}{2\cos^2\frac{x}{2}}\,dx = \frac{1}{2}\int_0^{\pi} x\sec^2\frac{x}{2}\,dx\]
  10. Step 10: Integration by Parts for Revised Integral: Let \(u = x\) and \(dv = \sec^2\frac{x}{2}\,dx\). Then \(du = dx\) and \(v = 2\tan\frac{x}{2}\). Applying IBP: \[\frac{1}{2}\left[\left. 2x\tan\frac{x}{2}\right|_0^{\pi} - 2\int_0^{\pi}\tan\frac{x}{2}\,dx\right]\] At \(x = \pi\): \(2\pi\tan\frac{\pi}{2}\), which diverges. So this integral also diverges at \(x = \pi\).
  11. Step 11: Correct New Integral — Use \(\int_0^{\pi} \frac{x \sin x}{1 + \cos^2 x}\,dx\): We now evaluate \[I = \int_0^{\pi} \frac{x\sin x}{1 + \cos^2 x}\,dx\] This is a classic CBSE-type integral using King's Property and is well-defined on \([0,\pi]\).
  12. Step 12: Apply King's Property: Let \(I = \int_0^{\pi}\frac{x\sin x}{1+\cos^2 x}\,dx\). Using King's Property (replace \(x\) by \(\pi - x\)): \[I = \int_0^{\pi}\frac{(\pi-x)\sin(\pi-x)}{1+\cos^2(\pi-x)}\,dx\] Since \(\sin(\pi-x) = \sin x\) and \(\cos(\pi-x) = -\cos x\), so \(\cos^2(\pi-x) = \cos^2 x\). Thus \[I = \int_0^{\pi}\frac{(\pi-x)\sin x}{1+\cos^2 x}\,dx\]
  13. Step 13: Add the Two Expressions: Adding the original and transformed integrals: \[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 = \int_0^{\pi}\frac{\pi\sin x}{1+\cos^2 x}\,dx\] Therefore \[2I = \pi\int_0^{\pi}\frac{\sin x}{1+\cos^2 x}\,dx\]
  14. Step 14: Evaluate the Remaining Integral: Let \(t = \cos x\), so \(dt = -\sin x\,dx\). When \(x = 0\), \(t = 1\); when \(x = \pi\), \(t = -1\). \[\int_0^{\pi}\frac{\sin x}{1+\cos^2 x}\,dx = \int_1^{-1}\frac{-dt}{1+t^2} = \int_{-1}^{1}\frac{dt}{1+t^2}\] \[= \left[\tan^{-1} t\right]_{-1}^{1} = \tan^{-1}(1) - \tan^{-1}(-1) = \frac{\pi}{4} - \left(-\frac{\pi}{4}\right) = \frac{\pi}{2}\]
  15. Step 15: Find I: Substituting back: \[2I = \pi \cdot \frac{\pi}{2} = \frac{\pi^2}{2}\] Therefore \[I = \frac{\pi^2}{4}\]

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

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)