---
title: "Show ∫ sin²x/(sin x+cos x) dx"
subject: "Mathematics I"
chapter: 2
key: "semester_1/mathematics_i:integral-sin2x-over-sin-plus-cos"
source: https://www.bctengineer.com/q/semester_1/mathematics_i/integral-sin2x-over-sin-plus-cos
site: BCT Engineering
---

# Show ∫ sin²x/(sin x+cos x) dx

Mathematics I · Chapter 2: Integration and its Applications

- Asked in: 2067 Asar
- Video: [90) show that Integral 0 to π/2 sin²x/sinx+cosx dx = 1/√2 log (√2+1)](https://www.youtube.com/watch?v=dcvnZnCT9Y8) — Sky Dhoni Production House
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_1/mathematics_i/integral-sin2x-over-sin-plus-cos
- Whole chapter: https://www.bctengineer.com/md/semester_1/mathematics_i/chapter-2

## Question

Prove that ∫₀^{π/2} sin²x dx/(sin x + cos x) = (1/√2) log(√2+1).

## Short answer

Replace x by π/2−x and add to obtain 2I = ∫₀^{π/2} dx/(sin x+cos x). Write sin x+cos x = √2 sin(x+π/4), integrate csc to get 2I = (2/√2) ln(√2+1). Hence I = (1/√2) ln(√2+1).

## Answer

Let I = ∫₀^(π/2) sin²x/(sin x + cos x) dx. Replacing x by π/2 − x:

I = ∫₀^(π/2) cos²x/(sin x + cos x) dx

Add the two forms; since sin²x + cos²x = 1:

2I = ∫₀^(π/2) dx/(sin x + cos x) = K

**Evaluate K.** sin x + cos x = √2 sin(x + π/4), so

```text
K = (1/√2) ∫₀^(π/2) cosec(x + π/4) dx
  = (1/√2) [ln tan((x + π/4)/2)]₀^(π/2)
  = (1/√2) [ln tan(3π/8) − ln tan(π/8)]
  = (1/√2) ln[(√2+1)/(√2−1)]
  = (1/√2) · 2 ln(√2 + 1)
```
So 2I = (2/√2) ln(√2 + 1), and

**I = (1/√2) ln(√2 + 1).** Proved.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. Replacing x by π/2 - x gives
   A. integral sin^2 x/(sin x - cos x)
   B. integral cos^2 x/(sin x + cos x)
   C. integral cos x/(sin x + cos x)
   D. integral sin x/(sin^2 x + cos^2 x)
   Answer: B. sin and cos swap. (Key point: Second form)

2. Adding gives 2I = integral 1/(sin x + cos x) because
   A. sin x cos x = 1/2
   B. the denominators cancel
   C. sin^2 x + cos^2 x = 1
   D. sin x = cos x
   Answer: C. Numerators sum to 1. (Key point: Adding)

3. Integral of cosec(x + π/4) is evaluated as
   A. ln sec(x+π/4)
   B. -cot(x+π/4)
   C. ln sin(x + π/4)
   D. ln tan((x+π/4)/2)
   Answer: D. Standard integral of cosec. (Key point: Cosecant)

4. I equals
   A. (1/sqrt2) ln(sqrt2 + 1)
   B. sqrt2 ln(sqrt2+1)
   C. ln(sqrt2+1)
   D. (1/2) ln(sqrt2+1)
   Answer: A. 2I = (2/sqrt2) ln(sqrt2+1). (Key point: Result)

## Related in Mathematics I

- [Show ∫ x/(sin x+cos x) dx](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aintegral-x-over-sin-plus-cos) — Mathematics I, chapter 2
- [Gamma function: ∫ sin⁶(x/2) cos⁶(x/2) dx](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Agamma-sin6-cos6-half-x) — Mathematics I, chapter 2, asked 3×
- [DUIS: ∫ dx/(a²sin²x+b²cos²x)²](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aduis-dx-over-a2sin2-b2cos2-squared) — Mathematics I, chapter 2, asked 2×
- [DUIS: ∫ log((a+b sin x)/(a−b sin x)) dx/sin x](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aduis-log-a-plus-b-sinx) — Mathematics I, chapter 2, asked 9×
- [Show ∫ x log(sin x) dx](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aintegral-x-log-sin-x) — Mathematics I, chapter 2
- [Prove ∫ sin bx / x dx = π/2](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aintegral-sin-bx-over-x) — Mathematics I, chapter 2

## Related in other subjects

- [Gauss 2-point and 3-point: log(x+1)+sin 2x](https://www.bctengineer.com/question.md?key=semester_4%2Fnumerical_method%3Agauss-2pt-3pt-log-sin) — Numerical Method, chapter 5
- [Gauss 3-point: sin x³ + cos x²](https://www.bctengineer.com/question.md?key=semester_4%2Fnumerical_method%3Agauss-3pt-sin-x3-cos-x2) — Numerical Method, chapter 5, asked 2×
- [Second derivatives of r with x=r cosθ, y=r sinθ](https://www.bctengineer.com/question.md?key=semester_2%2Fmathematics%3Asecond-derivatives-r-x-r) — Mathematics, chapter 1
- [Sampling theorem; Nyquist of 1 + cos + sin](https://www.bctengineer.com/question.md?key=semester_4%2Fsignals_and_systems%3Asampling-theorem-nyquist-1-cos-sin) — Signals and Systems, chapter 4, asked 5×
