Question
Question: What is the integration of \(\int{\dfrac{\cos x+x\sin x}{x\left( x+\cos x \right)}dx}\) ?...
What is the integration of ∫x(x+cosx)cosx+xsinxdx ?
Solution
Hint: Try to break the numerator into (x+cosx)−x(1−sinx) then break it. Apply integration separately and you’ll get the answer.
Complete step by step answer:
In the fraction x(x+cosx)cosx+xsinx we will consider numerator first which is cosx+xsinx which can be written as (x+cosx−x+xsinx) which can be further written as
(x+cosx−(x−xsinx))
⇒(x+cosx−x(1−sinx))
So, cosx+xsinx can be written as (x+cosx−x(1−sinx))
Hence instead of fraction x(x+cosx)cosx+xsinx as x(x+cosx)(x+cosx)−x(1−sinx)
Now, we will break it into two fractions which are
x(x+cosx)(x+cosx)−x(x+cosx)x(1−sinx)
Hence, can be written as
x1−x+cosx1−sinx
Now we will consider this x1−x+cosx1−sinx to integrate.
Hence,
∫x(x+cosx)cosx+xsinxdx=∫x1dx−∫x+cosx1−sinxdx
Now as we know that ∫x1dx=ln(x)+c1
So will write in next line and for x+cosx1−sinx we will take x+cosx=t
So, (1−sinx)dx=dt
Hence, in second line we write
=ln(x)+c1−∫tdt
So as we know ∫tdt is ln(t)+c2
So,
lnx+c1−∫tdt=lnx+c1−(ln(t)+c2)
=lnx−ln(t)+c1−c2
Hence, t was (x+cosx) so we will substitute right back and instead c1−c2 we can write simply c to represent constants.
=ln(x)−ln(x+cosx)+c
Which can be further written as
ln(x+cosxx)+c
Hence, the answer is ln(x+cosxx)+c.
Note: Students should be careful while breaking the fractions and operating on them simultaneously. Also careful about calculations related to them.