SOLVER7 Study. Nothing Else.
2024 Board Paper Q29(b)

Evaluate : \(\int^{\pi/4}_0\dfrac{1}{sin\ x+cos\ x}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy fraction that is hard to work with. We cleverly rewrite the bottom part into a friendlier shape — like folding two crumpled pieces of paper into one neat square. The two terms \\ sin x \\ and \\ cos x \\ join together into a single wave function. Once that happens, the integral becomes a familiar type we already know how to solve. Plugging in the boundary numbers at the end gives us a clean, simple answer.

Answer: \[ \int_0^{\pi/4} \frac{1}{\sin x + \cos x} \, dx = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1). \]

📖 Evaluating a Definite Integral of 1/(sin x + cos x)

Detailed Explanation

The key idea here is to simplify the denominator \( \sin x + \cos x \) into a single sine (or cosine) term. Any expression of the form \( a\sin x + b\cos x \) can be written as \( R\sin(x + \phi) \), where \( R = \sqrt{a^2 + b^2} \). For \( \sin x + \cos x \) we have \( a = b = 1 \), so \( R = \sqrt{2} \). Once the denominator becomes a single sine term, the integrand reduces to a cosecant function, which has a known antiderivative. Finally, we apply the Fundamental Theorem of Calculus to evaluate between the limits.

Formula Used

\[ \sin x + \cos x = \sqrt{2}\,\sin\left(x + \frac{\pi}{4}\right) \] \[ \int \csc u \, du = \log\left|\tan\frac{u}{2}\right| + C \]

Solution

  1. Step 1: Write the denominator as a single sine term. Since \( \sin x + \cos x = \sqrt{2}\left(\frac{1}{\sqrt{2}}\sin x + \frac{1}{\sqrt{2}}\cos x\right) \), and \( \frac{1}{\sqrt{2}} = \cos\frac{\pi}{4} = \sin\frac{\pi}{4} \), we get \[ \sin x + \cos x = \sqrt{2}\,\sin\left(x + \frac{\pi}{4}\right). \]
  2. Step 2: Substitute this into the integral so that the integrand becomes a cosecant function. \[ 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. \]
  3. Step 3: Use the standard result \( \int \csc u \, du = \log\left|\tan\frac{u}{2}\right| + C \) with \( u = x + \frac{\pi}{4} \). This gives \[ I = \frac{1}{\sqrt{2}} \left[ \log\left|\tan\left(\frac{x}{2} + \frac{\pi}{8}\right)\right| \right]_0^{\pi/4}. \]
  4. Step 4: Apply the limits. At the upper limit \( x = \frac{\pi}{4} \): \[ \frac{x}{2} + \frac{\pi}{8} = \frac{\pi}{8} + \frac{\pi}{8} = \frac{\pi}{4}. \] At the lower limit \( x = 0 \): \[ \frac{x}{2} + \frac{\pi}{8} = \frac{\pi}{8}. \] So \[ I = \frac{1}{\sqrt{2}} \left( \log\left|\tan\frac{\pi}{4}\right| - \log\left|\tan\frac{\pi}{8}\right| \right). \]
  5. Step 5: Simplify using known values. Since \( \tan\frac{\pi}{4} = 1 \), we have \( \log 1 = 0 \), so \[ I = \frac{1}{\sqrt{2}} \left( 0 - \log\tan\frac{\pi}{8} \right) = -\frac{1}{\sqrt{2}} \log\tan\frac{\pi}{8}. \] Using \( \tan\frac{\pi}{8} = \sqrt{2} - 1 \), and noting \( \sqrt{2} - 1 = \frac{1}{\sqrt{2}+1} \), we can write \[ I = -\frac{1}{\sqrt{2}} \log(\sqrt{2} - 1) = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1). \]

Final Answer

\[ \int_0^{\pi/4} \frac{1}{\sin x + \cos x} \, dx = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1). \]

Common Mistake

