17

The question:

Compute$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} $$

Tried integration by parts. That didn't work.

How do I proceed?

dajoker
  • 2,297
  • 14
  • 25
  • 1
    What makes you think that it has an anti-derivative? – Fly by Night Apr 19 '13 at 14:47
  • Well, it is there in the problem sheet that we are working at. (Btw, what makes you think it DOESN'T have an anti-derivative?) – Parth Thakkar Apr 19 '13 at 14:48
  • 1
    @ParthThakkar: Given a random function, it most likely does not have an anti-derivative in terms of elementary functions. of course, if you tell the source, one would not have had to ask you this question. – Aryabhata Apr 19 '13 at 15:01
  • Ok, got it! Now onwards, such things will be mentioned if required. – Parth Thakkar Apr 19 '13 at 15:03
  • @Vijay: Now I suspect there is a typo. Are you sure the denominator is not $(x \sin x + \cos x)^2$? (In which case lab's answer would be perfect). – Aryabhata Apr 19 '13 at 15:22
  • Yes, sorry for the error. Editing. (also scolding Vijay for this XD) – Parth Thakkar Apr 19 '13 at 15:27
  • @ParthThakkar, lol, I'm somewhat sure that i posted the right question – dajoker Apr 19 '13 at 15:35
  • @VijayRaghavan: my apologies if this caused an error, there is yet no mechanisms to lock things when people are working on them and when I was trying to review and fix the edits, things seemed to have gone astray. Regards – Amzoti Apr 19 '13 at 15:38
  • @Amzoti....... np – dajoker Apr 19 '13 at 15:38

4 Answers4

19

$$\text{Observe that, }\frac{d(x\sin x+\cos x)}{dx}=x\cos x$$

$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} =\int \frac x{\cos x}\cdot \frac{x\cos x}{(x\sin x+\cos x)^2}dx$$

So, if $z=x\sin x+\cos x, dz=x\cos xdx$

So, $\int \frac{x\cos x}{(x\sin x+\sin x)^2}dx=\int \frac{dz}{z^2}=-\frac1z=-\frac1{x\sin x+\cos x}$

So, $$I=\frac x{\cos x}\int \frac{x\cos x}{(x\sin x+\cos x)^2}dx-\int \left(\frac{d(\frac x{\cos x})}{dx}\int \frac{x\cos x}{(x\sin x+\cos x)^2}dx\right)dx$$

$$=-\frac x{\cos x(x\sin x+\cos x)}+\int \left(\frac{x\sin x+\cos x}{\cos^2x}\right)\left(\frac1{x\sin x+\cos x} \right)dx$$

$$=-\frac x{\cos x(x\sin x+\cos x)}+\int\sec^2xdx$$

$$=-\frac x{\cos x(x\sin x+\cos x)}+\tan x+C$$ where $C$ is an arbitrary constant of indefinite integral

$$\text{Another form will be } \frac{\sin x-x\cos x}{x\sin x+\cos x}+C$$

17

Differentiation of $$x\sin x+\cos x \space \text {is}\space x\cos x $$ \begin{align}\int\underbrace {\frac{x \cos x}{(x\sin x+\cos x)^2}}_{\text {II}}\cdot\underbrace {\frac {x}{(\cos x)}}_{\text {I}}{d}x\end{align} Now integrate by parts. $$I=\frac{-1}{(x\sin x+\cos x)}.\frac {x}{(\cos x)} +\int\frac{1}{(x\sin x+\cos x)}.\frac{\cos x.1 -x(-\sin x)}{\cos^2 x} $$ Now, I hope things are clear to you.

Aakash Kumar
  • 3,480
16

I was inspired by this post to conduct this method.

$$\int\frac{x^2}{(x\sin x+\cos x)^2}\mathrm{d}x $$

The Harmonic Addition Theorem comes in handy, so $x \sin x + \cos x = \sqrt{1+x^2} \cos(x-\alpha)$ where $\alpha = \arctan(x)$.

The origin integration becomes:

$$\int \frac{x^2}{1+x^2} \sec^2(x-\alpha) \mathrm{d}x $$

Notice that $\int \frac{x^2}{1+x^2} dx = x - \arctan x = x-\alpha $.

So let $t = x-\alpha$ then $dt = \frac{x^2}{1+x^2} dx$ and the integration simplifies as:

$$ \int \sec^2(t) dt = \tan(t) = \tan(x - \arctan x)$$.

In conclusion, $$\int\frac{x^2}{(x\sin x+\cos x)^2}\mathrm{d}x =\tan(x - \arctan x)+C$$

Zau
  • 3,909
  • 12
  • 29
2

$$\int\frac{x^2}{(x\sin x+\cos x)^2}\mathrm{d}x = \int (x\sec x)\frac{x \cos x}{(x\sin x+\cos x)^2}\mathrm{d}x$$ Take $xsecx$ as first functions and apply integreation by parts. there you go boom!!

Shub
  • 586
  • 2
  • 13
Pushkar Soni
  • 163
  • 8