Step 1: Simplify the integrand.
The integral is: \[ I = \int_{0}^{\pi/4} \frac{1}{\sin x + \cos x} \, dx. \] Using the identity \( \sin x + \cos x = \sqrt{2} \sin\left(x + \frac{\pi}{4}\right) \), we get: \[ I = \int_{0}^{\pi/4} \frac{1}{\sqrt{2} \sin\left(x + \frac{\pi}{4}\right)} \, dx = \frac{1}{\sqrt{2}} \int_{0}^{\pi/4} \csc\left(x + \frac{\pi}{4}\right) \, dx. \] Step 2: Integrate \( \csc(x + \pi/4) \).
The integral of \( \csc(x) \) is \( \int \csc x \, dx = \log|\csc x - \cot x| + C \). Applying this: \[ I = \frac{1}{\sqrt{2}} \left[\log\left|\csc\left(x + \frac{\pi}{4}\right) - \cot\left(x + \frac{\pi}{4}\right)\right|\right]_{0}^{\pi/4}. \] Step 3: Evaluate the limits.
For \( x = \pi/4 \): \[ \csc\left(\frac{\pi}{4} + \frac{\pi}{4}\right) = \csc\left(\frac{\pi}{2}\right) = 1, \quad \cot\left(\frac{\pi}{4} + \frac{\pi}{4}\right) = \cot\left(\frac{\pi}{2}\right) = 0. \] For \( x = 0 \): \[ \csc\left(0 + \frac{\pi}{4}\right) = \csc\left(\frac{\pi}{4}\right) = \sqrt{2}, \quad \cot\left(0 + \frac{\pi}{4}\right) = \cot\left(\frac{\pi}{4}\right) = 1. \] Substituting these values: \[ I = \frac{1}{\sqrt{2}} \left[\log\left(1 - 0\right) - \log\left(\sqrt{2} - 1\right)\right] = \frac{1}{\sqrt{2}} \left[\log(1) - \log(\sqrt{2} - 1)\right]. \] Step 4: Simplify the result.
\[ I = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1) - \frac{1}{\sqrt{2}} \log(\sqrt{2} - 1). \]