Evaluate: \(\int^{\small\dfrac{\pi}{2}}_{\small\dfrac{-\pi}{6}}\ (sin|x|+\ cos\ |x|)dx\)
CBSE Class 12 Maths · Integrals
CBSE Class 12 Maths · Integrals
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} \]
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.
\[ |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 \).
\[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]
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.
\[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]
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.
Answer: \[ \int_{-\pi/6}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{7}{2} - \frac{\sqrt{3}}{2} \]
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}\)
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}\)
Question: Evaluate: \[ \int_{-\pi/3}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx \]
Answer: \[ \int_{-\pi/3}^{\pi/2} \left( \sin|x| + \cos|x| \right) dx = \frac{5}{2} + \frac{\sqrt{3}}{2} \]