A frequent error is forgetting the factor \( \frac{1}{\sqrt{2}} \) that comes out when writing \( \sin x + \cos x = \sqrt{2}\,\sin\left(x + \frac{\pi}{4}\right) \). Students often use \( \sin(x + \frac{\pi}{4}) \) without the \( \sqrt{2} \), which changes the whole answer.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the structure of the denominator: Notice that \( \sin x + \cos x \) matches the form \( a\sin x + b\cos x \) with \( a = b = 1 \). The amplitude factor is \( R = \sqrt{a^2 + b^2} = \sqrt{1^2 + 1^2} = \sqrt{2} \). — Reason: Recognising this form tells us we can write the denominator as a single sine term, which simplifies the integrand significantly.
  2. Step 2: Rewrite the denominator as a single sine term: Factor out \( \sqrt{2} \) from the denominator: \[ \sin x + \cos x = \sqrt{2}\left(\frac{1}{\sqrt{2}}\sin x + \frac{1}{\sqrt{2}}\cos x\right). \] Since \( \frac{1}{\sqrt{2}} = \sin\frac{\pi}{4} = \cos\frac{\pi}{4} \), we apply the sine addition formula \( \sin A\cos B + \cos A\sin B = \sin(A+B) \) to get \[ \sin x + \cos x = \sqrt{2}\,\sin\left(x + \frac{\pi}{4}\right). \] — Reason: Converting to a single sine term reduces the integrand to a standard cosecant form.
  3. Step 3: Substitute into the integral: Replace the denominator in the original integral using the result from Step 2: \[ I = \int_0^{\pi/4} \frac{1}{\sqrt{2}\,\sin\left(x + \frac{\pi}{4}\right)} \, dx. \] Pull the constant \( \frac{1}{\sqrt{2}} \) outside the integral: \[ I = \frac{1}{\sqrt{2}} \int_0^{\pi/4} \csc\left(x + \frac{\pi}{4}\right) \, dx. \] — Reason: Constants can always be moved outside the integral sign, leaving a pure cosecant integral that matches the standard form.
  4. Step 4: Apply the standard cosecant antiderivative: Let \( u = x + \frac{\pi}{4} \), so the antiderivative of \( \csc u \) is \( \log\left|\tan\frac{u}{2}\right| + C \). Substituting back \( u = x + \frac{\pi}{4} \), the antiderivative in terms of \( x \) is \( \log\left|\tan\left(\frac{x}{2} + \frac{\pi}{8}\right)\right| + C \). Therefore \[ I = \frac{1}{\sqrt{2}} \left[\log\left|\tan\left(\frac{x}{2} + \frac{\pi}{8}\right)\right|\right]_0^{\pi/4}. \] — Reason: The standard result for \( \int \csc u \, du \) is a memorised formula; using it directly avoids a lengthy partial-fraction derivation.
  5. Step 5: Evaluate at the upper limit: At \( x = \frac{\pi}{4} \), the argument of the tangent is \( \frac{\pi/4}{2} + \frac{\pi}{8} = \frac{\pi}{8} + \frac{\pi}{8} = \frac{\pi}{4} \). So the upper-limit value is \( \log\left|\tan\frac{\pi}{4}\right| = \log|1| = 0 \). — Reason: Substituting the upper limit first allows us to evaluate one part of the bracket before moving to the lower limit.
  6. Step 6: Evaluate at the lower limit: At \( x = 0 \), the argument of the tangent is \( \frac{0}{2} + \frac{\pi}{8} = \frac{\pi}{8} \). We need \( \tan\frac{\pi}{8} \). Using the half-angle identity \( \tan\frac{\theta}{2} = \frac{1-\cos\theta}{\sin\theta} \) with \( \theta = \frac{\pi}{4} \): \[ \tan\frac{\pi}{8} = \frac{1 - \cos\frac{\pi}{4}}{\sin\frac{\pi}{4}} = \frac{1 - \frac{1}{\sqrt{2}}}{\frac{1}{\sqrt{2}}} = \sqrt{2} - 1. \] So the lower-limit value is \( \log\left|\sqrt{2} - 1\right| = \log(\sqrt{2}-1) \). — Reason: The half-angle identity gives an exact value without a calculator.
  7. Step 7: Combine and simplify: Subtract the lower-limit value from the upper-limit value: \[ I = \frac{1}{\sqrt{2}}\bigl[0 - \log(\sqrt{2}-1)\bigr] = -\frac{1}{\sqrt{2}}\log(\sqrt{2}-1). \] Now use the identity \( \log(\sqrt{2}-1) = -\log(\sqrt{2}+1) \), which follows from \( (\sqrt{2}-1)(\sqrt{2}+1) = 1 \), so \( \log(\sqrt{2}-1) + \log(\sqrt{2}+1) = \log 1 = 0 \). Therefore \[ I = -\frac{1}{\sqrt{2}} \cdot \bigl(-\log(\sqrt{2}+1)\bigr) = \frac{1}{\sqrt{2}}\log(\sqrt{2}+1). \] — Reason: Using the logarithm property converts a negative log into a positive one, giving the clean final result.

