Question:

Evaluate the integral \[ \int_{0}^{\pi/2} \frac{\sin x}{\sin x + \cos x}\,dx. \]

Show Hint

This integral has both $\sin x$ and $\cos x$ mixed together in the denominator, which is a sign to look for a trick rather than integrate directly. Consider what happens if $x$ is replaced by $\pi/2 - x$, or try writing the numerator as a combination of the denominator and its derivative.
Updated On: Aug 17, 2026
  • \(\frac{\pi}{6}\)
  • \(\frac{\pi}{4}\)
  • \(\frac{\pi}{3}\)
  • \(\frac{\pi}{2}\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Approach Solution - 1

Concept: For definite integrals, an important property is \[ \int_{0}^{a} f(x)\,dx = \int_{0}^{a} f(a-x)\,dx \] This symmetry property is often useful when the integrand contains both \(\sin x\) and \(\cos x\).

Step 1:
Let the integral be \(I\). \[ I=\int_{0}^{\pi/2} \frac{\sin x}{\sin x+\cos x}\,dx \] Using the property \[ \int_{0}^{a} f(x)\,dx = \int_{0}^{a} f(a-x)\,dx \] \[ I=\int_{0}^{\pi/2} \frac{\cos x}{\sin x+\cos x}\,dx \]

Step 2:
Add the two integrals. \[ 2I=\int_{0}^{\pi/2} \frac{\sin x+\cos x}{\sin x+\cos x}\,dx \] \[ 2I=\int_{0}^{\pi/2} 1\,dx \] \[ 2I=\frac{\pi}{2} \]

Step 3:
Solve for \(I\). \[ I=\frac{\pi}{4} \]
Was this answer helpful?
2
0
Show Solution
collegedunia
Verified By Collegedunia

Approach Solution -2

Concept:
  • For integrals of the form $\int \dfrac{a\sin x + b\cos x}{c\sin x + d\cos x}\,dx$, the numerator can be rewritten as a combination of the denominator and the derivative of the denominator, splitting the integral into a simple constant part and a part that integrates directly using substitution.
  • Since the derivative of $\sin x + \cos x$ is $\cos x - \sin x$, the numerator $\sin x$ can be expressed using these two building blocks.

Step 1: Express $\sin x$ as a combination of $(\sin x + \cos x)$ and $(\cos x - \sin x)$.
Let $\sin x = A(\sin x + \cos x) + B(\cos x - \sin x)$.
Comparing coefficients of $\sin x$: $1 = A - B$
Comparing coefficients of $\cos x$: $0 = A + B$
Solving these together gives $A = \dfrac{1}{2}$, $B = -\dfrac{1}{2}$.
So $\sin x = \dfrac{1}{2}(\sin x + \cos x) - \dfrac{1}{2}(\cos x - \sin x)$

Step 2: Split the original integral into two parts.
$\dfrac{\sin x}{\sin x + \cos x} = \dfrac{1}{2} - \dfrac{1}{2}\cdot\dfrac{\cos x - \sin x}{\sin x + \cos x}$
$I = \dfrac{1}{2}\int_0^{\pi/2} dx \;-\; \dfrac{1}{2}\int_0^{\pi/2} \dfrac{\cos x - \sin x}{\sin x + \cos x}\,dx$

Step 3: Evaluate the first part directly.
$\dfrac{1}{2}\int_0^{\pi/2} dx = \dfrac{1}{2}\left(\dfrac{\pi}{2} - 0\right) = \dfrac{\pi}{4}$

Step 4: Evaluate the second part using substitution.
Let $u = \sin x + \cos x$, so $du = (\cos x - \sin x)\,dx$.
$\int \dfrac{\cos x - \sin x}{\sin x + \cos x}\,dx = \int \dfrac{du}{u} = \ln|u| = \ln|\sin x + \cos x|$
At $x = \pi/2$: $\sin x + \cos x = 1 + 0 = 1$, so $\ln 1 = 0$
At $x = 0$: $\sin x + \cos x = 0 + 1 = 1$, so $\ln 1 = 0$
The definite value of this part is $0 - 0 = 0$

Final Answer: $I = \dfrac{\pi}{4} - \dfrac{1}{2}(0) = \dfrac{\pi}{4}$
Was this answer helpful?
0
0