What is the general solution to the following: \( \int 2 x \sin (x) d x \) ?
Real Tutor Solution
Answer
Solution
Reviewed and approved by the UpStudy tutoring team
The Deep Dive
To solve the integral \( \int 2 x \sin (x) d x \), we can use integration by parts. Here, we can let \( u = 2x \) and \( dv = \sin(x) dx \). Then, differentiating \( u \) gives us \( du = 2 dx \), and integrating \( dv \) gives us \( v = -\cos(x) \). Applying the integration by parts formula \( \int u \, dv = uv - \int v \, du \), we get: \[ \int 2x \sin(x) dx = -2x \cos(x) - \int -\cos(x) (2 dx) = -2x \cos(x) + 2 \int \cos(x) dx \] The integral of \( \cos(x) \) is \( \sin(x) \), leading us to: \[ \int 2x \sin(x) dx = -2x \cos(x) + 2 \sin(x) + C \] where \( C \) is the constant of integration. Thus, the general solution is: \[ \int 2 x \sin (x) d x = -2x \cos(x) + 2 \sin(x) + C \]