Final Answer

\[ \int_0^{\pi/4} \frac{1}{\sin x + \cos x} \, dx = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1). \]

Common Mistake

One common mistake: forgetting to convert \( \log(\sqrt{2}-1) \) into \( -\log(\sqrt{2}+1) \) at the end — students who skip this step are left with \( -\frac{1}{\sqrt{2}}\log(\sqrt{2}-1) \) and do not recognise it as the standard final form, even though both expressions are equal.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite the denominator: \[ 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 \]
  2. Step 2: Apply \( \int \csc u \, du = \log\left|\tan\dfrac{u}{2}\right| + C \) with \( u = x + \dfrac{\pi}{4} \): \[ I = \frac{1}{\sqrt{2}} \left[ \log\left|\tan\!\left(\frac{x}{2} + \frac{\pi}{8}\right)\right| \right]_0^{\pi/4} \]
  3. Step 3: Evaluate at the limits. At \( x = \dfrac{\pi}{4} \): \( \tan\!\left(\dfrac{\pi}{8} + \dfrac{\pi}{8}\right) = \tan\dfrac{\pi}{4} = 1 \). At \( x = 0 \): \( \tan\dfrac{\pi}{8} = \sqrt{2} - 1 \). So \[ I = \frac{1}{\sqrt{2}}\!\left(\log 1 - \log(\sqrt{2}-1)\right) = \frac{1}{\sqrt{2}}\log\frac{1}{\sqrt{2}-1} = \frac{1}{\sqrt{2}}\log(\sqrt{2}+1) \]

Answer: \[ \int_0^{\pi/4} \frac{1}{\sin x + \cos x} \, dx = \frac{1}{\sqrt{2}} \log(\sqrt{2} + 1). \]

➕ More Examples

More Examples

Example 1

Question: Evaluate \[ I = \int_0^{\pi/3} \frac{1}{\sin x + \sqrt{3}\cos x} \, dx \]

