Skip to content
Worked Examples · Example 30

Q.Evaluate ∫0πxsin⁡x1+cos⁡2x dx\int_0^{\pi} \dfrac{x \sin x}{1 + \cos^2 x}\, dx

Odisha ChseTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:AP EAPCET 2025· Set eng-2025-05-21-FN· 1mexactAP EAPCET 2024· Set eng-2024-05-20-AN· 1mexact
61% · 229/373 Questions
✓ Free question

Using the property ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx simplifies the integral to a form where the xx factor is replaced by π−x\pi - x, allowing us to isolate the xx-dependent part and evaluate the remaining trigonometric integral via a standard substitution. The value is π24\frac{\pi^2}{4}.

When you see an integral from 00 to π\pi (or 00 to aa) with a product of xx and a trigonometric function, the first instinct should be to check if symmetry can help. The standard trick is to use the property:

∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a-x)\,dx

This works because replacing xx by a−xa-x just reverses the order of integration, but the limits stay the same. Here a=πa = \pi, so we replace xx by π−x\pi - x in the integrand.

Let’s see what happens.


  1. Apply the symmetry property

Let

I=∫0πxsin⁡x1+cos⁡2x dxI = \int_0^{\pi} \frac{x \sin x}{1 + \cos^2 x}\, dx

Using x→π−xx \to \pi - x, we get:

I=∫0π(π−x)sin⁡(π−x)1+cos⁡2(π−x) dxI = \int_0^{\pi} \frac{(\pi - x) \sin(\pi - x)}{1 + \cos^2(\pi - x)}\, dx

Now recall: sin⁡(π−x)=sin⁡x\sin(\pi - x) = \sin x and cos⁡(π−x)=−cos⁡x\cos(\pi - x) = -\cos x, so cos⁡2(π−x)=cos⁡2x\cos^2(\pi - x) = \cos^2 x. Therefore:

I=∫0π(π−x)sin⁡x1+cos⁡2x dxI = \int_0^{\pi} \frac{(\pi - x) \sin x}{1 + \cos^2 x}\, dx

  1. Add the two expressions for II

We now have two expressions for the same II:

I=∫0πxsin⁡x1+cos⁡2x dxI = \int_0^{\pi} \frac{x \sin x}{1 + \cos^2 x}\, dx

I=∫0π(π−x)sin⁡x1+cos⁡2x dxI = \int_0^{\pi} \frac{(\pi - x) \sin x}{1 + \cos^2 x}\, dx

Add them:

2I=∫0πxsin⁡x+(π−x)sin⁡x1+cos⁡2x dx=∫0ππsin⁡x1+cos⁡2x dx2I = \int_0^{\pi} \frac{x \sin x + (\pi - x) \sin x}{1 + \cos^2 x}\, dx = \int_0^{\pi} \frac{\pi \sin x}{1 + \cos^2 x}\, dx

So:

2I=π∫0πsin⁡x1+cos⁡2x dx2I = \pi \int_0^{\pi} \frac{\sin x}{1 + \cos^2 x}\, dx

The xx has vanished — that’s the whole point. Now we just need to evaluate the remaining trigonometric integral.

  1. Evaluate the trigonometric integral

Let J=∫0πsin⁡x1+cos⁡2x dxJ = \int_0^{\pi} \frac{\sin x}{1 + \cos^2 x}\, dx.

Substitute u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x\, dx. When x=0x = 0, u=1u = 1; when x=πx = \pi, u=−1u = -1. Thus:

J=∫1−1−du1+u2=∫−11du1+u2J = \int_{1}^{-1} \frac{-du}{1 + u^2} = \int_{-1}^{1} \frac{du}{1 + u^2}

This is a standard integral:

∫du1+u2=arctan⁡u\int \frac{du}{1+u^2} = \arctan u

So:

J=[arctan⁡u]−11=arctan⁡(1)−arctan⁡(−1)=π4−(−π4)=π2J = \left[ \arctan u \right]_{-1}^{1} = \arctan(1) - \arctan(-1) = \frac{\pi}{4} - \left(-\frac{\pi}{4}\right) = \frac{\pi}{2}

Tip

Notice that ∫−11du1+u2\int_{-1}^{1} \frac{du}{1+u^2} is an even function integrated over a symmetric interval, so you could also compute 2∫01du1+u2=2⋅π4=π22\int_0^1 \frac{du}{1+u^2} = 2 \cdot \frac{\pi}{4} = \frac{\pi}{2}.

  1. Finish solving for II

We have 2I=π⋅J=π⋅π2=π222I = \pi \cdot J = \pi \cdot \frac{\pi}{2} = \frac{\pi^2}{2}.

Therefore:

I=π24I = \frac{\pi^2}{4}

Watch out

A common mistake is to forget that cos⁡2(π−x)=(−cos⁡x)2=cos⁡2x\cos^2(\pi - x) = (-\cos x)^2 = \cos^2 x, which is correct — but some students mistakenly think cos⁡(π−x)=cos⁡x\cos(\pi - x) = \cos x (wrong sign) and then square incorrectly. The square saves you here, but be careful with signs before squaring.

✓Final answer

The value of the integral is π24\boxed{\frac{\pi^2}{4}}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.