Evaluate \(\int^{\small\dfrac{3}{2}}_{-1}\left|x\ sin\ (\pi\ x)\right|dx\)
CBSE Class 12 Maths · Integrals
CBSE Class 12 Maths · Integrals
Imagine a road that goes uphill and downhill. The absolute value symbol is like always measuring the height as positive, even on the downhill parts. For this problem, the function \( x\sin(\pi x) \) changes from positive to negative at certain points on the interval. We find those sign-change points, then handle each section separately. Each section is calculated carefully, and all the pieces are added together to get the final total area.
Answer: \[ \int_{-1}^{3/2} \left| x\sin(\pi x) \right| dx = \frac{3}{\pi} + \frac{1}{\pi^{2}} \]
When we integrate a function containing an absolute value like \( |f(x)| \), we cannot integrate it directly because \( |f(x)| \) behaves differently where \( f(x) \ge 0 \) and where \( f(x) < 0 \). The correct method is to first find the points inside the interval where \( f(x) = 0 \) (the sign-change points), split the integral at these points, and on each sub-interval replace \( |f(x)| \) by either \( f(x) \) or \( -f(x) \) depending on the sign there. Here \( f(x) = x\sin(\pi x) \). We must study the sign of \( x \) and of \( \sin(\pi x) \) on \( [-1, \tfrac{3}{2}] \). Since \( \sin(\pi x) = 0 \) at every integer, the natural break points are \( x = -1, 0, 1 \). After splitting, each piece is integrated using integration by parts, since the integrand is a product of an algebraic and a trigonometric function.
\[ \int u\,v\,dx = u\int v\,dx - \int\left(\frac{du}{dx}\int v\,dx\right)dx \] with \[ \int x\sin(\pi x)\,dx = -\frac{x\cos(\pi x)}{\pi} + \frac{\sin(\pi x)}{\pi^{2}} + C \]
\[ \int_{-1}^{3/2} \left| x\sin(\pi x) \right| dx = \frac{3}{\pi} + \frac{1}{\pi^{2}} \]
A very common error is to ignore the absolute value and integrate \( x\sin(\pi x) \) directly over the whole interval \( [-1, \tfrac{3}{2}] \). This is wrong because \( x\sin(\pi x) \) becomes negative on \( (1, \tfrac{3}{2}) \); the modulus must flip its sign there, so that piece must be subtracted (i.e. added as its positive value), not integrated with its natural negative sign.
\[ \int_{-1}^{3/2} \left| x\sin(\pi x) \right| dx = \frac{3}{\pi} + \frac{1}{\pi^{2}} \]
One common mistake: forgetting to negate the integrand on the sub-interval where \( x\sin(\pi x) < 0 \) (here, \( (1,\,\tfrac{3}{2}) \)), which causes that piece to subtract from the total instead of adding to it, giving a wrong final answer.
Answer: \[ \int_{-1}^{3/2} \left| x\sin(\pi x) \right| dx = \frac{3}{\pi} + \frac{1}{\pi^{2}} \]
Question: Evaluate \[ \int_{-1}^{2} \left| x \cos(\pi x) \right| dx \]
Solution: Step 1: Find sign changes of \( x \cos(\pi x) \) on \([-1, 2]\). \nThe factor \( \cos(\pi x) = 0 \) when \( \pi x = \frac{\pi}{2} + n\pi \), i.e., \( x = \frac{1}{2} + n \) for integer \( n \). In \([-1, 2]\), the zeros are at \( x = -\frac{1}{2},\\, \frac{1}{2},\\, \frac{3}{2} \). \nAlso \( x = 0 \) makes the factor \( x \) zero. \nSo the sign-change points within \([-1, 2]\) are \( x = -\frac{1}{2},\\, 0,\\, \frac{1}{2},\\, \frac{3}{2} \). \nStep 2: Determine the sign of \( x \cos(\pi x) \) in each sub-interval. \nOn \( \left(-1, -\frac{1}{2}\right) \): take \( x = -0.75 \). Then \( x < 0 \) and \( \cos(-0.75\pi) = \cos(135^{\circ}) < 0 \), so product \( > 0 \). \nOn \( \left(-\frac{1}{2}, 0\right) \): take \( x = -0.25 \). Then \( x < 0 \) and \( \cos(-0.25\pi) > 0 \), so product \( < 0 \). \nOn \( \left(0, \frac{1}{2}\right) \): take \( x = 0.25 \). Then \( x > 0 \) and \( \cos(0.25\pi) > 0 \), so product \( > 0 \). \nOn \( \left(\frac{1}{2}, \frac{3}{2}\right) \): take \( x = 1 \). Then \( x > 0 \) and \( \cos(\pi) = -1 < 0 \), so product \( < 0 \). \nOn \( \left(\frac{3}{2}, 2\right) \): take \( x = 1.75 \). Then \( x > 0 \) and \( \cos(1.75\pi) > 0 \), so product \( > 0 \). \nStep 3: Write the integral with absolute value removed. \[ I = \int_{-1}^{-1/2} x\cos(\pi x)\\,dx - \int_{-1/2}^{0} x\cos(\pi x)\\,dx + \int_{0}^{1/2} x\cos(\pi x)\\,dx - \int_{1/2}^{3/2} x\cos(\pi x)\\,dx + \int_{3/2}^{2} x\cos(\pi x)\\,dx \] \nStep 4: Compute the antiderivative of \( x\cos(\pi x) \) using integration by parts. \nLet \( u = x \), \( dv = \cos(\pi x)\\,dx \). Then \( du = dx \) and \( v = \frac{\sin(\pi x)}{\pi} \). \[ \int x\cos(\pi x)\\,dx = \frac{x\sin(\pi x)}{\pi} - \int \frac{\sin(\pi x)}{\pi}\\,dx = \frac{x\sin(\pi x)}{\pi} + \frac{\cos(\pi x)}{\pi^2} + C \] \nDefine \( F(x) = \frac{x\sin(\pi x)}{\pi} + \frac{\cos(\pi x)}{\pi^2} \). \nStep 5: Evaluate \( F \) at the key points. \( F(-1) = \frac{(-1)\sin(-\pi)}{\pi} + \frac{\cos(-\pi)}{\pi^2} = 0 + \frac{-1}{\pi^2} = -\frac{1}{\pi^2} \) \( F\\!\left(-\tfrac{1}{2}\right) = \frac{(-\frac{1}{2})\sin(-\frac{\pi}{2})}{\pi} + \frac{\cos(-\frac{\pi}{2})}{\pi^2} = \frac{(-\frac{1}{2})(-1)}{\pi} + 0 = \frac{1}{2\pi} \) \( F(0) = 0 + \frac{1}{\pi^2} = \frac{1}{\pi^2} \) \( F\\!\left(\tfrac{1}{2}\right) = \frac{\frac{1}{2}\sin(\frac{\pi}{2})}{\pi} + \frac{\cos(\frac{\pi}{2})}{\pi^2} = \frac{1}{2\pi} + 0 = \frac{1}{2\pi} \) \( F\\!\left(\tfrac{3}{2}\right) = \frac{\frac{3}{2}\sin(\frac{3\pi}{2})}{\pi} + \frac{\cos(\frac{3\pi}{2})}{\pi^2} = \frac{\frac{3}{2}(-1)}{\pi} + 0 = -\frac{3}{2\pi} \) \( F(2) = \frac{2\sin(2\pi)}{\pi} + \frac{\cos(2\pi)}{\pi^2} = 0 + \frac{1}{\pi^2} = \frac{1}{\pi^2} \) \nStep 6: Evaluate each piece. \nPiece 1: \( F\\!\left(-\tfrac{1}{2}\right) - F(-1) = \frac{1}{2\pi} - \left(-\frac{1}{\pi^2}\right) = \frac{1}{2\pi} + \frac{1}{\pi^2} \) \nPiece 2 (subtracted): \( -\left[F(0) - F\\!\left(-\tfrac{1}{2}\right)\right] = -\left[\frac{1}{\pi^2} - \frac{1}{2\pi}\right] = -\frac{1}{\pi^2} + \frac{1}{2\pi} \) \nPiece 3: \( F\\!\left(\tfrac{1}{2}\right) - F(0) = \frac{1}{2\pi} - \frac{1}{\pi^2} \) \nPiece 4 (subtracted): \( -\left[F\\!\left(\tfrac{3}{2}\right) - F\\!\left(\tfrac{1}{2}\right)\right] = -\left[-\frac{3}{2\pi} - \frac{1}{2\pi}\right] = -(-\frac{2}{\pi}) = \frac{2}{\pi} \) \nPiece 5: \( F(2) - F\\!\left(\tfrac{3}{2}\right) = \frac{1}{\pi^2} - \left(-\frac{3}{2\pi}\right) = \frac{1}{\pi^2} + \frac{3}{2\pi} \) \nStep 7: Add all pieces. \[ I = \left(\frac{1}{2\pi} + \frac{1}{\pi^2}\right) + \left(\frac{1}{2\pi} - \frac{1}{\pi^2}\right) + \left(\frac{1}{2\pi} - \frac{1}{\pi^2}\right) + \frac{2}{\pi} + \left(\frac{3}{2\pi} + \frac{1}{\pi^2}\right) \] \nCollecting \( \frac{1}{\pi} \) terms: \( \frac{1}{2} + \frac{1}{2} + \frac{1}{2} + 2 + \frac{3}{2} = \frac{1}{2}+\frac{1}{2}+\frac{1}{2}+2+\frac{3}{2} = 5 \), so coefficient of \( \frac{1}{\pi} \) is \( \frac{5}{\pi} \). \nCollecting \( \frac{1}{\pi^2} \) terms: \( 1 - 1 - 1 + 0 + 1 = 0 \). \nTherefore: \[ I = \frac{5}{\pi} \]
Answer: \( \dfrac{5}{\pi} \)
Question: Evaluate \[ \int_{-1/2}^{3/2} \left| x \sin(2\pi x) \right| dx \]
Solution: Step 1: Find where \( x\sin(2\pi x) = 0 \) on \(\left[-\frac{1}{2}, \frac{3}{2}\right]\). \( \sin(2\pi x) = 0 \) when \( 2\pi x = n\pi \), i.e., \( x = 0, \frac{1}{2}, 1, \frac{3}{2} \). Also \( x = 0 \) from the factor \( x \). \nSign-change points: \( x = 0,\\, \frac{1}{2},\\, 1 \) (within the open interval; \( \frac{3}{2} \) is the endpoint). \nStep 2: Determine the sign of \( x\sin(2\pi x) \) in each sub-interval. \nOn \( \left(-\frac{1}{2}, 0\right) \): take \( x = -0.25 \). Then \( x < 0 \) and \( \sin(-\pi) \) — actually at \( x = -0.25 \), \( \sin(2\pi \cdot (-0.25)) = \sin(-\pi/2) = -1 < 0 \). Product \( = (-)(-)>0 \). \nOn \( \left(0, \frac{1}{2}\right) \): take \( x = 0.25 \). Then \( x > 0 \) and \( \sin(\pi/2) = 1 > 0 \). Product \( > 0 \). \nOn \( \left(\frac{1}{2}, 1\right) \): take \( x = 0.75 \). Then \( x > 0 \) and \( \sin(1.5\pi) = -1 < 0 \). Product \( < 0 \). \nOn \( \left(1, \frac{3}{2}\right) \): take \( x = 1.25 \). Then \( x > 0 \) and \( \sin(2.5\pi) = 1 > 0 \). Product \( > 0 \). \nStep 3: Write the integral with sign. \[ I = \int_{-1/2}^{0} x\sin(2\pi x)\\,dx + \int_{0}^{1/2} x\sin(2\pi x)\\,dx - \int_{1/2}^{1} x\sin(2\pi x)\\,dx + \int_{1}^{3/2} x\sin(2\pi x)\\,dx \] \nStep 4: Find the antiderivative of \( x\sin(2\pi x) \) by integration by parts. \nLet \( u = x \), \( dv = \sin(2\pi x)\\,dx \). Then \( du = dx \) and \( v = -\frac{\cos(2\pi x)}{2\pi} \). \[ \int x\sin(2\pi x)\\,dx = -\frac{x\cos(2\pi x)}{2\pi} + \int \frac{\cos(2\pi x)}{2\pi}\\,dx = -\frac{x\cos(2\pi x)}{2\pi} + \frac{\sin(2\pi x)}{4\pi^2} + C \] \nDefine \( G(x) = -\frac{x\cos(2\pi x)}{2\pi} + \frac{\sin(2\pi x)}{4\pi^2} \). \nStep 5: Evaluate \( G \) at key points. \( G\\!\left(-\tfrac{1}{2}\right) = -\frac{(-\frac{1}{2})\cos(-\pi)}{2\pi} + \frac{\sin(-\pi)}{4\pi^2} = -\frac{(-\frac{1}{2})(-1)}{2\pi} + 0 = -\frac{1}{4\pi} \) \( G(0) = 0 + 0 = 0 \) \( G\\!\left(\tfrac{1}{2}\right) = -\frac{\frac{1}{2}\cos(\pi)}{2\pi} + \frac{\sin(\pi)}{4\pi^2} = -\frac{\frac{1}{2}(-1)}{2\pi} + 0 = \frac{1}{4\pi} \) \( G(1) = -\frac{1 \cdot \cos(2\pi)}{2\pi} + \frac{\sin(2\pi)}{4\pi^2} = -\frac{1}{2\pi} + 0 = -\frac{1}{2\pi} \) \( G\\!\left(\tfrac{3}{2}\right) = -\frac{\frac{3}{2}\cos(3\pi)}{2\pi} + \frac{\sin(3\pi)}{4\pi^2} = -\frac{\frac{3}{2}(-1)}{2\pi} + 0 = \frac{3}{4\pi} \) \nStep 6: Evaluate each integral. \nPiece 1: \( G(0) - G\\!\left(-\tfrac{1}{2}\right) = 0 - \left(-\frac{1}{4\pi}\right) = \frac{1}{4\pi} \) \nPiece 2: \( G\\!\left(\tfrac{1}{2}\right) - G(0) = \frac{1}{4\pi} - 0 = \frac{1}{4\pi} \) \nPiece 3 (subtracted): \( -\left[G(1) - G\\!\left(\tfrac{1}{2}\right)\right] = -\left[-\frac{1}{2\pi} - \frac{1}{4\pi}\right] = -\left(-\frac{3}{4\pi}\right) = \frac{3}{4\pi} \) \nPiece 4: \( G\\!\left(\tfrac{3}{2}\right) - G(1) = \frac{3}{4\pi} - \left(-\frac{1}{2\pi}\right) = \frac{3}{4\pi} + \frac{2}{4\pi} = \frac{5}{4\pi} \) \nStep 7: Sum all pieces. \[ I = \frac{1}{4\pi} + \frac{1}{4\pi} + \frac{3}{4\pi} + \frac{5}{4\pi} = \frac{10}{4\pi} = \frac{5}{2\pi} \]
Answer: \( \dfrac{5}{2\pi} \)
Question: Evaluate \[ \int_{-1/2}^{2} \left| x \cos(\pi x) \right| \, dx \]
Answer: \[ \int_{-1/2}^{2} \left| x\cos(\pi x) \right| \, dx = \frac{9}{2\pi} - \frac{1}{\pi^2} \]