[Math] Reverse Product Rule ODE

ordinary differential equations

I don't understand the reverse product rule.
When using integrating factors to solve the ODE below,
$$\frac{dy}{dx} + \frac{2x}{1+x^2} y = \frac{4}{(1+x^2)^2}$$
We have integrating factor $1+x^2$,
so we multiply by both sides and receive
$$\left(\frac{dy}{dx} + \frac{2x}{1+x^2} y\right) (1+x^2) = (1+x^2)\cdot \frac{4}{(1+x^2)^2}$$
Which, by the reverse product rule is the same as:
$$ \frac{d}{dx} (1+x^2)y = \frac{4}{1+x^2}$$
RHS is straight forward, however I do not understand how we obtain LHS.
Could someone please explain for this case and general case?

Best Answer

One way to think of the product rule is that you are "unpacking" something. Similarly, the reverse product rule would have you "repacking" something.

Just doing algebra, you should find $$\left(\frac{dy}{dx} + \frac{2x}{1+x^2} y\right) (1+x^2)=\frac{dy}{dx}(1+x^2)+2xy$$ Notice the "$2x$" quantity in the equation. Here is the tricky part: We want to rewrite it in a way that makes it more useful to us, like $\frac{d}{dx}(1+x^2)=2x$. This makes our equation look like $$\frac{dy}{dx}(1+x^2)+2xy = \frac{dy}{dx} (1+x^2)+\frac{d}{dx}(1+x^2)y \\ \approx u'v+v'u \\ = (uv)'$$ Ideally you can now see the traces of the product rule in the final result, as we have the derivative of one function ($y$) times a second function ($1+x^2$), plus the derivative of the second function times the first function. $$ \frac{dy}{dx} (1+x^2)+\frac{d}{dx}(1+x^2)y = \frac{d}{dx}[y(1+x^2)]$$ Hopefully that approach makes sense. Again, this process can be tricky because you often have to create or look for something that isn't there. You'll get the hang of it with practice.