Question
Question: Find the value of \[\int {\dfrac{{\cos x + x\sin x}}{{x(x + \cos x)}}dx} \] A) \[\log \left| {\df...
Find the value of ∫x(x+cosx)cosx+xsinxdx
A) logx+cosxx+c
B) logxx+cosx+c
C) logx+cosx1+c
D) log∣x+cosx∣+c
Solution
We will rewrite the numerator of the integrand in such a way that there is a relation between the numerator and denominator. Then, we will separate the integrand and we will apply appropriate formulae of integration and find the value.
Formula used: ∫x1dx=log∣x∣+c, log∣a∣−log∣b∣=logba
Complete step by step solution:
We have to integrate ∫x(x+cosx)cosx+xsinxdx
Now we will try to make the numerator similar to the denominator.
Let us add and subtract x in the numerator. This gives us
∫x(x+cosx)cosx+xsinxdx=∫x(x+cosx)cosx+xsinx+x−xdx ……….(1)
Let us club xand cosx together. Also, we will club xsinx and −x together. Equation (1) becomes
∫x(x+cosx)cosx+xsinxdx=∫x(x+cosx)(x+cosx)+(xsinx−x)dx ……….(2)
Now, we will separate the terms in the integrand as follows:
∫x(x+cosx)cosx+xsinxdx=∫x(x+cosx)(x+cosx)dx+∫x(x+cosx)(xsinx−x)dx ……….(3)
Let us take I1=∫x(x+cosx)x+cosxdx and I2=∫x(x+cosx)xsinx−xdx
Now, in I1, the term x+cosx is common in both the numerator and the denominator. So, we will cancel it out. Hence,
I1=∫x1dx=log∣x∣+c, where c is a constant
In I2, the factor x is common in the numerator. We will take it out. So,
I2=∫x(x+cosx)x(sinx−1)dx
Both the numerator and denominator have x in common. So, we will cancel it out. This gives us
I2=∫x+cosxsinx−1dx
We will use a substitution method to solve I2. Let us take x+cosx=u. Differentiating uwith respect to x, we get
1−sinx=dxdu ⇒−(sinx−1)dx=du ⇒(sinx−1)dx=−du
Rewriting I2 in terms of u, we get
I2=∫u−du=−∫u1du
Therefore, we get I2 as
I2=−log∣u∣+c=−log∣x+cosx∣+c
Substituting the values of I1 and I2 in equation (3) we get
∫x(x+cosx)cosx+xsinxdx=log∣x∣−log∣x+cosx∣+c………..(4)
Using the property log∣a∣−log∣b∣=logba in equation (4), we finally get
∫x(x+cosx)cosx+xsinxdx=logx+cosxx+c
Therefore, the correct option is A.
Note:
Here, we can observe that the denominator of the integrand is x(x+cosx), which is a combination of algebraic and trigonometric functions. For such integrands, we will try to rewrite the numerator in such a way that there are similar terms in the numerator and the denominator. Integration is the inverse of differentiation and is used to find the summation of discrete data.