SOLVER7 Study. Nothing Else.
2026 Board Paper Q28(b)

Evaluate: \(\int^{\small\dfrac{\pi}{2}}_{\small\dfrac{-\pi}{6}}\ (sin|x|+\ cos\ |x|)dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine a number line like a road. When you walk to the right, the distance you travel is just how far you go. When you walk to the left, the distance is still positive — you never say you walked a negative distance! Here, the tricky part is that the road crosses zero, so we split it into two pieces: one piece on the left side and one on the right. Each piece behaves simply. We add the two results together at the end to get the full answer.

Answer: \[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]

📖 Definite Integral with Modulus (Absolute Value)

Detailed Explanation

The integrand contains \( |x| \), which behaves differently for negative and positive values of \( x \). By definition \( |x| = -x \) when \( x < 0 \) and \( |x| = x \) when \( x \ge 0 \). The limits of integration are from \( -\dfrac{\pi}{6} \) to \( \dfrac{\pi}{2} \), so \( x \) crosses \( 0 \) inside this interval. To handle this, we use the additivity property of definite integrals: we split the integral at \( x = 0 \) into a part over \( \left[-\dfrac{\pi}{6}, 0\right] \) where \( |x| = -x \), and a part over \( \left[0, \dfrac{\pi}{2}\right] \) where \( |x| = x \). We then simplify each integrand and integrate normally.

Formula Used

\[ |x| = \begin{cases} -x & x < 0 \\ x & x \ge 0 \end{cases} \] \[ \int_a^b f(x)\, dx = \int_a^c f(x)\, dx + \int_c^b f(x)\, dx \] Also \( \sin(-x) = -\sin x \) and \( \cos(-x) = \cos x \).

Solution

  1. Step 1: Since \( |x| \) changes definition at \( x = 0 \), and \( 0 \) lies between the limits \( -\dfrac{\pi}{6} \) and \( \dfrac{\pi}{2} \), split the integral at \( 0 \): \[ I = \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \int_{-\pi/6}^{0} \left( \sin|x| + \cos|x| \right) dx + \int_{0}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx \]
  2. Step 2: For \( -\dfrac{\pi}{6} \le x < 0 \), we have \( |x| = -x \). Using \( \sin(-x) = -\sin x \) and \( \cos(-x) = \cos x \): \[ \sin|x| + \cos|x| = \sin(-x) + \cos(-x) = -\sin x + \cos x \] For \( 0 \le x \le \dfrac{\pi}{2} \), we have \( |x| = x \): \[ \sin|x| + \cos|x| = \sin x + \cos x \]
  3. Step 3: Rewrite the integral with the simplified integrands: \[ I = \int_{-\pi/6}^{0} \left( -\sin x + \cos x \right) dx + \int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx \]
  4. Step 4: Evaluate the first integral. Using \( \int (-\sin x + \cos x)\, dx = \cos x + \sin x \): \[ \int_{-\pi/6}^{0} \left( -\sin x + \cos x \right) dx = \left[ \cos x + \sin x \right]_{-\pi/6}^{0} \] At \( x = 0 \): \( \cos 0 + \sin 0 = 1 + 0 = 1 \). At \( x = -\dfrac{\pi}{6} \): \( \cos\left(-\dfrac{\pi}{6}\right) + \sin\left(-\dfrac{\pi}{6}\right) = \dfrac{\sqrt{3}}{2} - \dfrac{1}{2} \). \[ = 1 - \left( \frac{\sqrt{3}}{2} - \frac{1}{2} \right) = 1 - \frac{\sqrt{3}}{2} + \frac{1}{2} = \frac{3}{2} - \frac{\sqrt{3}}{2} \]
  5. Step 5: Evaluate the second integral. Using \( \int (\sin x + \cos x)\, dx = -\cos x + \sin x \): \[ \int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx = \left[ -\cos x + \sin x \right]_{0}^{\pi/2} \] At \( x = \dfrac{\pi}{2} \): \( -\cos\dfrac{\pi}{2} + \sin\dfrac{\pi}{2} = 0 + 1 = 1 \). At \( x = 0 \): \( -\cos 0 + \sin 0 = -1 + 0 = -1 \). \[ = 1 - (-1) = 2 \]
  6. Step 6: Add both parts to get the final value: \[ I = \left( \frac{3}{2} - \frac{\sqrt{3}}{2} \right) + 2 = \frac{7}{2} - \frac{\sqrt{3}}{2} \]

Final Answer

\[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]

Common Mistake

A common mistake is to ignore the modulus and integrate \( \sin x + \cos x \) directly over the whole interval. This is wrong because for negative \( x \), \( \sin|x| = -\sin x \), not \( \sin x \). You must split the integral at \( x = 0 \) and replace \( |x| \) with \( -x \) on the negative part.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the split point: The integrand is \( \sin|x| + \cos|x| \) and the limits run from \( -\dfrac{\pi}{6} \) to \( \dfrac{\pi}{2} \). The expression \( |x| \) changes its rule at \( x = 0 \), and since \( 0 \) lies strictly between \( -\dfrac{\pi}{6} \) and \( \dfrac{\pi}{2} \), we must split the integral there. — Reason: A single formula for \( |x| \) cannot be used across the whole interval, so we break the problem into two sub-intervals where \( |x| \) has a single, simple definition.
  2. Step 2: Split the integral: Using the additivity property with \( c = 0 \): \[I = \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \int_{-\pi/6}^{0} \left( \sin|x| + \cos|x| \right) dx + \int_{0}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx\] — Reason: This rewrites one difficult integral as two easier ones, each on an interval where \( |x| \) reduces to a plain expression.
  3. Step 3: Simplify the first sub-integral: On \( \left[-\dfrac{\pi}{6},\, 0\right) \), we have \( x \le 0 \), so \( |x| = -x \). Applying \( \sin(-x) = -\sin x \) and \( \cos(-x) = \cos x \): \[\sin|x| + \cos|x| = \sin(-x) + \cos(-x) = -\sin x + \cos x\] So the first integral becomes \[\int_{-\pi/6}^{0} \left( -\sin x + \cos x \right) dx\] — Reason: Replacing \( |x| \) with \( -x \) and using trig identities gives a standard integrand with no absolute value.
  4. Step 4: Simplify the second sub-integral: On \( \left[0,\, \dfrac{\pi}{2}\right] \), we have \( x \ge 0 \), so \( |x| = x \). The second integral becomes \[\int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx\] — Reason: No transformation is needed here; the integrand is already in standard form.
  5. Step 5: Evaluate the first sub-integral: The antiderivative of \( -\sin x + \cos x \) is \( \cos x + \sin x \). Evaluating from \( -\dfrac{\pi}{6} \) to \( 0 \): \[\int_{-\pi/6}^{0} \left( -\sin x + \cos x \right) dx = \Big[\cos x + \sin x\Big]_{-\pi/6}^{0}\] At \( x = 0 \): \( \cos 0 + \sin 0 = 1 + 0 = 1 \). At \( x = -\dfrac{\pi}{6} \): \( \cos\!\left(-\dfrac{\pi}{6}\right) + \sin\!\left(-\dfrac{\pi}{6}\right) = \dfrac{\sqrt{3}}{2} - \dfrac{1}{2} \). So the first integral equals \[1 - \left(\frac{\sqrt{3}}{2} - \frac{1}{2}\right) = 1 - \frac{\sqrt{3}}{2} + \frac{1}{2} = \frac{3}{2} - \frac{\sqrt{3}}{2}\] — Reason: The Fundamental Theorem of Calculus lets us find the exact value by substituting the limits into the antiderivative.
  6. Step 6: Evaluate the second sub-integral: The antiderivative of \( \sin x + \cos x \) is \( -\cos x + \sin x \). Evaluating from \( 0 \) to \( \dfrac{\pi}{2} \): \[\int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx = \Big[-\cos x + \sin x\Big]_{0}^{\pi/2}\] At \( x = \dfrac{\pi}{2} \): \( -\cos\dfrac{\pi}{2} + \sin\dfrac{\pi}{2} = 0 + 1 = 1 \). At \( x = 0 \): \( -\cos 0 + \sin 0 = -1 + 0 = -1 \). So the second integral equals \[1 - (-1) = 2\] — Reason: Same application of the Fundamental Theorem of Calculus on the second piece.
  7. Step 7: Combine both results: Adding the two pieces together: \[I = \left(\frac{3}{2} - \frac{\sqrt{3}}{2}\right) + 2 = \frac{3}{2} + 2 - \frac{\sqrt{3}}{2} = \frac{3}{2} + \frac{4}{2} - \frac{\sqrt{3}}{2} = \frac{7}{2} - \frac{\sqrt{3}}{2}\] — Reason: The two sub-integrals cover the full original interval without overlap, so their sum gives the total integral.

Final Answer

\[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]

Common Mistake

One common mistake: Forgetting to split the integral at \( x = 0 \) and instead treating \( |x| \) as simply \( x \) throughout the entire interval — this ignores the fact that \( |x| = -x \) for negative \( x \), leading to an incorrect value.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Split at x = 0: \[I = \int_{-\pi/6}^{0} \left(\sin|x| + \cos|x|\right) dx + \int_{0}^{\pi/2} \left(\sin|x| + \cos|x|\right) dx\]
  2. Step 2: Remove absolute value in each part: For \( x \in \left[-\dfrac{\pi}{6}, 0\right] \), use \( |x| = -x \) so \( \sin|x| + \cos|x| = -\sin x + \cos x \). For \( x \in \left[0, \dfrac{\pi}{2}\right] \), use \( |x| = x \) so \( \sin|x| + \cos|x| = \sin x + \cos x \).
  3. Step 3: Integrate each part: \[I = \left[\cos x + \sin x\right]_{-\pi/6}^{0} + \left[-\cos x + \sin x\right]_{0}^{\pi/2}\] \[= \left[(1 + 0) - \left(\frac{\sqrt{3}}{2} - \frac{1}{2}\right)\right] + \left[(0 + 1) - (-1 + 0)\right]\] \[= \left(1 - \frac{\sqrt{3}}{2} + \frac{1}{2}\right) + 2 = \frac{7}{2} - \frac{\sqrt{3}}{2}\]

Answer: \[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]

➕ More Examples

More Examples

Example 1

Question: Evaluate: \[\int_{-\pi/4}^{\pi/3} (\sin|x| - \cos|x|)\,dx\]

Solution: We note that the integrand contains \(|x|\), so we split the integral at \(x = 0\), where the absolute value changes its rule. For \(x \in \left[-\dfrac{\pi}{4},\, 0\right)\), we have \(x < 0\), so \(|x| = -x\). For \(x \in \left[0,\, \dfrac{\pi}{3}\right]\), we have \(x \ge 0\), so \(|x| = x\). We split the integral as follows: \[I = \int_{-\pi/4}^{0} (\sin|x| - \cos|x|)\,dx + \int_{0}^{\pi/3} (\sin|x| - \cos|x|)\,dx\] Substituting \(|x| = -x\) on the first part: \[I_1 = \int_{-\pi/4}^{0} (\sin(-x) - \cos(-x))\,dx = \int_{-\pi/4}^{0} (-\sin x - \cos x)\,dx\] Substituting \(|x| = x\) on the second part: \[I_2 = \int_{0}^{\pi/3} (\sin x - \cos x)\,dx\] Evaluating \(I_1\): \[I_1 = \left[\cos x - \sin x\right]_{-\pi/4}^{0}\] \[I_1 = (\cos 0 - \sin 0) - \left(\cos\left(-\frac{\pi}{4}\right) - \sin\left(-\frac{\pi}{4}\right)\right)\] \[I_1 = (1 - 0) - \left(\frac{1}{\sqrt{2}} + \frac{1}{\sqrt{2}}\right)\] \[I_1 = 1 - \frac{2}{\sqrt{2}} = 1 - \sqrt{2}\] Evaluating \(I_2\): \[I_2 = \left[-\cos x - \sin x\right]_{0}^{\pi/3}\] \[I_2 = \left(-\cos\frac{\pi}{3} - \sin\frac{\pi}{3}\right) - (-\cos 0 - \sin 0)\] \[I_2 = \left(-\frac{1}{2} - \frac{\sqrt{3}}{2}\right) - (-1)\] \[I_2 = -\frac{1}{2} - \frac{\sqrt{3}}{2} + 1 = \frac{1}{2} - \frac{\sqrt{3}}{2}\] Adding both parts: \[I = I_1 + I_2 = \left(1 - \sqrt{2}\right) + \left(\frac{1}{2} - \frac{\sqrt{3}}{2}\right)\] \[I = \frac{3}{2} - \sqrt{2} - \frac{\sqrt{3}}{2}\]

Answer: \(\dfrac{3}{2} - \sqrt{2} - \dfrac{\sqrt{3}}{2}\)

Example 2

Question: Evaluate: \[\int_{-\pi/3}^{\pi/2} (\cos|x| + \sin|x|)\,dx\]

Solution: The integrand involves \(|x|\), so we split the integral at \(x = 0\). For \(x \in \left[-\dfrac{\pi}{3},\, 0\right)\), we have \(|x| = -x\). For \(x \in \left[0,\, \dfrac{\pi}{2}\right]\), we have \(|x| = x\). We write: \[I = \int_{-\pi/3}^{0} (\cos(-x) + \sin(-x))\,dx + \int_{0}^{\pi/2} (\cos x + \sin x)\,dx\] Using \(\cos(-x) = \cos x\) and \(\sin(-x) = -\sin x\): \[I_1 = \int_{-\pi/3}^{0} (\cos x - \sin x)\,dx\] \[I_2 = \int_{0}^{\pi/2} (\cos x + \sin x)\,dx\] Evaluating \(I_1\): \[I_1 = \left[\sin x + \cos x\right]_{-\pi/3}^{0}\] \[I_1 = (\sin 0 + \cos 0) - \left(\sin\left(-\frac{\pi}{3}\right) + \cos\left(-\frac{\pi}{3}\right)\right)\] \[I_1 = (0 + 1) - \left(-\frac{\sqrt{3}}{2} + \frac{1}{2}\right)\] \[I_1 = 1 + \frac{\sqrt{3}}{2} - \frac{1}{2} = \frac{1}{2} + \frac{\sqrt{3}}{2}\] Evaluating \(I_2\): \[I_2 = \left[\sin x - \cos x\right]_{0}^{\pi/2}\] \[I_2 = (\sin\frac{\pi}{2} - \cos\frac{\pi}{2}) - (\sin 0 - \cos 0)\] \[I_2 = (1 - 0) - (0 - 1) = 1 + 1 = 2\] Adding both parts: \[I = I_1 + I_2 = \frac{1}{2} + \frac{\sqrt{3}}{2} + 2\] \[I = \frac{5}{2} + \frac{\sqrt{3}}{2}\]

Answer: \(\dfrac{5}{2} + \dfrac{\sqrt{3}}{2}\)

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate: \[ \int_{-\pi/3}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx \]

Solution

  1. Step 1: Identify where to split: Since the integrand involves \( |x| \), we note that \( |x| \) changes its definition at \( x = 0 \). The lower limit is \( -\dfrac{\pi}{3} \) and the upper limit is \( \dfrac{\pi}{2} \), so we split the integral at \( x = 0 \).
  2. Step 2: Split the integral: \[ I = \int_{-\pi/3}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \int_{-\pi/3}^{0} \left( \sin|x| + \cos|x| \right) dx + \int_{0}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx \]
  3. Step 3: Replace |x| in each piece: For \( x \in \left[-\dfrac{\pi}{3},\, 0\right] \), we have \( x \le 0 \), so \( |x| = -x \). For \( x \in \left[0,\, \dfrac{\pi}{2}\right] \), we have \( x \ge 0 \), so \( |x| = x \). Therefore: \[ I = \int_{-\pi/3}^{0} \left( \sin(-x) + \cos(-x) \right) dx + \int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx \] Using \( \sin(-x) = -\sin x \) and \( \cos(-x) = \cos x \): \[ I = \int_{-\pi/3}^{0} \left( -\sin x + \cos x \right) dx + \int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx \]
  4. Step 4: Evaluate the first integral: Let \( I_1 = \int_{-\pi/3}^{0} \left( -\sin x + \cos x \right) dx \). Integrating: \[ I_1 = \Big[ \cos x + \sin x \Big]_{-\pi/3}^{0} \] Substituting the limits: \[ I_1 = \left( \cos 0 + \sin 0 \right) - \left( \cos\left(-\frac{\pi}{3}\right) + \sin\left(-\frac{\pi}{3}\right) \right) \] \[ I_1 = \left(1 + 0\right) - \left( \frac{1}{2} - \frac{\sqrt{3}}{2} \right) = 1 - \frac{1}{2} + \frac{\sqrt{3}}{2} = \frac{1}{2} + \frac{\sqrt{3}}{2} \]
  5. Step 5: Evaluate the second integral: Let \( I_2 = \int_{0}^{\pi/2} \left( \sin x + \cos x \right) dx \). Integrating: \[ I_2 = \Big[ -\cos x + \sin x \Big]_{0}^{\pi/2} \] Substituting the limits: \[ I_2 = \left( -\cos\frac{\pi}{2} + \sin\frac{\pi}{2} \right) - \left( -\cos 0 + \sin 0 \right) \] \[ I_2 = \left( 0 + 1 \right) - \left( -1 + 0 \right) = 1 + 1 = 2 \]
  6. Step 6: Add the two results: \[ I = I_1 + I_2 = \left( \frac{1}{2} + \frac{\sqrt{3}}{2} \right) + 2 = \frac{5}{2} + \frac{\sqrt{3}}{2} \]

Answer: \[ \int_{-\pi/3}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{5}{2} + \frac{\sqrt{3}}{2} \]

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)