Need help in solving this integral. Could it be solved by substitution?

57 Views Asked by At

The integral is $$\int{\frac{\cos(x) +x \sin(x)}{x(x + \cos(x))}}dx$$

2

There are 2 best solutions below

0
On

$$\frac{\cos x +x \sin x}{x(x + \cos x)}=\frac1x-\frac{1-\sin x}{x + \cos x},$$ so $$\int \frac{\cos x +x \sin x}{x(x + \cos x)} \,dx=\ln\left|\frac{x}{x + \cos x}\right|+C.$$

0
On

Write it as $$\int \left(\frac{1}{x}-\frac{1-\sin x}{x+\cos x}\right)\,dx$$ and get $$\log x -\log(x+\cos x)+C$$