Solution: We write the denominator in the form \( R\sin(x+\phi) \). Here \( a = 1 \) and \( b = \sqrt{3} \), so \( R = \sqrt{1^2+(\sqrt{3})^2} = \sqrt{4} = 2 \) and \( \phi = \tan^{-1}\!\left(\frac{\sqrt{3}}{1}\right) = \frac{\pi}{3} \). Thus \[ \sin x + \sqrt{3}\cos x = 2\sin\!\left(x+\frac{\pi}{3}\right). \] The integral becomes \[ I = \int_0^{\pi/3} \frac{1}{2\sin\!\left(x+\frac{\pi}{3}\right)} \, dx = \frac{1}{2}\int_0^{\pi/3} \csc\!\left(x+\frac{\pi}{3}\right) \, dx. \] Using the standard result \( \int \csc\theta \, d\theta = \ln\!\left|\tan\dfrac{\theta}{2}\right| + C \) with \( \theta = x + \dfrac{\pi}{3} \): \[ I = \frac{1}{2}\left[\ln\!\left|\tan\frac{x+\frac{\pi}{3}}{2}\right|\right]_0^{\pi/3}. \] Evaluating at the upper limit \( x = \dfrac{\pi}{3} \): \[ \tan\frac{\frac{\pi}{3}+\frac{\pi}{3}}{2} = \tan\frac{\frac{2\pi}{3}}{2} = \tan\frac{\pi}{3} = \sqrt{3}. \] Evaluating at the lower limit \( x = 0 \): \[ \tan\frac{0+\frac{\pi}{3}}{2} = \tan\frac{\pi}{6} = \frac{1}{\sqrt{3}}. \] Therefore \[ I = \frac{1}{2}\left(\ln\sqrt{3} - \ln\frac{1}{\sqrt{3}}\right) = \frac{1}{2}\left(\ln\sqrt{3} + \ln\sqrt{3}\right) = \frac{1}{2}\cdot 2\ln\sqrt{3}. \] Simplifying: \[ I = \ln\sqrt{3} = \frac{1}{2}\ln 3. \]

Answer: \( I = \dfrac{1}{2}\ln 3 \)

Example 2

Question: Evaluate \[ I = \int_0^{\pi/6} \frac{1}{\sqrt{3}\sin x + \cos x} \, dx \]

Solution: We write the denominator in the form \( R\sin(x+\phi) \). Here \( a = \sqrt{3} \) and \( b = 1 \), so \( R = \sqrt{(\sqrt{3})^2+1^2} = \sqrt{4} = 2 \) and \( \phi = \tan^{-1}\!\left(\frac{1}{\sqrt{3}}\right) = \frac{\pi}{6} \). Thus \[ \sqrt{3}\sin x + \cos x = 2\sin\!\left(x+\frac{\pi}{6}\right). \] The integral becomes \[ I = \int_0^{\pi/6} \frac{1}{2\sin\!\left(x+\frac{\pi}{6}\right)} \, dx = \frac{1}{2}\int_0^{\pi/6} \csc\!\left(x+\frac{\pi}{6}\right) \, dx. \] Applying the standard result \( \int \csc\theta \, d\theta = \ln\!\left|\tan\dfrac{\theta}{2}\right| + C \): \[ I = \frac{1}{2}\left[\ln\!\left|\tan\frac{x+\frac{\pi}{6}}{2}\right|\right]_0^{\pi/6}. \] Evaluating at the upper limit \( x = \dfrac{\pi}{6} \): \[ \tan\frac{\frac{\pi}{6}+\frac{\pi}{6}}{2} = \tan\frac{\frac{\pi}{3}}{2} = \tan\frac{\pi}{6} = \frac{1}{\sqrt{3}}. \] Evaluating at the lower limit \( x = 0 \): \[ \tan\frac{0+\frac{\pi}{6}}{2} = \tan\frac{\pi}{12}. \] Now \( \tan\dfrac{\pi}{12} = \tan 15^\circ = 2 - \sqrt{3} \). Therefore \[ I = \frac{1}{2}\left(\ln\frac{1}{\sqrt{3}} - \ln(2-\sqrt{3})\right) = \frac{1}{2}\ln\frac{1}{\sqrt{3}(2-\sqrt{3})}. \] Simplify \( \sqrt{3}(2-\sqrt{3}) = 2\sqrt{3}-3 \). Rationalising: \[ \frac{1}{2\sqrt{3}-3} = \frac{2\sqrt{3}+3}{(2\sqrt{3})^2-3^2} = \frac{2\sqrt{3}+3}{12-9} = \frac{2\sqrt{3}+3}{3}. \] Hence \[ I = \frac{1}{2}\ln\frac{2\sqrt{3}+3}{3}. \]

