Question: > 
> Find the value of $\int \dfrac{x^2+1}{x^4+1}\mathrm dx$.
> 
> 
> 

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

How to integrate 2nd $$\int \frac{x^2(1-\frac{1}{x^2})}{x^2(x^2+\frac{1}{x^2})}\mathrm dx$$ equation? **Even, how they had found that $$\int \frac{x^2(1-\frac{1}{x^2})}{x^2(x^2+\frac{1}{x^2})}\mathrm dx =\int \frac{d(x+\frac{1}{x})}{(x+\frac{1}{x})^2-2}$$** Where $\mathrm dx$ had gone in second line? How $\mathrm d$ came left?

I am not doing integration by parts or, technics of integration. I am just doing some standard integrals. I found this kind of 3 problems. How can I solve that simple way?

---

Replying to my title : I have read somewhere that they had differentiate inside function? Why they had? What's the reason of differentiating that?

$$\int dx= x +c$$
So, if we differentiate the inside function then, it cancels with integration. So, is it wise to differentiate inside function? While I am differentiate inside function than, I have add another integral, but, that didn't happen here. So, how it is correct?

Answer: 
Hint :Use Partial Fration i.e. $${\int{\frac{x^{2} + 1}{x^{4} + 1} d x}} = {\int{\left(\frac{1}{2 \left(x^{2} + \sqrt{2} x + 1\right)} + \frac{1}{2 \left(x^{2} - \sqrt{2} x + 1\right)}\right)d x}}$$
d$\left( x+\frac 1 x\right)$ stands for $\frac d {dx} \left( x+\frac 1 x\right)$. So, that step basically means that we have done a change of variables $x\to\left( x+\frac 1 x\right)$

It is same as substituting $y=\left( x+\frac 1 x\right)$, saying that $dy=x^2\left( 1-\frac 1 {x^2}\right)dx$, writing the whole integrand in terms of $y$, and integrating it.

Does that help?