Question
Question: Evaluate the following integral \(\begin{aligned} & \int{\dfrac{{{x}^{2}}dx}{{{\left( x\sin x+...
Evaluate the following integral
∫(xsinx+cosx)2x2dx[a] xsinx+cosxsinx+cosx[b] xsinx+cosxxsinx−cosx[c] xsinx+cosxsinx−cosx[d] None of these
Solution
Hint: Observe that dxd(xsinx+cosx)=xcosx+sinx−sinx=xcosx.So we want to convert our integral such that it has xcosxdx in the numerator. Since we know that sin2x+cos2x=1, we have x2=xsinx(xsinx+cosx)+xcosx(−sinx+xcosx)
Hence prove that the given integral is equal to ∫(xsinx+cosx)2xsinx(xsinx+cosx)dx−∫(xsinx+cosx)2xcosx(xcosx−sinx)dx. In the second integral use integration by parts taking (xsinx+cosx)2xcosx as first function(Observe that this is done since the derivative of xsinx+cosx is equal to the numerator) and (xcosx−sinx) as second function. Observe that the latter integral is produced on integration by parts in the negative of the first integral and hence they cancel each other. Hence find the value of the given integral. Verify your answer.
Complete step by step solution:
Let I=∫(xsinx+cosx)2x2dx
Now, consider the expression E=xsinx(xsinx+cosx)+xcosx(xcosx−sinx)
Expanding the terms, we get
E=x2sin2x+xsinxcosx+x2cos2x−xsinxcosx=x2(sin2x+cos2x)
we know that sin2x+cos2x=1
Hence, we have
E=x2
Replacing x2 of the integral I by E, we get
I=∫(xsinx+cosx)2xsinx(xsinx+cosx)+xcosx(xcosx−sinx)dx
We know that ca+b=ca+cb
Hence, we have
I=∫((xsinx+cosx)2xsinx(xsinx+cosx)+(xsinx+cosx)2xcosx(xcosx−sinx))dx
Simplifying, we get
I=∫(xsinx+cosxxsinx+(xsinx+cosx)2xcosx(xcosx−sinx))dx
Using linearity of integration, i.e. ∫(f+g)dx=∫fdx+∫gdx, we get
I=∫(xsinx+cosx)2xsinx(xsinx+cosx)dx+∫(xsinx+cosx)2xcosx(xcosx−sinx)dx=∫xsinx+cosxxsinxdx+∫(xsinx+cosx)2xcosx(xcosx−sinx)dx
We know that if dxdg(x)=v(x) and ∫f(x)dx=u(x), then ∫f(x)g(x)dx=g(x)u(x)−∫v(x)u(x)dx. This is known as integration by parts rule. f(x) is known as the second function, and g(x) is known as the first function.
Taking f(x)=(xsinx+cosx)2xcosx and g(x)=(xcosx−sinx), we have
u(x)=∫(xsinx+cosx)2xcosxdx
In the expression for u(x), put xsinx+cosx = t
Differentiating both sides, we get
dt = (xcosx+sinx-sinx)dx = xcosxdx
Hence, we have
u(x)=∫t2dt
We know that
∫xndx=n+1xn+1+C,n=−1
Hence, we have
u(x)=−2+1t−2+1=t−1
Reverting to original variable, we get
u(x)=−xsinx+cosx1
Also, we have
v(x)=dxd(xcosx−sinx)=−xsinx+cosx−cosx=−xsinx
Hence, by integration by parts rule, we have
I=∫(xcosx+sinx)2xsinxdx+u(x)g(x)−∫v(x)u(x)dx=∫(xcosx+sinx)2xsinxdx+(xcosx−sinx)(xsinx+cosx−1)−∫−(xcosx+sinx)−xsinxdx
Simplifying, we get
I=∫(xcosx+sinx)2xsinxdx−xsinx+cosxxcosx−sinx−∫(xcosx+sinx)2xsinxdx
The first and the last integrals are the same and hence cancel each other. Hence, we have
I=−xsinx+cosxxcosx−sinx+C, where C is the constant of integration.
Hence option [d] is correct as none of the options [a], [b] and [c] are correct.
Note: Verification:
We have
dxdI=−dxd(xsinx+cosxxcosx−sinx)
Using the fact that dxd(vu)=v2vdxdu−udxdv
Hene, we get
dxdI=−(xsinx+cosx)21((xsinx+cosx)(−xsinx)−(xcosx−sinx)(xcosx))
Simplifying, we get
dxdI=(xsinx+cosx)2−1(−x2sin2x−xsinxcosx−x2cos2x+xcosxsinx)
Hence, we have
dxdI=(xsinx+cosx)2x2(sin2x+cos2x)=(xsinx+cosx)2x2
Hence, our answer is verified to be correct.