Answer: \( I = \dfrac{1}{2}\ln\!\left(\dfrac{2\sqrt{3}+3}{3}\right) \)

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Step 1: Write the denominator in auxiliary angle form: We write \( \sin x + \cos x \) in the form \( R\sin(x + \phi) \). Here \( R = \sqrt{1^2 + 1^2} = \sqrt{2} \) and \( \phi = \frac{\pi}{4} \) (since \( \tan\phi = \frac{1}{1} \)). So \[ \sin x + \cos x = \sqrt{2}\,\sin\!\left(x + \frac{\pi}{4}\right). \]
  2. Step 2: Substitute into the integral: The integral becomes \[ I = \int_0^{\pi/3} \frac{1}{\sqrt{2}\,\sin\!\left(x + \frac{\pi}{4}\right)} \, dx = \frac{1}{\sqrt{2}} \int_0^{\pi/3} \csc\!\left(x + \frac{\pi}{4}\right) \, dx. \]
  3. Step 3: Apply the standard cosecant integral: Using \[ \int \csc\,u \, du = \log\left|\tan\frac{u}{2}\right| + C, \] with \( u = x + \frac{\pi}{4} \) and \( du = dx \), we get \[ I = \frac{1}{\sqrt{2}}\left[\log\left|\tan\frac{x + \frac{\pi}{4}}{2}\right|\right]_0^{\pi/3}. \]
  4. Step 4: Evaluate the upper limit: At \( x = \frac{\pi}{3} \): the argument is \( \frac{\frac{\pi}{3} + \frac{\pi}{4}}{2} = \frac{\frac{7\pi}{12}}{2} = \frac{7\pi}{24} \). So the upper-limit term is \( \log\left|\tan\frac{7\pi}{24}\right| \).
  5. Step 5: Evaluate the lower limit: At \( x = 0 \): the argument is \( \frac{0 + \frac{\pi}{4}}{2} = \frac{\pi}{8} \). So the lower-limit term is \( \log\left|\tan\frac{\pi}{8}\right| \). Now \( \tan\frac{\pi}{8} = \sqrt{2} - 1 \).
  6. Step 6: Simplify using log properties: We have \[ I = \frac{1}{\sqrt{2}}\left(\log\tan\frac{7\pi}{24} - \log(\sqrt{2}-1)\right) = \frac{1}{\sqrt{2}}\log\frac{\tan\frac{7\pi}{24}}{\sqrt{2}-1}. \] Note that \( \tan\frac{7\pi}{24} = \tan 52.5^\circ = \sqrt{2}+\sqrt{3}+\sqrt{6}-1 \) can also be left as \( \tan\frac{7\pi}{24} \), but we simplify using the identity \( \frac{1}{\sqrt{2}-1} = \sqrt{2}+1 \). Therefore \[ I = \frac{1}{\sqrt{2}}\log\left[(\sqrt{2}+1)\tan\frac{7\pi}{24}\right]. \]
  7. Step 7: Write the final clean form: The answer is expressed most cleanly as \[ I = \frac{1}{\sqrt{2}}\left[\log\tan\frac{7\pi}{24} - \log\tan\frac{\pi}{8}\right]. \] Since \( \tan\frac{\pi}{8} = \sqrt{2}-1 \), this equals \[ I = \frac{1}{\sqrt{2}}\log\left(\frac{\tan\frac{7\pi}{24}}{\sqrt{2}-1}\right). \]

Answer: \[ \int_0^{\pi/3} \frac{1}{\sin x + \cos x} \, dx = \frac{1}{\sqrt{2}}\left[\log\tan\frac{7\pi}{24} - \log(\sqrt{2}-1)\right] = \frac{1}{\sqrt{2}}\log\frac{\tan\frac{7\pi}{24}}{\sqrt{2}-1}. \]

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)